Message ID | 20240709104117.33431-2-ivprusov@salutedevices.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Add ES7243E ADC driver | expand |
On 09/07/2024 12:41, Igor Prusov wrote: > Add dt-bindings for Everest Semi ES7243E ADC. > > Signed-off-by: Igor Prusov <ivprusov@salutedevices.com> > --- > +required: > + - compatible > + - reg > + - "#sound-dai-cells" > + > +unevaluatedProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + es7243e: es7243e@14 { Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation usually audio-codec Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/sound/everest,es7243e.yaml b/Documentation/devicetree/bindings/sound/everest,es7243e.yaml new file mode 100644 index 000000000000..16452c75e0b1 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/everest,es7243e.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/everest,es7243e.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Everest ES7243E audio ADC + +maintainers: + - Igor Prusov <ivprusov@salutedevices.com> + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: everest,es7243e + + reg: + maxItems: 1 + + "#sound-dai-cells": + const: 0 + +required: + - compatible + - reg + - "#sound-dai-cells" + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + es7243e: es7243e@14 { + compatible = "everest,es7243e"; + reg = <0x14>; + #sound-dai-cells = <0>; + }; + };
Add dt-bindings for Everest Semi ES7243E ADC. Signed-off-by: Igor Prusov <ivprusov@salutedevices.com> --- .../bindings/sound/everest,es7243e.yaml | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/everest,es7243e.yaml