ath79: create shared DTSI/definition for Belkin F9J1108/F9K1115 v2
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7161_jjplus_ja76pf2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7100.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "jjPlus JA76PF2";
10 compatible = "jjplus,ja76pf2", "qca,ar7161";
11
12 memory@0 {
13 device_type = "memory";
14 reg = <0x0 0x4000000>;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,115200n8";
19 };
20
21 aliases {
22 led-boot = &led_d2;
23 led-failsafe = &led_d2;
24 led-running = &led_d2;
25 led-upgrade = &led_d2;
26 };
27
28 extosc: ref {
29 compatible = "fixed-clock";
30 #clock-cells = <0>;
31 clock-output-names = "ref";
32 clock-frequency = <40000000>;
33 };
34
35 leds {
36 compatible = "gpio-leds";
37
38 led_d2: d2 {
39 label = "green:d2";
40 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
41 };
42
43 d3 {
44 label = "green:d3";
45 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
46 };
47
48 d4 {
49 label = "green:d4";
50 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
51 };
52 };
53
54 keys {
55 compatible = "gpio-keys";
56
57 sw1 {
58 label = "sw1";
59 linux,code = <KEY_RESTART>;
60 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
61 debounce-interval = <60>;
62 };
63
64 sw2 {
65 label = "sw2";
66 linux,code = <KEY_WPS_BUTTON>;
67 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
68 debounce-interval = <60>;
69 };
70 };
71 };
72
73 &mdio0 {
74 status = "okay";
75
76 phy-mask = <0x1>;
77
78 phy0: ethernet-phy@0 {
79 reg = <0>;
80 phy-mode = "rgmii";
81 };
82
83 phy4: ethernet-phy@4 {
84 reg = <4>;
85 phy-mode = "rgmii";
86 };
87 };
88
89 &eth0 {
90 status = "okay";
91
92 phy-handle = <&phy0>;
93 };
94
95 &eth1 {
96 status = "okay";
97
98 phy-handle = <&phy4>;
99 };
100
101 &pcie0 {
102 status = "okay";
103 };
104
105 &spi {
106 status = "okay";
107
108 flash@0 {
109 compatible = "jedec,spi-nor";
110 reg = <0>;
111 spi-max-frequency = <25000000>;
112
113 partitions {
114 #address-cells = <1>;
115 #size-cells = <1>;
116 compatible = "ecoscentric,redboot-fis-partitions";
117 };
118 };
119 };
120
121 &uart {
122 status = "okay";
123 };