blob: e0c1e8df81b10f2c64fe9ac5aa4047b5b8c24bc5 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Device Tree file for the GARDENA smart Gateway (Article No. 19000)
4 *
5 * Copyright (C) 2020 GARDENA GmbH
6 */
7
8/dts-v1/;
9
10#include "at91sam9g25.dtsi"
11#include "at91sam9x5ek.dtsi"
12#include <dt-bindings/input/input.h>
13
14/ {
15 model = "GARDENA smart Gateway (Article No. 19000)";
16 compatible = "gardena,smart-gateway-at91sam", "atmel,at91sam9g25", "atmel,at91sam9x5",
17 "atmel,at91sam9";
18
19 aliases {
20 serial1 = &usart3;
21 };
22
23 gpio-keys {
24 compatible = "gpio-keys";
25
26 button {
27 label = "USER_BTN1";
28 gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_PROG1>;
30 };
31 };
32
33 1wire_cm {
34 status = "disabled";
35 };
36
37 leds {
38 compatible = "gpio-leds";
39
Tom Rini9c8af152024-12-24 12:03:04 -060040 led-power-blue {
Tom Rini53633a82024-02-29 12:33:36 -050041 label = "smartgw:power:blue";
42 gpios = <&pioC 21 GPIO_ACTIVE_HIGH>;
43 default-state = "off";
44 };
45
Tom Rini9c8af152024-12-24 12:03:04 -060046 led-power-green {
Tom Rini53633a82024-02-29 12:33:36 -050047 label = "smartgw:power:green";
48 gpios = <&pioC 20 GPIO_ACTIVE_HIGH>;
49 default-state = "on";
50 };
51
Tom Rini9c8af152024-12-24 12:03:04 -060052 led-power-red {
Tom Rini53633a82024-02-29 12:33:36 -050053 label = "smartgw:power:red";
54 gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
55 default-state = "off";
56 };
57
Tom Rini9c8af152024-12-24 12:03:04 -060058 led-radio-blue {
Tom Rini53633a82024-02-29 12:33:36 -050059 label = "smartgw:radio:blue";
60 gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
61 default-state = "off";
62 };
63
Tom Rini9c8af152024-12-24 12:03:04 -060064 led-radio-green {
Tom Rini53633a82024-02-29 12:33:36 -050065 label = "smartgw:radio:green";
66 gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
67 default-state = "off";
68 };
69
Tom Rini9c8af152024-12-24 12:03:04 -060070 led-radio-red {
Tom Rini53633a82024-02-29 12:33:36 -050071 label = "smartgw:radio:red";
72 gpios = <&pioC 16 GPIO_ACTIVE_HIGH>;
73 default-state = "off";
74 };
75
Tom Rini9c8af152024-12-24 12:03:04 -060076 led-internet-blue {
Tom Rini53633a82024-02-29 12:33:36 -050077 label = "smartgw:internet:blue";
78 gpios = <&pioC 15 GPIO_ACTIVE_HIGH>;
79 default-state = "off";
80 };
81
Tom Rini9c8af152024-12-24 12:03:04 -060082 led-internet-green {
Tom Rini53633a82024-02-29 12:33:36 -050083 label = "smartgw:internet:green";
84 gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
85 default-state = "off";
86 };
87
Tom Rini9c8af152024-12-24 12:03:04 -060088 led-internet-red {
Tom Rini53633a82024-02-29 12:33:36 -050089 label = "smartgw:internet:red";
90 gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
91 default-state = "off";
92 };
93
Tom Rini9c8af152024-12-24 12:03:04 -060094 led-heartbeat {
Tom Rini53633a82024-02-29 12:33:36 -050095 label = "smartgw:heartbeat";
96 gpios = <&pioB 8 GPIO_ACTIVE_HIGH>;
97 linux,default-trigger = "heartbeat";
98 };
99
Tom Rini9c8af152024-12-24 12:03:04 -0600100 led-pb18 {
Tom Rini53633a82024-02-29 12:33:36 -0500101 status = "disabled";
102 };
103
Tom Rini9c8af152024-12-24 12:03:04 -0600104 led-pd21 {
Tom Rini53633a82024-02-29 12:33:36 -0500105 status = "disabled";
106 };
107 };
108};
109
110&macb0 {
111 phy-mode = "rmii";
112 status = "okay";
113};
114
115&usart0 {
116 status = "disabled";
117};
118
119&usart2 {
120 status = "disabled";
121};
122
123&usart3 {
Tom Rini6bb92fc2024-05-20 09:54:58 -0600124 atmel,use-dma-rx;
125 atmel,use-dma-tx;
Tom Rini53633a82024-02-29 12:33:36 -0500126 status = "okay";
127
128 pinctrl-0 = <&pinctrl_usart3
129 &pinctrl_usart3_rts
130 &pinctrl_usart3_cts
131 >;
132};
133
134&watchdog {
135 status = "okay";
136};
137
138&mmc0 {
139 status = "disabled";
140};
141
142&mmc1 {
143 status = "disabled";
144};
145
146&spi0 {
147 status = "disabled";
148};
149
150&i2c0 {
151 status = "disabled";
152};
153
154&adc0 {
155 status = "disabled";
156};
157
158&ssc0 {
159 status = "disabled";
160};