oxnas: cheery-pick DTS improvements from master
authorDaniel Golle <daniel@makrotopia.org>
Sun, 3 Mar 2019 17:13:25 +0000 (18:13 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 3 Mar 2019 17:14:41 +0000 (18:14 +0100)
 4a954e8620 oxnas: dts: Unify naming of gpio-keys nodes
 9292822023 oxnas: dts: Unify naming of gpio-led nodes
 994428f395 oxnas: add missing NAND partitions
 858aebc0ef oxnas: unify MTD partition names
 e2fea41ad6 oxnas: fix forgotten MTD partition name
 42f2e07ba0 oxnas: cloudengines,pogoplug*: enable USB ports

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio-mycloud.dts
target/linux/oxnas/files/arch/arm/boot/dts/ox820-cloudengines-pogoplug-pro.dts
target/linux/oxnas/files/arch/arm/boot/dts/ox820-mitrastar-stg212.dts
target/linux/oxnas/files/arch/arm/boot/dts/ox820-shuttle-kd20.dts
target/linux/oxnas/patches-4.14/020-nand-partitions-on-pogoplug-v3.patch [new file with mode: 0644]
target/linux/oxnas/patches-4.14/800-oxnas-ehci.patch

index 90ea15d400a33dae069847f7f6c751c3e2f65766..f0fa928f3d8697ee929dac42dbcd695859ce8c15 100644 (file)
@@ -39,7 +39,7 @@
                };
        };
 
-       gpio-keys-polled {
+       keys {
                compatible = "gpio-keys-polled";
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_buttons>;
@@ -58,7 +58,7 @@
                };
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_leds>;
index 2872d40e3d4995aed45a2da2a9fd3364ced936b3..fc1aa6b4e3b020e819fb2ad54917456d56df7e66 100644 (file)
                nand-ecc-algo = "hamming";
 
                partition@0 {
-                       label = "boot";
-                       reg = <0x00000000 0x00e00000>;
+                       label = "stage1";
+                       reg = <0x00000000 0x00040000>;
                        read-only;
                };
 
+               partition@40000 {
+                       label = "u-boot";
+                       reg = <0x00040000 0x00380000>;
+                       read-only;
+               };
+
+               partition@3c0000 {
+                       label = "u-boot-env";
+                       reg = <0x003c0000 0x00080000>;
+               };
+
+               partition@440000 {
+                       label = "kernel";
+                       reg = <0x00440000 0x009c0000>;
+               };
+
                partition@e00000 {
                        label = "ubi";
                        reg = <0x00e00000 0x07200000>;
        };
 };
 
+&ehci {
+       status = "okay";
+};
+
 &etha {
        status = "okay";
 
index cc8d640ee0ae4ae92d5d2223060db9519f461c9b..7f25abc10484aebdcfb4caea9bcf37e54e19db27 100644 (file)
@@ -25,7 +25,7 @@
                gpio1 = &gpio1;
        };
 
-       gpio-keys-polled {
+       keys {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
                #size-cells = <0>;
@@ -43,7 +43,7 @@
                };
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
                status {
                        label = "zyxel:blue:status";
                nand-ecc-algo = "hamming";
 
                partition@0 {
-                       label = "boot";
-                       reg = <0x00000000 0x00e00000>;
+                       label = "stage1";
+                       reg = <0x00000000 0x00040000>;
                        read-only;
                };
 
+               partition@40000 {
+                       label = "u-boot";
+                       reg = <0x00040000 0x00380000>;
+                       read-only;
+               };
+
+               partition@3c0000 {
+                       label = "u-boot-env";
+                       reg = <0x003c0000 0x00080000>;
+               };
+
+               partition@440000 {
+                       label = "kernel";
+                       reg = <0x00440000 0x009c0000>;
+               };
+
                partition@e00000 {
                        label = "ubi";
                        reg = <0x00e00000 0x07200000>;
index 9186d085855715384f6b160bc655d75c8ccb6016..8525d861b2c4a7e88802d3a5a067f75b91aced5c 100644 (file)
@@ -37,7 +37,7 @@
                };
        };
 
-       gpio-keys-polled {
+       keys {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
                #size-cells = <0>;
@@ -65,7 +65,7 @@
                };
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
                status {
                        label = "kd20:blue:status";
 
                partition@40000 {
                        label = "u-boot";
-                       reg = <0x00040000 0x00200000>;
+                       reg = <0x00040000 0x001e0000>;
                        read-only;
                };
 
+               partition@220000 {
+                       label = "u-boot-env";
+                       reg = <0x00220000 0x00020000>;
+               };
+
                partition@240000 {
                        label = "initrd";
                        reg = <0x00240000 0x00600000>;
diff --git a/target/linux/oxnas/patches-4.14/020-nand-partitions-on-pogoplug-v3.patch b/target/linux/oxnas/patches-4.14/020-nand-partitions-on-pogoplug-v3.patch
new file mode 100644 (file)
index 0000000..1136240
--- /dev/null
@@ -0,0 +1,32 @@
+--- a/arch/arm/boot/dts/ox820-cloudengines-pogoplug-series-3.dts
++++ b/arch/arm/boot/dts/ox820-cloudengines-pogoplug-series-3.dts
+@@ -74,11 +74,27 @@
+               nand-ecc-algo = "hamming";
+               partition@0 {
+-                      label = "boot";
+-                      reg = <0x00000000 0x00e00000>;
++                      label = "stage1";
++                      reg = <0x00000000 0x00040000>;
+                       read-only;
+               };
++              partition@40000 {
++                      label = "u-boot";
++                      reg = <0x00040000 0x00380000>;
++                      read-only;
++              };
++
++              partition@3c0000 {
++                      label = "u-boot-env";
++                      reg = <0x003c0000 0x00080000>;
++              };
++
++              partition@440000 {
++                      label = "kernel";
++                      reg = <0x00440000 0x009c0000>;
++              };
++
+               partition@e00000 {
+                       label = "ubi";
+                       reg = <0x00e00000 0x07200000>;
index b4e34e5e3f83c255161841f8f1aba8aef77996bb..69db38ed19284f15cc17c914a747db3a026fe6d5 100644 (file)
                apb-bridge@44000000 {
                        #address-cells = <1>;
                        #size-cells = <1>;
+--- a/arch/arm/boot/dts/ox820-cloudengines-pogoplug-series-3.dts
++++ b/arch/arm/boot/dts/ox820-cloudengines-pogoplug-series-3.dts
+@@ -106,6 +106,10 @@
+       };
+ };
++&ehci {
++      status = "okay";
++};
++
+ &etha {
+       status = "okay";