ath79: qca: convert to nvmem-layout
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / qca9531_glinet_gl-e750.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
8 / {
9 compatible = "glinet,gl-e750", "qca,qca9531";
10 model = "GL.iNet GL-E750";
11
12 aliases {
13 label-mac-device = &eth0;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 pinctrl-names = "default";
20 pinctrl-0 = <&jtag_disable_pins>;
21
22 reset {
23 label = "reset";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
26 };
27
28 switch {
29 label = "switch";
30 linux,code = <BTN_0>;
31 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
32 };
33 };
34
35 gpio-export {
36 compatible = "gpio-export";
37
38 gpio_lte_power {
39 gpio-export,name = "lte_power";
40 gpio-export,output = <1>;
41 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
42 };
43 };
44 };
45
46 &pcie0 {
47 status = "okay";
48 };
49
50 &usb0 {
51 status = "okay";
52 };
53
54 &usb_phy {
55 status = "okay";
56 };
57
58 &spi {
59 status = "okay";
60
61 flash@0 {
62 compatible = "jedec,spi-nor";
63 reg = <0>;
64 spi-max-frequency = <25000000>;
65
66 partitions {
67 compatible = "fixed-partitions";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 partition@0 {
72 label = "u-boot";
73 reg = <0x0 0x40000>;
74 read-only;
75 };
76
77 partition@40000 {
78 label = "u-boot-env";
79 reg = <0x40000 0x10000>;
80 };
81
82 art: partition@50000 {
83 label = "art";
84 reg = <0x50000 0x10000>;
85 read-only;
86
87 nvmem-layout {
88 compatible = "fixed-layout";
89 #address-cells = <1>;
90 #size-cells = <1>;
91
92 macaddr_art_0: macaddr@0 {
93 reg = <0x0 0x6>;
94 };
95 };
96 };
97
98 partition@60000 {
99 label = "kernel";
100 reg = <0x60000 0x400000>;
101 };
102
103 partition@460000 {
104 label = "reserved";
105 reg = <0x460000 0xba0000>;
106 };
107 };
108 };
109
110 flash@1 {
111 compatible = "spi-nand";
112 reg = <1>;
113 spi-max-frequency = <25000000>;
114
115 partitions {
116 compatible = "fixed-partitions";
117 #address-cells = <1>;
118 #size-cells = <1>;
119
120 partition@0 {
121 label = "ubi";
122 reg = <0x0 0x8000000>;
123 };
124 };
125 };
126 };
127
128 &eth0 {
129 status = "okay";
130
131 phy-handle = <&swphy4>;
132
133 nvmem-cells = <&macaddr_art_0>;
134 nvmem-cell-names = "mac-address";
135 };
136
137 &eth1 {
138 compatible = "syscon", "simple-mfd";
139 };
140
141 &wmac {
142 status = "okay";
143
144 mtd-cal-data = <&art 0x1000>;
145 };