ramips: Use dts alias based status led
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ZBT-WG3526.dtsi
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "zbtlink,zbt-wg3526", "mediatek,mt7621-soc";
8
9 aliases {
10 led-status = &led_status;
11 };
12
13 memory@0 {
14 device_type = "memory";
15 reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 };
21
22 palmbus: palmbus@1E000000 {
23 i2c@900 {
24 status = "okay";
25 };
26 };
27
28 gpio-keys-polled {
29 compatible = "gpio-keys-polled";
30 #address-cells = <1>;
31 #size-cells = <0>;
32 poll-interval = <20>;
33
34 reset {
35 label = "reset";
36 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39 };
40
41 gpio-leds {
42 compatible = "gpio-leds";
43
44 led_status: status {
45 label = "zbt-wg3526:green:status";
46 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
47 };
48 };
49 };
50
51 &sdhci {
52 status = "okay";
53 };
54
55 &spi0 {
56 status = "okay";
57
58 m25p80@0 {
59 #address-cells = <1>;
60 #size-cells = <1>;
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <10000000>;
64 m25p,chunked-io = <32>;
65
66 partition@0 {
67 label = "u-boot";
68 reg = <0x0 0x30000>;
69 read-only;
70 };
71
72 partition@30000 {
73 label = "u-boot-env";
74 reg = <0x30000 0x10000>;
75 read-only;
76 };
77
78 factory: partition@40000 {
79 label = "factory";
80 reg = <0x40000 0x10000>;
81 read-only;
82 };
83
84 firmware: partition@50000 {
85 label = "firmware";
86 };
87 };
88 };
89
90 &pcie {
91 status = "okay";
92
93 pcie0 {
94 wifi@14c3,7603 {
95 compatible = "pci14c3,7603";
96 reg = <0x0000 0 0 0 0>;
97 mediatek,mtd-eeprom = <&factory 0x0000>;
98 };
99 };
100
101 pcie1 {
102 wifi@14c3,7662 {
103 compatible = "pci14c3,7662";
104 reg = <0x0000 0 0 0 0>;
105 mediatek,mtd-eeprom = <&factory 0x8000>;
106 ieee80211-freq-limit = <5000000 6000000>;
107 };
108 };
109 };
110
111 &ethernet {
112 mtd-mac-address = <&factory 0xe000>;
113 };
114
115 &pinctrl {
116 state_default: pinctrl0 {
117 gpio {
118 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
119 ralink,function = "gpio";
120 };
121 };
122 };