]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ASoC: stm32: Add synchronization to SAI bindings
authorOlivier Moysan <olivier.moysan@st.com>
Thu, 19 Oct 2017 13:03:17 +0000 (15:03 +0200)
committerMark Brown <broonie@kernel.org>
Sat, 21 Oct 2017 10:17:27 +0000 (11:17 +0100)
Add synchronization configuration to STM32 SAI bindings.
This patch also adds peripheral clock which is required
to access synchronization register.

Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/st,stm32-sai.txt

index f1c5ae59e7c99f8f6117428f4c3de33aa5eb9a16..1f9cd7095337881b5ee97ef51e9143efcbc0574e 100644 (file)
@@ -10,13 +10,21 @@ Required properties:
   - reg: Base address and size of SAI common register set.
   - clocks: Must contain phandle and clock specifier pairs for each entry
        in clock-names.
-  - clock-names: Must contain "x8k" and "x11k"
+  - clock-names: Must contain "pclk" "x8k" and "x11k"
+       "pclk": Clock which feeds the peripheral bus interface.
+               Mandatory for "st,stm32h7-sai" compatible.
+               Not used for "st,stm32f4-sai" compatible.
        "x8k": SAI parent clock for sampling rates multiple of 8kHz.
        "x11k": SAI parent clock for sampling rates multiple of 11.025kHz.
   - interrupts: cpu DAI interrupt line shared by SAI sub-blocks
 
 Optional properties:
   - resets: Reference to a reset controller asserting the SAI
+  - st,sync: specify synchronization mode.
+       By default SAI sub-block is in asynchronous mode.
+       This property sets SAI sub-block as slave of another SAI sub-block.
+       Must contain the phandle and index of the sai sub-block providing
+       the synchronization.
 
 SAI subnodes:
 Two subnodes corresponding to SAI sub-block instances A et B can be defined.
@@ -52,8 +60,8 @@ sai1: sai1@40015800 {
        #size-cells = <1>;
        ranges = <0 0x40015800 0x400>;
        reg = <0x40015800 0x4>;
-       clocks = <&rcc PLL1_Q>, <&rcc PLL2_P>;
-       clock-names = "x8k", "x11k";
+       clocks = <&rcc SAI1_CK>, <&rcc PLL1_Q>, <&rcc PLL2_P>;
+       clock-names = "pclk", "x8k", "x11k";
        interrupts = <87>;
 
        sai1a: audio-controller@40015804 {