Bump version to v1.5 and start work on adding 4.19 kernel suppot
[librecmc/librecmc.git] / target / linux / ramips / dts / DIR-300-B7.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "DIR-300-B7", "ralink,rt5350-soc";
9         model = "D-Link DIR-300 B7";
10
11         gpio-leds {
12                 compatible = "gpio-leds";
13
14                 status {
15                         label = "dir-300-b7:green:status";
16                         gpios = <&gpio0 9 1>;
17                 };
18
19                 wps {
20                         label = "dir-300-b7:blue:wps";
21                         gpios = <&gpio0 13 1>;
22                 };
23         };
24
25         gpio-keys-polled {
26                 compatible = "gpio-keys-polled";
27                 #address-cells = <1>;
28                 #size-cells = <0>;
29                 poll-interval = <20>;
30
31                 reset {
32                         label = "reset";
33                         gpios = <&gpio0 10 1>;
34                         linux,code = <KEY_RESTART>;
35                 };
36
37                 wps {
38                         label = "wps";
39                         gpios = <&gpio0 0 1>;
40                         linux,code = <KEY_WPS_BUTTON>;
41                 };
42         };
43 };
44
45 &spi0 {
46         status = "okay";
47
48         m25p80@0 {
49                 #address-cells = <1>;
50                 #size-cells = <1>;
51                 compatible = "jedec,spi-nor";
52                 reg = <0>;
53                 spi-max-frequency = <10000000>;
54
55                 partition@0 {
56                         label = "u-boot";
57                         reg = <0x0 0x30000>;
58                         read-only;
59                 };
60
61                 partition@30000 {
62                         label = "u-boot-env";
63                         reg = <0x30000 0x10000>;
64                         read-only;
65                 };
66
67                 factory: partition@40000 {
68                         label = "factory";
69                         reg = <0x40000 0x10000>;
70                         read-only;
71                 };
72
73                 partition@50000 {
74                         label = "firmware";
75                         reg = <0x50000 0x7b0000>;
76                 };
77         };
78 };
79
80 &pinctrl {
81         state_default: pinctrl0 {
82                 gpio {
83                         ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
84                         ralink,function = "gpio";
85                 };
86         };
87 };
88
89 &ethernet {
90         mtd-mac-address = <&factory 0x4>;
91 };
92
93 &esw {
94         mediatek,portmap = <0x2f>;
95         mediatek,led_polarity = <0x17>;
96 };
97
98 &wmac {
99         status = "okay";
100         ralink,led-polarity = <1>;
101         ralink,mtd-eeprom = <&factory 0>;
102 };