ramips: remove model name from LED labels
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / rt3352_allnet_all5002.dts
1 #include "rt3352.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "allnet,all5002", "ralink,rt3352-soc";
8 model = "Allnet ALL5002";
9
10 i2c-gpio {
11 #address-cells = <1>;
12 #size-cells = <0>;
13
14 compatible = "i2c-gpio";
15 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>;
16 i2c-gpio,delay-us = <10>;
17
18 pcf0: iexp@38 {
19 #gpio-cells = <2>;
20 compatible = "inxp,pcf8574a";
21 reg = <0x38>;
22 gpio-controller;
23 };
24
25 hwmon@4b {
26 compatible = "national,lm92";
27 reg = <0x4b>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 ld1 {
35 label = "green:ld1";
36 gpios = <&pcf0 0 GPIO_ACTIVE_LOW>;
37 };
38
39 ld2 {
40 label = "green:ld2";
41 gpios = <&pcf0 1 GPIO_ACTIVE_LOW>;
42 };
43 };
44 };
45
46 &gpio0 {
47 status = "okay";
48 };
49
50 &spi0 {
51 status = "okay";
52
53 flash@0 {
54 compatible = "jedec,spi-nor";
55 reg = <0>;
56 spi-max-frequency = <10000000>;
57
58 partitions {
59 compatible = "fixed-partitions";
60 #address-cells = <1>;
61 #size-cells = <1>;
62
63 partition@0 {
64 label = "u-boot";
65 reg = <0x0 0x30000>;
66 read-only;
67 };
68
69 partition@30000 {
70 label = "u-boot-env";
71 reg = <0x30000 0x10000>;
72 read-only;
73 };
74
75 factory: partition@40000 {
76 label = "factory";
77 reg = <0x40000 0x10000>;
78 read-only;
79 };
80
81 partition@50000 {
82 compatible = "denx,uimage";
83 label = "firmware";
84 reg = <0x50000 0x1fb0000>;
85 };
86 };
87 };
88 };
89
90 &state_default {
91 gpio {
92 groups = "i2c", "jtag", "rgmii", "mdio", "uartf";
93 function = "gpio";
94 };
95 };
96
97 &ethernet {
98 mtd-mac-address = <&factory 0x28>;
99 };
100
101 &esw {
102 mediatek,portmap = <0x3f>;
103 };
104
105 &wmac {
106 ralink,mtd-eeprom = <&factory 0x0>;
107 };
108
109 &ehci {
110 status = "okay";
111 };
112
113 &ohci {
114 status = "okay";
115 };