ramips/rt305x: Name DTS files based on scheme
[oweals/openwrt.git] / target / linux / ramips / dts / rt3050_jcg_jhr-n805r.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "jcg,jhr-n805r", "ralink,rt3050-soc";
10         model = "JCG JHR-N805R";
11
12         aliases {
13                 led-boot = &led_system;
14                 led-failsafe = &led_system;
15                 led-running = &led_system;
16                 led-upgrade = &led_system;
17         };
18
19         leds {
20                 compatible = "gpio-leds";
21
22                 led_system: system {
23                         label = "jhr-n805r:blue:system";
24                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
25                 };
26         };
27
28         keys {
29                 compatible = "gpio-keys-polled";
30                 poll-interval = <20>;
31
32                 reset {
33                         label = "reset";
34                         gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
35                         linux,code = <KEY_RESTART>;
36                 };
37         };
38 };
39
40 &pinctrl {
41         state_default: pinctrl0 {
42                 gpio {
43                         ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
44                         ralink,function = "gpio";
45                 };
46         };
47 };
48
49 &spi0 {
50         status = "okay";
51
52         m25p80@0 {
53                 compatible = "jedec,spi-nor";
54                 reg = <0>;
55                 spi-max-frequency = <10000000>;
56
57                 partitions {
58                         compatible = "fixed-partitions";
59                         #address-cells = <1>;
60                         #size-cells = <1>;
61
62                         partition@0 {
63                                 label = "u-boot";
64                                 reg = <0x0 0x30000>;
65                                 read-only;
66                         };
67
68                         partition@30000 {
69                                 label = "u-boot-env";
70                                 reg = <0x30000 0x10000>;
71                                 read-only;
72                         };
73
74                         factory: partition@40000 {
75                                 label = "factory";
76                                 reg = <0x40000 0x10000>;
77                                 read-only;
78                         };
79
80                         partition@50000 {
81                                 compatible = "denx,uimage";
82                                 label = "firmware";
83                                 reg = <0x50000 0x3b0000>;
84                         };
85                 };
86         };
87 };
88
89 &ethernet {
90         mtd-mac-address = <&factory 0x2e>;
91 };
92
93 &esw {
94         mediatek,portmap = <0x3e>;
95 };
96
97 &wmac {
98         ralink,mtd-eeprom = <&factory 0>;
99 };