Home
last modified time | relevance | path

Searched refs:sc8551 (Results 1 – 5 of 5) sorted by relevance

/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/
H A Dsc8551_charger.txt1 Binding for sc8551 battery charger
4 - compatible: "sc,sc8551-standalone" for sc8551 Charger Power Supply
16 - sc,sc8551,bat-ovp-disable: enable the battery over voltage protection
17 - sc,sc8551,bat-ocp-disable: enable the battery over current protection
18 - sc,sc8551,bus-ocp-disable: enable the bus over voltage protection
19 - sc,sc8551,bat-ovp-threshold: Configures the battery over voltage protection voltage (in uV).
20 - sc,sc8551,bat-ocp-threshold: Configures the battery over current protection voltage (in uA).
21 - sc,sc8551,bus-ovp-threshold: Configures the bus over voltage protection voltage (in uV).
22 - sc,sc8551,bus-ocp-threshold: Configures the bus over current protection voltage (in uA).
23 - sc,sc8551,ac-ovp-threshold: Configures the AC voltage protection voltage (in uV).
[all …]
H A Drockchip-charger-manager.txt23 cm-charge-pump = "sc8551-standalone";
/OK3568_Linux_fs/u-boot/drivers/power/charge/
H A Dsc8551_charger.c26 struct sc8551 { struct
63 static int sc8551_read(struct sc8551 *charger, uint reg, u8 *buffer) in sc8551_read()
78 static int sc8551_write(struct sc8551 *charger, uint reg, u16 val) in sc8551_write()
89 static int sc8551_update_bits(struct sc8551 *charger, in sc8551_update_bits()
121 static int sc8551_get_usb_state(struct sc8551 *sc8551) in sc8551_get_usb_state() argument
144 static bool sc8551_check_charge(struct sc8551 *sc8551) in sc8551_check_charge() argument
146 if (sc8551_get_usb_state(sc8551) != CHARGER_TYPE_NO) in sc8551_check_charge()
154 struct sc8551 *sc8551 = dev_get_priv(dev); in sc8551_update_get_chrg_online() local
156 return sc8551_check_charge(sc8551); in sc8551_update_get_chrg_online()
164 static int sc8551_set_acovp_th(struct sc8551 *sc, int threshold) in sc8551_set_acovp_th()
[all …]
H A DKconfig17 This adds support for sc8551 charger support.
/OK3568_Linux_fs/kernel/drivers/power/supply/
H A Dsc8551_charger.c725 struct sc8551 { struct
777 static int __sc8551_read_byte(struct sc8551 *sc, u8 reg, u8 *data) in __sc8551_read_byte() argument
792 static int __sc8551_write_byte(struct sc8551 *sc, int reg, u8 val) in __sc8551_write_byte()
805 static int sc8551_read_byte(struct sc8551 *sc, u8 reg, u8 *data) in sc8551_read_byte()
816 static int sc8551_write_byte(struct sc8551 *sc, u8 reg, u8 data) in sc8551_write_byte()
827 static int sc8551_update_bits(struct sc8551 *sc, in sc8551_update_bits()
854 static int sc8551_enable_charge(struct sc8551 *sc, bool enable) in sc8551_enable_charge()
874 static int sc8551_check_charge_enabled(struct sc8551 *sc, bool *enabled) in sc8551_check_charge_enabled()
886 static int sc8551_enable_wdt(struct sc8551 *sc, bool enable) in sc8551_enable_wdt()
905 static int sc8551_set_wdt(struct sc8551 *sc, int ms) in sc8551_set_wdt()
[all …]