X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FX5.dts;h=20c4237eb81bef5167b4e660682cc6a2921e7633;hb=39b5218434d38715a85b7bd6dd8d279c3e1e905d;hp=4952c905cdb0b29aa43f73e9e102b5fe0902cc3a;hpb=32877b31dc8e6ae32e3c889edf6a9cbecb8d8b81;p=openwrt%2Fstaging%2Fmkresin.git diff --git a/target/linux/ramips/dts/X5.dts b/target/linux/ramips/dts/X5.dts index 4952c905cd..20c4237eb8 100644 --- a/target/linux/ramips/dts/X5.dts +++ b/target/linux/ramips/dts/X5.dts @@ -1,88 +1,35 @@ /dts-v1/; -/include/ "rt5350.dtsi" +#include "rt5350.dtsi" + +#include +#include / { - compatible = "X5", "ralink,rt5350-soc"; + compatible = "poray,x5", "ralink,rt5350-soc"; model = "Poray X5"; - palmbus@10000000 { - spi@b00 { - status = "okay"; - - m25p80@0 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "jedec,spi-nor"; - reg = <0 0>; - linux,modalias = "m25p80", "gd25q64"; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; - }; - - pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; - }; - - ethernet@10100000 { - mtd-mac-address = <&factory 0x4>; - }; - - esw@10110000 { - mediatek,portmap = <0x2f>; - mediatek,led_polarity = <1>; - }; - gpio-leds { compatible = "gpio-leds"; power { label = "x5:green:power"; - gpios = <&gpio0 13 1>; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; 20 { label = "x5:green:20"; - gpios = <&gpio0 12 1>; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; 50 { label = "x5:green:50"; - gpios = <&gpio0 11 1>; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; 80 { label = "x5:green:80"; - gpios = <&gpio0 7 1>; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; }; @@ -94,21 +41,21 @@ bat { label = "bat"; - gpios = <&gpio0 9 1>; - linux,code = <0x211>; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + linux,code = ; }; reset { label = "reset"; - gpios = <&gpio0 10 1>; - linux,code = <0x198>; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; }; mode { label = "mode"; - gpios = <&gpio0 14 1>; - linux,code = <0x100>; - linux,input-type = <5>; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + linux,code = ; + linux,input-type = ; }; }; @@ -119,20 +66,73 @@ usb-mode { gpio-export,name = "usb-mode"; gpio-export,output = <0>; - gpios = <&gpio0 18 0>; + gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; }; }; +}; - wmac@10180000 { - ralink,mtd-eeprom = <&factory 0>; - ralink,led-polarity = <1>; - }; +&spi0 { + status = "okay"; - ehci@101c0000 { - status = "okay"; + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; }; +}; - ohci@101c1000 { - status = "okay"; +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; }; }; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; + mediatek,led_polarity = <1>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; + ralink,led-polarity = <1>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +};