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