Loading Documentation/devicetree/bindings/power/smb350.txt +7 −5 Original line number Diff line number Diff line Loading @@ -8,9 +8,11 @@ The i2c slave 7-bit address is programmable at manufacture. Node required properties: - compatible: Must be "summit,smb350-charger". - reg: The device 7-bit I2C address. - summit,stat-gpio gpio which smb350 STAT pin connects to. - interrupt-parent phandle to the interrupt parent device - interrupts the interrupt number on which the STAT interrupt output is connected. - summit,chg-en-n-gpio gpio which control charging enable. - summit,chg-susp-n-gpio gpio which control device shutdown - summit,chg-shdn-n-gpio gpio which control device shutdown - summit,chg-current-ma charging current in milliamps. - summit,term-current-ma charging termination current in milliamps. valid values are 200/300/400/500/600/700. Loading @@ -33,11 +35,11 @@ Example: smb350-charger@2b { compatible = "summit,smb350-charger"; reg = <0x2b>; /* 0x56/0x57 */ summit,stat-gpio = <&pm8941_gpios 30 0x00>; interrupt-parent = <&spmi_bus>; interrupts = <0x0 0xdd 0x0>; summit,chg-en-n-gpio = <&pm8941_gpios 10 0x00>; summit,chg-susp-n-gpio = <&pm8941_gpios 13 0x00>; summit,chg-shdn-n-gpio = <&pm8941_gpios 13 0x00>; summit,chg-current-ma = <1600>; summit,term-current-ma = <200>; }; }; arch/arm/boot/dts/qcom/msm8974-liquid.dtsi +3 −2 Original line number Diff line number Diff line Loading @@ -46,9 +46,10 @@ charger@2b { compatible = "summit,smb350-charger"; reg = <0x2b>; /* 0x56/0x57 */ summit,stat-gpio = <&pm8941_gpios 30 0x00>; interrupt-parent = <&spmi_bus>; interrupts = <0x0 0xdd 0x0>; /* PM8941 GPIO 30 */ summit,chg-en-n-gpio = <&pm8941_gpios 10 0x00>; summit,chg-susp-n-gpio = <&pm8941_gpios 13 0x00>; summit,chg-shdn-n-gpio = <&pm8941_gpios 13 0x00>; summit,chg-current-ma = <1600>; summit,term-current-ma = <300>; }; Loading drivers/power/smb350_charger.c +380 −288 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
Documentation/devicetree/bindings/power/smb350.txt +7 −5 Original line number Diff line number Diff line Loading @@ -8,9 +8,11 @@ The i2c slave 7-bit address is programmable at manufacture. Node required properties: - compatible: Must be "summit,smb350-charger". - reg: The device 7-bit I2C address. - summit,stat-gpio gpio which smb350 STAT pin connects to. - interrupt-parent phandle to the interrupt parent device - interrupts the interrupt number on which the STAT interrupt output is connected. - summit,chg-en-n-gpio gpio which control charging enable. - summit,chg-susp-n-gpio gpio which control device shutdown - summit,chg-shdn-n-gpio gpio which control device shutdown - summit,chg-current-ma charging current in milliamps. - summit,term-current-ma charging termination current in milliamps. valid values are 200/300/400/500/600/700. Loading @@ -33,11 +35,11 @@ Example: smb350-charger@2b { compatible = "summit,smb350-charger"; reg = <0x2b>; /* 0x56/0x57 */ summit,stat-gpio = <&pm8941_gpios 30 0x00>; interrupt-parent = <&spmi_bus>; interrupts = <0x0 0xdd 0x0>; summit,chg-en-n-gpio = <&pm8941_gpios 10 0x00>; summit,chg-susp-n-gpio = <&pm8941_gpios 13 0x00>; summit,chg-shdn-n-gpio = <&pm8941_gpios 13 0x00>; summit,chg-current-ma = <1600>; summit,term-current-ma = <200>; }; };
arch/arm/boot/dts/qcom/msm8974-liquid.dtsi +3 −2 Original line number Diff line number Diff line Loading @@ -46,9 +46,10 @@ charger@2b { compatible = "summit,smb350-charger"; reg = <0x2b>; /* 0x56/0x57 */ summit,stat-gpio = <&pm8941_gpios 30 0x00>; interrupt-parent = <&spmi_bus>; interrupts = <0x0 0xdd 0x0>; /* PM8941 GPIO 30 */ summit,chg-en-n-gpio = <&pm8941_gpios 10 0x00>; summit,chg-susp-n-gpio = <&pm8941_gpios 13 0x00>; summit,chg-shdn-n-gpio = <&pm8941_gpios 13 0x00>; summit,chg-current-ma = <1600>; summit,term-current-ma = <300>; }; Loading
drivers/power/smb350_charger.c +380 −288 File changed.Preview size limit exceeded, changes collapsed. Show changes