ath79: enable UART in SoC DTSI files
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_hak5_lan-turtle.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9331.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 keys: keys {
10 compatible = "gpio-keys";
11
12 pinctrl-names = "default";
13 pinctrl-0 = <&enable_gpio11>;
14
15 reset {
16 label = "reset";
17 linux,code = <KEY_RESTART>;
18 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
19 debounce-interval = <60>;
20 };
21 };
22 };
23
24 &eth0 {
25 status = "okay";
26
27 mtd-mac-address = <&uboot 0x1fc00>;
28 mtd-mac-address-increment = <(-1)>;
29
30 gmac-config {
31 device = <&gmac>;
32
33 switch-phy-addr-swap = <1>;
34 switch-phy-swap = <1>;
35 };
36 };
37
38 &eth1 {
39 status = "okay";
40
41 mtd-mac-address = <&uboot 0x1fc00>;
42 mtd-mac-address-increment = <1>;
43 };
44
45 &pinmux {
46 enable_gpio11: pinmux_enable_gpio11 {
47 pinctrl-single,bits = <0x0 0x0 0x4>;
48 };
49 };
50
51 &spi {
52 status = "okay";
53
54 flash@0 {
55 compatible = "jedec,spi-nor";
56 reg = <0>;
57 spi-max-frequency = <50000000>;
58 m25p,fast-read;
59
60 partitions {
61 compatible = "fixed-partitions";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 uboot: partition@0 {
66 label = "u-boot";
67 reg = <0x000000 0x020000>;
68 read-only;
69 };
70
71 partition@20000 {
72 label = "firmware";
73 reg = <0x020000 0xfd0000>;
74 compatible = "tplink,firmware";
75 };
76
77 partition@ff0000 {
78 label = "art";
79 reg = <0xff0000 0x010000>;
80 read-only;
81 };
82 };
83 };
84 };
85
86 &usb {
87 status = "okay";
88 };
89
90 &usb_phy {
91 status = "okay";
92 };