lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 12 Sep 2013 17:41:00 +0100 From: Mark Rutland <mark.rutland@....com> To: Guenter Roeck <linux@...ck-us.net> Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, "devicetree@...r.kernel.org" <devicetree@...r.kernel.org>, "rob.herring@...xeda.com" <rob.herring@...xeda.com>, Pawel Moll <Pawel.Moll@....com>, Stephen Warren <swarren@...dotorg.org>, Ian Campbell <ian.campbell@...rix.com>, MyungJoo Ham <myungjoo.ham@...sung.com>, Chanwoo Choi <cw00.choi@...sung.com>, "grant.likely@...aro.org" <grant.likely@...aro.org> Subject: Re: [RFC PATCH 5/6] extcon-gpio: Describe devicetree bindings On Fri, Aug 30, 2013 at 05:29:37AM +0100, Guenter Roeck wrote: > Signed-off-by: Guenter Roeck <linux@...ck-us.net> > --- > .../devicetree/bindings/extcon/extcon-gpio | 23 ++++++++++++++++++++ > 1 file changed, 23 insertions(+) > create mode 100644 Documentation/devicetree/bindings/extcon/extcon-gpio > > diff --git a/Documentation/devicetree/bindings/extcon/extcon-gpio b/Documentation/devicetree/bindings/extcon/extcon-gpio > new file mode 100644 > index 0000000..091ddc6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/extcon/extcon-gpio > @@ -0,0 +1,23 @@ > +Device-Tree bindings for extcon/extcon-gpio driver Bindings shouldn't refer to Linux-specifics like particular drivers. What class of hardware are you actually trying to describe? > + > +Required properties: > + - compatible = "gpio-connector"; > + - presence-detect-gpios - presence detect gpio pin > + > +Optional properties: > + - debounce-interval - debounce interval in milli-seconds > + - state-on - on (connected) state > + - state-off - off (disconnected) state > + Depending on the type of connector or cable, states may > + for example be reported as "connected"/"disconnected" > + or "inserted"/"removed". I don't understand what the state-* properties describe. Do these provide semantic information to drivers? What is the full set of valid values? > + > +Example node: > + > + some-connector { > + compatible = "gpio-connector"; > + presence-detect-gpios = <&gpio1 7 1>; > + debounce-interval = <1>; > + state-on = "connected"; > + state-on = "disconnected"; > + }; I'm not sure how much value this adds to bindings over describing the gpios directly. This seems to add a layer of indirection because of Linux internals. Thanks, Mark. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists