ath79: ar: convert to nvmem-layout
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar9331_pisen_ts-d084.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9331.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "Pisen TS-D084";
10 compatible = "pisen,ts-d084", "qca,ar9331";
11
12 aliases {
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
17 label-mac-device = &wmac;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 led_system: system {
35 label = "blue:system";
36 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
37 };
38 };
39 };
40
41 &spi {
42 status = "okay";
43
44 flash@0 {
45 compatible = "jedec,spi-nor";
46 reg = <0>;
47 spi-max-frequency = <25000000>;
48
49 partitions {
50 compatible = "fixed-partitions";
51 #address-cells = <1>;
52 #size-cells = <1>;
53
54 uboot: partition@0 {
55 reg = <0x0 0x20000>;
56 label = "u-boot";
57 read-only;
58
59 nvmem-layout {
60 compatible = "fixed-layout";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 macaddr_uboot_1fc00: macaddr@1fc00 {
65 reg = <0x1fc00 0x6>;
66 };
67 };
68 };
69
70 firmware: partition@20000 {
71 compatible = "tplink,firmware";
72 reg = <0x20000 0x7d0000>;
73 label = "firmware";
74 };
75
76 art: partition@7f0000 {
77 reg = <0x7f0000 0x10000>;
78 label = "art";
79 read-only;
80 };
81 };
82 };
83 };
84
85 &eth0 {
86 status = "okay";
87
88 nvmem-cells = <&macaddr_uboot_1fc00>;
89 nvmem-cell-names = "mac-address";
90
91 gmac-config {
92 device = <&gmac>;
93
94 switch-phy-addr-swap = <0>;
95 switch-phy-swap = <0>;
96 };
97 };
98
99 &eth1 {
100 status = "okay";
101 compatible = "syscon", "simple-mfd";
102 };
103
104 &usb {
105 dr_mode = "host";
106 status = "okay";
107 };
108
109 &usb_phy {
110 status = "okay";
111 };
112
113 &wmac {
114 status = "okay";
115 mtd-cal-data = <&art 0x1000>;
116 nvmem-cells = <&macaddr_uboot_1fc00>;
117 nvmem-cell-names = "mac-address";
118 };