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 led-power-blue { 41 label = "smartgw:power:blue"; 42 gpios = <&pioC 21 GPIO_ACTIVE_HIGH>; 43 default-state = "off"; 44 }; 45 46 led-power-green { 47 label = "smartgw:power:green"; 48 gpios = <&pioC 20 GPIO_ACTIVE_HIGH>; 49 default-state = "on"; 50 }; 51 52 led-power-red { 53 label = "smartgw:power:red"; 54 gpios = <&pioC 19 GPIO_ACTIVE_HIGH>; 55 default-state = "off"; 56 }; 57 58 led-radio-blue { 59 label = "smartgw:radio:blue"; 60 gpios = <&pioC 18 GPIO_ACTIVE_HIGH>; 61 default-state = "off"; 62 }; 63 64 led-radio-green { 65 label = "smartgw:radio:green"; 66 gpios = <&pioC 17 GPIO_ACTIVE_HIGH>; 67 default-state = "off"; 68 }; 69 70 led-radio-red { 71 label = "smartgw:radio:red"; 72 gpios = <&pioC 16 GPIO_ACTIVE_HIGH>; 73 default-state = "off"; 74 }; 75 76 led-internet-blue { 77 label = "smartgw:internet:blue"; 78 gpios = <&pioC 15 GPIO_ACTIVE_HIGH>; 79 default-state = "off"; 80 }; 81 82 led-internet-green { 83 label = "smartgw:internet:green"; 84 gpios = <&pioC 14 GPIO_ACTIVE_HIGH>; 85 default-state = "off"; 86 }; 87 88 led-internet-red { 89 label = "smartgw:internet:red"; 90 gpios = <&pioC 13 GPIO_ACTIVE_HIGH>; 91 default-state = "off"; 92 }; 93 94 led-heartbeat { 95 label = "smartgw:heartbeat"; 96 gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; 97 linux,default-trigger = "heartbeat"; 98 }; 99 100 led-pb18 { 101 status = "disabled"; 102 }; 103 104 led-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 atmel,use-dma-rx; 125 atmel,use-dma-tx; 126 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}; 161