18c2ecf20Sopenharmony_ciBinding for Nokia N900 battery 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThe Nokia N900 battery status can be read via the TWL4030's A/D converter. 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciRequired properties: 68c2ecf20Sopenharmony_ci- compatible: Should contain one of the following: 78c2ecf20Sopenharmony_ci * "nokia,n900-battery" 88c2ecf20Sopenharmony_ci- io-channels: Should contain IIO channel specifiers 98c2ecf20Sopenharmony_ci for each element in io-channel-names. 108c2ecf20Sopenharmony_ci- io-channel-names: Should contain the following values: 118c2ecf20Sopenharmony_ci * "temp" - The ADC channel for temperature reading 128c2ecf20Sopenharmony_ci * "bsi" - The ADC channel for battery size identification 138c2ecf20Sopenharmony_ci * "vbat" - The ADC channel to measure the battery voltage 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciExample from Nokia N900: 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_cibattery: n900-battery { 188c2ecf20Sopenharmony_ci compatible = "nokia,n900-battery"; 198c2ecf20Sopenharmony_ci io-channels = <&twl4030_madc 0>, 208c2ecf20Sopenharmony_ci <&twl4030_madc 4>, 218c2ecf20Sopenharmony_ci <&twl4030_madc 12>; 228c2ecf20Sopenharmony_ci io-channel-names = "temp", 238c2ecf20Sopenharmony_ci "bsi", 248c2ecf20Sopenharmony_ci "vbat"; 258c2ecf20Sopenharmony_ci}; 26