Received: by 10.223.185.116 with SMTP id b49csp2155372wrg; Mon, 12 Feb 2018 05:21:57 -0800 (PST) X-Google-Smtp-Source: AH8x227Gq2Iggwd4EA6IxoamIQEbeF2ng+TAri3pLJCh2rm7wSVzKFKdlQsWsseMtA0GWE65a7FR X-Received: by 2002:a17:902:69cf:: with SMTP id m15-v6mr2127739pln.104.1518441717856; Mon, 12 Feb 2018 05:21:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518441717; cv=none; d=google.com; s=arc-20160816; b=0GIIr33N58ItJV/oozjz0PCpJXgkERp9gALurNZCm1AGyvagEE1vV+3YNNNGDaVRZ+ Z3QsNoyNqpJsaETXnhbieV0UaUTdHm4bHdGWMh0LOL5HthUjfHN3E9Kh0USkRL+8e+qe cMDXhECBPSiMI+tm0/GAHtbCqyuW948KfPCXm+IuJtf94MlYUNCI5wGHKyckvJCYplSZ V3I73M5oY/9qaQqkQ84r7DL8R0ZiwvDf1yZ73By+STZQctoNvpDlXepf7uDJrySxhHtv kXHjzbkpXKMNYfUfPUdWZGDUWWEamo2lT0CnLJTEs5buWVTTDAzqKrUFtVLCwHzxhDze y1aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=MODr1ypKk88vmyi5Ot+vzeyD/zHRW6iuiziPZi5t/00=; b=fu8FX9BCo9Ch82WbL12qoFHM9Nk2FwptbCbJ1/BWTPW04kc4GLg7kRzfNUGsnHbqU5 3VhosQhiYNDE6FS7DbNSSq1xzsRX4PoV0ZV5RKQWZtpSWXT98ZZRH1M0O/5rDEvEeWRa OQCxdw/qiomyITz/olfyf1U33F6fmfj5qIIfPZaEcDfPCOz95q2lnRein5Ua9GVfeBLq AkU1u5OHgr7+e1DAI7XdKS+nPAa79PKIUFTGuXM0PSSGJpAAjl500PXdtffX3g+vlcmx VqQD4DxeJTM2f9xjWmGWHbbtx+2LQeF1hev/5xXBWOVDWFpKTi5vlbWnggu+t4MLUZeU J11A== 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 n19-v6si5777054plp.808.2018.02.12.05.21.43; Mon, 12 Feb 2018 05:21:57 -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 S934135AbeBLLay (ORCPT + 99 others); Mon, 12 Feb 2018 06:30:54 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:54341 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S934007AbeBLL3q (ORCPT ); Mon, 12 Feb 2018 06:29:46 -0500 X-UUID: f34a957f7d994ad18f9798f5a40e07eb-20180212 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 737024116; Mon, 12 Feb 2018 19:29:40 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 12 Feb 2018 19:29:37 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Mon, 12 Feb 2018 19:29:37 +0800 From: Ryder Lee To: Stephen Boyd , Rob Herring CC: Mark Brown , Lee Jones , Matthias Brugger , , , , , , Garlic Tseng , Ryder Lee Subject: [PATCH v3 4/5] dt-bindings: clock: mediatek: update audsys documentation to adapt MFD device Date: Mon, 12 Feb 2018 19:28:50 +0800 Message-ID: <61928ad523a7aeffb8f16d4caad56836b65ae407.1518424204.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The MediaTek audio hardware block that exposes functionalities that are handled by separate subsystems in the kernel. These functions are all mapped somewhere at 0x112xxxxx, and there are some control bits are mixed up with other functions within the same registers. Therefore, it's better to switch the AUDSYS to MFD device for the sake of avoiding adding individual nodes with the overlapping regions for those devices. This patch adds a top level node "simple-mfd" to represent whole subsystem, which consists of two portions - audio componets and clock part. 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"; +- 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. +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