]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/F5D8235_V1.dts
Merge bmake-20170420
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / F5D8235_V1.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 / {
6         #address-cells = <1>;
7         #size-cells = <1>;
8         compatible = "F5D8235_V1", "ralink,rt2880-soc";
9         model = "Belkin F5D8235 v1";
10
11         cfi@1f000000 {
12                 compatible = "cfi-flash";
13                 reg = <0x1f000000 0x800000>;
14                 bank-width = <2>;
15                 device-width = <2>;
16                 #address-cells = <1>;
17                 #size-cells = <1>;
18
19                 partition@0 {
20                         label = "uboot";
21                         reg = <0x0 0x30000>;
22                         read-only;
23                 };
24
25                 partition@30000 {
26                         label = "uboot-env";
27                         reg = <0x30000 0x10000>;
28                         read-only;
29                 };
30
31                 factory: partition@40000 {
32                         label = "factory";
33                         reg = <0x40000 0x10000>;
34                         read-only;
35                 };
36
37                 partition@50000 {
38                         label = "linux";
39                         reg = <0x50000 0x3b0000>;
40                 };
41         };
42
43         rtl8366s {
44                 compatible = "realtek,rtl8366s";
45                 gpio-sda = <&gpio0 1 0>;
46                 gpio-sck = <&gpio0 2 0>;
47         };
48
49         gpio-keys-polled {
50                 compatible = "gpio-keys-polled";
51                 #address-cells = <1>;
52                 #size-cells = <0>;
53                 poll-interval = <100>;
54
55                 wps {
56                         label = "wps";
57                         gpios = <&gpio0 0 1>;
58                         linux,code = <0x211>;
59                 };
60
61                 reset {
62                         label = "reset";
63                         gpios = <&gpio0 9 1>;
64                         linux,code = <0x198>;
65                 };
66         };
67
68         gpio-leds {
69                 compatible = "gpio-leds";
70
71                 storage {
72                         label = "f5d8235-v1:blue:storage";
73                         gpios = <&gpio0 7 1>;
74                 };
75
76                 storage2 {
77                         label = "f5d8235-v1:orange:storage";
78                         gpios = <&gpio0 8 1>;
79                 };
80         };
81 };
82
83 &gpio0 {
84         status = "okay";
85 };
86
87 &pinctrl {
88         state_default: pinctrl0 {
89                 gpio {
90                         ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
91                         ralink,function = "gpio";
92                 };
93         };
94 };
95
96 &ethernet {
97         status = "okay";
98         mtd-mac-address = <&factory 0x4>;
99
100         port@0 {
101                 mediatek,fixed-link = <1000 1 1 1>;
102         };
103 };
104
105 /* FIXME: no u-boot partition and 0x40000@uboot is out of boundaries */
106 /*&wmac {
107         status = "okay";
108         ralink,mtd-eeprom = <&u-boot 0x40000>;
109 };
110 */
111