4be1ced4b215521d77d6f9ac73ba734e70d5b973
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / qca9533_tplink_tl-wr802n.dtsi
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
8 / {
9 aliases {
10 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 label-mac-device = &wmac;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_system: system {
21 label = "green:system";
22 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
23 };
24 };
25
26 keys {
27 compatible = "gpio-keys";
28
29 reset {
30 label = "Reset button";
31 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
33 };
34 };
35 };
36
37 &spi {
38 status = "okay";
39
40 flash@0 {
41 compatible = "jedec,spi-nor";
42 reg = <0>;
43 spi-max-frequency = <50000000>;
44
45 partitions {
46 compatible = "fixed-partitions";
47 #address-cells = <1>;
48 #size-cells = <1>;
49
50 uboot: partition@0 {
51 label = "u-boot";
52 reg = <0x000000 0x020000>;
53 read-only;
54 };
55
56 partition@20000 {
57 label = "firmware";
58 reg = <0x020000 0x3d0000>;
59 compatible = "tplink,firmware";
60 };
61
62 art: partition@3f0000 {
63 label = "art";
64 reg = <0x3f0000 0x010000>;
65 read-only;
66 };
67 };
68 };
69 };
70
71 &eth0 {
72 status = "okay";
73
74 phy-handle = <&swphy4>;
75
76 nvmem-cells = <&macaddr_uboot_1fc00>;
77 nvmem-cell-names = "mac-address";
78 mac-address-increment = <1>;
79 };
80
81 &eth1 {
82 compatible = "syscon", "simple-mfd";
83 };
84
85 &wmac {
86 status = "okay";
87
88 mtd-cal-data = <&art 0x1000>;
89 nvmem-cells = <&macaddr_uboot_1fc00>;
90 nvmem-cell-names = "mac-address";
91 };
92
93 &uboot {
94 compatible = "nvmem-cells";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 macaddr_uboot_1fc00: macaddr@1fc00 {
99 reg = <0x1fc00 0x6>;
100 };
101 };