Merge tag 'iio-fixes-for-5.6a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23...
[linux-2.6-microblaze.git] / arch / arm / boot / dts / at91-smartkiz.dts
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 &leds {
88         blue {
89                 status = "okay";
90         };
91 };
92
93 &adc0 {
94         atmel,adc-vref = <2500>;
95         pinctrl-names = "default";
96         pinctrl-0 = <
97                 &pinctrl_adc0_ad0
98                 &pinctrl_adc0_ad5
99                 &pinctrl_adc0_ad6
100                 &pinctrl_adc0_ad11
101         >;
102         atmel,adc-channels-used = <0x0861>;
103         status = "okay";
104 };
105
106 &uart0 {
107         status = "okay";
108 };
109