rockchip: add Radxa CM3 IO board support
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt5350_belkin_f7c027.dts
1 #include "rt5350.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 compatible = "belkin,f7c027", "ralink,rt5350-soc";
9 model = "Belkin F7C027";
10
11 aliases {
12 led-boot = &led_status_orange;
13 led-failsafe = &led_status_orange;
14 led-running = &led_status_orange;
15 led-upgrade = &led_status_orange;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 status {
22 function = LED_FUNCTION_STATUS;
23 color = <LED_COLOR_ID_BLUE>;
24 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
25 };
26
27 power {
28 function = LED_FUNCTION_POWER;
29 color = <LED_COLOR_ID_BLUE>;
30 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
31 };
32
33 led_status_orange: orange {
34 function = LED_FUNCTION_STATUS;
35 color = <LED_COLOR_ID_ORANGE>;
36 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
37 };
38
39 relay {
40 label = "device:relay";
41 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
42 };
43 };
44
45 keys {
46 compatible = "gpio-keys-polled";
47 poll-interval = <20>;
48
49 top {
50 label = "restore";
51 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
53 };
54
55 power {
56 label = "power";
57 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_RFKILL>;
59 };
60
61 sensor {
62 label = "sensor";
63 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
64 linux,code = <BTN_0>;
65 };
66 };
67 };
68
69 &spi0 {
70 status = "okay";
71
72 flash@0 {
73 compatible = "jedec,spi-nor";
74 reg = <0>;
75 spi-max-frequency = <10000000>;
76
77 partitions {
78 compatible = "fixed-partitions";
79 #address-cells = <1>;
80 #size-cells = <1>;
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 nvmem-layout {
100 compatible = "fixed-layout";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 eeprom_factory_0: eeprom@0 {
105 reg = <0x0 0x200>;
106 };
107 };
108 };
109
110 partition@50000 {
111 compatible = "denx,uimage";
112 label = "firmware";
113 reg = <0x50000 0x770000>;
114 };
115
116 partition@7c0000 {
117 label = "firmware2";
118 reg = <0x7c0000 0x770000>;
119 };
120
121 partition@f30000 {
122 label = "belkin_settings";
123 reg = <0xf30000 0xa0000>;
124 };
125
126 partition@fd0000 {
127 label = "unknown";
128 reg = <0xfd0000 0x10000>;
129 };
130
131 partition@fe0000 {
132 label = "nvram";
133 reg = <0xfe0000 0x10000>;
134 };
135
136 partition@ff0000 {
137 label = "user_factory";
138 reg = <0xff0000 0x10000>;
139 };
140 };
141 };
142 };
143
144 &wmac {
145 nvmem-cells = <&eeprom_factory_0>;
146 nvmem-cell-names = "eeprom";
147 };
148
149 &state_default {
150 gpio {
151 groups = "i2c", "jtag", "uartf";
152 function = "gpio";
153 };
154 };