98ad1b13e26a3b70eeeb70b3e4ebf9a3473ce4d7
[openwrt/staging/mkresin.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 &pinctrl {
77 state_default: pinctrl0 {
78 gpio {
79 ralink,group = "i2c", "jtag", "uartf";
80 ralink,function = "gpio";
81 };
82 };
83 };
84
85 &wmac {
86 status = "okay";
87 ralink,mtd-eeprom = <&factory 0>;
88 };
89
90 &pci {
91 status = "okay";
92 };
93
94 &pci1 {
95 status = "okay";
96
97 wifi@1,0 {
98 compatible = "pci1814,3091";
99 reg = <0x10000 0 0 0 0>;
100 ralink,5ghz = <0>;
101 ralink,mtd-eeprom = <&factory 0x8000>;
102 };
103 };
104
105 &ehci {
106 status = "okay";
107 };
108
109 &ohci {
110 status = "okay";
111 };