X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FDIR-620-D1.dts;h=2def8aae4a6f4f0e6c435469d786f7a9e844563b;hb=64878a561621e3af3708d3394c4f89473d7de1af;hp=e4eeb3ee6d5b70d212c8be9f31eeefca4dfc5fa6;hpb=f44d3f99803be7ba5c38b26a2d8cbda1c301e893;p=oweals%2Fopenwrt.git diff --git a/target/linux/ramips/dts/DIR-620-D1.dts b/target/linux/ramips/dts/DIR-620-D1.dts index e4eeb3ee6d..2def8aae4a 100644 --- a/target/linux/ramips/dts/DIR-620-D1.dts +++ b/target/linux/ramips/dts/DIR-620-D1.dts @@ -1,86 +1,25 @@ /dts-v1/; -/include/ "rt3352.dtsi" +#include "rt3352.dtsi" + +#include +#include / { - compatible = "DIR-620-D1", "ralink,rt3352-soc"; + compatible = "dlink,dir-620-d1", "ralink,rt3352-soc"; model = "D-Link DIR-620 D1"; - palmbus@10000000 { - spi@b00 { - status = "okay"; - m25p80@0 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "mx25l6405d"; - reg = <0 0>; - linux,modalias = "m25p80", "mx25l6405d"; - 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"; - }; - rgmii { - ralink,group = "rgmii"; - ralink,function = "rgmii"; - }; - mdio { - ralink,group = "mdio"; - ralink,function = "mdio"; - }; - }; - }; - - ethernet@10100000 { - mtd-mac-address = <&factory 0x4>; - }; - - esw@10110000 { - ralink,portmap = <0x2f>; - }; - - wmac@10180000 { - ralink,mtd-eeprom = <&factory 0>; - }; - gpio-leds { compatible = "gpio-leds"; + status { - label = "d-link:green:status"; - gpios = <&gpio0 9 1>; + label = "dir-620-d1:green:status"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; + wifi { - label = "d-link:green:wifi"; - gpios = <&gpio0 17 1>; + label = "dir-620-d1:green:wifi"; + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; }; @@ -89,18 +28,77 @@ #address-cells = <1>; #size-cells = <0>; poll-interval = <20>; + reset_wps { label = "reset_wps"; - gpios = <&gpio0 7 1>; - linux,code = <0x198>; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + linux,code = ; }; }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; - ehci@101c0000 { - status = "okay"; + 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>; + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins &mdio_pins>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +};