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

dt-bindings: mfd: samsung,exynos5433-lpass: Convert to dtschema

Convert the Exynos5433 LPASS bindings to DT schema format.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220202151310.285561-4-krzysztof.kozlowski@canonical.com

authored by

Krzysztof Kozlowski and committed by
Lee Jones
dab18d3b 8d73aa0e

+117 -72
-72
Documentation/devicetree/bindings/mfd/samsung,exynos5433-lpass.txt
··· 1 - Samsung Exynos SoC Low Power Audio Subsystem (LPASS) 2 - 3 - Required properties: 4 - 5 - - compatible : "samsung,exynos5433-lpass" 6 - - reg : should contain the LPASS top SFR region location 7 - and size 8 - - clock-names : should contain following required clocks: "sfr0_ctrl" 9 - - clocks : should contain clock specifiers of all clocks, which 10 - input names have been specified in clock-names 11 - property, in same order. 12 - - #address-cells : should be 1 13 - - #size-cells : should be 1 14 - - ranges : must be present 15 - 16 - Each IP block of the Low Power Audio Subsystem should be specified as 17 - an optional sub-node. For "samsung,exynos5433-lpass" compatible this includes: 18 - UART, SLIMBUS, PCM, I2S, DMAC, Timers 0...4, VIC, WDT 0...1 devices. 19 - 20 - Bindings of the sub-nodes are described in: 21 - ../serial/samsung_uart.yaml 22 - ../sound/samsung-i2s.txt 23 - ../dma/arm-pl330.txt 24 - 25 - 26 - Example: 27 - 28 - audio-subsystem { 29 - compatible = "samsung,exynos5433-lpass"; 30 - reg = <0x11400000 0x100>, <0x11500000 0x08>; 31 - clocks = <&cmu_aud CLK_PCLK_SFR0_CTRL>; 32 - clock-names = "sfr0_ctrl"; 33 - #address-cells = <1>; 34 - #size-cells = <1>; 35 - ranges; 36 - 37 - adma: adma@11420000 { 38 - compatible = "arm,pl330", "arm,primecell"; 39 - reg = <0x11420000 0x1000>; 40 - interrupts = <0 73 0>; 41 - clocks = <&cmu_aud CLK_ACLK_DMAC>; 42 - clock-names = "apb_pclk"; 43 - #dma-cells = <1>; 44 - #dma-channels = <8>; 45 - #dma-requests = <32>; 46 - }; 47 - 48 - i2s0: i2s0@11440000 { 49 - compatible = "samsung,exynos7-i2s"; 50 - reg = <0x11440000 0x100>; 51 - dmas = <&adma 0 &adma 2>; 52 - dma-names = "tx", "rx"; 53 - interrupts = <0 70 0>; 54 - clocks = <&cmu_aud CLK_PCLK_AUD_I2S>, 55 - <&cmu_aud CLK_SCLK_AUD_I2S>, 56 - <&cmu_aud CLK_SCLK_I2S_BCLK>; 57 - clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; 58 - pinctrl-names = "default"; 59 - pinctrl-0 = <&i2s0_bus>; 60 - }; 61 - 62 - serial_3: serial@11460000 { 63 - compatible = "samsung,exynos5433-uart"; 64 - reg = <0x11460000 0x100>; 65 - interrupts = <0 67 0>; 66 - clocks = <&cmu_aud CLK_PCLK_AUD_UART>, 67 - <&cmu_aud CLK_SCLK_AUD_UART>; 68 - clock-names = "uart", "clk_uart_baud0"; 69 - pinctrl-names = "default"; 70 - pinctrl-0 = <&uart_aud_bus>; 71 - }; 72 - };
+117
Documentation/devicetree/bindings/mfd/samsung,exynos5433-lpass.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mfd/samsung,exynos5433-lpass.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Samsung Exynos SoC Low Power Audio Subsystem (LPASS) 8 + 9 + maintainers: 10 + - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> 11 + - Sylwester Nawrocki <s.nawrocki@samsung.com> 12 + 13 + properties: 14 + compatible: 15 + const: samsung,exynos5433-lpass 16 + 17 + '#address-cells': 18 + const: 1 19 + 20 + clocks: 21 + maxItems: 1 22 + 23 + clock-names: 24 + items: 25 + - const: sfr0_ctrl 26 + 27 + power-domains: 28 + maxItems: 1 29 + 30 + ranges: true 31 + 32 + reg: 33 + minItems: 2 34 + maxItems: 2 35 + 36 + '#size-cells': 37 + const: 1 38 + 39 + patternProperties: 40 + "^dma-controller@[0-9a-f]+$": 41 + $ref: /schemas/dma/arm,pl330.yaml 42 + 43 + "^i2s@[0-9a-f]+$": 44 + $ref: /schemas/sound/samsung-i2s.yaml 45 + 46 + "^serial@[0-9a-f]+$": 47 + $ref: /schemas/serial/samsung_uart.yaml 48 + 49 + required: 50 + - compatible 51 + - '#address-cells' 52 + - clocks 53 + - clock-names 54 + - ranges 55 + - reg 56 + - '#size-cells' 57 + 58 + additionalProperties: false 59 + 60 + examples: 61 + - | 62 + #include <dt-bindings/clock/exynos5433.h> 63 + #include <dt-bindings/interrupt-controller/arm-gic.h> 64 + 65 + audio-subsystem@11400000 { 66 + compatible = "samsung,exynos5433-lpass"; 67 + reg = <0x11400000 0x100>, <0x11500000 0x08>; 68 + clocks = <&cmu_aud CLK_PCLK_SFR0_CTRL>; 69 + clock-names = "sfr0_ctrl"; 70 + power-domains = <&pd_aud>; 71 + #address-cells = <1>; 72 + #size-cells = <1>; 73 + ranges; 74 + 75 + dma-controller@11420000 { 76 + compatible = "arm,pl330", "arm,primecell"; 77 + reg = <0x11420000 0x1000>; 78 + interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; 79 + clocks = <&cmu_aud CLK_ACLK_DMAC>; 80 + clock-names = "apb_pclk"; 81 + #dma-cells = <1>; 82 + #dma-channels = <8>; 83 + #dma-requests = <32>; 84 + power-domains = <&pd_aud>; 85 + }; 86 + 87 + i2s@11440000 { 88 + compatible = "samsung,exynos7-i2s"; 89 + reg = <0x11440000 0x100>; 90 + dmas = <&adma 0>, <&adma 2>; 91 + dma-names = "tx", "rx"; 92 + interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>; 93 + #address-cells = <1>; 94 + #size-cells = <0>; 95 + clocks = <&cmu_aud CLK_PCLK_AUD_I2S>, 96 + <&cmu_aud CLK_SCLK_AUD_I2S>, 97 + <&cmu_aud CLK_SCLK_I2S_BCLK>; 98 + clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; 99 + #clock-cells = <1>; 100 + pinctrl-names = "default"; 101 + pinctrl-0 = <&i2s0_bus>; 102 + power-domains = <&pd_aud>; 103 + #sound-dai-cells = <1>; 104 + }; 105 + 106 + serial@11460000 { 107 + compatible = "samsung,exynos5433-uart"; 108 + reg = <0x11460000 0x100>; 109 + interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>; 110 + clocks = <&cmu_aud CLK_PCLK_AUD_UART>, 111 + <&cmu_aud CLK_SCLK_AUD_UART>; 112 + clock-names = "uart", "clk_uart_baud0"; 113 + pinctrl-names = "default"; 114 + pinctrl-0 = <&uart_aud_bus>; 115 + power-domains = <&pd_aud>; 116 + }; 117 + };