0b2c7602d1c6b1c041c5bace129164b4308bbbf0
[openwrt/staging/hauke.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
50 partition@50000 {
51 compatible = "denx,uimage";
52 label = "firmware";
53 reg = <0x50000 0x7a0000>;
54 };
55
56 partition@7f0000 {
57 label = "user-cfg";
58 reg = <0x7f0000 0x10000>;
59 read-only;
60 };
61 };
62 };
63 };
64
65 &ethernet {
66 port@0 {
67 mediatek,fixed-link = <1000 1 1 1>;
68 phy-mode = "rgmii";
69 };
70 };
71
72 &state_default {
73 gpio {
74 groups = "i2c", "jtag", "uartf";
75 function = "gpio";
76 };
77 };
78
79 &wmac {
80 status = "okay";
81 ralink,mtd-eeprom = <&factory 0x0>;
82 };
83
84 &pci {
85 status = "okay";
86 };
87
88 &pci1 {
89 status = "okay";
90
91 wifi@1,0 {
92 compatible = "pci1814,3091";
93 reg = <0x10000 0 0 0 0>;
94 ralink,5ghz = <0>;
95 ralink,mtd-eeprom = <&factory 0x8000>;
96 };
97 };
98
99 &ehci {
100 status = "okay";
101 };
102
103 &ohci {
104 status = "okay";
105 };