ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7161_jjplus_ja76pf2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7100.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/mtd/partitions/uimage.h>
8
9 / {
10 model = "jjPlus JA76PF2";
11 compatible = "jjplus,ja76pf2", "qca,ar7161";
12
13 memory@0 {
14 device_type = "memory";
15 reg = <0x0 0x4000000>;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200n8";
20 };
21
22 aliases {
23 led-boot = &led_d2;
24 led-failsafe = &led_d2;
25 led-running = &led_d2;
26 led-upgrade = &led_d2;
27 };
28
29 i2c {
30 compatible = "i2c-gpio";
31 sda-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
32 scl-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
33 #address-cells = <1>;
34 #size-cells = <0>;
35
36 sensor@48 {
37 compatible = "microchip,tcn75";
38 reg = <0x48>;
39 };
40 };
41
42 leds {
43 compatible = "gpio-leds";
44
45 led_d2: d2 {
46 label = "green:d2";
47 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
48 };
49
50 d3 {
51 label = "green:d3";
52 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
53 };
54
55 d4 {
56 label = "green:d4";
57 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
58 };
59 };
60
61 keys {
62 compatible = "gpio-keys";
63
64 sw1 {
65 label = "sw1";
66 linux,code = <KEY_RESTART>;
67 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
68 debounce-interval = <60>;
69 };
70
71 sw2 {
72 label = "sw2";
73 linux,code = <KEY_WPS_BUTTON>;
74 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
75 debounce-interval = <60>;
76 };
77 };
78 };
79
80 &mdio0 {
81 status = "okay";
82
83 phy0: ethernet-phy@0 {
84 reg = <0>;
85 phy-mode = "rgmii";
86 };
87
88 phy4: ethernet-phy@4 {
89 reg = <4>;
90 phy-mode = "rgmii";
91 };
92 };
93
94 &eth0 {
95 status = "okay";
96
97 nvmem-cells = <&macaddr_lan>;
98 nvmem-cell-names = "mac-address";
99 phy-handle = <&phy0>;
100 };
101
102 &eth1 {
103 status = "okay";
104
105 nvmem-cells = <&macaddr_wan>;
106 nvmem-cell-names = "mac-address";
107 phy-handle = <&phy4>;
108 };
109
110 &pcie0 {
111 status = "okay";
112 };
113
114 &spi {
115 status = "okay";
116
117 flash@0 {
118 compatible = "jedec,spi-nor";
119 reg = <0>;
120 spi-max-frequency = <25000000>;
121
122 partitions {
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
125 #size-cells = <1>;
126
127 partition@0 {
128 label = "RedBoot";
129 reg = <0x000000 0x040000>;
130 read-only;
131 };
132
133 partition@40000 {
134 label = "loader";
135 reg = <0x040000 0x020000>;
136 };
137
138 partition@60000 {
139 label = "firmware";
140 reg = <0x060000 0xf80000>;
141 compatible = "openwrt,uimage", "denx,uimage";
142 openwrt,ih-magic = <IH_MAGIC_OKLI>;
143 };
144
145 partition@fe0000 {
146 label = "FIS directory";
147 reg = <0xfe0000 0x00f000>;
148 read-only;
149 };
150
151 partition@fef000 {
152 label = "RedBoot config";
153 reg = <0xfef000 0x001000>;
154 read-only;
155 };
156
157 partition@ff0000 {
158 label = "Atheros Board Data";
159 reg = <0xff0000 0x10000>;
160 read-only;
161
162 nvmem-layout {
163 compatible = "fixed-layout";
164 #address-cells = <1>;
165 #size-cells = <1>;
166
167 macaddr_wan: macaddr@1000 {
168 reg = <0x1000 0x6>;
169 };
170
171 macaddr_lan: macaddr@1006 {
172 reg = <0x1006 0x6>;
173 };
174 };
175 };
176 };
177 };
178 };