ramips: backport MT7628 pinmux fixes
[librecmc/librecmc.git] / target / linux / ramips / dts / VOCORE2.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "vocore,VoCore2", "mediatek,mt7628an-soc";
10         model = "VoCore2";
11
12         chosen {
13                 bootargs = "console=ttyS2,115200";
14         };
15
16         memory@0 {
17                 device_type = "memory";
18                 reg = <0x0 0x8000000>;
19         };
20
21         gpio-leds {
22                 compatible = "gpio-leds";
23
24                 status {
25                         label = "vocore2:fuchsia:status";
26                         gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
27                 };
28         };
29 };
30
31 &pinctrl {
32         state_default: pinctrl0 {
33                 gpio {
34                         ralink,group = "wled_an", "refclk", "wdt";
35                         ralink,function = "gpio";
36                 };
37         };
38 };
39
40 &wmac {
41         status = "okay";
42         ralink,mtd-eeprom = <&factory 0x4>;
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                 m25p,chunked-io = <32>;
55
56                 partition@0 {
57                         label = "u-boot";
58                         reg = <0x0 0x30000>;
59                         read-only;
60                 };
61
62                 partition@30000 {
63                         label = "u-boot-env";
64                         reg = <0x30000 0x10000>;
65                         read-only;
66                 };
67
68                 factory: partition@40000 {
69                         label = "factory";
70                         reg = <0x40000 0x10000>;
71                         read-only;
72                 };
73
74                 partition@50000 {
75                         label = "firmware";
76                         reg = <0x50000 0xfb0000>;
77                 };
78         };
79 };
80
81 &esw {
82         mediatek,portmap = <0x7>;
83         mediatek,portdisable = <0x3a>;
84 };
85
86 &i2s {
87         status = "okay";
88 };
89
90 &gdma {
91         status = "okay";
92 };
93
94 &pwm {
95         status = "okay";
96 };
97
98 &uart1 {
99         status = "okay";
100 };
101
102 &uart2 {
103         status = "okay";
104 };