1*c66ec88fSEmmanuel VadotMotorola CPCAP PMIC battery charger binding 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotRequired properties: 4*c66ec88fSEmmanuel Vadot- compatible: Shall be "motorola,mapphone-cpcap-charger" 5*c66ec88fSEmmanuel Vadot- interrupts: Interrupt specifier for each name in interrupt-names 6*c66ec88fSEmmanuel Vadot- interrupt-names: Should contain the following entries: 7*c66ec88fSEmmanuel Vadot "chrg_det", "rvrs_chrg", "chrg_se1b", "se0conn", 8*c66ec88fSEmmanuel Vadot "rvrs_mode", "chrgcurr2", "chrgcurr1", "vbusvld", 9*c66ec88fSEmmanuel Vadot "battdetb" 10*c66ec88fSEmmanuel Vadot- io-channels: IIO ADC channel specifier for each name in io-channel-names 11*c66ec88fSEmmanuel Vadot- io-channel-names: Should contain the following entries: 12*c66ec88fSEmmanuel Vadot "battdetb", "battp", "vbus", "chg_isense", "batti" 13*c66ec88fSEmmanuel Vadot 14*c66ec88fSEmmanuel VadotOptional properties: 15*c66ec88fSEmmanuel Vadot- mode-gpios: Optionally CPCAP charger can have a companion wireless 16*c66ec88fSEmmanuel Vadot charge controller that is controlled with two GPIOs 17*c66ec88fSEmmanuel Vadot that are active low. 18*c66ec88fSEmmanuel Vadot 19*c66ec88fSEmmanuel VadotExample: 20*c66ec88fSEmmanuel Vadot 21*c66ec88fSEmmanuel Vadotcpcap_charger: charger { 22*c66ec88fSEmmanuel Vadot compatible = "motorola,mapphone-cpcap-charger"; 23*c66ec88fSEmmanuel Vadot interrupts-extended = < 24*c66ec88fSEmmanuel Vadot &cpcap 13 0 &cpcap 12 0 &cpcap 29 0 &cpcap 28 0 25*c66ec88fSEmmanuel Vadot &cpcap 22 0 &cpcap 21 0 &cpcap 20 0 &cpcap 19 0 26*c66ec88fSEmmanuel Vadot &cpcap 54 0 27*c66ec88fSEmmanuel Vadot >; 28*c66ec88fSEmmanuel Vadot interrupt-names = 29*c66ec88fSEmmanuel Vadot "chrg_det", "rvrs_chrg", "chrg_se1b", "se0conn", 30*c66ec88fSEmmanuel Vadot "rvrs_mode", "chrgcurr2", "chrgcurr1", "vbusvld", 31*c66ec88fSEmmanuel Vadot "battdetb"; 32*c66ec88fSEmmanuel Vadot mode-gpios = <&gpio3 29 GPIO_ACTIVE_LOW 33*c66ec88fSEmmanuel Vadot &gpio3 23 GPIO_ACTIVE_LOW>; 34*c66ec88fSEmmanuel Vadot io-channels = <&cpcap_adc 0 &cpcap_adc 1 35*c66ec88fSEmmanuel Vadot &cpcap_adc 2 &cpcap_adc 5 36*c66ec88fSEmmanuel Vadot &cpcap_adc 6>; 37*c66ec88fSEmmanuel Vadot io-channel-names = "battdetb", "battp", 38*c66ec88fSEmmanuel Vadot "vbus", "chg_isense", 39*c66ec88fSEmmanuel Vadot "batti"; 40*c66ec88fSEmmanuel Vadot}; 41