| Message ID | 20260915092046.931449-2-alban.bedel@lht.dlh.de |
|---|---|
| State | New |
| Headers | show |
| Series | Support ON Semi CAT9532 | expand |
On Tue, Sep 15, 2026 at 11:20:45AM +0200, Alban Bedel wrote: > Add devicetree binding document for CAT9532 LED dimmer as GPIO > controller. > > Signed-off-by: Alban Bedel <alban.bedel@lht.dlh.de> Some very interesting comments from Sashiko here, about whether this should be handled in another subsystem. At the very least, valid commentary from Linus. pw-bot: changes-requested Thanks, Conor. > --- > .../bindings/gpio/onnn,cat9532.yaml | 52 +++++++++++++++++++ > 1 file changed, 52 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gpio/onnn,cat9532.yaml > > diff --git a/Documentation/devicetree/bindings/gpio/onnn,cat9532.yaml b/Documentation/devicetree/bindings/gpio/onnn,cat9532.yaml > new file mode 100644 > index 0000000000000..6f3e3d0f4f29b > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/onnn,cat9532.yaml > @@ -0,0 +1,52 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gpio/onnn,cat9532.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: On Semiconductor CAT9532 LED dimmer as GPIO controller > + > +maintainers: > + - Alban Bedel <alban.bedel@lht.dlh.de> > + > +properties: > + compatible: > + const: onnn,cat9532 > + > + reg: > + maxItems: 1 > + > + gpio-controller: true > + > + "#gpio-cells": > + const: 2 > + > + ngpios: > + minimum: 1 > + maximum: 16 > + > +required: > + - compatible > + - reg > + - gpio-controller > + - "#gpio-cells" > + - ngpios > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + gpio@60 { > + compatible = "onnn,cat9532"; > + reg = <0x60>; > + > + gpio-controller; > + #gpio-cells = <2>; > + > + ngpios = <16>; > + }; > + }; > -- > 2.39.5 >
diff --git a/Documentation/devicetree/bindings/gpio/onnn,cat9532.yaml b/Documentation/devicetree/bindings/gpio/onnn,cat9532.yaml new file mode 100644 index 0000000000000..6f3e3d0f4f29b --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/onnn,cat9532.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/onnn,cat9532.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: On Semiconductor CAT9532 LED dimmer as GPIO controller + +maintainers: + - Alban Bedel <alban.bedel@lht.dlh.de> + +properties: + compatible: + const: onnn,cat9532 + + reg: + maxItems: 1 + + gpio-controller: true + + "#gpio-cells": + const: 2 + + ngpios: + minimum: 1 + maximum: 16 + +required: + - compatible + - reg + - gpio-controller + - "#gpio-cells" + - ngpios + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + gpio@60 { + compatible = "onnn,cat9532"; + reg = <0x60>; + + gpio-controller; + #gpio-cells = <2>; + + ngpios = <16>; + }; + };
Add devicetree binding document for CAT9532 LED dimmer as GPIO controller. Signed-off-by: Alban Bedel <alban.bedel@lht.dlh.de> --- .../bindings/gpio/onnn,cat9532.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/onnn,cat9532.yaml