f2cb35eae990bb27ac902eb448b7c7768021958f
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_zbtlink_zbt-wd323.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "ZBT WD323";
10 compatible = "zbtlink,zbt-wd323", "qca,ar9344";
11
12 keys {
13 compatible = "gpio-keys";
14
15 reset {
16 label = "reset";
17 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
18 linux,code = <KEY_RESTART>;
19 };
20 };
21
22 i2c {
23 compatible = "i2c-gpio";
24 #address-cells = <1>;
25 #size-cells = <0>;
26
27 pinctrl-names = "default";
28 pinctrl-0 = <&enable_gpio15 &enable_gpio19>;
29
30 sda-gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
31 scl-gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
32
33 pcf8563: pcf8563@51 {
34 compatible = "nxp,pcf8563";
35 reg = <0x51>;
36 #clock-cells = <0>;
37 };
38 };
39
40 leds {
41 compatible = "gpio-leds";
42
43 pinctrl-names = "default";
44 pinctrl-0 = <&enable_gpio20_gpio22>;
45
46 wifi {
47 label = "green:wifi";
48 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "phy0tpt";
50 };
51
52 lan1 {
53 label = "orange:lan1";
54 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
55 };
56
57 lan2 {
58 label = "orange:lan2";
59 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
60 };
61 };
62 };
63
64 &wdt {
65 status = "okay";
66
67 pinctrl-names = "default";
68 pinctrl-0 = <&enable_gpio21>;
69 };
70
71 &uart {
72 status = "okay";
73 };
74
75 &gpio {
76 pinctrl-names = "default";
77 pinctrl-0 = <&jtag_disable_pins>;
78 };
79
80 &usb {
81 status = "okay";
82 };
83
84 &usb_phy {
85 status = "okay";
86 };
87
88 &eth0 {
89 status = "okay";
90 phy-handle = <&swphy4>;
91 mtd-mac-address = <&art 0x0>;
92 };
93
94 &eth1 {
95 status = "okay";
96 mtd-mac-address = <&art 0x6>;
97 };
98
99 &spi {
100 num-chipselects = <1>;
101 status = "okay";
102
103 flash@0 {
104 compatible = "jedec,spi-nor";
105 spi-max-frequency = <22000000>;
106 reg = <0>;
107
108 partitions {
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
111 #size-cells = <1>;
112
113 uboot@0 {
114 reg = <0x0 0x40000>;
115 read-only;
116 };
117
118 uboot-env@40000 {
119 reg = <0x40000 0x10000>;
120 read-only;
121 };
122
123 firmware@50000 {
124 compatible = "denx,uimage";
125 reg = <0x50000 0xfa0000>;
126 };
127
128 art: art@ff0000 {
129 reg = <0xff0000 0x10000>;
130 read-only;
131 };
132 };
133 };
134 };
135
136 &wmac {
137 status = "okay";
138 mtd-cal-data = <&art 0x1000>;
139 };
140
141 &pinmux {
142 enable_gpio15: pinmux_enable_gpio15 {
143 pinctrl-single,bits = <0xc 0x0 0xff000000>;
144 };
145
146 enable_gpio19: pinmux_enable_gpio19 {
147 pinctrl-single,bits = <0x10 0x0 0xff000000>;
148 };
149
150 enable_gpio20_gpio22: pinmux_enable_gpio20_gpio22 {
151 pinctrl-single,bits = <0x14 0x0 0xff00ff>;
152 };
153
154 enable_gpio21: pinmux_enable_gpio21 {
155 pinctrl-single,bits = <0x14 0x0 0xff00>;
156 };
157 };