X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FWL-351.dts;h=541f8cef992f333a72685644ca93a7f365f28028;hb=05912a304c1d3f31f350cd708fe4722389ec835a;hp=91ba14c490d7b5ec39d0b67a5bccd820f11e934f;hpb=811f7f9f2d2fc219e6f30ebb9f62d6878ed43ba0;p=oweals%2Fopenwrt.git diff --git a/target/linux/ramips/dts/WL-351.dts b/target/linux/ramips/dts/WL-351.dts index 91ba14c490..541f8cef99 100644 --- a/target/linux/ramips/dts/WL-351.dts +++ b/target/linux/ramips/dts/WL-351.dts @@ -1,79 +1,56 @@ /dts-v1/; -/include/ "rt3050.dtsi" +#include "rt3050.dtsi" / { compatible = "WL-351", "ralink,rt3052-soc"; model = "Sitecom WL-351 v1 002"; - memorydetect { - ralink,memory = <0x0 0x200000 0x4000000>; - }; - - - chosen { - bootargs = "console=ttyS0,57600 mtdparts=1f000000.cfi:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,3776k@0x50000(firmware)"; - }; - - palmbus@10000000 { - sysc@0 { - ralink,pinmux = "uartlite", "jtag", "sdram", "rgmii"; - ralink,gpiomux = "i2c", "spi", "mdio"; - ralink,uartmux = "gpio"; - ralink,wdtmux = <1>; - }; - - gpio0: gpio@600 { - status = "okay"; - }; - - }; - cfi@1f000000 { compatible = "cfi-flash"; reg = <0x1f000000 0x800000>; - bank-width = <2>; device-width = <2>; #address-cells = <1>; #size-cells = <1>; - }; - ethernet@10100000 { - status = "okay"; - }; + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; - esw@10110000 { - status = "okay"; - ralink,portmap = <0x3f>; - ralink,fct2 = <0x0002500c>; - /* - * ext phy base addr 31, rx/tx clock skew 0, - * turbo mii off, rgmi 3.3v off, port 5 polling off - * port5: enabled, gige, full-duplex, rx/tx-flow-control - * port6: enabled, gige, full-duplex, rx/tx-flow-control - */ - ralink,fpa2 = <0x1f003fff>; - }; + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; - wmac@10180000 { - status = "okay"; - }; + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; - otg@101c0000 { - status = "okay"; + partition@50000 { + label = "firmware"; + reg = <0x50000 0x3b0000>; + }; }; gpio-leds { compatible = "gpio-leds"; + power { label = "wl-351:amber:power"; gpios = <&gpio0 8 1>; }; + unpopulated { label = "wl-351:amber:unpopulated"; gpios = <&gpio0 12 1>; }; + unpopulated2 { label = "wl-351:blue:unpopulated"; gpios = <&gpio0 13 1>; @@ -85,11 +62,13 @@ #address-cells = <1>; #size-cells = <0>; poll-interval = <20>; + reset { label = "reset"; gpios = <&gpio0 10 1>; linux,code = <0x198>; }; + wps { label = "wps"; gpios = <&gpio0 0 1>; @@ -98,8 +77,46 @@ }; rtl8366rb { - compatible = "rtl8367rb"; + compatible = "rtl8366rb"; gpio-sda = <&gpio0 1 0>; gpio-sck = <&gpio0 2 0>; }; }; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "mdio", "uartf"; + ralink,function = "gpio"; + }; + rgmii { + ralink,group = "rgmii"; + ralink,function = "rgmii"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + ralink,rgmii = <1>; + mediatek,portmap = <0x3f>; + ralink,fct2 = <0x0002500c>; + /* + * ext phy base addr 31, rx/tx clock skew 0, + * turbo mii off, rgmi 3.3v off, port 5 polling off + * port5: enabled, gige, full-duplex, rx/tx-flow-control + * port6: enabled, gige, full-duplex, rx/tx-flow-control + */ + ralink,fpa2 = <0x1f003fff>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +};