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