the documentation is updated to describe how to convert actual values to
the provided parameters
---
diff -uprN -X linux-sunxi-original/Documentation/dontdiff
linux-sunxi-original/Documentation/devicetree/bindings/power_supply/axp20x_usb_power.txt
linux-sunxi/Documentation/devicetree/bindings/power_supply/axp20x_usb_power.txt
---
linux-sunxi-original/Documentation/devicetree/bindings/power_supply/axp20x_usb_power.txt
2016-05-09 16:48:46.000000000 +0200
+++
linux-sunxi/Documentation/devicetree/bindings/power_supply/axp20x_usb_power.txt
2016-05-11 13:05:58.995873267 +0200
@@ -5,6 +5,26 @@ Required Properties:
This node is a subnode of the axp20x PMIC.
+The following 3 parameters are configurable from the device-tree:
+ - vhold-enable
+ - bit 6 of register REG 30H: VBUS-IPSOUT Power Path
Management
+ - available values are:
+ - 0x00 : VBUS VHOLD voltage limiting
control disabled
+ - 0x01 : VBUS VHOLD voltage limiting
control enabled
+ - vhold-set
+ - bits <5-3> of register REG 30H: VBUS-IPSOUT Power
Path Management
+ - available values are from 0x00 to 0x07
+ - VHOLD = [4000000 + ( vhold-set & 0x07 ) * 100000]
in uV
+
+ - ibus-limit
+ - bits <1-0> of register REG 30H: VBUS-IPSOUT Power
Path Management
+ - available values are :
+ - 0x00 : 900000uA
+ - 0x01 : 500000uA
+ - 0x02 : 100000uA
+ - 0x03 : unlimited
+
+
Example:
axp209: pmic@34 {
@@ -30,5 +50,8 @@ axp209: pmic@34 {
usb-power-supply: usb-power-supply {
compatible = "x-powers,axp202-usb-power-supply";
+ vhold-enable = <0x01>;
+ vhold-set = <0x04>;
+ ibus-limit = <0x01>;
};
};
---
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.