ramips: specify "firmware" partition format
[oweals/openwrt.git] / target / linux / ramips / dts / YOUKU-YK1.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "youku,yk1", "ralink,mt7620a-soc";
10         model = "YOUKU YK1";
11
12         aliases {
13                 led-boot = &led_power;
14                 led-failsafe = &led_power;
15                 led-running = &led_power;
16                 led-upgrade = &led_power;
17         };
18
19         gpio-leds {
20                 compatible = "gpio-leds";
21                 wan {
22                         label = "youku-yk1:blue:wan";
23                         gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
24                 };
25                 air {
26                         label = "youku-yk1:blue:air";
27                         gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
28                 };
29                 usb {
30                         label = "youku-yk1:blue:usb";
31                         gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
32                         trigger-sources = <&ohci_port1>, <&ehci_port1>;
33                         linux,default-trigger = "usbport";
34                 };
35                 led_power: power {
36                         label = "youku-yk1:blue:power";
37                         gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
38                 };
39         };
40
41         gpio-keys-polled {
42                 compatible = "gpio-keys-polled";
43                 poll-interval = <20>;
44                 reset {
45                         label = "reset";
46                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
47                         linux,code = <KEY_RESTART>;
48                 };
49         };
50 };
51
52 &gpio0 {
53         status = "okay";
54 };
55
56 &gpio1 {
57         status = "okay";
58 };
59
60 &gpio2 {
61         status = "okay";
62 };
63
64 &gpio3 {
65         status = "okay";
66 };
67
68 &spi0 {
69         status = "okay";
70
71         m25p80@0 {
72                 compatible = "jedec,spi-nor";
73                 reg = <0>;
74                 spi-max-frequency = <10000000>;
75
76                 partitions {
77                         compatible = "fixed-partitions";
78                         #address-cells = <1>;
79                         #size-cells = <1>;
80
81                         partition@0 {
82                                 label = "u-boot";
83                                 reg = <0x0 0x30000>;
84                                 read-only;
85                         };
86
87                         partition@30000 {
88                                 label = "u-boot-env";
89                                 reg = <0x30000 0x10000>;
90                                 read-only;
91                         };
92
93                         factory: partition@40000 {
94                                 label = "factory";
95                                 reg = <0x40000 0x10000>;
96                                 read-only;
97                         };
98
99                         partition@50000 {
100                                 compatible = "denx,uimage";
101                                 label = "firmware";
102                                 reg = <0x50000 0x1fb0000>;
103                         };
104                 };
105         };
106 };
107
108 &pinctrl {
109         state_default: pinctrl0 {
110                 default {
111                         ralink,group = "i2c", "rgmii1", "ephy", "wled";
112                         ralink,function = "gpio";
113                 };
114         };
115 };
116
117 &ethernet {
118         pinctrl-names = "default";
119         mtd-mac-address = <&factory 0x4>;
120         mediatek,portmap = "llllw";
121 };
122
123 &wmac {
124         ralink,mtd-eeprom = <&factory 0>;
125 };
126
127 &sdhci {
128         status = "okay";
129 };
130
131 &ehci {
132         status = "okay";
133 };
134
135 &ohci {
136         status = "okay";
137 };