Received: by 10.223.176.5 with SMTP id f5csp2286700wra; Mon, 5 Feb 2018 01:13:22 -0800 (PST) X-Google-Smtp-Source: AH8x226NdyM2Lv6q8SuffWVRe6P733FrOn253cYW9RS4nm8YgHDXSxiDP7r8NRqGHcPgbohvyFe4 X-Received: by 2002:a17:902:74c9:: with SMTP id f9-v6mr12574983plt.89.1517822002572; Mon, 05 Feb 2018 01:13:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517822002; cv=none; d=google.com; s=arc-20160816; b=QvhXz2viNOx3Q13ZboxyC0t/SXW+VpEsce4Qo/BPvisEY9AnCdKdyAMg885Y12tBkt TP0P3FRHLuGl3ubdewZzcm3U8mw7RWxzaGCWOVz+1nXc9wGEnB0eQETVOpUPdJVV7+wm tF43nLkFggvx+TOmfr1o0S768jjrhXRzOVUuh9g3YTfDEfDCAQ072SI2t1WWNIoJq5WH uHaqTj3vEjDBkZmfi3JQSwSDvKgH76USDE8jr66cpw61kRys5Lt5gEPEANol7FBWZjGU sPX3jmSADCpBSIhcfTggOuXQ0h7J4WC1MCc4ANxqRiHK115mMhH0xKlcLoLZj1UoRVWc xn8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=u8vIgBj+Z6YgEj5QsYtu0DNu8zgQC6trYADFPrukro8=; b=xK5ByJpbGwmSQRhqUKj+vtttszu2q5uaGyRURv/W53ubOsRNL3i2p6i/hpqeUC3/TU w7hfY+FV7dvHwIhT63pCSkSAPJk0oN+DvCFhucLXY/GxqbYXkwuPwLAtptdzXvmhLIuv IDwP6Sjr+LuZpf++rrbUogWHU2oSnIykt/cp3OUEhVuPkhDVbmWl7Jz8595FtXmSLIO2 X1BRZCBRmOkWzZ+AvMBg1DoDPsqD+jpLJCeXWcVjab6bXqUQUKs8Zu5qDCRPadxBnhEv Z9lyZooAbLFx27Jmo6vWqAbkHrv4/X3BHMjaWH5J+L4NbaMFGwzD4h63et0j7+3UUEOI WB+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 20si6586155pfp.312.2018.02.05.01.13.07; Mon, 05 Feb 2018 01:13:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752589AbeBEJLl (ORCPT + 99 others); Mon, 5 Feb 2018 04:11:41 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:45550 "EHLO mailgw02.mediatek.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750949AbeBEJLg (ORCPT ); Mon, 5 Feb 2018 04:11:36 -0500 X-UUID: 309db1e771124bc08ddad7dceadc7bf4-20180205 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1637218220; Mon, 05 Feb 2018 17:11:34 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 5 Feb 2018 17:11:32 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Mon, 5 Feb 2018 17:11:32 +0800 Message-ID: <1517821892.12510.32.camel@mtkswgap22> Subject: Re: [PATCH v2 4/5] dt-bindings: clock: mediatek: update audsys documentation to adapt MFD device From: Ryder Lee To: Rob Herring CC: , Garlic Tseng , Stephen Boyd , , "Mark Brown" , , "Matthias Brugger" , Lee Jones , , Date: Mon, 5 Feb 2018 17:11:32 +0800 In-Reply-To: <20180205060833.p56dun5i4bvs3jye@rob-hp-laptop> References: <8651585c91ee40f6ab3e30b893bcfb90fe5c2c25.1515639336.git.ryder.lee@mediatek.com> <20180205060833.p56dun5i4bvs3jye@rob-hp-laptop> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-02-05 at 00:08 -0600, Rob Herring wrote: > On Wed, Jan 31, 2018 at 03:42:44PM +0800, Ryder Lee wrote: > > As the MediaTek audio hardware block that expose functionalities that are > > handled by separate subsystems in the kernel, and there are registers that > > are shared between related drivers. > > > > Switch the current device to an MFD device, add more descriptions about the > > subsystem and modify example accordingly. > > > > Signed-off-by: Ryder Lee > > --- > > .../bindings/arm/mediatek/mediatek,audsys.txt | 37 ++++++++++++++++++---- > > 1 file changed, 30 insertions(+), 7 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt > > index 9b8f578..677af40 100644 > > --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt > > +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt > > @@ -1,22 +1,45 @@ > > -MediaTek AUDSYS controller > > +MediaTek Audio Subsystem > > ============================ > > +The audio subsystem is one of the multi-function blocks of MediaTek SoCs. > > +It contains a system controller, which provides a number registers giving > > +access to two features: AUDSYS clocks and Audio Front End (AFE) components. > > > > +For the top level node: > > +- compatible: must be: "syscon", "simple-mfd"; > > This should have some SoC specific compatible. As we don't have a specific driver (compatible string) for it and if we need to add that I think the term '*-audsys' is very suitable here, but unfortunately, it has already picked for clock driver (see child node). I also took ../../marvell/*-system-controller.txt as examples for my case. Thus, I'm not sure should we still need a new one here? > > +- reg: register area of the Audio Subsystem > > + > > +Required sub-nodes: > > + > > +AUDSYS clocks: > > +------- > > The MediaTek AUDSYS controller provides various clocks to the system. > > > > Required Properties: > > > > - compatible: Should be one of: > > - - "mediatek,mt7622-audsys", "syscon" > > + - "mediatek,mt2701-audsys"; > > + - "mediatek,mt7622-audsys"; > > - #clock-cells: Must be 1 > > > > The AUDSYS controller uses the common clk binding from > > Documentation/devicetree/bindings/clock/clock-bindings.txt > > The available clocks are defined in dt-bindings/clock/mt*-clk.h. > > There's no register range associated with the clocks? If there is, add a > reg property. No, we don't need reg property here, as the two sub-drivers will obtain the regmap which is propagated from the parent. Thanks > > > > +AFE components: > > +------- > > +For common binding part and usage, refer to > > +../sonud/mt2701-afe-pcm.txt. > > + > > Example: > > > > -audsys: audsys@11220000 { > > - compatible = "mediatek,mt7622-audsys", "syscon"; > > - reg = <0 0x11220000 0 0x1000>; > > - #clock-cells = <1>; > > -}; > > + audio-subsystem@11220000 { > > + compatible = "syscon", "simple-mfd"; > > + reg = <0 0x11220000 0 0x2000>; > > + > > + audsys: clock { > > + compatible = "mediatek,mt2701-audsys"; > > + #clock-cells = <1>; > > + }; > > + > > + ... > > + }; > > -- > > 1.9.1 > > > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek