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