1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright (C) 2017-2018 Overkiz SAS 4*f126890aSEmmanuel Vadot * Author: Mickael Gardet <m.gardet@overkiz.com> 5*f126890aSEmmanuel Vadot * Kévin Raymond <k.raymond@overkiz.com> 6*f126890aSEmmanuel Vadot * Dorian Rocipon <d.rocipon@overkiz.com> 7*f126890aSEmmanuel Vadot */ 8*f126890aSEmmanuel Vadot/dts-v1/; 9*f126890aSEmmanuel Vadot#include "at91-kizboxmini-common.dtsi" 10*f126890aSEmmanuel Vadot 11*f126890aSEmmanuel Vadot/ { 12*f126890aSEmmanuel Vadot model = "Overkiz SmartKiz"; 13*f126890aSEmmanuel Vadot compatible = "overkiz,smartkiz", "atmel,at91sam9g25", 14*f126890aSEmmanuel Vadot "atmel,at91sam9x5", "atmel,at91sam9"; 15*f126890aSEmmanuel Vadot 16*f126890aSEmmanuel Vadot clocks { 17*f126890aSEmmanuel Vadot adc_op_clk { 18*f126890aSEmmanuel Vadot status = "okay"; 19*f126890aSEmmanuel Vadot }; 20*f126890aSEmmanuel Vadot }; 21*f126890aSEmmanuel Vadot 22*f126890aSEmmanuel Vadot aliases { 23*f126890aSEmmanuel Vadot serial5 = &uart0; 24*f126890aSEmmanuel Vadot }; 25*f126890aSEmmanuel Vadot 26*f126890aSEmmanuel Vadot pio_keys { 27*f126890aSEmmanuel Vadot hk_reset { 28*f126890aSEmmanuel Vadot label = "HK_RESET"; 29*f126890aSEmmanuel Vadot gpios = <&pioC 13 GPIO_ACTIVE_HIGH>; 30*f126890aSEmmanuel Vadot }; 31*f126890aSEmmanuel Vadot 32*f126890aSEmmanuel Vadot power_rf { 33*f126890aSEmmanuel Vadot label = "POWER_RF"; 34*f126890aSEmmanuel Vadot gpios = <&pioA 20 GPIO_ACTIVE_HIGH>; 35*f126890aSEmmanuel Vadot }; 36*f126890aSEmmanuel Vadot 37*f126890aSEmmanuel Vadot power_wifi { 38*f126890aSEmmanuel Vadot label = "POWER_WIFI"; 39*f126890aSEmmanuel Vadot gpios = <&pioA 21 GPIO_ACTIVE_HIGH>; 40*f126890aSEmmanuel Vadot }; 41*f126890aSEmmanuel Vadot }; 42*f126890aSEmmanuel Vadot}; 43*f126890aSEmmanuel Vadot 44*f126890aSEmmanuel Vadot&pinctrl { 45*f126890aSEmmanuel Vadot i2c1 { 46*f126890aSEmmanuel Vadot pinctrl_i2c1: i2c1-0 { 47*f126890aSEmmanuel Vadot atmel,pins = 48*f126890aSEmmanuel Vadot <AT91_PIOC 0 AT91_PERIPH_C AT91_PINCTRL_PULL_UP 49*f126890aSEmmanuel Vadot AT91_PIOC 1 AT91_PERIPH_C AT91_PINCTRL_PULL_UP>; 50*f126890aSEmmanuel Vadot }; 51*f126890aSEmmanuel Vadot }; 52*f126890aSEmmanuel Vadot 53*f126890aSEmmanuel Vadot adc0 { 54*f126890aSEmmanuel Vadot pinctrl_adc0_ad0: adc0_ad0-0 { 55*f126890aSEmmanuel Vadot /* pull-up disable */ 56*f126890aSEmmanuel Vadot atmel,pins = <AT91_PIOB 11 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; 57*f126890aSEmmanuel Vadot }; 58*f126890aSEmmanuel Vadot pinctrl_adc0_ad5: adc0_ad5-0 { 59*f126890aSEmmanuel Vadot /* pull-up disable */ 60*f126890aSEmmanuel Vadot atmel,pins = <AT91_PIOB 16 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; 61*f126890aSEmmanuel Vadot }; 62*f126890aSEmmanuel Vadot pinctrl_adc0_ad6: adc0_ad6-0 { 63*f126890aSEmmanuel Vadot /* pull-up disable */ 64*f126890aSEmmanuel Vadot atmel,pins = <AT91_PIOB 17 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; 65*f126890aSEmmanuel Vadot }; 66*f126890aSEmmanuel Vadot pinctrl_adc0_ad11: adc0_ad11-0 { 67*f126890aSEmmanuel Vadot /* pull-up disable */ 68*f126890aSEmmanuel Vadot atmel,pins = <AT91_PIOB 10 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; 69*f126890aSEmmanuel Vadot }; 70*f126890aSEmmanuel Vadot }; 71*f126890aSEmmanuel Vadot}; 72*f126890aSEmmanuel Vadot 73*f126890aSEmmanuel Vadot&i2c1 { 74*f126890aSEmmanuel Vadot dmas = <0>, <0>; 75*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_i2c1>; 76*f126890aSEmmanuel Vadot status = "disabled"; 77*f126890aSEmmanuel Vadot}; 78*f126890aSEmmanuel Vadot 79*f126890aSEmmanuel Vadot&macb0 { 80*f126890aSEmmanuel Vadot status = "disabled"; 81*f126890aSEmmanuel Vadot}; 82*f126890aSEmmanuel Vadot 83*f126890aSEmmanuel Vadot&rtc { 84*f126890aSEmmanuel Vadot status = "okay"; 85*f126890aSEmmanuel Vadot}; 86*f126890aSEmmanuel Vadot 87*f126890aSEmmanuel Vadot&led_blue { 88*f126890aSEmmanuel Vadot status = "okay"; 89*f126890aSEmmanuel Vadot}; 90*f126890aSEmmanuel Vadot 91*f126890aSEmmanuel Vadot&adc0 { 92*f126890aSEmmanuel Vadot atmel,adc-vref = <2500>; 93*f126890aSEmmanuel Vadot pinctrl-names = "default"; 94*f126890aSEmmanuel Vadot pinctrl-0 = < 95*f126890aSEmmanuel Vadot &pinctrl_adc0_ad0 96*f126890aSEmmanuel Vadot &pinctrl_adc0_ad5 97*f126890aSEmmanuel Vadot &pinctrl_adc0_ad6 98*f126890aSEmmanuel Vadot &pinctrl_adc0_ad11 99*f126890aSEmmanuel Vadot >; 100*f126890aSEmmanuel Vadot atmel,adc-channels-used = <0x0861>; 101*f126890aSEmmanuel Vadot status = "okay"; 102*f126890aSEmmanuel Vadot}; 103*f126890aSEmmanuel Vadot 104*f126890aSEmmanuel Vadot&uart0 { 105*f126890aSEmmanuel Vadot status = "okay"; 106*f126890aSEmmanuel Vadot}; 107*f126890aSEmmanuel Vadot 108