kernel: bump 4.9 to 4.9.65
[oweals/openwrt.git] / target / linux / ramips / dts / 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         gpio-leds {
13                 compatible = "gpio-leds";
14
15                 system {
16                         label = "jhr-n805r:blue:system";
17                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
18                 };
19         };
20
21         gpio-keys-polled {
22                 compatible = "gpio-keys-polled";
23                 #address-cells = <1>;
24                 #size-cells = <0>;
25                 poll-interval = <20>;
26
27                 reset {
28                         label = "reset";
29                         gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
30                         linux,code = <KEY_RESTART>;
31                 };
32         };
33 };
34
35 &pinctrl {
36         state_default: pinctrl0 {
37                 gpio {
38                         ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
39                         ralink,function = "gpio";
40                 };
41         };
42 };
43
44 &spi0 {
45         status = "okay";
46
47         m25p80@0 {
48                 #address-cells = <1>;
49                 #size-cells = <1>;
50                 compatible = "jedec,spi-nor";
51                 reg = <0>;
52                 spi-max-frequency = <10000000>;
53
54                 partition@0 {
55                         label = "u-boot";
56                         reg = <0x0 0x30000>;
57                         read-only;
58                 };
59
60                 partition@30000 {
61                         label = "u-boot-env";
62                         reg = <0x30000 0x10000>;
63                         read-only;
64                 };
65
66                 factory: partition@40000 {
67                         label = "factory";
68                         reg = <0x40000 0x10000>;
69                         read-only;
70                 };
71
72                 partition@50000 {
73                         label = "firmware";
74                         reg = <0x50000 0x3b0000>;
75                 };
76         };
77 };
78
79 &ethernet {
80         mtd-mac-address = <&factory 0x2e>;
81 };
82
83 &esw {
84         mediatek,portmap = <0x3e>;
85 };
86
87 &wmac {
88         ralink,mtd-eeprom = <&factory 0>;
89 };