mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-24 05:01:03 +02:00
dt-bindings: power: supply: smb347-charger: Document USB VBUS regulator
SMB347 can supply power to USB VBUS, which is required by OTG-cable devices that want to switch USB port into the host mode. Add USB VBUS regulator properties. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
committed by
Sebastian Reichel
parent
80698507e0
commit
3e81bd7dfb
@@ -73,6 +73,26 @@ properties:
|
|||||||
- 1 # SMB3XX_SOFT_TEMP_COMPENSATE_CURRENT Current compensation
|
- 1 # SMB3XX_SOFT_TEMP_COMPENSATE_CURRENT Current compensation
|
||||||
- 2 # SMB3XX_SOFT_TEMP_COMPENSATE_VOLTAGE Voltage compensation
|
- 2 # SMB3XX_SOFT_TEMP_COMPENSATE_VOLTAGE Voltage compensation
|
||||||
|
|
||||||
|
summit,inok-polarity:
|
||||||
|
description: |
|
||||||
|
Polarity of INOK signal indicating presence of external power supply.
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
|
enum:
|
||||||
|
- 0 # SMB3XX_SYSOK_INOK_ACTIVE_LOW
|
||||||
|
- 1 # SMB3XX_SYSOK_INOK_ACTIVE_HIGH
|
||||||
|
|
||||||
|
usb-vbus:
|
||||||
|
$ref: "../../regulator/regulator.yaml#"
|
||||||
|
type: object
|
||||||
|
|
||||||
|
properties:
|
||||||
|
summit,needs-inok-toggle:
|
||||||
|
type: boolean
|
||||||
|
description: INOK signal is fixed and polarity needs to be toggled
|
||||||
|
in order to enable/disable output mode.
|
||||||
|
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
allOf:
|
allOf:
|
||||||
- if:
|
- if:
|
||||||
properties:
|
properties:
|
||||||
@@ -134,6 +154,7 @@ examples:
|
|||||||
reg = <0x7f>;
|
reg = <0x7f>;
|
||||||
|
|
||||||
summit,enable-charge-control = <SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH>;
|
summit,enable-charge-control = <SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH>;
|
||||||
|
summit,inok-polarity = <SMB3XX_SYSOK_INOK_ACTIVE_LOW>;
|
||||||
summit,chip-temperature-threshold-celsius = <110>;
|
summit,chip-temperature-threshold-celsius = <110>;
|
||||||
summit,mains-current-limit-microamp = <2000000>;
|
summit,mains-current-limit-microamp = <2000000>;
|
||||||
summit,usb-current-limit-microamp = <500000>;
|
summit,usb-current-limit-microamp = <500000>;
|
||||||
@@ -141,6 +162,15 @@ examples:
|
|||||||
summit,enable-mains-charging;
|
summit,enable-mains-charging;
|
||||||
|
|
||||||
monitored-battery = <&battery>;
|
monitored-battery = <&battery>;
|
||||||
|
|
||||||
|
usb-vbus {
|
||||||
|
regulator-name = "usb_vbus";
|
||||||
|
regulator-min-microvolt = <5000000>;
|
||||||
|
regulator-max-microvolt = <5000000>;
|
||||||
|
regulator-min-microamp = <750000>;
|
||||||
|
regulator-max-microamp = <750000>;
|
||||||
|
summit,needs-inok-toggle;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -16,4 +16,8 @@
|
|||||||
#define SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW 1
|
#define SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW 1
|
||||||
#define SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH 2
|
#define SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH 2
|
||||||
|
|
||||||
|
/* Polarity of INOK signal */
|
||||||
|
#define SMB3XX_SYSOK_INOK_ACTIVE_LOW 0
|
||||||
|
#define SMB3XX_SYSOK_INOK_ACTIVE_HIGH 1
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user