21 Dec
2022
21 Dec
'22
3:47 p.m.
On 21/12/22 14:03, Krzysztof Kozlowski wrote:
On 20/12/2022 13:39, Jai Luthra wrote:
Convert bindings for TI's TLV320AIC3x audio codecs to dtschema.
The following properties are still found in some old dts files, but will be ignored by the driver:
- adc-settle-ms
- assigned-clock-paranets, assigned-clock-rates, assigned-clocks
- port
Signed-off-by: Jai Luthra j-luthra@ti.com
Thank you for your patch. There is something to discuss/improve.
+required:
- compatible
- reg
+additionalProperties: false
+examples:
- |
- #include <dt-bindings/gpio/gpio.h>
- i2c {
#address-cells = <1>;
#size-cells = <0>;
tlv320aic3x_i2c: tlv320aic3x@1b {
Node names should be generic. https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetre...
Thanks Krzysztof, will fix in v4.
compatible = "ti,tlv320aic3x";
reg = <0x1b>;
reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
AVDD-supply = <®ulator>;
IOVDD-supply = <®ulator>;
DRVDD-supply = <®ulator>;
DVDD-supply = <®ulator>;
};
- };
- |
- #include <dt-bindings/gpio/gpio.h>
- spi {
#address-cells = <1>;
#size-cells = <0>;
tlv320aic3x_spi: codec@0 {
compatible = "ti,tlv320aic3x";
reg = <0>; /* CS number */
#sound-dai-cells = <0>;
AVDD-supply = <®ulator>;
IOVDD-supply = <®ulator>;
DRVDD-supply = <®ulator>;
DVDD-supply = <®ulator>;
ai3x-ocmv = <0>;
};
- };
+...
Best regards, Krzysztof