uclient: update to Git HEAD (2024-04-19)
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3052_belkin_f5d8235-v2.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "belkin,f5d8235-v2", "ralink,rt3052-soc";
10 model = "Belkin F5D8235 v2";
11
12 aliases {
13 led-boot = &led_router;
14 led-failsafe = &led_router;
15 led-running = &led_router;
16 led-upgrade = &led_router;
17 };
18
19 cfi@1f000000 {
20 compatible = "cfi-flash";
21 reg = <0x1f000000 0x800000>;
22 bank-width = <2>;
23 device-width = <2>;
24
25 partitions {
26 compatible = "fixed-partitions";
27 #address-cells = <1>;
28 #size-cells = <1>;
29
30 uboot: partition@0 {
31 label = "uboot";
32 reg = <0x0 0x50000>;
33 read-only;
34 };
35
36 partition@50000 {
37 compatible = "denx,uimage";
38 label = "firmware";
39 reg = <0x50000 0x790000>;
40 };
41
42 partition@7e0000 {
43 label = "nvram";
44 reg = <0x7e0000 0x10000>;
45 };
46
47 factory: partition@7f0000 {
48 label = "factory";
49 reg = <0x7f0000 0x10000>;
50 };
51 };
52 };
53
54 rtl8366rb {
55 compatible = "realtek,rtl8366rb";
56 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
57 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
58 };
59
60 leds {
61 compatible = "gpio-leds";
62
63 internet {
64 label = "f5d8235-v2:blue:internet";
65 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
66 };
67
68 internet2 {
69 label = "f5d8235-v2:amber:internet";
70 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
71 };
72
73 modem {
74 label = "f5d8235-v2:blue:modem";
75 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
76 };
77
78 modem2 {
79 label = "f5d8235-v2:amber:modem";
80 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
81 };
82
83 led_router: router {
84 label = "f5d8235-v2:blue:router";
85 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
86 };
87
88 storage {
89 label = "f5d8235-v2:blue:storage";
90 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
91 trigger-sources = <&otg_port1>;
92 linux,default-trigger = "usbport";
93 };
94
95 storage2 {
96 label = "f5d8235-v2:amber:storage";
97 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
98 };
99
100 security {
101 label = "f5d8235-v2:blue:security";
102 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
103 };
104
105 security2 {
106 label = "f5d8235-v2:amber:security";
107 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
108 };
109 };
110 };
111
112 &pinctrl {
113 state_default: pinctrl0 {
114 gpio {
115 ralink,group = "spi", "i2c", "jtag", "mdio", "uartf";
116 ralink,function = "gpio";
117 };
118 };
119 };
120
121 &ethernet {
122 mtd-mac-address = <&uboot 0x40004>;
123 pinctrl-names = "default";
124 pinctrl-0 = <&rgmii_pins>;
125 };
126
127 &esw {
128 ralink,rgmii = <1>;
129 mediatek,portmap = <0x3f>;
130 ralink,fct2 = <0x0002500c>;
131 /*
132 * ext phy base addr 31, rx/tx clock skew 0,
133 * turbo mii off, rgmi 3.3v off, port 5 polling off
134 * port5: enabled, gige, full-duplex, rx/tx-flow-control
135 * port6: enabled, gige, full-duplex, rx/tx-flow-control
136 */
137 ralink,fpa2 = <0x1f003fff>;
138 };
139
140 &wmac {
141 ralink,mtd-eeprom = <&uboot 0x40000>;
142 };
143
144 &otg {
145 status = "okay";
146 };