treewide: convert gpio-export to platform driver
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / VOCORE2.dts
1 /dts-v1/;
2
3 #include "VOCORE2.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6
7 / {
8 compatible = "vocore,vocore2", "mediatek,mt7628an-soc";
9 model = "VoCore2";
10
11 aliases {
12 led-status = &led_status;
13 };
14
15 gpio-leds {
16 compatible = "gpio-leds";
17
18 led_status: status {
19 label = "vocore2:fuchsia:status";
20 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
21 };
22 };
23 };
24
25 &spi0 {
26 status = "okay";
27
28 m25p80@0 {
29 #address-cells = <1>;
30 #size-cells = <1>;
31 compatible = "jedec,spi-nor";
32 reg = <0>;
33 spi-max-frequency = <10000000>;
34 m25p,chunked-io = <32>;
35
36 partition@0 {
37 label = "u-boot";
38 reg = <0x0 0x30000>;
39 read-only;
40 };
41
42 partition@30000 {
43 label = "u-boot-env";
44 reg = <0x30000 0x10000>;
45 read-only;
46 };
47
48 factory: partition@40000 {
49 label = "factory";
50 reg = <0x40000 0x10000>;
51 read-only;
52 };
53
54 partition@50000 {
55 label = "firmware";
56 reg = <0x50000 0xfb0000>;
57 };
58 };
59 };