Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*
0003  * Device Tree file for the GARDENA smart Gateway (Article No. 19000)
0004  *
0005  *  Copyright (C) 2020 GARDENA GmbH
0006  */
0007 
0008 /dts-v1/;
0009 
0010 #include "at91sam9g25.dtsi"
0011 #include "at91sam9x5ek.dtsi"
0012 #include <dt-bindings/input/input.h>
0013 
0014 / {
0015         model = "GARDENA smart Gateway (Article No. 19000)";
0016         compatible = "gardena,smart-gateway-at91sam", "atmel,at91sam9g25", "atmel,at91sam9x5",
0017                 "atmel,at91sam9";
0018 
0019         aliases {
0020                 serial1 = &usart3;
0021         };
0022 
0023         gpio-keys {
0024                 compatible = "gpio-keys";
0025 
0026                 button {
0027                         label = "USER_BTN1";
0028                         gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
0029                         linux,code = <KEY_PROG1>;
0030                 };
0031         };
0032 
0033         1wire_cm {
0034                 status = "disabled";
0035         };
0036 
0037         leds {
0038                 compatible = "gpio-leds";
0039 
0040                 power_blue {
0041                         label = "smartgw:power:blue";
0042                         gpios = <&pioC 21 GPIO_ACTIVE_HIGH>;
0043                         default-state = "off";
0044                 };
0045 
0046                 power_green {
0047                         label = "smartgw:power:green";
0048                         gpios = <&pioC 20 GPIO_ACTIVE_HIGH>;
0049                         default-state = "on";
0050                 };
0051 
0052                 power_red {
0053                         label = "smartgw:power:red";
0054                         gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
0055                         default-state = "off";
0056                 };
0057 
0058                 radio_blue {
0059                         label = "smartgw:radio:blue";
0060                         gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
0061                         default-state = "off";
0062                 };
0063 
0064                 radio_green {
0065                         label = "smartgw:radio:green";
0066                         gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
0067                         default-state = "off";
0068                 };
0069 
0070                 radio_red {
0071                         label = "smartgw:radio:red";
0072                         gpios = <&pioC 16 GPIO_ACTIVE_HIGH>;
0073                         default-state = "off";
0074                 };
0075 
0076                 internet_blue {
0077                         label = "smartgw:internet:blue";
0078                         gpios = <&pioC 15 GPIO_ACTIVE_HIGH>;
0079                         default-state = "off";
0080                 };
0081 
0082                 internet_green {
0083                         label = "smartgw:internet:green";
0084                         gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
0085                         default-state = "off";
0086                 };
0087 
0088                 internet_red {
0089                         label = "smartgw:internet:red";
0090                         gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
0091                         default-state = "off";
0092                 };
0093 
0094                 heartbeat {
0095                         label = "smartgw:heartbeat";
0096                         gpios = <&pioB 8 GPIO_ACTIVE_HIGH>;
0097                         linux,default-trigger = "heartbeat";
0098                 };
0099 
0100                 pb18 {
0101                         status = "disabled";
0102                 };
0103 
0104                 pd21 {
0105                         status = "disabled";
0106                 };
0107         };
0108 };
0109 
0110 &macb0 {
0111         phy-mode = "rmii";
0112         status = "okay";
0113 };
0114 
0115 &usart0 {
0116         status = "disabled";
0117 };
0118 
0119 &usart2 {
0120         status = "disabled";
0121 };
0122 
0123 &usart3 {
0124         status = "okay";
0125 
0126         pinctrl-0 = <&pinctrl_usart3
0127                      &pinctrl_usart3_rts
0128                      &pinctrl_usart3_cts
0129                     >;
0130 };
0131 
0132 &watchdog {
0133         status = "okay";
0134 };
0135 
0136 &mmc0 {
0137         status = "disabled";
0138 };
0139 
0140 &mmc1 {
0141         status = "disabled";
0142 };
0143 
0144 &spi0 {
0145         status = "disabled";
0146 };
0147 
0148 &i2c0 {
0149         status = "disabled";
0150 };
0151 
0152 &adc0 {
0153         status = "disabled";
0154 };
0155 
0156 &ssc0 {
0157         status = "disabled";
0158 };