Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: dt-bindings: Convert tpa6130a2.txt to yaml

Convert binding doc tpa6130a2.txt to yaml format.
Additional change:
- add ref to dai-common.yaml
- add i2c node in example

Fix below warning:
arch/arm64/boot/dts/freescale/imx8mq-zii-ultra-rmb3.dtb: /soc@0/bus@30800000/i2c@30a20000/amp@60:
failed to match any schema with compatible: ['ti,tpa6130a2']

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20240820184604.499017-1-Frank.Li@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Frank Li and committed by
Mark Brown
aaf55d12 1004f34d

+56 -28
+55
Documentation/devicetree/bindings/sound/ti,tpa6130a2.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/sound/ti,tpa6130a2.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Texas Instruments - tpa6130a2 Codec module 8 + 9 + maintainers: 10 + - Sebastian Reichel <sre@kernel.org> 11 + 12 + description: 13 + Stereo, analog input headphone amplifier 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - ti,tpa6130a2 19 + - ti,tpa6140a2 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + Vdd-supply: 25 + description: power supply regulator 26 + 27 + power-gpio: 28 + description: gpio pin to power the device 29 + 30 + required: 31 + - compatible 32 + - reg 33 + - Vdd-supply 34 + 35 + allOf: 36 + - $ref: dai-common.yaml# 37 + 38 + unevaluatedProperties: false 39 + 40 + examples: 41 + - | 42 + #include <dt-bindings/gpio/gpio.h> 43 + 44 + i2c { 45 + #address-cells = <1>; 46 + #size-cells = <0>; 47 + 48 + amplifier@60 { 49 + compatible = "ti,tpa6130a2"; 50 + reg = <0x60>; 51 + Vdd-supply = <&vmmc2>; 52 + power-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>; 53 + }; 54 + }; 55 +
-27
Documentation/devicetree/bindings/sound/tpa6130a2.txt
··· 1 - Texas Instruments - tpa6130a2 Codec module 2 - 3 - The tpa6130a2 serial control bus communicates through I2C protocols 4 - 5 - Required properties: 6 - 7 - - compatible - "string" - One of: 8 - "ti,tpa6130a2" - TPA6130A2 9 - "ti,tpa6140a2" - TPA6140A2 10 - 11 - 12 - - reg - <int> - I2C slave address 13 - 14 - - Vdd-supply - <phandle> - power supply regulator 15 - 16 - Optional properties: 17 - 18 - - power-gpio - gpio pin to power the device 19 - 20 - Example: 21 - 22 - tpa6130a2: tpa6130a2@60 { 23 - compatible = "ti,tpa6130a2"; 24 - reg = <0x60>; 25 - Vdd-supply = <&vmmc2>; 26 - power-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>; 27 - };
+1 -1
MAINTAINERS
··· 22579 22579 F: Documentation/devicetree/bindings/sound/ti,tas2562.yaml 22580 22580 F: Documentation/devicetree/bindings/sound/ti,tas2770.yaml 22581 22581 F: Documentation/devicetree/bindings/sound/ti,tas27xx.yaml 22582 + F: Documentation/devicetree/bindings/sound/ti,tpa6130a2.yaml 22582 22583 F: Documentation/devicetree/bindings/sound/ti,pcm1681.yaml 22583 22584 F: Documentation/devicetree/bindings/sound/ti,pcm3168a.yaml 22584 22585 F: Documentation/devicetree/bindings/sound/ti,tlv320*.yaml 22585 22586 F: Documentation/devicetree/bindings/sound/ti,tlv320adcx140.yaml 22586 22587 F: Documentation/devicetree/bindings/sound/tlv320aic31xx.txt 22587 - F: Documentation/devicetree/bindings/sound/tpa6130a2.txt 22588 22588 F: include/sound/tas2*.h 22589 22589 F: include/sound/tlv320*.h 22590 22590 F: include/sound/tpa6130a2-plat.h