treewide: dts: use keycode defines from input dt-binding
[openwrt/openwrt.git] / target / linux / ramips / dts / JHR-N805R.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "JHR-N805R", "ralink,rt3050-soc";
9 model = "JCG JHR-N805R";
10
11 gpio-leds {
12 compatible = "gpio-leds";
13
14 system {
15 label = "jhr-n805r:blue:system";
16 gpios = <&gpio0 9 1>;
17 };
18 };
19
20 gpio-keys-polled {
21 compatible = "gpio-keys-polled";
22 #address-cells = <1>;
23 #size-cells = <0>;
24 poll-interval = <20>;
25
26 reset {
27 label = "reset";
28 gpios = <&gpio0 10 1>;
29 linux,code = <KEY_RESTART>;
30 };
31 };
32 };
33
34 &pinctrl {
35 state_default: pinctrl0 {
36 gpio {
37 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
38 ralink,function = "gpio";
39 };
40 };
41 };
42
43 &spi0 {
44 status = "okay";
45
46 m25p80@0 {
47 #address-cells = <1>;
48 #size-cells = <1>;
49 compatible = "jedec,spi-nor";
50 reg = <0>;
51 linux,modalias = "m25p80", "mx25l3205d";
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 };