]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/hwspinlock.git/blob - arch/arm/boot/dts/at91-natte.dtsi
ARM: dts: am574x-idk: add support for EMIF1 ECC
[rpmsg/hwspinlock.git] / arch / arm / boot / dts / at91-natte.dtsi
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * at91-natte.dts - Device Tree include file for the Natte board
4  *
5  * Copyright (C) 2017 Axentia Technologies AB
6  *
7  * Author: Peter Rosin <peda@axentia.se>
8  */
10 / {
11         mux: mux-controller {
12                 compatible = "gpio-mux";
13                 #mux-control-cells = <0>;
15                 mux-gpios = <&ioexp 0 GPIO_ACTIVE_HIGH>,
16                             <&ioexp 1 GPIO_ACTIVE_HIGH>,
17                             <&ioexp 2 GPIO_ACTIVE_HIGH>;
18         };
20         batntc-mux {
21                 compatible = "io-channel-mux";
22                 io-channels = <&adc 5>;
23                 io-channel-names = "parent";
24                 mux-controls = <&mux>;
26                 channels =
27                         "batntc0", "batntc1", "batntc2", "batntc3",
28                         "batntc4", "batntc5", "batntc6", "batntc7";
29         };
31         batv-mux {
32                 compatible = "io-channel-mux";
33                 io-channels = <&adc 6>;
34                 io-channel-names = "parent";
35                 mux-controls = <&mux>;
37                 channels =
38                         "batv0", "batv1", "batv2", "batv3",
39                         "batv4", "batv5", "batv6", "batv7";
40         };
42         iout-mux {
43                 compatible = "io-channel-mux";
44                 io-channels = <&adc 7>;
45                 io-channel-names = "parent";
46                 mux-controls = <&mux>;
48                 channels =
49                         "iout0", "iout1", "iout2", "iout3",
50                         "iout4", "iout5", "iout6", "iout7";
51         };
53         i2c-mux {
54                 compatible = "i2c-mux";
55                 mux-locked;
56                 i2c-parent = <&i2c0>;
57                 mux-controls = <&mux>;
59                 #address-cells = <1>;
60                 #size-cells = <0>;
62                 i2c@0 {
63                         reg = <0>;
64                         #address-cells = <1>;
65                         #size-cells = <0>;
67                         charger@9 {
68                                 compatible = "ti,bq24735";
69                                 reg = <0x9>;
71                                 ti,charge-current = <2000>;
72                                 ti,charge-voltage = <16800>;
74                                 poll-interval = <20000>;
75                         };
76                 };
78                 i2c@1 {
79                         reg = <1>;
80                         #address-cells = <1>;
81                         #size-cells = <0>;
83                         charger@9 {
84                                 compatible = "ti,bq24735";
85                                 reg = <0x9>;
87                                 ti,charge-current = <2000>;
88                                 ti,charge-voltage = <16800>;
90                                 poll-interval = <20000>;
91                         };
92                 };
94                 i2c@2 {
95                         reg = <2>;
96                         #address-cells = <1>;
97                         #size-cells = <0>;
99                         charger@9 {
100                                 compatible = "ti,bq24735";
101                                 reg = <0x9>;
103                                 ti,charge-current = <2000>;
104                                 ti,charge-voltage = <16800>;
106                                 poll-interval = <20000>;
107                         };
108                 };
110                 i2c@3 {
111                         reg = <3>;
112                         #address-cells = <1>;
113                         #size-cells = <0>;
115                         charger@9 {
116                                 compatible = "ti,bq24735";
117                                 reg = <0x9>;
119                                 ti,charge-current = <2000>;
120                                 ti,charge-voltage = <16800>;
122                                 poll-interval = <20000>;
123                         };
124                 };
126                 i2c@4 {
127                         reg = <4>;
128                         #address-cells = <1>;
129                         #size-cells = <0>;
131                         charger@9 {
132                                 compatible = "ti,bq24735";
133                                 reg = <0x9>;
135                                 ti,charge-current = <2000>;
136                                 ti,charge-voltage = <16800>;
138                                 poll-interval = <20000>;
139                         };
140                 };
142                 i2c@5 {
143                         reg = <5>;
144                         #address-cells = <1>;
145                         #size-cells = <0>;
147                         charger@9 {
148                                 compatible = "ti,bq24735";
149                                 reg = <0x9>;
151                                 ti,charge-current = <2000>;
152                                 ti,charge-voltage = <16800>;
154                                 poll-interval = <20000>;
155                         };
156                 };
158                 i2c@6 {
159                         reg = <6>;
160                         #address-cells = <1>;
161                         #size-cells = <0>;
163                         charger@9 {
164                                 compatible = "ti,bq24735";
165                                 reg = <0x9>;
167                                 ti,charge-current = <2000>;
168                                 ti,charge-voltage = <16800>;
170                                 poll-interval = <20000>;
171                         };
172                 };
174                 i2c@7 {
175                         reg = <7>;
176                         #address-cells = <1>;
177                         #size-cells = <0>;
179                         charger@9 {
180                                 compatible = "ti,bq24735";
181                                 reg = <0x9>;
183                                 ti,charge-current = <2000>;
184                                 ti,charge-voltage = <16800>;
186                                 poll-interval = <20000>;
187                         };
188                 };
189         };
190 };
192 &i2c0 {
193         status = "okay";
195         ioexp: ioexp@20 {
196                 #gpio-cells = <2>;
197                 compatible = "semtech,sx1502q";
198                 reg = <0x20>;
200                 gpio-controller;
201                 ngpios = <8>;
203                 pinctrl-names = "default";
204                 pinctrl-0 = <&gpio3_cfg_pins>;
206                 gpio3_cfg_pins: gpio3_cfg {
207                         pins = "gpio3";
208                         bias-pull-up;
209                 };
210         };
212         adc: adc@48 {
213                 compatible = "ti,ads1015";
214                 reg = <0x48>;
215                 #io-channel-cells = <1>;
217                 #address-cells = <1>;
218                 #size-cells = <0>;
220                 channel@4 {
221                         reg = <4>;
222                         ti,gain = <2>;
223                         ti,datarate = <4>;
224                 };
226                 channel@5 {
227                         reg = <5>;
228                         ti,gain = <2>;
229                         ti,datarate = <4>;
230                 };
232                 channel@6 {
233                         reg = <6>;
234                         ti,gain = <1>;
235                         ti,datarate = <4>;
236                 };
238                 channel@7 {
239                         reg = <7>;
240                         ti,gain = <3>;
241                         ti,datarate = <4>;
242                 };
243         };
244 };