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