ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_joyit_jt-or750i.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.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 compatible = "joyit,jt-or750i", "qca,qca9531";
11 model = "Joy-IT JT-OR750i";
12
13 aliases {
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_red;
18 label-mac-device = &eth0;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 pinctrl-names = "default";
35 pinctrl-0 = <&jtag_disable_pins &pinmux_led_eth_pins>;
36
37 led_status_green: status_green {
38 function = LED_FUNCTION_STATUS;
39 color = <LED_COLOR_ID_GREEN>;
40 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
41 default-state = "on";
42 };
43
44 led_status_red: status_red {
45 function = LED_FUNCTION_STATUS;
46 color = <LED_COLOR_ID_RED>;
47 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
48 };
49 };
50 };
51
52 &pinmux {
53 pinmux_led_eth_pins: pinmux_led_eth_pins {
54 pinctrl-single,bits = \
55 /* GPIO 4: LED_LINK_5 (WAN) */ \
56 <0x04 0x0000002d 0x000000ff>, \
57 /* GPIO 14: LED_LINK_2 (LAN 3) */ \
58 /* GPIO 15: LED_LINK_3 (LAN 2) */ \
59 <0x0c 0x2b2a0000 0xffff0000>, \
60 /* GPIO 16: LED_LINK_4 (LAN 1) */ \
61 <0x10 0x0000002c 0x000000ff>;
62 };
63 };
64
65 &spi {
66 status = "okay";
67
68 flash@0 {
69 compatible = "jedec,spi-nor";
70 reg = <0>;
71 spi-max-frequency = <50000000>;
72
73 partitions {
74 compatible = "fixed-partitions";
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 partition@0 {
79 label = "u-boot";
80 reg = <0x0 0x40000>;
81 read-only;
82 };
83
84 partition@40000 {
85 label = "u-boot-env";
86 reg = <0x40000 0x10000>;
87 read-only;
88 };
89
90 partition@50000 {
91 label = "firmware";
92 reg = <0x50000 0xfa0000>;
93 compatible = "denx,uimage";
94 };
95
96 art: partition@ff0000 {
97 label = "art";
98 reg = <0xff0000 0x10000>;
99 read-only;
100
101 nvmem-layout {
102 compatible = "fixed-layout";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 macaddr_art_0: macaddr@0 {
107 reg = <0x0 0x6>;
108 };
109
110 macaddr_art_6: macaddr@6 {
111 reg = <0x6 0x6>;
112 };
113
114 cal_art_5000: calibration@5000 {
115 reg = <0x5000 0x844>;
116 };
117 };
118 };
119 };
120 };
121 };
122
123 &eth0 {
124 status = "okay";
125
126 phy-handle = <&swphy4>;
127
128 nvmem-cells = <&macaddr_art_0>;
129 nvmem-cell-names = "mac-address";
130 };
131
132 &eth1 {
133 nvmem-cells = <&macaddr_art_6>;
134 nvmem-cell-names = "mac-address";
135 };
136
137 &pcie0 {
138 status = "okay";
139
140 wifi@0,0 {
141 compatible = "qcom,ath10k";
142 reg = <0x0000 0 0 0 0>;
143 nvmem-cells = <&cal_art_5000>;
144 nvmem-cell-names = "calibration";
145 };
146 };
147
148 &wmac {
149 status = "okay";
150
151 mtd-cal-data = <&art 0x1000>;
152 };