ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7242_buffalo_wzr-bhr.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7242.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 aliases {
11 led-boot = &led_diag;
12 led-failsafe = &led_diag;
13 led-upgrade = &led_diag;
14 };
15
16 keys: keys {
17 compatible = "gpio-keys";
18
19 usb {
20 label = "usb";
21 linux,code = <BTN_2>;
22 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
24 };
25
26 reset {
27 label = "reset";
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
31 };
32 };
33
34 leds: leds {
35 compatible = "gpio-leds";
36
37 led_diag: diag {
38 label = "red:diag";
39 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
40 };
41
42 usb {
43 function = LED_FUNCTION_USB;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
46 trigger-sources = <&hub_port>;
47 linux,default-trigger = "usbport";
48 };
49 };
50
51 gpio-export {
52 compatible = "gpio-export";
53 #size-cells = <0>;
54
55 gpio_usb_power {
56 gpio-export,name = "buffalo:usb-power";
57 gpio-export,output = <1>;
58 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
59 };
60 };
61
62 virtual_flash {
63 compatible = "mtd-concat";
64 devices = <&flash0 &flash1>;
65
66 partitions {
67 compatible = "fixed-partitions";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 partition@0 {
72 reg = <0x0 0x40000>;
73 label = "u-boot";
74 read-only;
75 };
76
77 partition@40000 {
78 reg = <0x40000 0x10000>;
79 label = "u-boot-env";
80 };
81
82 art: partition@50000 {
83 reg = <0x50000 0x10000>;
84 label = "art";
85 read-only;
86 };
87
88 partition@60000 {
89 compatible = "denx,uimage";
90 reg = <0x60000 0x1f80000>;
91 label = "firmware";
92 };
93
94 partition@1fe0000 {
95 reg = <0x1fe0000 0x20000>;
96 label = "user_property";
97 read-only;
98 };
99 };
100 };
101 };
102
103 &spi {
104 status = "okay";
105
106 flash0: flash@0 {
107 compatible = "jedec,spi-nor";
108 reg = <0>;
109 spi-max-frequency = <25000000>;
110 };
111
112 flash1: flash@1 {
113 compatible = "jedec,spi-nor";
114 reg = <1>;
115 spi-max-frequency = <25000000>;
116 };
117 };
118
119 &mdio0 {
120 status = "okay";
121
122 phy0: ethernet-phy@0 {
123 reg = <0>;
124 phy-mode = "rgmii";
125 };
126 };
127
128 &eth0 {
129 status = "okay";
130
131 phy-mode = "rgmii";
132 phy-handle = <&phy0>;
133 };
134
135 &usb_phy {
136 status = "okay";
137 };
138
139 &usb {
140 status = "okay";
141 };