Message ID | 20250207021923.2912373-2-ben717@andestech.com |
---|---|
State | New |
Headers | show |
Series | i2c: add I2C driver for Andes atciic100 | expand |
On Fri, Feb 07, 2025 at 10:19:22AM +0800, Ben Zong-You Xie wrote: > Document devicetree bindings for Andes I2C controller. Explain what is the hardware... Here is Andes I2C > > Signed-off-by: Ben Zong-You Xie <ben717@andestech.com> > --- > .../bindings/i2c/andestech,i2c-atciic100.yaml | 40 +++++++++++++++++++ > MAINTAINERS | 5 +++ > 2 files changed, 45 insertions(+) > create mode 100644 Documentation/devicetree/bindings/i2c/andestech,i2c-atciic100.yaml > > diff --git a/Documentation/devicetree/bindings/i2c/andestech,i2c-atciic100.yaml b/Documentation/devicetree/bindings/i2c/andestech,i2c-atciic100.yaml > new file mode 100644 > index 000000000000..cf96a9186176 > --- /dev/null > +++ b/Documentation/devicetree/bindings/i2c/andestech,i2c-atciic100.yaml > @@ -0,0 +1,40 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pwm/andestech,atciic100.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Andes I2C Controller Here as well > + > +maintainers: > + - Ben Zong-You Xie <ben717@andestech.com> > + > +allOf: > + - $ref: /schemas/i2c/i2c-controller.yaml# > + > +properties: > + compatible: > + const: andestech,atciic100 But here atciic100. This is all confusing. What is the SoC? What is the name of this device? Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/i2c/andestech,i2c-atciic100.yaml b/Documentation/devicetree/bindings/i2c/andestech,i2c-atciic100.yaml new file mode 100644 index 000000000000..cf96a9186176 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/andestech,i2c-atciic100.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/andestech,atciic100.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Andes I2C Controller + +maintainers: + - Ben Zong-You Xie <ben717@andestech.com> + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + +properties: + compatible: + const: andestech,atciic100 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + + i2c@f0a00000 { + compatible = "andestech,atciic100"; + reg = <0xf0a00000 0x1000>; + interrupts = <6 IRQ_TYPE_LEVEL_HIGH>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 896a307fa065..544251a03c7d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1635,6 +1635,11 @@ S: Supported F: drivers/clk/analogbits/* F: include/linux/clk/analogbits* +ANDES TECHNOLOGY I2C DRIVER +M: Ben Zong-You Xie <ben717@andestech.com> +S: Supported +F: Documentation/devicetree/bindings/i2c/andestech,atciic100.yaml + ANDROID DRIVERS M: Greg Kroah-Hartman <gregkh@linuxfoundation.org> M: Arve Hjønnevåg <arve@android.com>
Document devicetree bindings for Andes I2C controller. Signed-off-by: Ben Zong-You Xie <ben717@andestech.com> --- .../bindings/i2c/andestech,i2c-atciic100.yaml | 40 +++++++++++++++++++ MAINTAINERS | 5 +++ 2 files changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/andestech,i2c-atciic100.yaml