1// 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 40 power_blue { 41 label = "smartgw:power:blue"; 42 gpios = <&pioC 21 GPIO_ACTIVE_HIGH>; 43 default-state = "off"; 44 }; 45 46 power_green { 47 label = "smartgw:power:green"; 48 gpios = <&pioC 20 GPIO_ACTIVE_HIGH>; 49 default-state = "on"; 50 }; 51 52 power_red { 53 label = "smartgw:power:red"; 54 gpios = <&pioC 19 GPIO_ACTIVE_HIGH>; 55 default-state = "off"; 56 }; 57 58 radio_blue { 59 label = "smartgw:radio:blue"; 60 gpios = <&pioC 18 GPIO_ACTIVE_HIGH>; 61 default-state = "off"; 62 }; 63 64 radio_green { 65 label = "smartgw:radio:green"; 66 gpios = <&pioC 17 GPIO_ACTIVE_HIGH>; 67 default-state = "off"; 68 }; 69 70 radio_red { 71 label = "smartgw:radio:red"; 72 gpios = <&pioC 16 GPIO_ACTIVE_HIGH>; 73 default-state = "off"; 74 }; 75 76 internet_blue { 77 label = "smartgw:internet:blue"; 78 gpios = <&pioC 15 GPIO_ACTIVE_HIGH>; 79 default-state = "off"; 80 }; 81 82 internet_green { 83 label = "smartgw:internet:green"; 84 gpios = <&pioC 14 GPIO_ACTIVE_HIGH>; 85 default-state = "off"; 86 }; 87 88 internet_red { 89 label = "smartgw:internet:red"; 90 gpios = <&pioC 13 GPIO_ACTIVE_HIGH>; 91 default-state = "off"; 92 }; 93 94 heartbeat { 95 label = "smartgw:heartbeat"; 96 gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; 97 linux,default-trigger = "heartbeat"; 98 }; 99 100 pb18 { 101 status = "disabled"; 102 }; 103 104 pd21 { 105 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 { 124 status = "okay"; 125 126 pinctrl-0 = <&pinctrl_usart3 127 &pinctrl_usart3_rts 128 &pinctrl_usart3_cts 129 >; 130}; 131 132&watchdog { 133 status = "okay"; 134}; 135 136&mmc0 { 137 status = "disabled"; 138}; 139 140&mmc1 { 141 status = "disabled"; 142}; 143 144&spi0 { 145 status = "disabled"; 146}; 147 148&i2c0 { 149 status = "disabled"; 150}; 151 152&adc0 { 153 status = "disabled"; 154}; 155 156&ssc0 { 157 status = "disabled"; 158}; 159