treewide: remove dts-v1 identifier from DTSI files
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9531_glinet_gl-ar300m.dtsi
1
2 #include <dt-bindings/gpio/gpio.h>
3 #include <dt-bindings/input/input.h>
4
5 #include "qca953x.dtsi"
6
7 / {
8         aliases {
9                 led-boot = &led_status;
10                 led-failsafe = &led_status;
11                 led-running = &led_status;
12                 led-upgrade = &led_status;
13                 label-mac-device = &eth0;
14         };
15
16         keys {
17                 compatible = "gpio-keys";
18
19                 pinctrl-names = "default";
20                 pinctrl-0 = <&jtag_disable_pins>;
21
22                 reset {
23                         label = "reset";
24                         linux,code = <KEY_RESTART>;
25                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
26                 };
27
28                 right {
29                         label = "button right";
30                         linux,code = <BTN_0>;
31                         gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
32                 };
33
34                 left {
35                         label = "button left";
36                         linux,code = <BTN_1>;
37                         gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
38                 };
39         };
40
41         leds {
42                 compatible = "gpio-leds";
43
44                 // Colors for non-Lite versions
45
46                 led_status: status {
47                         label = "gl-ar300m:green:status";
48                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
49                 };
50
51                 led_lan: lan {
52                         label = "gl-ar300m:green:lan";
53                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
54                 };
55
56                 led_wlan: wlan {
57                         label = "gl-ar300m:red:wlan";
58                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
59                         linux,default-trigger = "phy0tpt";
60                 };
61         };
62
63         i2c: i2c {
64                 compatible = "i2c-gpio";
65
66                 sda-gpios = <&gpio 17 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
67                 scl-gpios = <&gpio 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
68         };
69 };
70
71 &pcie0 {
72         status = "okay";
73 };
74
75 &spi {
76         status = "okay";
77
78         num-cs = <2>;
79         cs-gpios = <0>, <0>;
80
81         flash@0 {
82                 compatible = "jedec,spi-nor";
83                 reg = <0>;
84                 spi-max-frequency = <25000000>;
85
86                 partitions {
87                         compatible = "fixed-partitions";
88                         #address-cells = <1>;
89                         #size-cells = <1>;
90
91                         partition@0 {
92                                 label = "u-boot";
93                                 reg = <0x000000 0x040000>;
94                                 read-only;
95                         };
96
97                         partition@40000 {
98                                 label = "u-boot-env";
99                                 reg = <0x040000 0x010000>;
100                         };
101
102                         nor_firmware: partition@50000 {
103                                 label = "nor_firmware";
104                                 reg = <0x050000 0xfa0000>;
105                         };
106
107                         art: partition@ff0000 {
108                                 label = "art";
109                                 reg = <0xff0000 0x010000>;
110                                 read-only;
111                         };
112                 };
113         };
114
115         nand_flash: flash@1 {
116                 compatible = "spi-nand";
117                 reg = <1>;
118                 spi-max-frequency = <25000000>;
119
120                 partitions {
121                         compatible = "fixed-partitions";
122                         #address-cells = <1>;
123                         #size-cells = <1>;
124
125                         nand_kernel: partition@0 {
126                                 label = "nand_kernel";
127                                 reg = <0x000000 0x400000>;
128                         };
129
130                         nand_ubi: partition@400000 {
131                                 label = "nand_ubi";
132                                 reg = <0x400000 0x7c00000>;
133                         };
134                 };
135         };
136 };
137
138 &uart {
139         status = "okay";
140 };
141
142 &usb0 {
143         #address-cells = <1>;
144         #size-cells = <0>;
145         status = "okay";
146 };
147
148 &usb_phy {
149         status = "okay";
150 };
151
152 &eth0 {
153         status = "okay";
154         mtd-mac-address = <&art 0x0>;
155         phy-handle = <&swphy4>;
156 };
157
158 &eth1 {
159         mtd-mac-address = <&art 0x0>;
160         mtd-mac-address-increment = <1>;
161 };
162
163 &wmac {
164         status = "okay";
165         mtd-cal-data = <&art 0x1000>;
166 };