]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/X5.dts
Import libedit 2019-09-10
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / X5.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 / {
6         compatible = "X5", "ralink,rt5350-soc";
7         model = "Poray X5";
8
9         gpio-leds {
10                 compatible = "gpio-leds";
11
12                 power {
13                         label = "x5:green:power";
14                         gpios = <&gpio0 13 1>;
15                 };
16
17                 20 {
18                         label = "x5:green:20";
19                         gpios = <&gpio0 12 1>;
20                 };
21
22                 50 {
23                         label = "x5:green:50";
24                         gpios = <&gpio0 11 1>;
25                 };
26
27                 80 {
28                         label = "x5:green:80";
29                         gpios = <&gpio0 7 1>;
30                 };
31         };
32
33         gpio-keys-polled {
34                 compatible = "gpio-keys-polled";
35                 #address-cells = <1>;
36                 #size-cells = <0>;
37                 poll-interval = <20>;
38
39                 bat {
40                         label = "bat";
41                         gpios = <&gpio0 9 1>;
42                         linux,code = <0x211>;
43                 };
44
45                 reset {
46                         label = "reset";
47                         gpios = <&gpio0 10 1>;
48                         linux,code = <0x198>;
49                 };
50
51                 mode {
52                         label = "mode";
53                         gpios = <&gpio0 14 1>;
54                         linux,code = <0x100>;
55                         linux,input-type = <5>;
56                 };
57         };
58
59         gpio_export {
60                 compatible = "gpio-export";
61                 #size-cells = <0>;
62
63                 usb-mode {
64                         gpio-export,name = "usb-mode";
65                         gpio-export,output = <0>;
66                         gpios = <&gpio0 18 0>;
67                 };
68         };
69 };
70
71 &spi0 {
72         status = "okay";
73
74         m25p80@0 {
75                 #address-cells = <1>;
76                 #size-cells = <1>;
77                 compatible = "jedec,spi-nor";
78                 reg = <0>;
79                 linux,modalias = "m25p80", "gd25q64";
80                 spi-max-frequency = <10000000>;
81
82                 partition@0 {
83                         label = "u-boot";
84                         reg = <0x0 0x30000>;
85                         read-only;
86                 };
87
88                 partition@30000 {
89                         label = "u-boot-env";
90                         reg = <0x30000 0x10000>;
91                         read-only;
92                 };
93
94                 factory: partition@40000 {
95                         label = "factory";
96                         reg = <0x40000 0x10000>;
97                         read-only;
98                 };
99
100                 partition@50000 {
101                         label = "firmware";
102                         reg = <0x50000 0x7b0000>;
103                 };
104         };
105 };
106
107 &pinctrl {
108         state_default: pinctrl0 {
109                 gpio {
110                         ralink,group = "i2c", "jtag", "uartf";
111                         ralink,function = "gpio";
112                 };
113         };
114 };
115
116 &ethernet {
117         mtd-mac-address = <&factory 0x4>;
118 };
119
120 &esw {
121         mediatek,portmap = <0x2f>;
122         mediatek,led_polarity = <1>;
123 };
124
125 &wmac {
126         ralink,mtd-eeprom = <&factory 0>;
127         ralink,led-polarity = <1>;
128 };
129
130 &ehci {
131         status = "okay";
132 };
133
134 &ohci {
135         status = "okay";
136 };