ramips: fix multi colour led handling
[openwrt/openwrt.git] / target / linux / ramips / dts / GB-PC1.dts
index 664dfa1efdaca236399fd1e6b04b0c5cf144910d..71f6c4b5b26ed35a2843b846f989bf100df1fd24 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc";
        model = "GB-PC1";
 
+       aliases {
+               led-status = &led_status;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
                bootargs = "console=ttyS0,57600";
        };
 
-       palmbus: palmbus@1E000000 {
-               i2c@900 {
-                       status = "okay";
-               };
-       };
-
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
@@ -45,7 +41,7 @@
                        gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                };
 
-               status {
+               led_status: status {
                        label = "gb-pc1:green:status";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
 &sdhci {
        status = "okay";
+
+       pinctrl-names = "default";
+       pinctrl-0 = <&sdhci_pins>;
 };
 
 &spi0 {
        status = "okay";
 
        m25p80@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
                m25p,chunked-io = <32>;
 
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x0 0x30000>;
-                       read-only;
-               };
-
-               partition@30000 {
-                       label = "u-boot-env";
-                       reg = <0x30000 0x10000>;
-                       read-only;
-               };
-
-               factory: partition@40000 {
-                       label = "factory";
-                       reg = <0x40000 0x10000>;
-                       read-only;
-               };
-
-               partition@50000 {
-                       label = "firmware";
-                       reg = <0x50000 0x1fb0000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x0 0x30000>;
+                               read-only;
+                       };
+
+                       partition@30000 {
+                               label = "u-boot-env";
+                               reg = <0x30000 0x10000>;
+                               read-only;
+                       };
+
+                       factory: partition@40000 {
+                               label = "factory";
+                               reg = <0x40000 0x10000>;
+                               read-only;
+                       };
+
+                       partition@50000 {
+                               label = "firmware";
+                               reg = <0x50000 0x1fb0000>;
+                       };
                };
        };
 };
 
 &cpuclock {
        compatible = "fixed-clock";
-       clock-frequency = <90000000>;
+       clock-frequency = <900000000>;
 };
 
 &pcie {
 &pinctrl {
        state_default: pinctrl0 {
                gpio {
-                       ralink,group = "wdt", "rgmii2", "uart3";
+                       ralink,group = "jtag", "rgmii2", "uart3", "wdt";
                        ralink,function = "gpio";
                };
        };