xref: /freebsd-src/sys/contrib/device-tree/src/arm/microchip/at91sam9g25-gardena-smart-gateway.dts (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Device Tree file for the GARDENA smart Gateway (Article No. 19000)
4f126890aSEmmanuel Vadot *
5f126890aSEmmanuel Vadot *  Copyright (C) 2020 GARDENA GmbH
6f126890aSEmmanuel Vadot */
7f126890aSEmmanuel Vadot
8f126890aSEmmanuel Vadot/dts-v1/;
9f126890aSEmmanuel Vadot
10f126890aSEmmanuel Vadot#include "at91sam9g25.dtsi"
11f126890aSEmmanuel Vadot#include "at91sam9x5ek.dtsi"
12f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
13f126890aSEmmanuel Vadot
14f126890aSEmmanuel Vadot/ {
15f126890aSEmmanuel Vadot	model = "GARDENA smart Gateway (Article No. 19000)";
16f126890aSEmmanuel Vadot	compatible = "gardena,smart-gateway-at91sam", "atmel,at91sam9g25", "atmel,at91sam9x5",
17f126890aSEmmanuel Vadot		"atmel,at91sam9";
18f126890aSEmmanuel Vadot
19f126890aSEmmanuel Vadot	aliases {
20f126890aSEmmanuel Vadot		serial1 = &usart3;
21f126890aSEmmanuel Vadot	};
22f126890aSEmmanuel Vadot
23f126890aSEmmanuel Vadot	gpio-keys {
24f126890aSEmmanuel Vadot		compatible = "gpio-keys";
25f126890aSEmmanuel Vadot
26f126890aSEmmanuel Vadot		button {
27f126890aSEmmanuel Vadot			label = "USER_BTN1";
28f126890aSEmmanuel Vadot			gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
29f126890aSEmmanuel Vadot			linux,code = <KEY_PROG1>;
30f126890aSEmmanuel Vadot		};
31f126890aSEmmanuel Vadot	};
32f126890aSEmmanuel Vadot
33f126890aSEmmanuel Vadot	1wire_cm {
34f126890aSEmmanuel Vadot		status = "disabled";
35f126890aSEmmanuel Vadot	};
36f126890aSEmmanuel Vadot
37f126890aSEmmanuel Vadot	leds {
38f126890aSEmmanuel Vadot		compatible = "gpio-leds";
39f126890aSEmmanuel Vadot
40*b2d2a78aSEmmanuel Vadot		led-power-blue {
41f126890aSEmmanuel Vadot			label = "smartgw:power:blue";
42f126890aSEmmanuel Vadot			gpios = <&pioC 21 GPIO_ACTIVE_HIGH>;
43f126890aSEmmanuel Vadot			default-state = "off";
44f126890aSEmmanuel Vadot		};
45f126890aSEmmanuel Vadot
46*b2d2a78aSEmmanuel Vadot		led-power-green {
47f126890aSEmmanuel Vadot			label = "smartgw:power:green";
48f126890aSEmmanuel Vadot			gpios = <&pioC 20 GPIO_ACTIVE_HIGH>;
49f126890aSEmmanuel Vadot			default-state = "on";
50f126890aSEmmanuel Vadot		};
51f126890aSEmmanuel Vadot
52*b2d2a78aSEmmanuel Vadot		led-power-red {
53f126890aSEmmanuel Vadot			label = "smartgw:power:red";
54f126890aSEmmanuel Vadot			gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
55f126890aSEmmanuel Vadot			default-state = "off";
56f126890aSEmmanuel Vadot		};
57f126890aSEmmanuel Vadot
58*b2d2a78aSEmmanuel Vadot		led-radio-blue {
59f126890aSEmmanuel Vadot			label = "smartgw:radio:blue";
60f126890aSEmmanuel Vadot			gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
61f126890aSEmmanuel Vadot			default-state = "off";
62f126890aSEmmanuel Vadot		};
63f126890aSEmmanuel Vadot
64*b2d2a78aSEmmanuel Vadot		led-radio-green {
65f126890aSEmmanuel Vadot			label = "smartgw:radio:green";
66f126890aSEmmanuel Vadot			gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
67f126890aSEmmanuel Vadot			default-state = "off";
68f126890aSEmmanuel Vadot		};
69f126890aSEmmanuel Vadot
70*b2d2a78aSEmmanuel Vadot		led-radio-red {
71f126890aSEmmanuel Vadot			label = "smartgw:radio:red";
72f126890aSEmmanuel Vadot			gpios = <&pioC 16 GPIO_ACTIVE_HIGH>;
73f126890aSEmmanuel Vadot			default-state = "off";
74f126890aSEmmanuel Vadot		};
75f126890aSEmmanuel Vadot
76*b2d2a78aSEmmanuel Vadot		led-internet-blue {
77f126890aSEmmanuel Vadot			label = "smartgw:internet:blue";
78f126890aSEmmanuel Vadot			gpios = <&pioC 15 GPIO_ACTIVE_HIGH>;
79f126890aSEmmanuel Vadot			default-state = "off";
80f126890aSEmmanuel Vadot		};
81f126890aSEmmanuel Vadot
82*b2d2a78aSEmmanuel Vadot		led-internet-green {
83f126890aSEmmanuel Vadot			label = "smartgw:internet:green";
84f126890aSEmmanuel Vadot			gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
85f126890aSEmmanuel Vadot			default-state = "off";
86f126890aSEmmanuel Vadot		};
87f126890aSEmmanuel Vadot
88*b2d2a78aSEmmanuel Vadot		led-internet-red {
89f126890aSEmmanuel Vadot			label = "smartgw:internet:red";
90f126890aSEmmanuel Vadot			gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
91f126890aSEmmanuel Vadot			default-state = "off";
92f126890aSEmmanuel Vadot		};
93f126890aSEmmanuel Vadot
94*b2d2a78aSEmmanuel Vadot		led-heartbeat {
95f126890aSEmmanuel Vadot			label = "smartgw:heartbeat";
96f126890aSEmmanuel Vadot			gpios = <&pioB 8 GPIO_ACTIVE_HIGH>;
97f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
98f126890aSEmmanuel Vadot		};
99f126890aSEmmanuel Vadot
100*b2d2a78aSEmmanuel Vadot		led-pb18 {
101f126890aSEmmanuel Vadot			status = "disabled";
102f126890aSEmmanuel Vadot		};
103f126890aSEmmanuel Vadot
104*b2d2a78aSEmmanuel Vadot		led-pd21 {
105f126890aSEmmanuel Vadot			status = "disabled";
106f126890aSEmmanuel Vadot		};
107f126890aSEmmanuel Vadot	};
108f126890aSEmmanuel Vadot};
109f126890aSEmmanuel Vadot
110f126890aSEmmanuel Vadot&macb0 {
111f126890aSEmmanuel Vadot	phy-mode = "rmii";
112f126890aSEmmanuel Vadot	status = "okay";
113f126890aSEmmanuel Vadot};
114f126890aSEmmanuel Vadot
115f126890aSEmmanuel Vadot&usart0 {
116f126890aSEmmanuel Vadot	status = "disabled";
117f126890aSEmmanuel Vadot};
118f126890aSEmmanuel Vadot
119f126890aSEmmanuel Vadot&usart2 {
120f126890aSEmmanuel Vadot	status = "disabled";
121f126890aSEmmanuel Vadot};
122f126890aSEmmanuel Vadot
123f126890aSEmmanuel Vadot&usart3 {
12401950c46SEmmanuel Vadot	atmel,use-dma-rx;
12501950c46SEmmanuel Vadot	atmel,use-dma-tx;
126f126890aSEmmanuel Vadot	status = "okay";
127f126890aSEmmanuel Vadot
128f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_usart3
129f126890aSEmmanuel Vadot		     &pinctrl_usart3_rts
130f126890aSEmmanuel Vadot		     &pinctrl_usart3_cts
131f126890aSEmmanuel Vadot		    >;
132f126890aSEmmanuel Vadot};
133f126890aSEmmanuel Vadot
134f126890aSEmmanuel Vadot&watchdog {
135f126890aSEmmanuel Vadot	status = "okay";
136f126890aSEmmanuel Vadot};
137f126890aSEmmanuel Vadot
138f126890aSEmmanuel Vadot&mmc0 {
139f126890aSEmmanuel Vadot	status = "disabled";
140f126890aSEmmanuel Vadot};
141f126890aSEmmanuel Vadot
142f126890aSEmmanuel Vadot&mmc1 {
143f126890aSEmmanuel Vadot	status = "disabled";
144f126890aSEmmanuel Vadot};
145f126890aSEmmanuel Vadot
146f126890aSEmmanuel Vadot&spi0 {
147f126890aSEmmanuel Vadot	status = "disabled";
148f126890aSEmmanuel Vadot};
149f126890aSEmmanuel Vadot
150f126890aSEmmanuel Vadot&i2c0 {
151f126890aSEmmanuel Vadot	status = "disabled";
152f126890aSEmmanuel Vadot};
153f126890aSEmmanuel Vadot
154f126890aSEmmanuel Vadot&adc0 {
155f126890aSEmmanuel Vadot	status = "disabled";
156f126890aSEmmanuel Vadot};
157f126890aSEmmanuel Vadot
158f126890aSEmmanuel Vadot&ssc0 {
159f126890aSEmmanuel Vadot	status = "disabled";
160f126890aSEmmanuel Vadot};
161