From patchwork Wed Feb 8 03:02:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 93603 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2491905qgi; Tue, 7 Feb 2017 19:05:25 -0800 (PST) X-Received: by 10.84.170.195 with SMTP id j61mr30785199plb.26.1486523125653; Tue, 07 Feb 2017 19:05:25 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q64si5833920pga.342.2017.02.07.19.05.25; Tue, 07 Feb 2017 19:05:25 -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 S1751859AbdBHDFX (ORCPT + 7 others); Tue, 7 Feb 2017 22:05:23 -0500 Received: from mail-pg0-f45.google.com ([74.125.83.45]:34483 "EHLO mail-pg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751698AbdBHDFW (ORCPT ); Tue, 7 Feb 2017 22:05:22 -0500 Received: by mail-pg0-f45.google.com with SMTP id 14so44340249pgg.1 for ; Tue, 07 Feb 2017 19:03:54 -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=xEPYh6F54E8L79O+qL6tn6ZDUJIoB74Pb2SXSQ/sRv4=; b=jkhNm70YFlNLyC67tO2H4DjQMD5C0JX0oW2rGwsI+Z6w50UW2wyQ5Z27dh7WyqrA7j siTm1u7Z2iSbsMLBcHgSyXOcD7xE7t8WP7h123m16++1Qe/r238XIdKSxuM3KNDFTWGH vp37zCBvvlePUn2eBOsm6hW0sdWwsKfzyxBDo= 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=xEPYh6F54E8L79O+qL6tn6ZDUJIoB74Pb2SXSQ/sRv4=; b=APzRmVdpusWDTDcGAEcBhylHjQCFiu7ZgimJQAnY/nu0lGrXPWhmUW12/FL7qiiJfC CFMMxvrzJpzfCD/p9XcK/YWq/iYOl4mmeopFo7RAR00Futu8U8lEwCqqPzfXoIopr05y RMMA2VoRTFZz58M2v3MDKNap7Mm5TMMwn4wvGJWkcmlf8a0/5e3fXfeiUNJWy2u38uuG zNt+KGJm3cEYQHRSCMvDRPfmTTD0jrcZaKFbByPGUonhJMStlIMuwbXRM6H5yKfo1CoZ AxX9tVZgaZOuTaELAo+1Gf1VEKBTgqaXmpXkHXL0E0MuPlbEwL9qnwAvEACjeXItJ/tx 2vHg== X-Gm-Message-State: AIkVDXLIAxuhMDYoGe4zwRCuYFIlpfhY8Mp1ZN3iMaVU4AoJX5mO5YqSCxM+8dnnpiUVmk0C X-Received: by 10.84.129.3 with SMTP id 3mr30655178plb.153.1486523033570; Tue, 07 Feb 2017 19:03:53 -0800 (PST) Received: from localhost.localdomain ([45.56.152.31]) by smtp.gmail.com with ESMTPSA id j78sm14837374pfk.39.2017.02.07.19.03.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Feb 2017 19:03:52 -0800 (PST) From: Baoyou Xie To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, jun.nie@linaro.org, baoyou.xie@linaro.org, mturquette@baylibre.com, sboyd@codeaurora.org, perex@perex.cz, tiwai@suse.com, shawn.guo@linaro.org, vinod.koul@intel.com Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, shawnguo@kernel.org, mathieu.poirier@linaro.org, xie.baoyou@zte.com.cn, chen.chaokai@zte.com.cn, wang.qiang01@zte.com.cn Subject: [PATCH v3 1/3] clk: zte: add i2s clocks for zx296718 Date: Wed, 8 Feb 2017 11:02:33 +0800 Message-Id: <1486522955-14528-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 The i2s related clock support is missing from the existing zx296718 clock driver. This patch adds it, so that the upstream ZX I2S driver can work out. Signed-off-by: Baoyou Xie --- drivers/clk/zte/clk-zx296718.c | 4 ++++ 1 file changed, 4 insertions(+) -- 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/drivers/clk/zte/clk-zx296718.c b/drivers/clk/zte/clk-zx296718.c index ad5d1df..f106d40 100644 --- a/drivers/clk/zte/clk-zx296718.c +++ b/drivers/clk/zte/clk-zx296718.c @@ -941,6 +941,10 @@ static struct zx_clk_gate audio_gate_clk[] = { GATE(AUDIO_SPDIF1_WCLK, "spdif1_wclk", "spdif1_wclk_div", AUDIO_SPDIF1_CLK, 9, CLK_SET_RATE_PARENT, 0), GATE(AUDIO_TDM_WCLK, "tdm_wclk", "tdm_wclk_div", AUDIO_TDM_CLK, 17, CLK_SET_RATE_PARENT, 0), GATE(AUDIO_TS_PCLK, "tempsensor_pclk", "clk49m5", AUDIO_TS_CLK, 1, 0, 0), + GATE(AUDIO_I2S0_PCLK, "i2s0_pclk", "clk49m5", AUDIO_I2S0_CLK, 8, 0, 0), + GATE(AUDIO_I2S1_PCLK, "i2s1_pclk", "clk49m5", AUDIO_I2S1_CLK, 8, 0, 0), + GATE(AUDIO_I2S2_PCLK, "i2s2_pclk", "clk49m5", AUDIO_I2S2_CLK, 8, 0, 0), + GATE(AUDIO_I2S3_PCLK, "i2s3_pclk", "clk49m5", AUDIO_I2S3_CLK, 8, 0, 0), }; static struct clk_hw_onecell_data audio_hw_onecell_data = { From patchwork Wed Feb 8 03:02:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 93604 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2493726qgi; Tue, 7 Feb 2017 19:12:39 -0800 (PST) X-Received: by 10.84.231.2 with SMTP id f2mr7522239plk.117.1486523559844; Tue, 07 Feb 2017 19:12:39 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x26si5871046pge.197.2017.02.07.19.12.39; Tue, 07 Feb 2017 19:12:39 -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 S1752759AbdBHDMh (ORCPT + 7 others); Tue, 7 Feb 2017 22:12:37 -0500 Received: from mail-pg0-f50.google.com ([74.125.83.50]:33180 "EHLO mail-pg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751946AbdBHDMg (ORCPT ); Tue, 7 Feb 2017 22:12:36 -0500 Received: by mail-pg0-f50.google.com with SMTP id 204so44387890pge.0 for ; Tue, 07 Feb 2017 19:11:20 -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:in-reply-to:references; bh=DC+fOaU92qgC0v43XhENi7gJDWXtDSJQJYhqxDIkWYI=; b=cN1AnixBSdCLn2Ig/4eLmYhsPtcMYRzD2A6vw5r2rPZO+GXJ0/IURRv9n6X6TvvtxQ 0NFe/vmiYTF2S9FtsyFqNduvoHAzgd24lQUXLOqLryCRondlwM2nuhB14toCLQNVMnih nTI78hqtj+yG6vHtaBc0saW5LCeEScB75YliM= 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:in-reply-to :references; bh=DC+fOaU92qgC0v43XhENi7gJDWXtDSJQJYhqxDIkWYI=; b=QLpUMp8Pm+LVLRTLH6w9sRPW99gr1KFUQqptMe+ho5L1B1xQKTN2K1ZKS18y/oLdWh FB11v3RxaZPhI1zikRWybfvPNCZKxGkqJvc3xUm89GW9YgORdkBX6SHa6VuA/eth2uyt UVkYZufGnhx+cocJc/Lo6ecYeZVTPdRNvx0H0DJu+805TK4b58F5bg/OslC3Uch4oByh TjNa7/5XgkDenq9ogBvHQ7GTKHTLConomuT4FILnrd5+Wz8xa+e7kxsF//i58btixM25 fXWOxYE6OpYXDhiUMSrOFs2ALiBMm7swS2JuehWWpl5x0/i+7FmmCFI8W/l7XKmzGPUS p5oQ== X-Gm-Message-State: AIkVDXLT6tPAU8zQ+9myy65Zb3sXcT8VTZVwInjzQlD3E9Iav6ekGw9w+uC8cf3tk5vUUWBK X-Received: by 10.99.171.5 with SMTP id p5mr24230850pgf.182.1486523047641; Tue, 07 Feb 2017 19:04:07 -0800 (PST) Received: from localhost.localdomain ([45.56.152.31]) by smtp.gmail.com with ESMTPSA id j78sm14837374pfk.39.2017.02.07.19.03.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Feb 2017 19:04:07 -0800 (PST) From: Baoyou Xie To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, jun.nie@linaro.org, baoyou.xie@linaro.org, mturquette@baylibre.com, sboyd@codeaurora.org, perex@perex.cz, tiwai@suse.com, shawn.guo@linaro.org, vinod.koul@intel.com Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, shawnguo@kernel.org, mathieu.poirier@linaro.org, xie.baoyou@zte.com.cn, chen.chaokai@zte.com.cn, wang.qiang01@zte.com.cn Subject: [PATCH v3 2/3] ASoC: zx-i2s: introduce pclk for zx2967 family Date: Wed, 8 Feb 2017 11:02:34 +0800 Message-Id: <1486522955-14528-2-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1486522955-14528-1-git-send-email-baoyou.xie@linaro.org> References: <1486522955-14528-1-git-send-email-baoyou.xie@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org ZTE's zx2967 I2S controller driver introduces pclk, this patch documents this fact. Signed-off-by: Baoyou Xie --- Documentation/devicetree/bindings/sound/zte,zx-i2s.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) -- 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,zx-i2s.txt b/Documentation/devicetree/bindings/sound/zte,zx-i2s.txt index 7e5aa6f..77390c0 100644 --- a/Documentation/devicetree/bindings/sound/zte,zx-i2s.txt +++ b/Documentation/devicetree/bindings/sound/zte,zx-i2s.txt @@ -4,7 +4,7 @@ Required properties: - compatible : Must be "zte,zx296702-i2s" - reg : Must contain I2S core's registers location and length - clocks : Pairs of phandle and specifier referencing the controller's clocks. - - clock-names: "tx" for the clock to the I2S interface. + - clock-names: "wclk" for the wclk, "pclk" for the pclk to the I2S interface. - dmas: Pairs of phandle and specifier for the DMA channel that is used by the core. The core expects two dma channels for transmit. - dma-names : Must be "tx" and "rx" @@ -15,13 +15,17 @@ please check: * clock/clock-bindings.txt * dma/dma.txt +Please note that ZTE ZX296702 I2S controller driver is compatible for zx296702 +and zx296718, so compatible string might be set as follow: + "zte,zx296718-i2s", "zte,zx296702-i2s" + Example: i2s0: i2s0@0b005000 { #sound-dai-cells = <0>; - compatible = "zte,zx296702-i2s"; + compatible = "zte,zx296718-i2s", "zte,zx296702-i2s"; reg = <0x0b005000 0x1000>; - clocks = <&lsp0clk ZX296702_I2S0_DIV>; - clock-names = "tx"; + clocks = <&audiocrm AUDIO_I2S0_WCLK>, <&audiocrm AUDIO_I2S0_PCLK>; + clock-names = "wclk", "pclk"; interrupts = ; dmas = <&dma 5>, <&dma 6>; dma-names = "tx", "rx";