1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0+ 2*724ba675SRob Herring/* 3*724ba675SRob Herring * at91-natte.dts - Device Tree include file for the Natte board 4*724ba675SRob Herring * 5*724ba675SRob Herring * Copyright (C) 2017 Axentia Technologies AB 6*724ba675SRob Herring * 7*724ba675SRob Herring * Author: Peter Rosin <peda@axentia.se> 8*724ba675SRob Herring */ 9*724ba675SRob Herring 10*724ba675SRob Herring/ { 11*724ba675SRob Herring mux: mux-controller { 12*724ba675SRob Herring compatible = "gpio-mux"; 13*724ba675SRob Herring #mux-control-cells = <0>; 14*724ba675SRob Herring 15*724ba675SRob Herring mux-gpios = <&ioexp 0 GPIO_ACTIVE_HIGH>, 16*724ba675SRob Herring <&ioexp 1 GPIO_ACTIVE_HIGH>, 17*724ba675SRob Herring <&ioexp 2 GPIO_ACTIVE_HIGH>; 18*724ba675SRob Herring }; 19*724ba675SRob Herring 20*724ba675SRob Herring batntc-mux { 21*724ba675SRob Herring compatible = "io-channel-mux"; 22*724ba675SRob Herring io-channels = <&adc 5>; 23*724ba675SRob Herring io-channel-names = "parent"; 24*724ba675SRob Herring mux-controls = <&mux>; 25*724ba675SRob Herring 26*724ba675SRob Herring channels = 27*724ba675SRob Herring "batntc0", "batntc1", "batntc2", "batntc3", 28*724ba675SRob Herring "batntc4", "batntc5", "batntc6", "batntc7"; 29*724ba675SRob Herring }; 30*724ba675SRob Herring 31*724ba675SRob Herring batv-mux { 32*724ba675SRob Herring compatible = "io-channel-mux"; 33*724ba675SRob Herring io-channels = <&adc 6>; 34*724ba675SRob Herring io-channel-names = "parent"; 35*724ba675SRob Herring mux-controls = <&mux>; 36*724ba675SRob Herring 37*724ba675SRob Herring channels = 38*724ba675SRob Herring "batv0", "batv1", "batv2", "batv3", 39*724ba675SRob Herring "batv4", "batv5", "batv6", "batv7"; 40*724ba675SRob Herring }; 41*724ba675SRob Herring 42*724ba675SRob Herring iout-mux { 43*724ba675SRob Herring compatible = "io-channel-mux"; 44*724ba675SRob Herring io-channels = <&adc 7>; 45*724ba675SRob Herring io-channel-names = "parent"; 46*724ba675SRob Herring mux-controls = <&mux>; 47*724ba675SRob Herring 48*724ba675SRob Herring channels = 49*724ba675SRob Herring "iout0", "iout1", "iout2", "iout3", 50*724ba675SRob Herring "iout4", "iout5", "iout6", "iout7"; 51*724ba675SRob Herring }; 52*724ba675SRob Herring 53*724ba675SRob Herring i2c-mux { 54*724ba675SRob Herring compatible = "i2c-mux"; 55*724ba675SRob Herring mux-locked; 56*724ba675SRob Herring i2c-parent = <&i2c0>; 57*724ba675SRob Herring mux-controls = <&mux>; 58*724ba675SRob Herring 59*724ba675SRob Herring #address-cells = <1>; 60*724ba675SRob Herring #size-cells = <0>; 61*724ba675SRob Herring 62*724ba675SRob Herring i2c@0 { 63*724ba675SRob Herring reg = <0>; 64*724ba675SRob Herring #address-cells = <1>; 65*724ba675SRob Herring #size-cells = <0>; 66*724ba675SRob Herring 67*724ba675SRob Herring charger@9 { 68*724ba675SRob Herring compatible = "ti,bq24735"; 69*724ba675SRob Herring reg = <0x9>; 70*724ba675SRob Herring 71*724ba675SRob Herring ti,charge-current = <2000>; 72*724ba675SRob Herring ti,charge-voltage = <16800>; 73*724ba675SRob Herring 74*724ba675SRob Herring poll-interval = <20000>; 75*724ba675SRob Herring }; 76*724ba675SRob Herring }; 77*724ba675SRob Herring 78*724ba675SRob Herring i2c@1 { 79*724ba675SRob Herring reg = <1>; 80*724ba675SRob Herring #address-cells = <1>; 81*724ba675SRob Herring #size-cells = <0>; 82*724ba675SRob Herring 83*724ba675SRob Herring charger@9 { 84*724ba675SRob Herring compatible = "ti,bq24735"; 85*724ba675SRob Herring reg = <0x9>; 86*724ba675SRob Herring 87*724ba675SRob Herring ti,charge-current = <2000>; 88*724ba675SRob Herring ti,charge-voltage = <16800>; 89*724ba675SRob Herring 90*724ba675SRob Herring poll-interval = <20000>; 91*724ba675SRob Herring }; 92*724ba675SRob Herring }; 93*724ba675SRob Herring 94*724ba675SRob Herring i2c@2 { 95*724ba675SRob Herring reg = <2>; 96*724ba675SRob Herring #address-cells = <1>; 97*724ba675SRob Herring #size-cells = <0>; 98*724ba675SRob Herring 99*724ba675SRob Herring charger@9 { 100*724ba675SRob Herring compatible = "ti,bq24735"; 101*724ba675SRob Herring reg = <0x9>; 102*724ba675SRob Herring 103*724ba675SRob Herring ti,charge-current = <2000>; 104*724ba675SRob Herring ti,charge-voltage = <16800>; 105*724ba675SRob Herring 106*724ba675SRob Herring poll-interval = <20000>; 107*724ba675SRob Herring }; 108*724ba675SRob Herring }; 109*724ba675SRob Herring 110*724ba675SRob Herring i2c@3 { 111*724ba675SRob Herring reg = <3>; 112*724ba675SRob Herring #address-cells = <1>; 113*724ba675SRob Herring #size-cells = <0>; 114*724ba675SRob Herring 115*724ba675SRob Herring charger@9 { 116*724ba675SRob Herring compatible = "ti,bq24735"; 117*724ba675SRob Herring reg = <0x9>; 118*724ba675SRob Herring 119*724ba675SRob Herring ti,charge-current = <2000>; 120*724ba675SRob Herring ti,charge-voltage = <16800>; 121*724ba675SRob Herring 122*724ba675SRob Herring poll-interval = <20000>; 123*724ba675SRob Herring }; 124*724ba675SRob Herring }; 125*724ba675SRob Herring 126*724ba675SRob Herring i2c@4 { 127*724ba675SRob Herring reg = <4>; 128*724ba675SRob Herring #address-cells = <1>; 129*724ba675SRob Herring #size-cells = <0>; 130*724ba675SRob Herring 131*724ba675SRob Herring charger@9 { 132*724ba675SRob Herring compatible = "ti,bq24735"; 133*724ba675SRob Herring reg = <0x9>; 134*724ba675SRob Herring 135*724ba675SRob Herring ti,charge-current = <2000>; 136*724ba675SRob Herring ti,charge-voltage = <16800>; 137*724ba675SRob Herring 138*724ba675SRob Herring poll-interval = <20000>; 139*724ba675SRob Herring }; 140*724ba675SRob Herring }; 141*724ba675SRob Herring 142*724ba675SRob Herring i2c@5 { 143*724ba675SRob Herring reg = <5>; 144*724ba675SRob Herring #address-cells = <1>; 145*724ba675SRob Herring #size-cells = <0>; 146*724ba675SRob Herring 147*724ba675SRob Herring charger@9 { 148*724ba675SRob Herring compatible = "ti,bq24735"; 149*724ba675SRob Herring reg = <0x9>; 150*724ba675SRob Herring 151*724ba675SRob Herring ti,charge-current = <2000>; 152*724ba675SRob Herring ti,charge-voltage = <16800>; 153*724ba675SRob Herring 154*724ba675SRob Herring poll-interval = <20000>; 155*724ba675SRob Herring }; 156*724ba675SRob Herring }; 157*724ba675SRob Herring 158*724ba675SRob Herring i2c@6 { 159*724ba675SRob Herring reg = <6>; 160*724ba675SRob Herring #address-cells = <1>; 161*724ba675SRob Herring #size-cells = <0>; 162*724ba675SRob Herring 163*724ba675SRob Herring charger@9 { 164*724ba675SRob Herring compatible = "ti,bq24735"; 165*724ba675SRob Herring reg = <0x9>; 166*724ba675SRob Herring 167*724ba675SRob Herring ti,charge-current = <2000>; 168*724ba675SRob Herring ti,charge-voltage = <16800>; 169*724ba675SRob Herring 170*724ba675SRob Herring poll-interval = <20000>; 171*724ba675SRob Herring }; 172*724ba675SRob Herring }; 173*724ba675SRob Herring 174*724ba675SRob Herring i2c@7 { 175*724ba675SRob Herring reg = <7>; 176*724ba675SRob Herring #address-cells = <1>; 177*724ba675SRob Herring #size-cells = <0>; 178*724ba675SRob Herring 179*724ba675SRob Herring charger@9 { 180*724ba675SRob Herring compatible = "ti,bq24735"; 181*724ba675SRob Herring reg = <0x9>; 182*724ba675SRob Herring 183*724ba675SRob Herring ti,charge-current = <2000>; 184*724ba675SRob Herring ti,charge-voltage = <16800>; 185*724ba675SRob Herring 186*724ba675SRob Herring poll-interval = <20000>; 187*724ba675SRob Herring }; 188*724ba675SRob Herring }; 189*724ba675SRob Herring }; 190*724ba675SRob Herring}; 191*724ba675SRob Herring 192*724ba675SRob Herring&i2c0 { 193*724ba675SRob Herring status = "okay"; 194*724ba675SRob Herring 195*724ba675SRob Herring ioexp: ioexp@20 { 196*724ba675SRob Herring #gpio-cells = <2>; 197*724ba675SRob Herring compatible = "semtech,sx1502q"; 198*724ba675SRob Herring reg = <0x20>; 199*724ba675SRob Herring 200*724ba675SRob Herring gpio-controller; 201*724ba675SRob Herring ngpios = <8>; 202*724ba675SRob Herring 203*724ba675SRob Herring pinctrl-names = "default"; 204*724ba675SRob Herring pinctrl-0 = <&gpio3_cfg_pins>; 205*724ba675SRob Herring 206*724ba675SRob Herring gpio3_cfg_pins: gpio3_cfg { 207*724ba675SRob Herring pins = "gpio3"; 208*724ba675SRob Herring bias-pull-up; 209*724ba675SRob Herring }; 210*724ba675SRob Herring }; 211*724ba675SRob Herring 212*724ba675SRob Herring adc: adc@48 { 213*724ba675SRob Herring compatible = "ti,ads1015"; 214*724ba675SRob Herring reg = <0x48>; 215*724ba675SRob Herring #io-channel-cells = <1>; 216*724ba675SRob Herring 217*724ba675SRob Herring #address-cells = <1>; 218*724ba675SRob Herring #size-cells = <0>; 219*724ba675SRob Herring 220*724ba675SRob Herring channel@4 { 221*724ba675SRob Herring reg = <4>; 222*724ba675SRob Herring ti,gain = <2>; 223*724ba675SRob Herring ti,datarate = <4>; 224*724ba675SRob Herring }; 225*724ba675SRob Herring 226*724ba675SRob Herring channel@5 { 227*724ba675SRob Herring reg = <5>; 228*724ba675SRob Herring ti,gain = <2>; 229*724ba675SRob Herring ti,datarate = <4>; 230*724ba675SRob Herring }; 231*724ba675SRob Herring 232*724ba675SRob Herring channel@6 { 233*724ba675SRob Herring reg = <6>; 234*724ba675SRob Herring ti,gain = <1>; 235*724ba675SRob Herring ti,datarate = <4>; 236*724ba675SRob Herring }; 237*724ba675SRob Herring 238*724ba675SRob Herring channel@7 { 239*724ba675SRob Herring reg = <7>; 240*724ba675SRob Herring ti,gain = <3>; 241*724ba675SRob Herring ti,datarate = <4>; 242*724ba675SRob Herring }; 243*724ba675SRob Herring }; 244*724ba675SRob Herring}; 245