On Thu, Mar 10, 2016 at 05:23:55PM +0530, Laxman Dewangan wrote:
Then what happens when someone wants to selectively disable gpio hogs?On this case, we have already property "line-name" and passed the name
of the gpio via this property.
The property names is "line-name" which is good for one string. We can
support other property "line-names" with multiple string per GPIO index.
line-names = "wlan-reset", "wlan-enable";
status = "okay", "disabled", "okay";
While I often push things to fewer nodes and more compact descriptions,
I don't think that is the right direction in this case.
label is standard. labels you just made up.There is currently a discussion about the future bindings for subnodes in GPIOSecond one is this patch only. Is it by intention?
controller nodes. Please have a look at these two mail threads:
"Device tree binding documentation for gpio-switch"
"gpio: of: Add support to have multiple gpios in gpio-hog"
The binding details about the gpio-switch and names are given by property
"lable". I think property "label" is standard way of going forward i.e. I
post similar patch for gpio-keys device name from DT after got review
comment.
So here, we can have the gpio names under property "label" or "labels".
Or am I missing anything?The point is the more one off changes I see that are all inter-related,
the less willing I am to accept any that don't consider all the cases.
The inter-relationship here is how do we describe gpio lines that don't
otherwise have a connection to another node and how to deal with them if
that changes.