[LEDE-DEV] ramips: Fixed NixCore profile TARGET_DEVICE

2016-12-28 Thread Drew from NixCore

From 23b73de3aef72963c1f7989d5d49a4ec7553ee47 Mon Sep 17 00:00:00 2001
From: Drew Gaylo 
Date: Wed, 28 Dec 2016 15:09:24 -0700
Subject: [PATCH] Fixed define/ and TARGET_DEVICE issue for NixCore

Signed-off-by: Drew Gaylo 

---
 target/linux/ramips/image/rt305x.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/ramips/image/rt305x.mk 
b/target/linux/ramips/image/rt305x.mk

index 2939104..529094d 100644
--- a/target/linux/ramips/image/rt305x.mk
+++ b/target/linux/ramips/image/rt305x.mk
@@ -540,7 +540,7 @@ define Device/nixcore-x1-8M
   DEVICE_TITLE := NixcoreX1 (8M)
   DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 
kmod-i2c-core kmod-i2c-ralink kmod-spi-dev

 endef
-TARGET_DEVICES += nixcore-8M
+TARGET_DEVICES += nixcore-x1-8M

 define Device/nixcore-x1-16M
   DTS := NIXCORE-16M
@@ -548,7 +548,7 @@ define Device/nixcore-x1-16M
   DEVICE_TITLE := NixcoreX1 (16M)
   DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 
kmod-i2c-core kmod-i2c-ralink kmod-spi-dev

 endef
-TARGET_DEVICES += nixcore-16M
+TARGET_DEVICES += nixcore-x1-16M

 define Device/nw718
   DTS := NW718
--
1.9.1



___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] [PATCH] [ramips] Added NixCore X1 target

2016-06-06 Thread Drew from NixCore
Added NixCore X1 ramips target http://nixcores.com. This builds 8M and 
16M images


Signed-off-by: Drew Gaylo 
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network 
b/target/linux/ramips/base-files/etc/board.d/02_network

index 69c0125..4728c75 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -77,7 +77,6 @@ ramips_setup_interfaces()
 mt7628|\
 mzk-750dhp|\
 mzk-w300nh2|\
-nixcore|\
 oy-0001|\
 pbr-m1|\
 psg1208|\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh 
b/target/linux/ramips/base-files/lib/ramips.sh

index 76f0e43..cbe455d 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -316,9 +316,6 @@ ramips_board_detect() {
 *"NCS601W")
 name="ncs601w"
 ;;
-*"NixcoreX1")
-name="nixcore-x1"
-;;
 *"NW718")
 name="nw718"
 ;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh 
b/target/linux/ramips/base-files/lib/upgrade/platform.sh

index 0094568..91c9997 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -94,7 +94,6 @@ platform_check_image() {
 mzk-w300nh2|\
 mzk-wdpr|\
 nbg-419n|\
-nixcore|\
 nw718|\
 oy-0001|\
 pbr-m1|\
diff --git a/target/linux/ramips/dts/NIXCOREX1-16M.dts 
b/target/linux/ramips/dts/NIXCOREX1-16M.dts

deleted file mode 100644
index c7ec410..000
--- a/target/linux/ramips/dts/NIXCOREX1-16M.dts
+++ /dev/null
@@ -1,186 +0,0 @@
-/dts-v1/;
-
-/include/ "rt5350.dtsi"
-
-/ {
-compatible = "NixcoreX1", "ralink,rt5350-soc";
-model = "NixcoreX1";
-
-palmbus@1000 {
-/* Re-enable the gpio1 ports */
-gpio1: gpio@660 {
-status = "okay";
-};
-
-i2c@900 {
-status = "okay";
-};
-uart@500 {
-status = "okay";
-/* Mix of uart and gpio */
-reset-names = "gpio uartf";
-};
-spi@b00 {
-status = "okay";
-
-m25p80@0 {
-#address-cells = <1>;
-#size-cells = <1>;
-compatible = "s25fl064k";
-reg = <0>;
-linux,modalias = "m25p80", "s25fl064k";
-spi-max-frequency = <1000>;
-
-partition@0 {
-label = "uboot";
-reg = <0x0 0x3>;
-read-only;
-};
-
-partition@3 {
-label = "uboot-env";
-reg = <0x3 0x1>;
-read-only;
-};
-
-factory: partition@4 {
-label = "factory";
-reg = <0x4 0x1>;
-read-only;
-};
-
-partition@5 {
-label = "firmware";
-reg = <0x5 0x7b>;
-};
-};
-
-spidev@1 {
-compatible = "linux,spidev";
-spi-max-frequency = <1000>;
-reg = <1>;
-};
-};
-};
-
-pinctrl {
-state_default: pinctrl0 {
-gpio {
-/* Associate the tjag, uartf and led groups with gpio */
-ralink,group = "jtag", "led", "spi_cs1";
-/* How do we set individual pins? */
-ralink,function = "gpio";
-};
-};
-};
-
-ethernet@1010 {
-mtd-mac-address = <&factory 0x4>;
-};
-
-esw@1011 {
-ralink,portmap = <0x17>;
-};
-
-wmac@1018 {
-ralink,mtd-eeprom = <&factory 0>;
-};
-
-ehci@101c {
-status = "okay";
-};
-
-ohci@101c1000 {
-status = "okay";
-};
-
-chosen {
-bootargs = "console=ttyS1,57600";
-};
-gpio-export {
-compatible = "gpio-export";
-#size-cells = <0>;
-
-gpio0 {
-gpio-export,name = "gpio0";
-gpio-export,direction_may_change = <1>;
-gpios = <&gpio0 0 0>;
-};
-
-/* GPIOs 1-6 are I2C,SPI */
-
-/* GPIO 7-14 are uart1 */
-
-/* GPIOs 15 & 16 are uart2 */
-
-/* JTAG */
-gpio17 {
-/* JTAG_TDO */
-gpio-export,name = "gpio17";
-gpio-export,direction_may_change = <1>;
-gpios = <&gpio0 17 0>;
-};
-gpio18 {
-/* JTAG_TDI */
-gpio-export,name = "gpio18";
-gpio-export,direction_may_change = <1>;
-gpios = <&gpio0 18 0>;
-};
-gpio19 {
-/* JTAG_TMS */
-gpio-export,name = "gpio19";
-gpio-export,direction_may_change = <1>;
-gpios = <&gpio0 19 0>;
-};
-   

[LEDE-DEV] [PATCH] [ramips] Added NixCore X1 target V2

2016-06-06 Thread Drew from NixCore

Added NixCore X1 ramips target http://nixcores.com. This builds 8M and 16M
images

Signed-off-by: Drew Gaylo 
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network 
b/target/linux/ramips/base-files/etc/board.d/02_network

index 4728c75..69c0125 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -77,6 +77,7 @@ ramips_setup_interfaces()
 mt7628|\
 mzk-750dhp|\
 mzk-w300nh2|\
+nixcore|\
 oy-0001|\
 pbr-m1|\
 psg1208|\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh 
b/target/linux/ramips/base-files/lib/ramips.sh

index cbe455d..76f0e43 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -316,6 +316,9 @@ ramips_board_detect() {
 *"NCS601W")
 name="ncs601w"
 ;;
+*"NixcoreX1")
+name="nixcore-x1"
+;;
 *"NW718")
 name="nw718"
 ;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh 
b/target/linux/ramips/base-files/lib/upgrade/platform.sh

index 91c9997..0094568 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -94,6 +94,7 @@ platform_check_image() {
 mzk-w300nh2|\
 mzk-wdpr|\
 nbg-419n|\
+nixcore|\
 nw718|\
 oy-0001|\
 pbr-m1|\
diff --git a/target/linux/ramips/dts/NIXCOREX1-16M.dts 
b/target/linux/ramips/dts/NIXCOREX1-16M.dts

new file mode 100644
index 000..c7ec410
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-16M.dts
@@ -0,0 +1,186 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+compatible = "NixcoreX1", "ralink,rt5350-soc";
+model = "NixcoreX1";
+
+palmbus@1000 {
+/* Re-enable the gpio1 ports */
+gpio1: gpio@660 {
+status = "okay";
+};
+
+i2c@900 {
+status = "okay";
+};
+uart@500 {
+status = "okay";
+/* Mix of uart and gpio */
+reset-names = "gpio uartf";
+};
+spi@b00 {
+status = "okay";
+
+m25p80@0 {
+#address-cells = <1>;
+#size-cells = <1>;
+compatible = "s25fl064k";
+reg = <0>;
+linux,modalias = "m25p80", "s25fl064k";
+spi-max-frequency = <1000>;
+
+partition@0 {
+label = "uboot";
+reg = <0x0 0x3>;
+read-only;
+};
+
+partition@3 {
+label = "uboot-env";
+reg = <0x3 0x1>;
+read-only;
+};
+
+factory: partition@4 {
+label = "factory";
+reg = <0x4 0x1>;
+read-only;
+};
+
+partition@5 {
+label = "firmware";
+reg = <0x5 0x7b>;
+};
+};
+
+spidev@1 {
+compatible = "linux,spidev";
+spi-max-frequency = <1000>;
+reg = <1>;
+};
+};
+};
+
+pinctrl {
+state_default: pinctrl0 {
+gpio {
+/* Associate the tjag, uartf and led groups with gpio */
+ralink,group = "jtag", "led", "spi_cs1";
+/* How do we set individual pins? */
+ralink,function = "gpio";
+};
+};
+};
+
+ethernet@1010 {
+mtd-mac-address = <&factory 0x4>;
+};
+
+esw@1011 {
+ralink,portmap = <0x17>;
+};
+
+wmac@1018 {
+ralink,mtd-eeprom = <&factory 0>;
+};
+
+ehci@101c {
+status = "okay";
+};
+
+ohci@101c1000 {
+status = "okay";
+};
+
+chosen {
+bootargs = "console=ttyS1,57600";
+};
+gpio-export {
+compatible = "gpio-export";
+#size-cells = <0>;
+
+gpio0 {
+gpio-export,name = "gpio0";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 0 0>;
+};
+
+/* GPIOs 1-6 are I2C,SPI */
+
+/* GPIO 7-14 are uart1 */
+
+/* GPIOs 15 & 16 are uart2 */
+
+/* JTAG */
+gpio17 {
+/* JTAG_TDO */
+gpio-export,name = "gpio17";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 17 0>;
+};
+gpio18 {
+/* JTAG_TDI */
+gpio-export,name = "gpio18";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 18 0>;
+};
+gpio19 {
+/* JTAG_TMS */
+gpio-export,name = "gpio19";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 19 0>;
+};
+gpio

Re: [LEDE-DEV] [PATCH] [ramips] Added NixCore X1 target V2

2016-06-07 Thread Drew from NixCore

John,

This target was built for OpenWRT CC so the dts matches that format.  I 
am not very familiar with the dts format, can you provide a resource to 
get up to speed on the latest format?


This is a board with the RT5350 SOC, very similar to other boards 
supported.  The dts has some settings specific to this board rather than 
others.


Thanks,

Drew

On 06/06/2016 11:12 PM, John Crispin wrote:

Hi Drew,

this patch seems to use the old devicetree layout and image building
code. do you think you could rebase this and make it work ontop of
latest source.git or do you need help to do that ? this patch wont apply
as is.

another question, did you build this yourself or is this a rebranded
whitelabel product ? i think we already support this board (or one that
looks almost identical, need to see if i can find it in my router zoo today)

John

On 07/06/2016 02:16, Drew from NixCore wrote:

Added NixCore X1 ramips target http://nixcores.com. This builds 8M and 16M
images

Signed-off-by: Drew Gaylo 
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network
b/target/linux/ramips/base-files/etc/board.d/02_network
index 4728c75..69c0125 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -77,6 +77,7 @@ ramips_setup_interfaces()
  mt7628|\
  mzk-750dhp|\
  mzk-w300nh2|\
+nixcore|\
  oy-0001|\
  pbr-m1|\
  psg1208|\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh
b/target/linux/ramips/base-files/lib/ramips.sh
index cbe455d..76f0e43 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -316,6 +316,9 @@ ramips_board_detect() {
  *"NCS601W")
  name="ncs601w"
  ;;
+*"NixcoreX1")
+name="nixcore-x1"
+;;
  *"NW718")
  name="nw718"
  ;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh
b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 91c9997..0094568 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -94,6 +94,7 @@ platform_check_image() {
  mzk-w300nh2|\
  mzk-wdpr|\
  nbg-419n|\
+nixcore|\
  nw718|\
  oy-0001|\
  pbr-m1|\
diff --git a/target/linux/ramips/dts/NIXCOREX1-16M.dts
b/target/linux/ramips/dts/NIXCOREX1-16M.dts
new file mode 100644
index 000..c7ec410
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-16M.dts
@@ -0,0 +1,186 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+compatible = "NixcoreX1", "ralink,rt5350-soc";
+model = "NixcoreX1";
+
+palmbus@1000 {
+/* Re-enable the gpio1 ports */
+gpio1: gpio@660 {
+status = "okay";
+};
+
+i2c@900 {
+status = "okay";
+};
+uart@500 {
+status = "okay";
+/* Mix of uart and gpio */
+reset-names = "gpio uartf";
+};
+spi@b00 {
+status = "okay";
+
+m25p80@0 {
+#address-cells = <1>;
+#size-cells = <1>;
+compatible = "s25fl064k";
+reg = <0>;
+linux,modalias = "m25p80", "s25fl064k";
+spi-max-frequency = <1000>;
+
+partition@0 {
+label = "uboot";
+reg = <0x0 0x3>;
+read-only;
+};
+
+partition@3 {
+label = "uboot-env";
+reg = <0x3 0x1>;
+read-only;
+};
+
+factory: partition@4 {
+label = "factory";
+reg = <0x4 0x1>;
+read-only;
+};
+
+partition@5 {
+label = "firmware";
+reg = <0x5 0x7b>;
+};
+};
+
+spidev@1 {
+compatible = "linux,spidev";
+spi-max-frequency = <1000>;
+reg = <1>;
+};
+};
+};
+
+pinctrl {
+state_default: pinctrl0 {
+gpio {
+/* Associate the tjag, uartf and led groups with gpio */
+ralink,group = "jtag", "led", "spi_cs1";
+/* How do we set individual pins? */
+ralink,function = "gpio";
+};
+};
+};
+
+ethernet@1010 {
+mtd-mac-address = <&factory 0x4>;
+};
+
+esw@101100

Re: [LEDE-DEV] [PATCH] [ramips] Added NixCore X1 target V2

2016-06-07 Thread Drew from NixCore

John,

I took a look at the dtsi file and see how the dts is updating the 
settings.  I have
a dts that builds, but I would like a sanity check before submitting the 
patch again.


http://pastebin.com/EunNmAf4

If this looks good I will update the 16M DTS and then submit again.

Thanks,

Drew

On 06/06/2016 11:12 PM, John Crispin wrote:

Hi Drew,

this patch seems to use the old devicetree layout and image building
code. do you think you could rebase this and make it work ontop of
latest source.git or do you need help to do that ? this patch wont apply
as is.

another question, did you build this yourself or is this a rebranded
whitelabel product ? i think we already support this board (or one that
looks almost identical, need to see if i can find it in my router zoo today)

John

On 07/06/2016 02:16, Drew from NixCore wrote:

Added NixCore X1 ramips target http://nixcores.com. This builds 8M and 16M
images

Signed-off-by: Drew Gaylo 
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network
b/target/linux/ramips/base-files/etc/board.d/02_network
index 4728c75..69c0125 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -77,6 +77,7 @@ ramips_setup_interfaces()
  mt7628|\
  mzk-750dhp|\
  mzk-w300nh2|\
+nixcore|\
  oy-0001|\
  pbr-m1|\
  psg1208|\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh
b/target/linux/ramips/base-files/lib/ramips.sh
index cbe455d..76f0e43 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -316,6 +316,9 @@ ramips_board_detect() {
  *"NCS601W")
  name="ncs601w"
  ;;
+*"NixcoreX1")
+name="nixcore-x1"
+;;
  *"NW718")
  name="nw718"
  ;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh
b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 91c9997..0094568 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -94,6 +94,7 @@ platform_check_image() {
  mzk-w300nh2|\
  mzk-wdpr|\
  nbg-419n|\
+nixcore|\
  nw718|\
  oy-0001|\
  pbr-m1|\
diff --git a/target/linux/ramips/dts/NIXCOREX1-16M.dts
b/target/linux/ramips/dts/NIXCOREX1-16M.dts
new file mode 100644
index 000..c7ec410
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-16M.dts
@@ -0,0 +1,186 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+compatible = "NixcoreX1", "ralink,rt5350-soc";
+model = "NixcoreX1";
+
+palmbus@1000 {
+/* Re-enable the gpio1 ports */
+gpio1: gpio@660 {
+status = "okay";
+};
+
+i2c@900 {
+status = "okay";
+};
+uart@500 {
+status = "okay";
+/* Mix of uart and gpio */
+reset-names = "gpio uartf";
+};
+spi@b00 {
+status = "okay";
+
+m25p80@0 {
+#address-cells = <1>;
+#size-cells = <1>;
+compatible = "s25fl064k";
+reg = <0>;
+linux,modalias = "m25p80", "s25fl064k";
+spi-max-frequency = <1000>;
+
+partition@0 {
+label = "uboot";
+reg = <0x0 0x3>;
+read-only;
+};
+
+partition@3 {
+label = "uboot-env";
+reg = <0x3 0x1>;
+read-only;
+};
+
+factory: partition@4 {
+label = "factory";
+reg = <0x4 0x1>;
+read-only;
+};
+
+partition@5 {
+label = "firmware";
+reg = <0x5 0x7b>;
+};
+};
+
+spidev@1 {
+compatible = "linux,spidev";
+spi-max-frequency = <1000>;
+reg = <1>;
+};
+};
+};
+
+pinctrl {
+state_default: pinctrl0 {
+gpio {
+/* Associate the tjag, uartf and led groups with gpio */
+ralink,group = "jtag", "led", "spi_cs1";
+/* How do we set individual pins? */
+ralink,function = "gpio";
+};
+};
+};
+
+ethernet@1010 {
+mtd-mac-address = <&factory 0x4>;
+};
+
+esw@1011 {
+ralink,portmap = <0x17>;
+};
+
+wm

[LEDE-DEV] [PATCH] [ramips] Added NixCore X1 target V3

2016-06-09 Thread Drew from NixCore
Added NixCore X1 ramips target http://nixcores.com. This builds 8M and 
16M images.  V3 updates the dts to support LEDE updated format


Signed-off-by: Drew Gaylo 
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network 
b/target/linux/ramips/base-files/etc/board.d/02_network

index 4728c75..69c0125 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -77,6 +77,7 @@ ramips_setup_interfaces()
 mt7628|\
 mzk-750dhp|\
 mzk-w300nh2|\
+nixcore|\
 oy-0001|\
 pbr-m1|\
 psg1208|\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh 
b/target/linux/ramips/base-files/lib/ramips.sh

index cbe455d..76f0e43 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -316,6 +316,9 @@ ramips_board_detect() {
 *"NCS601W")
 name="ncs601w"
 ;;
+*"NixcoreX1")
+name="nixcore-x1"
+;;
 *"NW718")
 name="nw718"
 ;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh 
b/target/linux/ramips/base-files/lib/upgrade/platform.sh

index 91c9997..0094568 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -94,6 +94,7 @@ platform_check_image() {
 mzk-w300nh2|\
 mzk-wdpr|\
 nbg-419n|\
+nixcore|\
 nw718|\
 oy-0001|\
 pbr-m1|\
diff --git a/target/linux/ramips/dts/NIXCOREX1-16M.dts 
b/target/linux/ramips/dts/NIXCOREX1-16M.dts

new file mode 100644
index 000..1e1a205
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-16M.dts
@@ -0,0 +1,182 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+compatible = "NixcoreX1", "ralink,rt5350-soc";
+model = "NixcoreX1";
+
+chosen{
+bootargs = "console=ttyS1,57600";
+};
+
+gpio-export {
+compatible = "gpio-export";
+#size-cells = <0>;
+
+gpio0 {
+gpio-export,name = "gpio0";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 0 0>;
+};
+/* GPIOs 1-6 are I2C,SPI */
+
+/* GPIO 7-14 are uart1 */
+
+/* GPIOs 15 & 16 are uart2 */
+
+/* JTAG */
+gpio17 {
+/* JTAG_TDO */
+gpio-export,name = "gpio17";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 17 0>;
+};
+gpio18 {
+/* JTAG_TDI */
+gpio-export,name = "gpio18";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 18 0>;
+};
+gpio19 {
+/* JTAG_TMS */
+gpio-export,name = "gpio19";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 19 0>;
+};
+gpio20 {
+/* JTAG_TCLK */
+gpio-export,name = "gpio20";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 20 0>;
+};
+gpio21 {
+/* JTAG_TRST_N */
+gpio-export,name = "gpio21";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 21 0>;
+};
+
+/* ETH LEDs */
+/*
+gpio22 {
+gpio-export,name = "gpio22";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio1 0 0>;
+};
+gpio23 {
+gpio-export,name = "gpio23";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio1 1 0>;
+};
+gpio24 {
+gpio-export,name = "gpio24";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio1 2 0>;
+};
+gpio25 {
+gpio-export,name = "gpio25";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio1 3 0>;
+};
+*/
+
+gpio26 {
+/* ETH4_LED */
+gpio-export,name = "gpio26";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio1 4 0>;
+};
+
+gpio27 {
+/* spi_cs1 */
+gpio-export,name = "gpio27";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio1 5 0>;
+};
+};
+
+};
+
+&gpio0{
+status = "okay";
+};
+
+&gpio1{
+status = "okay";
+};
+
+&i2c{
+status = "okay";
+};
+&uart{
+status = "okay";
+/* Mix of uart and gpio */
+reset-names = "gpio uartf";
+};
+&spi0{
+status = "okay";
+
+m25p80@0 {
+#address-cells = <1>;
+#size-cells = <1>;
+compatible = "s25fl064k";
+reg = <0>;
+linux,modalias = "m25p80", "s25fl064k";
+spi-max-frequency = <1000>;
+
+partition@0 {
+label = "uboot";
+reg = <0x0 0x3>;
+read-only;
+};
+
+partition@3 {
+label = "uboot-env";
+reg = <0x3 0x1>;
+read-

Re: [LEDE-DEV] [PATCH] [ramips] Added NixCore X1 target V3

2016-06-09 Thread Drew from NixCore
I have no problem with a common dtsi, can I get these changes in first 
and then do the dtsi as I continue work?


Drew

On 06/09/2016 03:12 PM, Karl Palsson wrote:

If the 8 and 16 meg files only differ in their memory, should
they perhaps just have a common .dtsi file for them both? instead
of duplicating the entire dts? I've snipped the only differences
between them below...

Sincerely,
Karl P


Drew from NixCore  wrote:

Added NixCore X1 ramips target http://nixcores.com. This builds
8M and 16M images. V3 updates the dts to support LEDE updated
format

Signed-off-by: Drew Gaylo 
diff --git
diff --git a/target/linux/ramips/dts/NIXCOREX1-16M.dts
b/target/linux/ramips/dts/NIXCOREX1-16M.dts new file mode
100644 index 000..1e1a205
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-16M.dts

snip


+partition@5 {
+label = "firmware";
+reg = <0x5 0xfb>;
+};
+};
+};
+
diff --git a/target/linux/ramips/dts/NIXCOREX1-8M.dts
b/target/linux/ramips/dts/NIXCOREX1-8M.dts new file mode 100644
index 000..c514860
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-8M.dts

snip


+partition@5 {
+label = "firmware";
+reg = <0x5 0x7b>;
+};
+};
+};
+


___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev



___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] [PATCH] [ramips] Added NixCore X1 target V3

2016-06-14 Thread Drew from NixCore

John,

I originally was working on a git clone of the repo master branch from 
June 5th.  https://github.com/nixcore/lede-fork1 Rather than do a git 
pull request I just generated the patch for the mailing list. I've 
applied the same patch (via git apply) to the current HEAD of source.git 
repo and while there appear to be some whitespace warnings the patch 
applies correctly from the .patch file.  Maybe the formatting got messed 
up in the submit.


Drew

On 06/10/2016 02:38 AM, John Crispin wrote:


On 09/06/2016 23:36, Drew from NixCore wrote:

I have no problem with a common dtsi, can I get these changes in first
and then do the dtsi as I continue work?

Drew

On 06/09/2016 03:12 PM, Karl Palsson wrote:

If the 8 and 16 meg files only differ in their memory, should
they perhaps just have a common .dtsi file for them both? instead
of duplicating the entire dts? I've snipped the only differences
between them below...

Sincerely,
Karl P


Drew from NixCore  wrote:

Added NixCore X1 ramips target http://nixcores.com. This builds
8M and 16M images. V3 updates the dts to support LEDE updated
format

Hi Drew,

i just wanted to fix the dtsi stuff myself however the patch is
whitespace broken and does not apply. i went on to manually fix the
whitespace breakage to find that you did not generate this patch against
our latest source.git and that it wont apply.

which tree at what rev did you use to generate the patch ?

John









Signed-off-by: Drew Gaylo 
diff --git
diff --git a/target/linux/ramips/dts/NIXCOREX1-16M.dts
b/target/linux/ramips/dts/NIXCOREX1-16M.dts new file mode
100644 index 000..1e1a205
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-16M.dts

snip


+partition@5 {
+label = "firmware";
+reg = <0x5 0xfb>;
+};
+};
+};
+
diff --git a/target/linux/ramips/dts/NIXCOREX1-8M.dts
b/target/linux/ramips/dts/NIXCOREX1-8M.dts new file mode 100644
index 000..c514860
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-8M.dts

snip


+partition@5 {
+label = "firmware";
+reg = <0x5 0x7b>;
+};
+};
+};
+


___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev



___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] [PATCH] [ramips] Added NixCore X1 target V4

2016-06-15 Thread Drew from NixCore

Added NixCore X1 ramips targethttp://nixcores.com.   
This builds 8M and 16M images.  V4 updates the patch to fix whitespace issues in V3

Signed-off-by: Drew Gaylo 
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network 
b/target/linux/ramips/base-files/etc/board.d/02_network
index 4728c75..69c0125 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -77,6 +77,7 @@ ramips_setup_interfaces()
mt7628|\
mzk-750dhp|\
mzk-w300nh2|\
+   nixcore|\
oy-0001|\
pbr-m1|\
psg1208|\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh 
b/target/linux/ramips/base-files/lib/ramips.sh
index cbe455d..76f0e43 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -316,6 +316,9 @@ ramips_board_detect() {
*"NCS601W")
name="ncs601w"
;;
+*"NixcoreX1")
+   name="nixcore-x1"
+   ;;
*"NW718")
name="nw718"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh 
b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 91c9997..0094568 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -94,6 +94,7 @@ platform_check_image() {
mzk-w300nh2|\
mzk-wdpr|\
nbg-419n|\
+nixcore|\
nw718|\
oy-0001|\
pbr-m1|\
diff --git a/target/linux/ramips/dts/NIXCOREX1-16M.dts 
b/target/linux/ramips/dts/NIXCOREX1-16M.dts
new file mode 100644
index 000..1e1a205
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-16M.dts
@@ -0,0 +1,182 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+   compatible = "NixcoreX1", "ralink,rt5350-soc";
+   model = "NixcoreX1";
+
+chosen{
+bootargs = "console=ttyS1,57600";
+};
+
+gpio-export {
+compatible = "gpio-export";
+#size-cells = <0>;
+
+gpio0 {
+gpio-export,name = "gpio0";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 0 0>;
+};
+/* GPIOs 1-6 are I2C,SPI */
+
+/* GPIO 7-14 are uart1 */
+
+/* GPIOs 15 & 16 are uart2 */
+
+   /* JTAG */
+   gpio17 {
+   /* JTAG_TDO */
+   gpio-export,name = "gpio17";
+   gpio-export,direction_may_change = <1>;
+   gpios = <&gpio0 17 0>;
+   };
+   gpio18 {
+   /* JTAG_TDI */
+   gpio-export,name = "gpio18";
+   gpio-export,direction_may_change = <1>;
+   gpios = <&gpio0 18 0>;
+   };
+   gpio19 {
+   /* JTAG_TMS */
+   gpio-export,name = "gpio19";
+   gpio-export,direction_may_change = <1>;
+   gpios = <&gpio0 19 0>;
+   };
+   gpio20 {
+   /* JTAG_TCLK */
+   gpio-export,name = "gpio20";
+   gpio-export,direction_may_change = <1>;
+   gpios = <&gpio0 20 0>;
+   };
+   gpio21 {
+   /* JTAG_TRST_N */
+   gpio-export,name = "gpio21";
+   gpio-export,direction_may_change = <1>;
+   gpios = <&gpio0 21 0>;
+   };
+
+   /* ETH LEDs */
+/*
+gpio22 {
+   gpio-export,name = "gpio22";
+   gpio-export,direction_may_change = <1>;
+   gpios = <&gpio1 0 0>;
+   };
+gpio23 {
+   gpio-export,name = "gpio23";
+   gpio-export,direction_may_change = <1>;
+   gpios = <&gpio1 1 0>;
+   };
+gpio24 {
+   gpio-export,name = "gpio24";
+   gpio-export,direction_may_change = <1>;
+   gpios = <&gpio1 2 0>;
+   };
+   gpio25 {
+   gpio-export,name = "gpio25";
+   gpio-export,direction_may_change = <1>;
+   gpios = <&gpio1 3 0>;
+   };
+*/
+
+   gpio26 {
+   /* ETH4_LED */
+   gpio-export,name = "gpio26";
+   gpio-export,direction_may_change = <1>;
+   gpios = <&gpio1 4 0>;
+   };
+
+gpio27 {
+   /* spi_cs1 */
+   gpio-export,name = "gpio27";
+   gpio-export,direction_may_change = <1>;
+   gpios = <&gpio1 5 0>;
+   };
+};
+
+};
+
+&gpio0

Re: [LEDE-DEV] [PATCH] [ramips] Added NixCore X1 target V4

2016-06-15 Thread Drew from NixCore
So it appears that this patch doesn't apply either.  I have re-checked 
out the latest source and made the changes manually rather than using tools.


This patch is invalid and I will be submitting V5.  Please bear with me 
as this is my first submission to LEDE


Drew

On 06/15/2016 04:35 PM, Drew from NixCore wrote:
Added NixCore X1 ramips targethttp://nixcores.com. 
<http://nixcores.com./>  This builds 8M and 16M images.  V4 updates 
the patch to fix whitespace issues in V3


Signed-off-by: Drew Gaylo 
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network 
b/target/linux/ramips/base-files/etc/board.d/02_network

index 4728c75..69c0125 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -77,6 +77,7 @@ ramips_setup_interfaces()
 mt7628|\
 mzk-750dhp|\
 mzk-w300nh2|\
+nixcore|\
 oy-0001|\
 pbr-m1|\
 psg1208|\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh 
b/target/linux/ramips/base-files/lib/ramips.sh

index cbe455d..76f0e43 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -316,6 +316,9 @@ ramips_board_detect() {
 *"NCS601W")
 name="ncs601w"
 ;;
+*"NixcoreX1")
+name="nixcore-x1"
+;;
 *"NW718")
 name="nw718"
 ;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh 
b/target/linux/ramips/base-files/lib/upgrade/platform.sh

index 91c9997..0094568 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -94,6 +94,7 @@ platform_check_image() {
 mzk-w300nh2|\
 mzk-wdpr|\
 nbg-419n|\
+nixcore|\
 nw718|\
 oy-0001|\
 pbr-m1|\
diff --git a/target/linux/ramips/dts/NIXCOREX1-16M.dts 
b/target/linux/ramips/dts/NIXCOREX1-16M.dts

new file mode 100644
index 000..1e1a205
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-16M.dts
@@ -0,0 +1,182 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+compatible = "NixcoreX1", "ralink,rt5350-soc";
+model = "NixcoreX1";
+
+chosen{
+bootargs = "console=ttyS1,57600";
+};
+
+gpio-export {
+compatible = "gpio-export";
+#size-cells = <0>;
+
+gpio0 {
+gpio-export,name = "gpio0";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 0 0>;
+};
+/* GPIOs 1-6 are I2C,SPI */
+
+/* GPIO 7-14 are uart1 */
+
+/* GPIOs 15 & 16 are uart2 */
+
+/* JTAG */
+gpio17 {
+/* JTAG_TDO */
+gpio-export,name = "gpio17";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 17 0>;
+};
+gpio18 {
+/* JTAG_TDI */
+gpio-export,name = "gpio18";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 18 0>;
+};
+gpio19 {
+/* JTAG_TMS */
+gpio-export,name = "gpio19";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 19 0>;
+};
+gpio20 {
+/* JTAG_TCLK */
+gpio-export,name = "gpio20";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 20 0>;
+};
+gpio21 {
+/* JTAG_TRST_N */
+gpio-export,name = "gpio21";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio0 21 0>;
+};
+
+/* ETH LEDs */
+/*
+gpio22 {
+gpio-export,name = "gpio22";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio1 0 0>;
+};
+gpio23 {
+gpio-export,name = "gpio23";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio1 1 0>;
+};
+gpio24 {
+gpio-export,name = "gpio24";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio1 2 0>;
+};
+gpio25 {
+gpio-export,name = "gpio25";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio1 3 0>;
+};
+*/
+
+gpio26 {
+/* ETH4_LED */
+gpio-export,name = "gpio26";
+gpio-export,direction_may_change = <1>;
+gpios = <&gpio1 4 0>;
+};
+
+gpio27 {
+/* spi_cs1 */
+gpio-export,name = "gpio27";
+gpio-export

[LEDE-DEV] [PATCH] [ramips] Added NixCore X1 target V5

2016-06-15 Thread Drew from NixCore
Added NixCore X1 ramips target http://nixcores.com.  This builds 8M and 
16M images.  V5 updates the patch to work with the latest source.git


Signed-off-by: Drew Gaylo 
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network 
b/target/linux/ramips/base-files/etc/board.d/02_network

index be1912a..ebcf619 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -77,6 +77,7 @@ ramips_setup_interfaces()
 mt7628|\
 mzk-750dhp|\
 mzk-w300nh2|\
+nixcore|\
 oy-0001|\
 pbr-m1|\
 psg1208|\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh 
b/target/linux/ramips/base-files/lib/ramips.sh

index bd4f33d..340a628 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -322,6 +322,9 @@ ramips_board_detect() {
 *"NCS601W")
 name="ncs601w"
 ;;
+*"NixcoreX1")
+name="nixcore-x1"
+;;
 *"NW718")
 name="nw718"
 ;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh 
b/target/linux/ramips/base-files/lib/upgrade/platform.sh

index 0b3d8c7..8749c99 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -95,6 +95,7 @@ platform_check_image() {
 mzk-w300nh2|\
 mzk-wdpr|\
 nbg-419n|\
+nixcore|\
 nw718|\
 oy-0001|\
 pbr-m1|\
diff --git a/target/linux/ramips/dts/NIXCOREX1-16M.dts 
b/target/linux/ramips/dts/NIXCOREX1-16M.dts

new file mode 100644
index 000..2ffcbb2
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-16M.dts
@@ -0,0 +1,95 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+compatible = "NixcoreX1", "ralink,rt5350-soc";
+model = "NixcoreX1";
+
+chosen{
+bootargs = "console=ttyS1,57600";
+};
+};
+
+&gpio0{
+status = "okay";
+};
+
+&gpio1{
+status = "okay";
+};
+
+&i2c{
+status = "okay";
+};
+&uart{
+status = "okay";
+/* Mix of uart and gpio */
+reset-names = "gpio uartf";
+};
+&spi0{
+status = "okay";
+
+m25p80@0 {
+#address-cells = <1>;
+#size-cells = <1>;
+compatible = "s25fl064k";
+reg = <0>;
+linux,modalias = "m25p80", "s25fl064k";
+spi-max-frequency = <1000>;
+
+partition@0 {
+label = "uboot";
+reg = <0x0 0x3>;
+read-only;
+};
+
+partition@3 {
+label = "uboot-env";
+reg = <0x3 0x1>;
+read-only;
+};
+
+factory: partition@4 {
+label = "factory";
+reg = <0x4 0x1>;
+read-only;
+};
+
+partition@5 {
+label = "firmware";
+reg = <0x5 0xfb>;
+};
+};
+};
+
+&pinctrl {
+state_default: pinctrl0 {
+gpio {
+/* Associate the tjag, uartf and led groups with gpio */
+ralink,group = "jtag", "led", "spi_cs1";
+/* How do we set individual pins? */
+ralink,function = "gpio";
+};
+};
+};
+
+ðernet {
+mtd-mac-address = <&factory 0x4>;
+};
+
+&esw {
+ralink,portmap = <0x17>;
+};
+
+&wmac {
+ralink,mtd-eeprom = <&factory 0>;
+};
+
+&ehci {
+status = "okay";
+};
+
+&ohci {
+status = "okay";
+};
diff --git a/target/linux/ramips/dts/NIXCOREX1-8M.dts 
b/target/linux/ramips/dts/NIXCOREX1-8M.dts

new file mode 100644
index 000..ca557fd
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-8M.dts
@@ -0,0 +1,95 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+compatible = "NixcoreX1", "ralink,rt5350-soc";
+model = "NixcoreX1";
+
+chosen{
+bootargs = "console=ttyS1,57600";
+};
+};
+
+&gpio0{
+status = "okay";
+};
+
+&gpio1{
+status = "okay";
+};
+
+&i2c{
+status = "okay";
+};
+&uart{
+status = "okay";
+/* Mix of uart and gpio */
+reset-names = "gpio uartf";
+};
+&spi0{
+status = "okay";
+
+m25p80@0 {
+#address-cells = <1>;
+#size-cells = <1>;
+compatible = "s25fl064k";
+reg = <0>;
+linux,modalias = "m25p80", "s25fl064k";
+spi-max-frequency = <1000>;
+
+partition@0 {
+label = "uboot";
+reg = <0x0 0x3>;
+read-only;
+};
+
+partition@3 {
+label = "uboot-env";
+reg = <0x3 0x1>;
+read-only;
+};
+
+factory: partition@4 {
+label = "factory";
+reg = <0x4 0x1>;
+read-only;
+};
+
+partition@5 {
+label = "firmware";
+reg = <0x5 0x7b>;
+};
+};
+};
+
+&pinctrl {
+state_default: pinctrl0 {
+gpio {
+/* Associate the tjag, uartf and led groups with gpio */
+ralink,group = "jtag", "led", "spi_cs1";
+  

Re: [LEDE-DEV] [PATCH] [ramips] Added NixCore X1 target V5

2016-06-16 Thread Drew from NixCore
Ok, why is this wrapping at 80 characters, I am using an email client 
set as text only without wrapping.


Here is a test
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890

Is this a server setting?

On 06/16/2016 07:45 AM, John Crispin wrote:

Hi,

patch does not apply. please go here

--> http://patchwork.ozlabs.org/patch/636150/

click on "download mbox" and you will see that it is line wrapped at 80
characters.

John


On 16/06/2016 02:37, Drew from NixCore wrote:

Added NixCore X1 ramips target http://nixcores.com.  This builds 8M and
16M images.  V5 updates the patch to work with the latest source.git

Signed-off-by: Drew Gaylo 
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network
b/target/linux/ramips/base-files/etc/board.d/02_network
index be1912a..ebcf619 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -77,6 +77,7 @@ ramips_setup_interfaces()
  mt7628|\
  mzk-750dhp|\
  mzk-w300nh2|\
+nixcore|\
  oy-0001|\
  pbr-m1|\
  psg1208|\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh
b/target/linux/ramips/base-files/lib/ramips.sh
index bd4f33d..340a628 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -322,6 +322,9 @@ ramips_board_detect() {
  *"NCS601W")
  name="ncs601w"
  ;;
+*"NixcoreX1")
+name="nixcore-x1"
+;;
  *"NW718")
  name="nw718"
  ;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh
b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 0b3d8c7..8749c99 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -95,6 +95,7 @@ platform_check_image() {
  mzk-w300nh2|\
  mzk-wdpr|\
  nbg-419n|\
+nixcore|\
  nw718|\
  oy-0001|\
  pbr-m1|\
diff --git a/target/linux/ramips/dts/NIXCOREX1-16M.dts
b/target/linux/ramips/dts/NIXCOREX1-16M.dts
new file mode 100644
index 000..2ffcbb2
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-16M.dts
@@ -0,0 +1,95 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+compatible = "NixcoreX1", "ralink,rt5350-soc";
+model = "NixcoreX1";
+
+chosen{
+bootargs = "console=ttyS1,57600";
+};
+};
+
+&gpio0{
+status = "okay";
+};
+
+&gpio1{
+status = "okay";
+};
+
+&i2c{
+status = "okay";
+};
+&uart{
+status = "okay";
+/* Mix of uart and gpio */
+reset-names = "gpio uartf";
+};
+&spi0{
+status = "okay";
+
+m25p80@0 {
+#address-cells = <1>;
+#size-cells = <1>;
+compatible = "s25fl064k";
+reg = <0>;
+linux,modalias = "m25p80", "s25fl064k";
+spi-max-frequency = <1000>;
+
+partition@0 {
+label = "uboot";
+reg = <0x0 0x3>;
+read-only;
+};
+
+partition@3 {
+label = "uboot-env";
+reg = <0x3 0x1>;
+read-only;
+};
+
+factory: partition@4 {
+label = "factory";
+reg = <0x4 0x1>;
+read-only;
+};
+
+partition@5 {
+label = "firmware";
+reg = <0x5 0xfb>;
+};
+};
+};
+
+&pinctrl {
+state_default: pinctrl0 {
+gpio {
+/* Associate the tjag, uartf and led groups with gpio */
+ralink,group = "jtag", "led", "spi_cs1";
+/* How do we set individual pins? */
+ralink,function = "gpio";
+};
+};
+};
+
+ðernet {
+mtd-mac-address = <&factory 0x4>;
+};
+
+&esw {
+ralink,portmap = <0x17>;
+};
+
+&wmac {
+ralink,mtd-eeprom = <&factory 0>;
+};
+
+&ehci {
+status = "okay";
+};
+
+&ohci {
+status = "okay";
+};
diff --git a/target/linux/ramips/dts/NIXCOREX1-8M.dts
b/target/linux/ramips/dts/NIXCOREX1-8M.dts
new file mode 100644
index 000..ca557fd
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-8M.dts
@@ -0,0 +1,95 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+compatible = "NixcoreX1", "ralink,rt5350-soc";
+model = "NixcoreX1";
+
+chosen{
+bootargs = "console=ttyS1,57600";
+};
+};
+
+&gpio0{
+status = "okay";
+};
+
+&gpio1{
+status = "okay";
+};
+
+&i2c{
+status = "okay";
+};
+&uart{
+

Re: [LEDE-DEV] [PATCH] [ramips] Added NixCore X1 target V5

2016-06-16 Thread Drew from NixCore

Anther test with a segment of the patch that is wrapping

@@ -257,6 +272,7 @@ Image/Build/Profile/NBG-419N=$(call 
BuildFirmware/Default4M/$(1),$(1),nbg-419n,N
 Image/Build/Profile/MZKW300NH2=$(call 
BuildFirmware/Edimax/$(1),$(1),mzk-w300nh2,MZK-W300NH2,$(mzkw300nh2_mtd_size),CSYS,RN52,0x5,0xc)
 Image/Build/Profile/MZKWDPR=$(call 
BuildFirmware/Default8M/$(1),$(1),mzk-wdpr,MZK-WDPR)
 Image/Build/Profile/NCS601W=$(call 
BuildFirmware/Default8M/$(1),$(1),ncs601W,NCS601W)
+Image/Build/Profile/NIXCOREX1=$(call 
BuildFirmware/NIXCOREX1/$(1),$(1),nixcorex1,NIXCOREX1)

 nw718_mtd_size=3801088
 Image/Build/Profile/NW718=$(call 
BuildFirmware/CustomFlashFactory/$(1),$(1),nw718m,NW718,$(nw718_mtd_size),ARA1B4NCRNW718;1,factory)
 Image/Build/Profile/M2M=$(call 
BuildFirmware/Default8M/$(1),$(1),m2m,M2M,Linux Kernel Image)

@@ -353,6 +369,7 @@ define Image/Build/Profile/Default
 $(call Image/Build/Profile/MZKWDPR,$(1))
 $(call Image/Build/Profile/NBG-419N,$(1))
 $(call Image/Build/Profile/NCS601W,$(1))
+$(call Image/Build/Profile/NIXCOREX1,$(1))
 $(call Image/Build/Profile/NW718,$(1))
 $(call Image/Build/Profile/MINIEMBWIFI,$(1))
 $(call Image/Build/Profile/MINIEMBPLUG,$(1))

On 06/16/2016 07:45 AM, John Crispin wrote:

Hi,

patch does not apply. please go here

--> http://patchwork.ozlabs.org/patch/636150/

click on "download mbox" and you will see that it is line wrapped at 80
characters.

John


On 16/06/2016 02:37, Drew from NixCore wrote:

Added NixCore X1 ramips target http://nixcores.com.  This builds 8M and
16M images.  V5 updates the patch to work with the latest source.git

Signed-off-by: Drew Gaylo 
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network
b/target/linux/ramips/base-files/etc/board.d/02_network
index be1912a..ebcf619 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -77,6 +77,7 @@ ramips_setup_interfaces()
  mt7628|\
  mzk-750dhp|\
  mzk-w300nh2|\
+nixcore|\
  oy-0001|\
  pbr-m1|\
  psg1208|\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh
b/target/linux/ramips/base-files/lib/ramips.sh
index bd4f33d..340a628 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -322,6 +322,9 @@ ramips_board_detect() {
  *"NCS601W")
  name="ncs601w"
  ;;
+*"NixcoreX1")
+name="nixcore-x1"
+;;
  *"NW718")
  name="nw718"
  ;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh
b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 0b3d8c7..8749c99 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -95,6 +95,7 @@ platform_check_image() {
  mzk-w300nh2|\
  mzk-wdpr|\
  nbg-419n|\
+nixcore|\
  nw718|\
  oy-0001|\
  pbr-m1|\
diff --git a/target/linux/ramips/dts/NIXCOREX1-16M.dts
b/target/linux/ramips/dts/NIXCOREX1-16M.dts
new file mode 100644
index 000..2ffcbb2
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-16M.dts
@@ -0,0 +1,95 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+compatible = "NixcoreX1", "ralink,rt5350-soc";
+model = "NixcoreX1";
+
+chosen{
+bootargs = "console=ttyS1,57600";
+};
+};
+
+&gpio0{
+status = "okay";
+};
+
+&gpio1{
+status = "okay";
+};
+
+&i2c{
+status = "okay";
+};
+&uart{
+status = "okay";
+/* Mix of uart and gpio */
+reset-names = "gpio uartf";
+};
+&spi0{
+status = "okay";
+
+m25p80@0 {
+#address-cells = <1>;
+#size-cells = <1>;
+compatible = "s25fl064k";
+reg = <0>;
+linux,modalias = "m25p80", "s25fl064k";
+spi-max-frequency = <1000>;
+
+partition@0 {
+label = "uboot";
+reg = <0x0 0x3>;
+read-only;
+};
+
+partition@3 {
+label = "uboot-env";
+reg = <0x3 0x1>;
+read-only;
+};
+
+factory: partition@4 {
+label = "factory";
+reg = <0x4 0x1>;
+read-only;
+};
+
+partition@5 {
+label = "firmware";
+reg = <0x5 0xfb>;
+};
+};
+};
+
+&pinctrl {
+state_default: pinctrl0 {
+gpio {
+/* Associate the tjag, uartf and led groups with gpio */
+ralink,group = "jtag", "led", "spi_cs1";
+/* How do we set individual pins? */
+r

Re: [LEDE-DEV] [PATCH] [ramips] Added NixCore X1 target V5

2016-06-23 Thread Drew from NixCore

John,

I am not sure what is causing the line wrap, the emails that I get from 
the list don't have the line wrap but the list shows it.


Any suggestions?

Drew

On 06/16/2016 05:45 AM, John Crispin wrote:

Hi,

patch does not apply. please go here

--> http://patchwork.ozlabs.org/patch/636150/

click on "download mbox" and you will see that it is line wrapped at 80
characters.

John


On 16/06/2016 02:37, Drew from NixCore wrote:

Added NixCore X1 ramips target http://nixcores.com.  This builds 8M and
16M images.  V5 updates the patch to work with the latest source.git

Signed-off-by: Drew Gaylo 
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network
b/target/linux/ramips/base-files/etc/board.d/02_network
index be1912a..ebcf619 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -77,6 +77,7 @@ ramips_setup_interfaces()
  mt7628|\
  mzk-750dhp|\
  mzk-w300nh2|\
+nixcore|\
  oy-0001|\
  pbr-m1|\
  psg1208|\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh
b/target/linux/ramips/base-files/lib/ramips.sh
index bd4f33d..340a628 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -322,6 +322,9 @@ ramips_board_detect() {
  *"NCS601W")
  name="ncs601w"
  ;;
+*"NixcoreX1")
+name="nixcore-x1"
+;;
  *"NW718")
  name="nw718"
  ;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh
b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 0b3d8c7..8749c99 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -95,6 +95,7 @@ platform_check_image() {
  mzk-w300nh2|\
  mzk-wdpr|\
  nbg-419n|\
+nixcore|\
  nw718|\
  oy-0001|\
  pbr-m1|\
diff --git a/target/linux/ramips/dts/NIXCOREX1-16M.dts
b/target/linux/ramips/dts/NIXCOREX1-16M.dts
new file mode 100644
index 000..2ffcbb2
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-16M.dts
@@ -0,0 +1,95 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+compatible = "NixcoreX1", "ralink,rt5350-soc";
+model = "NixcoreX1";
+
+chosen{
+bootargs = "console=ttyS1,57600";
+};
+};
+
+&gpio0{
+status = "okay";
+};
+
+&gpio1{
+status = "okay";
+};
+
+&i2c{
+status = "okay";
+};
+&uart{
+status = "okay";
+/* Mix of uart and gpio */
+reset-names = "gpio uartf";
+};
+&spi0{
+status = "okay";
+
+m25p80@0 {
+#address-cells = <1>;
+#size-cells = <1>;
+compatible = "s25fl064k";
+reg = <0>;
+linux,modalias = "m25p80", "s25fl064k";
+spi-max-frequency = <1000>;
+
+partition@0 {
+label = "uboot";
+reg = <0x0 0x3>;
+read-only;
+};
+
+partition@3 {
+label = "uboot-env";
+reg = <0x3 0x1>;
+read-only;
+};
+
+factory: partition@4 {
+label = "factory";
+reg = <0x4 0x1>;
+read-only;
+};
+
+partition@5 {
+label = "firmware";
+reg = <0x5 0xfb>;
+};
+};
+};
+
+&pinctrl {
+state_default: pinctrl0 {
+gpio {
+/* Associate the tjag, uartf and led groups with gpio */
+ralink,group = "jtag", "led", "spi_cs1";
+/* How do we set individual pins? */
+ralink,function = "gpio";
+};
+};
+};
+
+ðernet {
+mtd-mac-address = <&factory 0x4>;
+};
+
+&esw {
+ralink,portmap = <0x17>;
+};
+
+&wmac {
+ralink,mtd-eeprom = <&factory 0>;
+};
+
+&ehci {
+status = "okay";
+};
+
+&ohci {
+status = "okay";
+};
diff --git a/target/linux/ramips/dts/NIXCOREX1-8M.dts
b/target/linux/ramips/dts/NIXCOREX1-8M.dts
new file mode 100644
index 000..ca557fd
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-8M.dts
@@ -0,0 +1,95 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+compatible = "NixcoreX1", "ralink,rt5350-soc";
+model = "NixcoreX1";
+
+chosen{
+bootargs = "console=ttyS1,57600";
+};
+};
+
+&gpio0{
+status = "okay";
+};
+
+&gpio1{
+status = "okay";
+};
+
+&i2c{
+status = "okay";
+};
+&uart{
+status = "okay";
+/* Mix of uart and gpio */

[LEDE-DEV] [PATCH] ramips: Add support for the NixCore X1

2016-06-24 Thread Drew from NixCore

The NixCore X1 is a Ralink/MediaTek rt5350 WiFi Module

Patch submission with assistance from LD Pinney, using
simplier email client.

Signed-off-by: L. D. Pinney 
Signed-off-by: Drew Gaylo 
---

target/linux/ramips/base-files/etc/board.d/02_network | 1 +
target/linux/ramips/base-files/lib/ramips.sh | 3 +++
target/linux/ramips/base-files/lib/upgrade/platform.sh | 1 +
target/linux/ramips/dts/NIXCOREX1-16M.dts | 93 
++
target/linux/ramips/dts/NIXCOREX1-8M.dts | 93 
++

target/linux/ramips/image/rt305x.mk | 10 
target/linux/ramips/mt7628/config-4.4 | 7 ++
target/linux/ramips/rt305x/profiles/nixcore.mk | 20 +++
8 files changed, 228 insertions(+)

diff --git a/target/linux/ramips/base-files/etc/board.d/02_network 
b/target/linux/ramips/base-files/etc/board.d/02_network

index dbb5fb4..5063ac8 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -77,6 +77,7 @@ ramips_setup_interfaces()
 mt7628|\
 mzk-750dhp|\
 mzk-w300nh2|\
+   nixcore|\
 oy-0001|\
 pbr-m1|\
 psg1208|\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh 
b/target/linux/ramips/base-files/lib/ramips.sh

index 10139d7..b6ccd5a 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -322,6 +322,9 @@ ramips_board_detect() {
 *"NCS601W")
  name="ncs601w"
  ;;
+   *"NixcoreX1")
+name="nixcore-x1"
+;;
 *"NW718")
  name="nw718"
  ;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh 
b/target/linux/ramips/base-files/lib/upgrade/platform.sh

index e3bea00..c4d3c01 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -95,6 +95,7 @@ platform_check_image() {
 mzk-w300nh2|\
 mzk-wdpr|\
 nbg-419n|\
+   nixcore|\
 nw718|\
 oy-0001|\
 pbr-m1|\
diff --git a/target/linux/ramips/dts/NIXCOREX1-16M.dts 
b/target/linux/ramips/dts/NIXCOREX1-16M.dts

new file mode 100644
index 000..7d2a6a1
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-16M.dts
@@ -0,0 +1,93 @@
+/dts-v1/;
+
+#include "rt5350.dtsi"
+
+/ {
+   compatible = "nixcorex1", "ralink,rt5350-soc";
+   model = "NixcoreX1";
+
+   chosen{
+bootargs = "console=ttyS1,57600";
+
+};
+   };
+
+&gpio0{
+   status = "okay";
+};
+
+&gpio1{
+   status = "okay";
+};
+
+&i2c{
+   status = "okay";
+};
+&uart{
+   status = "okay";
+   reset-names = "gpio uartf";
+};
+&spi0{
+   status = "okay";
+
+   m25p80@0 {
+#address-cells = <1>;
+#size-cells = <1>;
+compatible = "jedec,spi-nor";
+reg = <0>;
+linux,modalias = "m25p80";
+spi-max-frequency = <1000>;
+
+partition@0 {
+label = "uboot";
+reg = <0x0 0x3>;
+read-only;
+};
+
+partition@3 {
+label = "uboot-env";
+reg = <0x3 0x1>;
+read-only;
+};
+
+factory: partition@4 {
+label = "factory";
+reg = <0x4 0x1>;
+read-only;
+};
+
+partition@5 {
+label = "firmware";
+reg = <0x5 0xfb>;
+ };
+ };
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "jtag", "led", "spi_cs1";
+ ralink,function = "gpio";
+ };
+ };
+};
+
+ðernet {
+ mtd-mac-address = <&factory 0x4>;
+};
+
+&esw {
+ ralink,portmap = <0x17>;
+};
+
+&wmac {
+ ralink,mtd-eeprom = <&factory 0>;
+};
+
+&ehci {
+ status = "okay";
+};
+
+&ohci {
+ status = "okay";
+};
diff --git a/target/linux/ramips/dts/NIXCOREX1-8M.dts 
b/target/linux/ramips/dts/NIXCOREX1-8M.dts

new file mode 100644
index 000..dcfe73b
--- /dev/null
+++ b/target/linux/ramips/dts/NIXCOREX1-8M.dts
@@ -0,0 +1,93 @@
+/dts-v1/;
+
+#include "rt5350.dtsi"
+
+/ {
+   compatible = "nixcorex1", "ralink,rt5350-soc";
+   model = "NixcoreX1";
+
+   chosen{
+bootargs = "console=ttyS1,57600";
+
+};
+   };
+
+&gpio0{
+   status = "okay";
+};
+
+&gpio1{
+   status = "okay";
+};
+
+&i2c{
+   status = "okay";
+};
+&uart{
+   status = "okay";
+   reset-names = "gpio uartf";
+};
+&spi0{
+   status = "okay";
+
+   m25p80@0 {
+#address-cells = <1>;
+#size-cells = <1>;
+compatible = "jedec,spi-nor";
+reg = <0>;
+linux,modalias = "m25p80";
+spi-max-frequency = <1000>;
+
+partition@0 {
+label = "uboot";
+reg = <0x0 0x3>;
+read-only;
+};
+
+partition@3 {
+label = "uboot-env";
+reg = <0x3 0x1>;
+read-only;
+};
+
+factory: partition@4 {
+label = "factory";
+reg = <0x4 0x1>;
+read-only;
+};
+
+p