diff options
author | Mathias Kresin <dev@kresin.me> | 2017-04-12 07:53:56 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-04-25 19:29:59 +0200 |
commit | 2ddaf96a77a92186447ca18935b8a36d46d3db95 (patch) | |
tree | 4cff193fbf9cf8a1a1d83417971fe70ab4e994bd /target/linux/ramips/dts/ZBT-WE826.dtsi | |
parent | 3cfc909c54c07d5a24d9a1a7496142b82d580878 (diff) | |
download | mtk-20170518-2ddaf96a77a92186447ca18935b8a36d46d3db95.zip mtk-20170518-2ddaf96a77a92186447ca18935b8a36d46d3db95.tar.gz mtk-20170518-2ddaf96a77a92186447ca18935b8a36d46d3db95.tar.bz2 |
ramips: add ZBT-WE826 32MB variant
The ZBT-WG826 is available with 16 or 32 MByte of flash. Split the
device tree source file, rename the currently supported 16 MByte
version and add the 32 MByte variant.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/dts/ZBT-WE826.dtsi')
-rw-r--r-- | target/linux/ramips/dts/ZBT-WE826.dtsi | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/ZBT-WE826.dtsi b/target/linux/ramips/dts/ZBT-WE826.dtsi new file mode 100644 index 0000000..62ea419 --- /dev/null +++ b/target/linux/ramips/dts/ZBT-WE826.dtsi @@ -0,0 +1,119 @@ +/dts-v1/; + +#include "mt7620a.dtsi" + +#include <dt-bindings/input/input.h> + +/ { + chosen { + bootargs = "console=ttyS0,115200"; + }; + + gpio-leds { + compatible = "gpio-leds"; + power { + label = "zbt-we826:green:power"; + gpios = <&gpio1 14 0>; + }; + usb { + label = "zbt-we826:green:usb"; + gpios = <&gpio1 15 0>; + }; + air { + label = "zbt-we826:green:wifi"; + gpios = <&gpio3 0 1>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + reset { + label = "reset"; + gpios = <&gpio0 1 1>; + linux,code = <KEY_RESTART>; + }; + }; +}; + +&gpio0 { + status = "okay"; +}; + +&gpio1 { + status = "okay"; +}; + +&gpio3 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + en25q128@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; + }; + + firmware: partition@50000 { + label = "firmware"; + }; + }; +}; + +&sdhci { + status = "okay"; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; + mediatek,portmap = "wllll"; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&pinctrl { + state_default: pinctrl0 { + default { + ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa"; + ralink,function = "gpio"; + }; + }; +}; + +&pcie { + status = "okay"; +}; |