ramips: move compatible for Ubiquiti Edgerouter X to DTS file
[openwrt/staging/wigyori.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 &gpio1 {
20 status = "okay";
21 };
22
23 &spi0 {
24 status = "okay";
25
26 flash@0 {
27 compatible = "jedec,spi-nor";
28 reg = <0>;
29 spi-max-frequency = <25000000>;
30
31 partitions {
32 compatible = "fixed-partitions";
33 #address-cells = <1>;
34 #size-cells = <1>;
35
36 partition@0 {
37 label = "uboot";
38 reg = <0x0 0x30000>;
39 read-only;
40 };
41
42 partition@30000 {
43 label = "uboot-env";
44 reg = <0x30000 0x10000>;
45 read-only;
46 };
47
48 factory: partition@40000 {
49 label = "factory";
50 reg = <0x40000 0x10000>;
51 read-only;
52 };
53
54 partition@50000 {
55 compatible = "denx,uimage";
56 label = "firmware";
57 reg = <0x50000 0x7a0000>;
58 };
59
60 partition@7f0000 {
61 label = "user-cfg";
62 reg = <0x7f0000 0x10000>;
63 read-only;
64 };
65 };
66 };
67 };
68
69 &ethernet {
70 port@0 {
71 mediatek,fixed-link = <1000 1 1 1>;
72 phy-mode = "rgmii";
73 };
74 };
75
76 &state_default {
77 gpio {
78 ralink,group = "i2c", "jtag", "uartf";
79 ralink,function = "gpio";
80 };
81 };
82
83 &wmac {
84 status = "okay";
85 ralink,mtd-eeprom = <&factory 0>;
86 };
87
88 &pci {
89 status = "okay";
90 };
91
92 &pci1 {
93 status = "okay";
94
95 wifi@1,0 {
96 compatible = "pci1814,3091";
97 reg = <0x10000 0 0 0 0>;
98 ralink,5ghz = <0>;
99 ralink,mtd-eeprom = <&factory 0x8000>;
100 };
101 };
102
103 &ehci {
104 status = "okay";
105 };
106
107 &ohci {
108 status = "okay";
109 };