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