extcon: gpio-states: Add support for provide cable state without gpios
Add support to provide cable connection states via extcon
framework even if there is no gpios property is provided.
On this case, it will read the initial cable state property
from DT and set the cable state. The cable state can be change
by extcon sysfs.
This helps in case where dynamic detection of cable is not
available and user still want to use multiple type of
cable on port. On this case, user can connect cable and
then cable state via sysfs.
bug
1671524
Change-Id: I79a2ca117d07c432440ed2f328a8a61919e22218
Reviewed-on: http://git-master/r/
1008915
(cherry picked from commit
7b192eb4849cf1303b446188e91994ccc900c6c5)
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/
1011844
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>