MLK-17128-1 dt-bindings: typec: add max_snk_mw property
authorLi Jun <jun.li@nxp.com>
Thu, 14 Dec 2017 16:09:25 +0000 (00:09 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:51:30 +0000 (14:51 -0500)
Add max_snk_mw property for power sink to know the max power.
Because the max mw may be smaller than the max ma multiplied by
max mv:
       max-mw <= max-mv*max-ma

After the power sink decides the PDO from source, it needs
to check the power to see if the provided power of this PDO
can match its requirement, which needs consider max_snk_mw to
know the max current it can have based on selected voltage.

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Documentation/devicetree/bindings/usb/typec.txt

index e71b426..f1339dc 100644 (file)
@@ -28,6 +28,10 @@ Required properties:
                 power is less then it, Capability Mismatch is set, required
                 only for power sink and power dual role with power delivery
                 support.
+- max-snk-mw:   The max power the sink can support in milliwatts, required
+                for power sink and power dual role with power delivery support,
+                power sink needs this property to get the max current based on
+                the selected PDO.
 
 Example: