ramips: mt7621: convert Ubiquiti devices EEPROM to NVMEM format
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3883_belkin_f9k110x.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "rt3883.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "ralink,rt3883-soc";
10
11 rtl8367b {
12 compatible = "realtek,rtl8367b";
13 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
14 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
15 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
16 };
17 };
18
19 &spi0 {
20 status = "okay";
21
22 flash@0 {
23 compatible = "jedec,spi-nor";
24 reg = <0>;
25 spi-max-frequency = <25000000>;
26
27 partitions {
28 compatible = "fixed-partitions";
29 #address-cells = <1>;
30 #size-cells = <1>;
31
32 partition@0 {
33 label = "uboot";
34 reg = <0x0 0x30000>;
35 read-only;
36 };
37
38 partition@30000 {
39 label = "uboot-env";
40 reg = <0x30000 0x10000>;
41 read-only;
42 };
43
44 factory: partition@40000 {
45 label = "factory";
46 reg = <0x40000 0x10000>;
47 read-only;
48
49 nvmem-layout {
50 compatible = "fixed-layout";
51 #address-cells = <1>;
52 #size-cells = <1>;
53
54 eeprom_factory_0: eeprom@0 {
55 reg = <0x0 0x200>;
56 };
57
58 eeprom_factory_8000: eeprom@8000 {
59 reg = <0x8000 0x200>;
60 };
61 };
62 };
63
64 partition@50000 {
65 compatible = "denx,uimage";
66 label = "firmware";
67 reg = <0x50000 0x7a0000>;
68 };
69
70 partition@7f0000 {
71 label = "user-cfg";
72 reg = <0x7f0000 0x10000>;
73 read-only;
74 };
75 };
76 };
77 };
78
79 &ethernet {
80 port@0 {
81 mediatek,fixed-link = <1000 1 1 1>;
82 phy-mode = "rgmii";
83 };
84 };
85
86 &state_default {
87 gpio {
88 groups = "i2c", "jtag", "uartf";
89 function = "gpio";
90 };
91 };
92
93 &wmac {
94 nvmem-cells = <&eeprom_factory_0>;
95 nvmem-cell-names = "eeprom";
96 };
97
98 &pci {
99 status = "okay";
100 };
101
102 &pci1 {
103 status = "okay";
104
105 wifi@0,0 {
106 compatible = "pci1814,3091";
107 reg = <0x10000 0 0 0 0>;
108 ralink,5ghz = <0>;
109 nvmem-cells = <&eeprom_factory_8000>;
110 nvmem-cell-names = "eeprom";
111 };
112 };
113
114 &ehci {
115 status = "okay";
116 };
117
118 &ohci {
119 status = "okay";
120 };