Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * at91-kizbox3-hs.dts - Device Tree file for Overkiz KIZBOX3-HS board
0004  *
0005  * Copyright (C) 2018 Overkiz SAS
0006  *
0007  * Authors: Dorian Rocipon <d.rocipon@overkiz.com>
0008  *          Kevin Carli <k.carli@overkiz.com>
0009  *          Mickael Gardet <m.gardet@overkiz.com>
0010  */
0011 /dts-v1/;
0012 #include "at91-kizbox3_common.dtsi"
0013 
0014 / {
0015         model = "Overkiz KIZBOX3-HS";
0016         compatible = "overkiz,kizbox3-hs", "atmel,sama5d2", "atmel,sama5";
0017 
0018         led-controller-1 {
0019                 status = "okay";
0020 
0021                 led-1 {
0022                         status = "okay";
0023                 };
0024 
0025                 led-2 {
0026                         status = "okay";
0027                 };
0028 
0029                 led-3 {
0030                         status = "okay";
0031                 };
0032 
0033                 led-4 {
0034                         status = "okay";
0035                 };
0036         };
0037 
0038         led-controller-2  {
0039                 compatible = "gpio-leds";
0040                 pinctrl-names = "default";
0041                 pinctrl-0 = <&pinctrl_led_red
0042                              &pinctrl_led_white>;
0043                 status = "okay";
0044 
0045                 led-5 {
0046                         label = "pio:red:user";
0047                         gpios = <&pioA PIN_PB1 GPIO_ACTIVE_HIGH>;
0048                         default-state = "off";
0049                 };
0050 
0051                 led-6 {
0052                         label = "pio:white:user";
0053                         gpios = <&pioA PIN_PB8 GPIO_ACTIVE_HIGH>;
0054                         default-state = "off";
0055                 };
0056         };
0057 
0058         gpio-keys {
0059                 compatible = "gpio-keys";
0060                 pinctrl-names = "default" , "default", "default",
0061                                 "default", "default" ;
0062                 pinctrl-0 = <&pinctrl_key_gpio_default>;
0063                 pinctrl-1 = <&pinctrl_pio_rf &pinctrl_pio_wifi>;
0064                 pinctrl-2 = <&pinctrl_pio_io_boot
0065                              &pinctrl_pio_io_reset
0066                              &pinctrl_pio_io_test_radio>;
0067                 pinctrl-3 = <&pinctrl_pio_zbe_test_radio
0068                              &pinctrl_pio_zbe_rst>;
0069                 pinctrl-4 = <&pinctrl_pio_input>;
0070 
0071                 switch-1 {
0072                         label = "SW1";
0073                         gpios = <&pioA PIN_PA29 GPIO_ACTIVE_LOW>;
0074                         linux,code = <0x101>;
0075                         wakeup-source;
0076                 };
0077 
0078                 switch-2 {
0079                         label = "SW2";
0080                         gpios = <&pioA PIN_PA18 GPIO_ACTIVE_LOW>;
0081                         linux,code = <0x102>;
0082                         wakeup-source;
0083                 };
0084 
0085                 switch-3 {
0086                         label = "SW3";
0087                         gpios = <&pioA PIN_PA22 GPIO_ACTIVE_LOW>;
0088                         linux,code = <0x103>;
0089                         wakeup-source;
0090                 };
0091 
0092                 switch-7 {
0093                         label = "SW7";
0094                         gpios = <&pioA PIN_PA26 GPIO_ACTIVE_LOW>;
0095                         linux,code = <0x107>;
0096                         wakeup-source;
0097                 };
0098 
0099                 switch-8 {
0100                         label = "SW8";
0101                         gpios = <&pioA PIN_PA24 GPIO_ACTIVE_LOW>;
0102                         linux,code = <0x108>;
0103                         wakeup-source;
0104                 };
0105         };
0106 
0107         gpios {
0108                 compatible = "gpio";
0109                 status = "okay";
0110 
0111                 rf_on {
0112                         label = "rf on";
0113                         gpio = <&pioA PIN_PC19 GPIO_ACTIVE_HIGH>;
0114                         output;
0115                         init-low;
0116                 };
0117 
0118                 wifi_on {
0119                         label = "wifi on";
0120                         gpio = <&pioA PIN_PC20 GPIO_ACTIVE_HIGH>;
0121                         output;
0122                         init-low;
0123                 };
0124 
0125                 zbe_test_radio {
0126                         label = "zbe test radio";
0127                         gpio = <&pioA PIN_PB21 GPIO_ACTIVE_HIGH>;
0128                         output;
0129                         init-low;
0130                 };
0131 
0132                 zbe_rst {
0133                         label = "zbe rst";
0134                         gpio = <&pioA PIN_PB25 GPIO_ACTIVE_HIGH>;
0135                         output;
0136                         init-low;
0137                 };
0138 
0139                 io_reset {
0140                         label = "io reset";
0141                         gpio = <&pioA PIN_PB30 GPIO_ACTIVE_HIGH>;
0142                         output;
0143                         init-low;
0144                 };
0145 
0146                 io_test_radio {
0147                         label = "io test radio";
0148                         gpio = <&pioA PIN_PC9 GPIO_ACTIVE_HIGH>;
0149                         output;
0150                         init-low;
0151                 };
0152 
0153                 io_boot_0 {
0154                         label = "io boot 0";
0155                         gpio = <&pioA PIN_PC11 GPIO_ACTIVE_HIGH>;
0156                         output;
0157                         init-low;
0158                 };
0159 
0160                 io_boot_1 {
0161                         label = "io boot 1";
0162                         gpio = <&pioA PIN_PC17 GPIO_ACTIVE_HIGH>;
0163                         output;
0164                         init-low;
0165                 };
0166 
0167                 verbose_bootloader {
0168                         label = "verbose bootloader";
0169                         gpio = <&pioA PIN_PB11 GPIO_ACTIVE_HIGH>;
0170                         input;
0171                 };
0172 
0173                  nail_bed_detection  {
0174                         label = "nail bed detection";
0175                         gpio = <&pioA PIN_PB12 GPIO_ACTIVE_HIGH>;
0176                         input;
0177                 };
0178 
0179                  id_usba {
0180                         label = "id usba";
0181                         gpio = <&pioA PIN_PC0 GPIO_ACTIVE_LOW>;
0182                         input;
0183                 };
0184         };
0185 };
0186 
0187 &pioA {
0188         pinctrl_key_gpio_default: key_gpio_default {
0189                 pinmux = <PIN_PA22__GPIO>,
0190                 <PIN_PA24__GPIO>,
0191                 <PIN_PA26__GPIO>,
0192                 <PIN_PA29__GPIO>,
0193                 <PIN_PA18__GPIO>;
0194                 bias-disable;
0195                 };
0196 
0197         pinctrl_gpio {
0198                 pinctrl_pio_rf: gpio_rf {
0199                         pinmux = <PIN_PC19__GPIO>;
0200                         bias-disable;
0201                 };
0202                 pinctrl_pio_wifi: gpio_wifi {
0203                         pinmux = <PIN_PC20__GPIO>;
0204                         bias-disable;
0205                 };
0206                 pinctrl_pio_io_boot: gpio_io_boot {
0207                         pinmux =
0208                         <PIN_PC11__GPIO>,
0209                         <PIN_PC17__GPIO>;
0210                         bias-disable;
0211                 };
0212                 pinctrl_pio_io_test_radio: gpio_io_test_radio {
0213                         pinmux = <PIN_PC9__GPIO>;
0214                         bias-disable;
0215                 };
0216                 pinctrl_pio_zbe_test_radio: gpio_zbe_test_radio {
0217                         pinmux = <PIN_PB21__GPIO>;
0218                         bias-disable;
0219                 };
0220                 pinctrl_pio_zbe_rst: gpio_zbe_rst {
0221                         pinmux = <PIN_PB25__GPIO>;
0222                         bias-disable;
0223                 };
0224                 /* stm32 reset must be open drain (internal pull up) */
0225                 pinctrl_pio_io_reset: gpio_io_reset {
0226                         pinmux = <PIN_PB30__GPIO>;
0227                         bias-disable;
0228                         drive-open-drain = <1>;
0229                         output-low;
0230                 };
0231                 pinctrl_pio_input: gpio_input {
0232                         pinmux =
0233                         <PIN_PB11__GPIO>,
0234                         <PIN_PB12__GPIO>,
0235                         <PIN_PC0__GPIO>;
0236                         bias-disable;
0237                 };
0238         };
0239 
0240         pinctrl_leds {
0241                 pinctrl_led_red: led_red {
0242                         pinmux = <PIN_PB1__GPIO>;
0243                         bias-disable;
0244                 };
0245                 pinctrl_led_white: led_white {
0246                         pinmux = <PIN_PB8__GPIO>;
0247                         bias-disable;
0248                 };
0249         };
0250 };
0251 
0252 &adc {
0253         status = "okay";
0254 };
0255 
0256 &uart0 {
0257         status = "okay";
0258 };
0259 
0260 &uart1 {
0261         status = "okay";
0262 };
0263 
0264 &uart2 {
0265         status = "okay";
0266 };
0267 
0268 &uart3 {
0269         status = "okay";
0270 };
0271 
0272 &uart4 {
0273         status = "okay";
0274 };
0275 
0276 &flx0 {
0277         status = "okay";
0278 
0279         uart5: serial@200  {
0280                         status = "okay";
0281         };
0282 };
0283 
0284 &flx3 {
0285         status = "okay";
0286         uart8: serial@200 {
0287                 status = "okay";
0288         };
0289 };
0290 
0291 &flx4 {
0292         status = "okay";
0293 
0294         i2c6: i2c@600 {
0295                 status = "okay";
0296         };
0297 };
0298 
0299 &usb0 {
0300         status = "okay";
0301 };
0302 
0303 &usb1 {
0304         status = "okay";
0305 };
0306 
0307 &usb2 {
0308         status = "okay";
0309 };