Received: by 10.223.176.5 with SMTP id f5csp1020167wra; Tue, 30 Jan 2018 23:43:48 -0800 (PST) X-Google-Smtp-Source: AH8x226l10lp4Fggstn2d6JGPVK5Y1Kc9v9ee8OJvePQ1K58gSrYiBUlYE9P1AEQPWQrRcoEYqk+ X-Received: by 10.99.177.4 with SMTP id r4mr25703759pgf.245.1517384628567; Tue, 30 Jan 2018 23:43:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517384628; cv=none; d=google.com; s=arc-20160816; b=owO7jNoOEnCfP7ovkkNxnDdNljvuZ3+0i1iz951OcoOU1vwJnazWxTfxCULqtYjvo1 bPdXkiKYpLGkGMxXVdeSfvVQvdIV8YLDoBgu7MKRaB0Pctmwbu9stJ5QLCiTTMlv3gXp Bmwn+m7Ymiy6Nt38Zk30dW4hFQ2Au7eYaEgqYtaro+F/U7wfS+z2cWUxXkpHMaQKFAhH P0W9zTFrtJSjm8VXdZpKdME3KWYsTn2z6PZbE+mlrRb+mJ+k9y78M3tUHyasezUuEzMh nmOXA/0CR/6mgeiUHkTr/yXEjtTYt24tKVsXmeKb6Zx1DGT6f/xnClvhjx/YLPxOxpsz /Gow== 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=0kOjoMfNeja/TKhiM9QpYup9DIFvnVd1yGU96YiTWZc=; b=C0yH/EQbaK7fdLmKYGyz5SBjbHao4f3zhID5L4Pwrk95FCjebatQ44b9kQocc/XXFI Vg2/i7i924vlENRCdorRI48zGRhwwFB0fP8uw5quWA9WedHbUWykAWhabD2Acyy6apKZ ESTca1BuQl8FOy55BkQrWsNnFCQN0kEtV3iaB4W1xorFBKsFK2m+fyFV1iYguh2+nWGC 8XQrlXsMdLM7WlJJJIMJPU64/2n1D8Xe4K8yu4naIIOa7ImHbrg8urG42oaChfPNh7Qe zeiY/XhBbP7rK5rifK7/0bj4o+PDg9KpscS5VReTrTq6qHCDmUSQUWbt1b1VZLyzs9I5 UW5w== 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 f11-v6si1748263pln.118.2018.01.30.23.43.34; Tue, 30 Jan 2018 23:43:48 -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 S932090AbeAaHm6 (ORCPT + 99 others); Wed, 31 Jan 2018 02:42:58 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:1873 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752909AbeAaHmx (ORCPT ); Wed, 31 Jan 2018 02:42:53 -0500 X-UUID: b3268dfd2bf84bb9bc11a59175f993f2-20180131 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1415264616; Wed, 31 Jan 2018 15:42:50 +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; Wed, 31 Jan 2018 15:42:48 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 31 Jan 2018 15:42:49 +0800 From: Ryder Lee To: Stephen Boyd , Rob Herring CC: Mark Brown , Lee Jones , Matthias Brugger , , , , , , Garlic Tseng , Ryder Lee Subject: [PATCH v2 4/5] dt-bindings: clock: mediatek: update audsys documentation to adapt MFD device Date: Wed, 31 Jan 2018 15:42:44 +0800 Message-ID: <8651585c91ee40f6ab3e30b893bcfb90fe5c2c25.1515639336.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 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"; +- 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