From patchwork Mon Feb 13 08:17:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 93841 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp987174qgi; Mon, 13 Feb 2017 00:18:14 -0800 (PST) X-Received: by 10.99.153.1 with SMTP id d1mr25674503pge.44.1486973894665; Mon, 13 Feb 2017 00:18:14 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a85si9426625pfk.153.2017.02.13.00.18.14; Mon, 13 Feb 2017 00:18:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752277AbdBMISH (ORCPT + 7 others); Mon, 13 Feb 2017 03:18:07 -0500 Received: from mail-pg0-f42.google.com ([74.125.83.42]:36821 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752252AbdBMISG (ORCPT ); Mon, 13 Feb 2017 03:18:06 -0500 Received: by mail-pg0-f42.google.com with SMTP id v184so30703850pgv.3 for ; Mon, 13 Feb 2017 00:18:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=PpzFmlYBzRe8UkiW6WvRSOMtAuipfMNoL+ikJqIp+tc=; b=RnVTkBb6mKJ5rlX9GZDkyaVDRtisqQJ2Mwq7+IL02tIjhv/NjfpJWfsMQK1k1qCcK8 93TmAPcxgPnWujb0SdHcpmlFYJFjHtnq9z2sqvUBb39UUnD1b0hKX6rJ5mTCzF7qXWMl Jwwkcco0+XYiiIllXr6UXLlWdfqVv2NJU75Gc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=PpzFmlYBzRe8UkiW6WvRSOMtAuipfMNoL+ikJqIp+tc=; b=iQ8zjKVdtQyk7OQvBbf7GUdUIciUp5zAuvUmeI9GOvbT/dTIP9yf16y7L/8f6PotsH 4dT2L6+MtxvGctT846+I9NUlIxP0pUd9Bk84GEAW2OpQKMSI4pTl2mcXpayujZSXAKXn S+iSueMbWevVxzFkR+YyN9RtQsm2JnchvB++qgYHZi72bMoFHRydzewVHFZIb1adnwll V3tVtvDAWrwG+xHOml9ihVsVxrQzIu2EUX3DN4uYm6EBvCPzME6O4EBo0cJCNwsvDhSd 8kMz+wLx9epMLFq00LRaduAVzcIIfnKuVbu8gaCxtHLuE7iYKZW4waep62DY0tqnerpe wGXw== X-Gm-Message-State: AMke39kON1YMeL9y/nbLba9vjYBVLNfgwwXdpoEjTa8OBAuYbNrdEMtzt7e0U6gIt198fY23 X-Received: by 10.99.23.102 with SMTP id 38mr25627812pgx.188.1486973880847; Mon, 13 Feb 2017 00:18:00 -0800 (PST) Received: from localhost.localdomain ([45.56.152.25]) by smtp.gmail.com with ESMTPSA id p25sm19099243pfd.0.2017.02.13.00.17.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Feb 2017 00:18:00 -0800 (PST) From: Baoyou Xie To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, perex@perex.cz, tiwai@suse.com, jun.nie@linaro.org, shawn.guo@linaro.org Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, chen.chaokai@zte.com.cn, wang.qiang01@zte.com.cn Subject: [PATCH v1 1/3] ASoC: zx-tdm: add documentation for zte's tdm controller Date: Mon, 13 Feb 2017 16:17:31 +0800 Message-Id: <1486973853-25291-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds dt-binding documentation for zte's tdm controller. Signed-off-by: Baoyou Xie --- .../devicetree/bindings/sound/zte,tdm.txt | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/zte,tdm.txt -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/sound/zte,tdm.txt b/Documentation/devicetree/bindings/sound/zte,tdm.txt new file mode 100644 index 0000000..f6e4f7f --- /dev/null +++ b/Documentation/devicetree/bindings/sound/zte,tdm.txt @@ -0,0 +1,32 @@ +ZTE TDM DAI driver + +Required properties: + +- compatible : should be one of the following. + * zte,zx-tdm +- reg : physical base address of the controller and length of memory mapped + region. +- clocks : Pairs of phandle and specifier referencing the controller's clocks. +- clock-names: "tdm_wclk" for the wclk. + "tdm_pclk" for the pclk. +-#clock-cells: should be 1. +- zte,tdm-dma-sysctrl : Reference to the sysctrl controller controlling + the dma. includes: + phandle of sysctrl. + register offset in sysctrl for control dma. + mask of the register that be written to dma. + value of the register that be written to dma. + +Example: + + tdm: tdm@1487000 { + compatible = "zte,zx-tdm"; + reg = <0x01487000 0x1000>; + clocks = <&audiocrm AUDIO_TDM_WCLK>, <&audiocrm AUDIO_TDM_PCLK>; + clock-names = "tdm_wclk", "tdm_pclk"; + #clock-cells = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&tdm_global_pin>; + zte,tdm-dma-sysctrl = <&sysctrl 0x10c 0xf 0xf>; + status = "ok"; + };