Received: by 10.223.176.5 with SMTP id f5csp2154536wra; Sun, 4 Feb 2018 22:10:43 -0800 (PST) X-Google-Smtp-Source: AH8x227dCfY9Q2xvRijGCuUVD7e6e/TvWqy2rVOjnn8vz9yU0xoY1Czvkqz8NvANbyFhgKf12rR8 X-Received: by 10.99.172.86 with SMTP id z22mr4084515pgn.273.1517811043667; Sun, 04 Feb 2018 22:10:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517811043; cv=none; d=google.com; s=arc-20160816; b=zjlnDROAQgN1jswziGakrJ7yt+sOAmZScWVHzy4xdvxZdVrHprIx0vStg8OsoN/VMB zwPpzCO7C+1qZnsDPs4/LBiRUfXsr6ct4RCT2ME2OhyNC+zVPqGdLyRIlAspSlHv+jjo rx33+YUZqpjyeWfuAXFmeaRYl4gQyr+4mbM5PVUBdd3pX4rfItwV62H+SPfagTxAhm+h 4oAel+S0KqhkS0l2wssWXlHXt+JFS8emlycInItvtCfh6TpZkDKGvyKMhBUoNWaNUcyp W7C3k2XoeS/TBHYSBOJ7aLQnnlTaf94/XCSTcCdD5g5vjZX9qjZCUZjCOtlcD9FAwzBk AV2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=9P+93ewz6j73uB6EC37S7HlgRyWhRt1tQTEf9BLZalw=; b=kiv27BqDUcH7Vb3axL3lBqEVnFpoMtx71tr+rzEjVB4NCDBbR+kf3JyFZgnUKnwk6B hZHk0+KQblewiyJpKP7savVJFSUVCWGXk9lLSvzYlXbnK0qS8WiSSII91cvdB5ofYWQp CwqLyCbSnUgZ3iCN5MaAvYzNvv64MyHZAWtCZyulRI5tHs9ENGwHcUIAuSOYgbozfA2P pc19jP3bgw3h8ERMZIjtQvIV01zqnlLX9hD/c9PhYYEz9domwGWdHgJMiVFbmG9pSF2M Leec/a1TDKPqL5Xio+ne1YvJmu43W2/qeV0oDa0rEhSK7p6DYjomTK3sh3Q/ShdnZpcU 0/+A== 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 f8si5097516pgs.52.2018.02.04.22.10.29; Sun, 04 Feb 2018 22:10:43 -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 S1752294AbeBEGJY (ORCPT + 99 others); Mon, 5 Feb 2018 01:09:24 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:41402 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752825AbeBEGIg (ORCPT ); Mon, 5 Feb 2018 01:08:36 -0500 Received: by mail-pg0-f65.google.com with SMTP id 141so7029348pgd.8; Sun, 04 Feb 2018 22:08:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=9P+93ewz6j73uB6EC37S7HlgRyWhRt1tQTEf9BLZalw=; b=bFKk9kBn7qftNBgcu1rl4etehk+ZrpBSFPLp+0j7/tBi9c5SdeHOgR3Z/DVoXwMADc 0mE9z7PU42fwxuQ8Qwg7v5YusH7RhFE0d3kfWT2i3Tr4LVMXcnEOj7fUhpOFwF2MnfeJ vbOR93nXKCwIiUoB46hiqpYea4ccgasfMB71asBo1T6eiEmxG0aiByX1+YTeEk9lgo4s H21XcNMip0DSkoEWiy1HIKEV+vdBvC2KCK0cJKowFl3s4eqJiQXrjnvKTG5WRRYJtRH/ d9HmDOlkjJTz/gqAKPbZcCKaGvwKUevuVRGJIeIe/5DrdIl3BwXuRQNDBvdWlcIPkVCA wHmA== X-Gm-Message-State: AKwxytdbqH/uncydpcOttk7y0uYatkEgSnQ2HbqSHi3ji8AUhITE03gR +CFfMuqLkwBmmDGdt6xA7Q== X-Received: by 10.99.56.18 with SMTP id f18mr7151741pga.419.1517810914402; Sun, 04 Feb 2018 22:08:34 -0800 (PST) Received: from localhost ([50.225.178.238]) by smtp.gmail.com with ESMTPSA id b66sm15033371pfd.182.2018.02.04.22.08.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 04 Feb 2018 22:08:33 -0800 (PST) Date: Mon, 5 Feb 2018 00:08:33 -0600 From: Rob Herring To: Ryder Lee Cc: Stephen Boyd , Mark Brown , Lee Jones , Matthias Brugger , linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, Garlic Tseng Subject: Re: [PATCH v2 4/5] dt-bindings: clock: mediatek: update audsys documentation to adapt MFD device Message-ID: <20180205060833.p56dun5i4bvs3jye@rob-hp-laptop> References: <8651585c91ee40f6ab3e30b893bcfb90fe5c2c25.1515639336.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8651585c91ee40f6ab3e30b893bcfb90fe5c2c25.1515639336.git.ryder.lee@mediatek.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > +- 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. > > +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 >