]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/ALL0256N-4M.dts
Update lld to trunk r290819 and resolve conflicts.
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / ALL0256N-4M.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 / {
6         compatible = "ALL0256N", "ralink,rt3050-soc";
7         model = "Allnet ALL0256N";
8
9         gpio-leds {
10                 compatible = "gpio-leds";
11
12                 rssilow {
13                         label = "all0256n:green:rssilow";
14                         gpios = <&gpio0 14 1>;
15                 };
16
17                 rssimed {
18                         label = "all0256n:green:rssimed";
19                         gpios = <&gpio0 12 1>;
20                 };
21
22                 rssihigh {
23                         label = "all0256n:green:rssihigh";
24                         gpios = <&gpio0 13 1>;
25                 };
26         };
27
28         gpio-keys-polled {
29                 compatible = "gpio-keys-polled";
30                 #address-cells = <1>;
31                 #size-cells = <0>;
32                 poll-interval = <20>;
33
34                 reset {
35                         label = "reset";
36                         gpios = <&gpio0 0 1>;
37                         linux,code = <0x198>;
38                 };
39         };
40 };
41
42 &gpio0 {
43         status = "okay";
44 };
45
46 &spi0 {
47         status = "okay";
48
49         m25p80@0 {
50                 #address-cells = <1>;
51                 #size-cells = <1>;
52                 compatible = "jedec,spi-nor";
53                 reg = <0>;
54                 linux,modalias = "m25p80", "mx25l3205d";
55                 spi-max-frequency = <10000000>;
56
57                 partition@0 {
58                         label = "u-boot";
59                         reg = <0x0 0x30000>;
60                         read-only;
61                 };
62
63                 partition@30000 {
64                         label = "u-boot-env";
65                         reg = <0x30000 0x10000>;
66                         read-only;
67                 };
68
69                 factory: partition@40000 {
70                         label = "factory";
71                         reg = <0x40000 0x10000>;
72                         read-only;
73                 };
74
75                 partition@50000 {
76                         label = "firmware";
77                         reg = <0x50000 0x3c8000>;
78                 };
79         };
80 };
81
82 &pinctrl {
83         state_default: pinctrl0 {
84                 gpio {
85                         ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
86                         ralink,function = "gpio";
87                 };
88         };
89 };
90
91 &ethernet {
92         mtd-mac-address = <&factory 0x28>;
93 };
94
95 &esw {
96         mediatek,portmap = <0x3f>;
97 };
98
99 &wmac {
100         ralink,mtd-eeprom = <&factory 0>;
101 };