mediatek: filogic: reorder alphabetically
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / rt5350_poray_m4.dtsi
1 #include "rt5350.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "poray,m4", "ralink,rt5350-soc";
8
9 aliases {
10 led-boot = &led_status;
11 led-failsafe = &led_status;
12 led-running = &led_status;
13 led-upgrade = &led_status;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_status: status {
20 label = "blue:status";
21 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
22 };
23 };
24
25 keys {
26 compatible = "gpio-keys-polled";
27 poll-interval = <20>;
28
29 reset {
30 label = "reset";
31 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
33 };
34 };
35 };
36
37 &spi0 {
38 status = "okay";
39
40 flash@0 {
41 compatible = "jedec,spi-nor";
42 reg = <0>;
43 spi-max-frequency = <10000000>;
44
45 partitions {
46 compatible = "fixed-partitions";
47 #address-cells = <1>;
48 #size-cells = <1>;
49
50 partition@0 {
51 label = "u-boot";
52 reg = <0x0 0x30000>;
53 read-only;
54 };
55
56 partition@30000 {
57 label = "u-boot-env";
58 reg = <0x30000 0x10000>;
59 read-only;
60 };
61
62 factory: partition@40000 {
63 compatible = "nvmem-cells";
64 label = "factory";
65 reg = <0x40000 0x10000>;
66 #address-cells = <1>;
67 #size-cells = <1>;
68 read-only;
69
70 eeprom_factory_0: eeprom@0 {
71 reg = <0x0 0x200>;
72 };
73
74 macaddr_factory_4: macaddr@4 {
75 reg = <0x4 0x6>;
76 };
77 };
78
79 firmware: partition@50000 {
80 compatible = "denx,uimage";
81 label = "firmware";
82 /* reg property is set based on flash size in DTS files */
83 };
84 };
85 };
86 };
87
88 &state_default {
89 gpio {
90 groups = "i2c", "jtag", "uartf";
91 function = "gpio";
92 };
93 };
94
95 &ethernet {
96 nvmem-cells = <&macaddr_factory_4>;
97 nvmem-cell-names = "mac-address";
98 };
99
100 &esw {
101 mediatek,portmap = <0x2f>;
102 mediatek,led_polarity = <1>;
103 };
104
105 &wmac {
106 ralink,led-polarity = <1>;
107 nvmem-cells = <&eeprom_factory_0>;
108 nvmem-cell-names = "eeprom";
109 };