xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/samsung,exynos5433-lpass.yaml (revision c9ccf3a32da427475985b85d7df023ccfb138c27)
1*c9ccf3a3SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*c9ccf3a3SEmmanuel Vadot%YAML 1.2
3*c9ccf3a3SEmmanuel Vadot---
4*c9ccf3a3SEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/samsung,exynos5433-lpass.yaml#
5*c9ccf3a3SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c9ccf3a3SEmmanuel Vadot
7*c9ccf3a3SEmmanuel Vadottitle: Samsung Exynos SoC Low Power Audio Subsystem (LPASS)
8*c9ccf3a3SEmmanuel Vadot
9*c9ccf3a3SEmmanuel Vadotmaintainers:
10*c9ccf3a3SEmmanuel Vadot  - Krzysztof Kozlowski <krzk@kernel.org>
11*c9ccf3a3SEmmanuel Vadot  - Sylwester Nawrocki <s.nawrocki@samsung.com>
12*c9ccf3a3SEmmanuel Vadot
13*c9ccf3a3SEmmanuel Vadotproperties:
14*c9ccf3a3SEmmanuel Vadot  compatible:
15*c9ccf3a3SEmmanuel Vadot    const: samsung,exynos5433-lpass
16*c9ccf3a3SEmmanuel Vadot
17*c9ccf3a3SEmmanuel Vadot  '#address-cells':
18*c9ccf3a3SEmmanuel Vadot    const: 1
19*c9ccf3a3SEmmanuel Vadot
20*c9ccf3a3SEmmanuel Vadot  clocks:
21*c9ccf3a3SEmmanuel Vadot    maxItems: 1
22*c9ccf3a3SEmmanuel Vadot
23*c9ccf3a3SEmmanuel Vadot  clock-names:
24*c9ccf3a3SEmmanuel Vadot    items:
25*c9ccf3a3SEmmanuel Vadot      - const: sfr0_ctrl
26*c9ccf3a3SEmmanuel Vadot
27*c9ccf3a3SEmmanuel Vadot  power-domains:
28*c9ccf3a3SEmmanuel Vadot    maxItems: 1
29*c9ccf3a3SEmmanuel Vadot
30*c9ccf3a3SEmmanuel Vadot  ranges: true
31*c9ccf3a3SEmmanuel Vadot
32*c9ccf3a3SEmmanuel Vadot  reg:
33*c9ccf3a3SEmmanuel Vadot    minItems: 2
34*c9ccf3a3SEmmanuel Vadot    maxItems: 2
35*c9ccf3a3SEmmanuel Vadot
36*c9ccf3a3SEmmanuel Vadot  '#size-cells':
37*c9ccf3a3SEmmanuel Vadot    const: 1
38*c9ccf3a3SEmmanuel Vadot
39*c9ccf3a3SEmmanuel VadotpatternProperties:
40*c9ccf3a3SEmmanuel Vadot  "^dma-controller@[0-9a-f]+$":
41*c9ccf3a3SEmmanuel Vadot    $ref: /schemas/dma/arm,pl330.yaml
42*c9ccf3a3SEmmanuel Vadot
43*c9ccf3a3SEmmanuel Vadot  "^i2s@[0-9a-f]+$":
44*c9ccf3a3SEmmanuel Vadot    $ref: /schemas/sound/samsung-i2s.yaml
45*c9ccf3a3SEmmanuel Vadot
46*c9ccf3a3SEmmanuel Vadot  "^serial@[0-9a-f]+$":
47*c9ccf3a3SEmmanuel Vadot    $ref: /schemas/serial/samsung_uart.yaml
48*c9ccf3a3SEmmanuel Vadot
49*c9ccf3a3SEmmanuel Vadotrequired:
50*c9ccf3a3SEmmanuel Vadot  - compatible
51*c9ccf3a3SEmmanuel Vadot  - '#address-cells'
52*c9ccf3a3SEmmanuel Vadot  - clocks
53*c9ccf3a3SEmmanuel Vadot  - clock-names
54*c9ccf3a3SEmmanuel Vadot  - ranges
55*c9ccf3a3SEmmanuel Vadot  - reg
56*c9ccf3a3SEmmanuel Vadot  - '#size-cells'
57*c9ccf3a3SEmmanuel Vadot
58*c9ccf3a3SEmmanuel VadotadditionalProperties: false
59*c9ccf3a3SEmmanuel Vadot
60*c9ccf3a3SEmmanuel Vadotexamples:
61*c9ccf3a3SEmmanuel Vadot  - |
62*c9ccf3a3SEmmanuel Vadot    #include <dt-bindings/clock/exynos5433.h>
63*c9ccf3a3SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
64*c9ccf3a3SEmmanuel Vadot
65*c9ccf3a3SEmmanuel Vadot    audio-subsystem@11400000 {
66*c9ccf3a3SEmmanuel Vadot        compatible = "samsung,exynos5433-lpass";
67*c9ccf3a3SEmmanuel Vadot        reg = <0x11400000 0x100>, <0x11500000 0x08>;
68*c9ccf3a3SEmmanuel Vadot        clocks = <&cmu_aud CLK_PCLK_SFR0_CTRL>;
69*c9ccf3a3SEmmanuel Vadot        clock-names = "sfr0_ctrl";
70*c9ccf3a3SEmmanuel Vadot        power-domains = <&pd_aud>;
71*c9ccf3a3SEmmanuel Vadot        #address-cells = <1>;
72*c9ccf3a3SEmmanuel Vadot        #size-cells = <1>;
73*c9ccf3a3SEmmanuel Vadot        ranges;
74*c9ccf3a3SEmmanuel Vadot
75*c9ccf3a3SEmmanuel Vadot        dma-controller@11420000 {
76*c9ccf3a3SEmmanuel Vadot            compatible = "arm,pl330", "arm,primecell";
77*c9ccf3a3SEmmanuel Vadot            reg = <0x11420000 0x1000>;
78*c9ccf3a3SEmmanuel Vadot            interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
79*c9ccf3a3SEmmanuel Vadot            clocks = <&cmu_aud CLK_ACLK_DMAC>;
80*c9ccf3a3SEmmanuel Vadot            clock-names = "apb_pclk";
81*c9ccf3a3SEmmanuel Vadot            #dma-cells = <1>;
82*c9ccf3a3SEmmanuel Vadot            #dma-channels = <8>;
83*c9ccf3a3SEmmanuel Vadot            #dma-requests = <32>;
84*c9ccf3a3SEmmanuel Vadot            power-domains = <&pd_aud>;
85*c9ccf3a3SEmmanuel Vadot        };
86*c9ccf3a3SEmmanuel Vadot
87*c9ccf3a3SEmmanuel Vadot        i2s@11440000 {
88*c9ccf3a3SEmmanuel Vadot            compatible = "samsung,exynos7-i2s";
89*c9ccf3a3SEmmanuel Vadot            reg = <0x11440000 0x100>;
90*c9ccf3a3SEmmanuel Vadot            dmas = <&adma 0>, <&adma 2>;
91*c9ccf3a3SEmmanuel Vadot            dma-names = "tx", "rx";
92*c9ccf3a3SEmmanuel Vadot            interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
93*c9ccf3a3SEmmanuel Vadot            #address-cells = <1>;
94*c9ccf3a3SEmmanuel Vadot            #size-cells = <0>;
95*c9ccf3a3SEmmanuel Vadot            clocks = <&cmu_aud CLK_PCLK_AUD_I2S>,
96*c9ccf3a3SEmmanuel Vadot                     <&cmu_aud CLK_SCLK_AUD_I2S>,
97*c9ccf3a3SEmmanuel Vadot                     <&cmu_aud CLK_SCLK_I2S_BCLK>;
98*c9ccf3a3SEmmanuel Vadot            clock-names = "iis", "i2s_opclk0", "i2s_opclk1";
99*c9ccf3a3SEmmanuel Vadot            #clock-cells = <1>;
100*c9ccf3a3SEmmanuel Vadot            pinctrl-names = "default";
101*c9ccf3a3SEmmanuel Vadot            pinctrl-0 = <&i2s0_bus>;
102*c9ccf3a3SEmmanuel Vadot            power-domains = <&pd_aud>;
103*c9ccf3a3SEmmanuel Vadot            #sound-dai-cells = <1>;
104*c9ccf3a3SEmmanuel Vadot        };
105*c9ccf3a3SEmmanuel Vadot
106*c9ccf3a3SEmmanuel Vadot        serial@11460000 {
107*c9ccf3a3SEmmanuel Vadot            compatible = "samsung,exynos5433-uart";
108*c9ccf3a3SEmmanuel Vadot            reg = <0x11460000 0x100>;
109*c9ccf3a3SEmmanuel Vadot            interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
110*c9ccf3a3SEmmanuel Vadot            clocks = <&cmu_aud CLK_PCLK_AUD_UART>,
111*c9ccf3a3SEmmanuel Vadot                     <&cmu_aud CLK_SCLK_AUD_UART>;
112*c9ccf3a3SEmmanuel Vadot            clock-names = "uart", "clk_uart_baud0";
113*c9ccf3a3SEmmanuel Vadot            pinctrl-names = "default";
114*c9ccf3a3SEmmanuel Vadot            pinctrl-0 = <&uart_aud_bus>;
115*c9ccf3a3SEmmanuel Vadot            power-domains = <&pd_aud>;
116*c9ccf3a3SEmmanuel Vadot        };
117*c9ccf3a3SEmmanuel Vadot    };
118