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

ASoC: dt-bindings: omap-mcpdm: Convert to DT schema

Convert the OMAP4+ McPDM bindings from txt to yaml (dtschema).
Drop ti,hwmods property as it is not needed since the sysc conversion.
Add dma, dma-names, reg-names properties to match the DTS so as to not
break the already existing ABI.
Also update example node to match the existing node in the DTS.

Signed-off-by: Mithil Bavishi <bavishimithil@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240608095305.2887-1-bavishimithil@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Mithil Bavishi and committed by
Mark Brown
b97e4090 a1708fda

+73 -30
-30
Documentation/devicetree/bindings/sound/omap-mcpdm.txt
··· 1 - * Texas Instruments OMAP4+ McPDM 2 - 3 - Required properties: 4 - - compatible: "ti,omap4-mcpdm" 5 - - reg: Register location and size as an array: 6 - <MPU access base address, size>, 7 - <L3 interconnect address, size>; 8 - - interrupts: Interrupt number for McPDM 9 - - ti,hwmods: Name of the hwmod associated to the McPDM 10 - - clocks: phandle for the pdmclk provider, likely <&twl6040> 11 - - clock-names: Must be "pdmclk" 12 - 13 - Example: 14 - 15 - mcpdm: mcpdm@40132000 { 16 - compatible = "ti,omap4-mcpdm"; 17 - reg = <0x40132000 0x7f>, /* MPU private access */ 18 - <0x49032000 0x7f>; /* L3 Interconnect */ 19 - interrupts = <0 112 0x4>; 20 - interrupt-parent = <&gic>; 21 - ti,hwmods = "mcpdm"; 22 - }; 23 - 24 - In board DTS file the pdmclk needs to be added: 25 - 26 - &mcpdm { 27 - clocks = <&twl6040>; 28 - clock-names = "pdmclk"; 29 - status = "okay"; 30 - };
+73
Documentation/devicetree/bindings/sound/ti,omap4-mcpdm.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,omap4-mcpdm.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: OMAP McPDM 8 + 9 + maintainers: 10 + - Misael Lopez Cruz <misael.lopez@ti.com> 11 + 12 + description: 13 + OMAP ALSA SoC DAI driver using McPDM port used by TWL6040 14 + 15 + properties: 16 + compatible: 17 + const: ti,omap4-mcpdm 18 + 19 + reg: 20 + items: 21 + - description: MPU access base address 22 + - description: L3 interconnect address 23 + 24 + reg-names: 25 + items: 26 + - const: mpu 27 + - const: dma 28 + 29 + interrupts: 30 + maxItems: 1 31 + 32 + dmas: 33 + maxItems: 2 34 + 35 + dma-names: 36 + items: 37 + - const: up_link 38 + - const: dn_link 39 + 40 + clocks: 41 + maxItems: 1 42 + 43 + clock-names: 44 + items: 45 + - const: pdmclk 46 + 47 + required: 48 + - compatible 49 + - reg 50 + - reg-names 51 + - interrupts 52 + - dmas 53 + - dma-names 54 + - clocks 55 + - clock-names 56 + 57 + additionalProperties: false 58 + 59 + examples: 60 + - | 61 + #include <dt-bindings/interrupt-controller/arm-gic.h> 62 + mcpdm@0 { 63 + compatible = "ti,omap4-mcpdm"; 64 + reg = <0x0 0x7f>, /* MPU private access */ 65 + <0x49032000 0x7f>; /* L3 Interconnect */ 66 + reg-names = "mpu", "dma"; 67 + interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>; 68 + interrupt-parent = <&gic>; 69 + dmas = <&sdma 65>, <&sdma 66>; 70 + dma-names = "up_link", "dn_link"; 71 + clocks = <&twl6040>; 72 + clock-names = "pdmclk"; 73 + };