staging: typec: fusb302: Get max snk mv/ma/mw from device-properties
authorHans de Goede <hdegoede@redhat.com>
Wed, 30 Aug 2017 09:48:07 +0000 (11:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 16:23:12 +0000 (18:23 +0200)
commit097578ec200858cfa2dd905b08ab8d5576a656e6
tree68230104d482671fa071b74cb91a355a3a523670
parent9a8fc4dd36041e017f3ee87a380686c80822b233
staging: typec: fusb302: Get max snk mv/ma/mw from device-properties

This is board specific info so it should come from board config, such
as devicetree.

I've chosen to prefix these with "fcs," treating them as fusb302 driver
specific for now. We may want to revisit this and replace these with
properties which are part of a (to be written) generic type-c controller
devicetree binding.

Since this commit adds new dt-properties it also adds devicetree-bindings
documentation (which so far was absent for the fusb302 driver).

Cc: Rob Herring <robh+dt@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: devicetree@vger.kernel.org
Cc: "Yueyao (Nathan) Zhu" <yueyao@google.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/usb/fcs,fusb302.txt [new file with mode: 0644]
drivers/staging/typec/fusb302/TODO
drivers/staging/typec/fusb302/fusb302.c