Received: by 10.223.176.5 with SMTP id f5csp1301157wra; Wed, 7 Feb 2018 16:51:22 -0800 (PST) X-Google-Smtp-Source: AH8x227kJKlCsxLcFp7ytivBg+W0SC9xSsjQlxWzarIVNE63L7oXnh26y2vChY5NDhSK1TQFoUaR X-Received: by 10.99.190.15 with SMTP id l15mr1767018pgf.142.1518051081948; Wed, 07 Feb 2018 16:51:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518051081; cv=none; d=google.com; s=arc-20160816; b=ZGfkzFy/a2vyk1gd9DqlT2EfRcx2sL49CxKr08oeqDWJedrWRAhMBBkOvvpP3ZyNlu JRoRWlEbjq7yY+PmtwOHSpYfw/b+k/N39wWGdmFcKvALqit40o/07DX7JWuBpGK32tku bvclXNkkALtbiVOa8jgaJmUZIiRPmjDp8KjUDotCAbIYepzOoIVtq5kwjmsUsEcdfqI/ woR9ohyGasVLpK87E7XgcM1jR94D1HFp71vC2yUqGNHemTl4x5x+XMYMIuh+oFYOepiL fcF+Mr5myQXdkqzts5ZlkSH/78hhvPwQc50iND2N5eb8NBPNj/AV3voJF9YY8G1R+o1V UK1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=crdtTkoFJkt1q6WXaPiPG1SYX2KhNTryCP0cJz5cLjQ=; b=l8ZRhZ24T8qbt7Ndgcuw2DQdKdElJ4GgpYo2qA6WPFbF9kTjWA0lddydMJzAuzBWUz 1xIfMOLD95YVhkBPf0wlXDYFl5kefCd20uaNKuo7xSGJ8P08sx3EwLqdp4HIVgoRSz/J DSEsToO237F1OR5PRWCuWjTb6AehgBaWt4/1JPVnUIYG5Zok5nY2S2EJfJ56EWHN6JeB JjTrIdYZwzzseEhVpBLvhDJAqiCfOr9pXu4/XDm91t4Mn8O0FJryZiqjPO5LimN9bRpP DhBTiIiJtl7QasVQARVRmU68+pKB6Vld2FlW92/pOB0CLHIFhVk7IbycOnjYFZ9y+Z/5 mGeg== 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 j83si330587pfa.259.2018.02.07.16.50.57; Wed, 07 Feb 2018 16:51:21 -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 S1751075AbeBHAt6 (ORCPT + 99 others); Wed, 7 Feb 2018 19:49:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:37606 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750745AbeBHAt4 (ORCPT ); Wed, 7 Feb 2018 19:49:56 -0500 Received: from mail-qt0-f178.google.com (mail-qt0-f178.google.com [209.85.216.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8FD08217AA; Thu, 8 Feb 2018 00:49:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8FD08217AA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh@kernel.org Received: by mail-qt0-f178.google.com with SMTP id m11so4158447qtn.10; Wed, 07 Feb 2018 16:49:55 -0800 (PST) X-Gm-Message-State: APf1xPATsS2sA1dkz0I/uUsSXVkwsAQOfloNV6cEP9ssVdtUv1eIEnA4 S2wXsQzzS/iHGB8TDZCnATJ4Sbnmun3ZOK858w== X-Received: by 10.200.26.73 with SMTP id q9mr11825408qtk.174.1518050994685; Wed, 07 Feb 2018 16:49:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.147.20 with HTTP; Wed, 7 Feb 2018 16:49:34 -0800 (PST) In-Reply-To: <1517821892.12510.32.camel@mtkswgap22> References: <8651585c91ee40f6ab3e30b893bcfb90fe5c2c25.1515639336.git.ryder.lee@mediatek.com> <20180205060833.p56dun5i4bvs3jye@rob-hp-laptop> <1517821892.12510.32.camel@mtkswgap22> From: Rob Herring Date: Wed, 7 Feb 2018 18:49:34 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 4/5] dt-bindings: clock: mediatek: update audsys documentation to adapt MFD device To: Ryder Lee Cc: devicetree@vger.kernel.org, Garlic Tseng , Stephen Boyd , "linux-kernel@vger.kernel.org" , Mark Brown , linux-mediatek@lists.infradead.org, Matthias Brugger , Lee Jones , linux-clk , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 5, 2018 at 3:11 AM, Ryder Lee wrote: > 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). Perhaps the clocks block should have "-clk" on the end or something. Why do you really need to change this in the first place? You don't have to have DT child nodes to create child (struct) devices and child drivers. > > 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. I know regmap doesn't need it. That's not what I asked. If you have a range of registers for the clocks, then define that in reg. Only if the clock control bits are mixed up with other functions within the same registers, then you can omit it. Rob