mediatek: more v5.4 fixes
[openwrt/staging/jow.git] / target / linux / mediatek / patches-4.14 / 0206-dt-bindings-clock-mediatek-update-audsys-documentati.patch
1 From e6d9c3121f2a8b92bd6202d6a32e7d428990d7d7 Mon Sep 17 00:00:00 2001
2 From: Ryder Lee <ryder.lee@mediatek.com>
3 Date: Tue, 6 Mar 2018 17:09:29 +0800
4 Subject: [PATCH 206/224] dt-bindings: clock: mediatek: update audsys
5 documentation to adapt MFD device
6
7 The MediaTek audio hardware block that exposes functionalities that are
8 handled by separate subsystems in the kernel. These functions are all
9 mapped somewhere at 0x112xxxxx, and there are some control bits are mixed
10 up with other functions within the same registers.
11
12 This patch modifies example to illustrate child nodes.
13
14 Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
15 ---
16 .../bindings/arm/mediatek/mediatek,audsys.txt | 19 ++++++++++++++-----
17 1 file changed, 14 insertions(+), 5 deletions(-)
18
19 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt
20 +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt
21 @@ -13,10 +13,19 @@ The AUDSYS controller uses the common cl
22 Documentation/devicetree/bindings/clock/clock-bindings.txt
23 The available clocks are defined in dt-bindings/clock/mt*-clk.h.
24
25 +Required sub-nodes:
26 +-------
27 +For common binding part and usage, refer to
28 +../sonud/mt2701-afe-pcm.txt.
29 +
30 Example:
31
32 -audsys: audsys@11220000 {
33 - compatible = "mediatek,mt7622-audsys", "syscon";
34 - reg = <0 0x11220000 0 0x1000>;
35 - #clock-cells = <1>;
36 -};
37 + audsys: clock-controller@11220000 {
38 + compatible = "mediatek,mt7622-audsys", "syscon";
39 + reg = <0 0x11220000 0 0x2000>;
40 + #clock-cells = <1>;
41 +
42 + afe: audio-controller {
43 + ...
44 + };
45 + };