From patchwork Thu Jan 7 08:25:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 7974241 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DEB14BEEED for ; Thu, 7 Jan 2016 08:27:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 241E02015E for ; Thu, 7 Jan 2016 08:27:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 44D99201B9 for ; Thu, 7 Jan 2016 08:27:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aH5v8-0000mv-Qx; Thu, 07 Jan 2016 08:27:46 +0000 Received: from mail-pa0-f50.google.com ([209.85.220.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aH5un-0000So-H4; Thu, 07 Jan 2016 08:27:27 +0000 Received: by mail-pa0-f50.google.com with SMTP id yy13so160571903pab.3; Thu, 07 Jan 2016 00:27:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sPt9Zb+w+wunnB0pPmKW8uv4JBBERrLJsUgCRHT9UHs=; b=VQ2p/jhvU7F40ZEKxK3Djsp3Q4r9BJqSu3S8+aCI6bVesY4NMi84ZDfW0JBlVYiUG2 5zDBJhPU0bT3P06oW4wGqS1bIEqGZI33EMtl9mP7hsYGD4PmrO6UvNxgpybvzzC/pyc6 Q3KagyktBoyxaCf1f+f+w/AOv/sgy+uRveSnwmPKdC+j1SSuIKWGiBExnFzBtyb02mQp cY0RmJ7s+LgbL/AZaFm73p3UwNBDggi2TfzJO3tZPGLd5jAX532nMZ9nUzTl4SCwu+1m AehT1eAaboF0jhK8LUGn1X5mLHiRZ4csF5zkTWL2+tMBRw7E07p6bRJo9upsxBtq4Jyk SlFA== X-Received: by 10.66.129.232 with SMTP id nz8mr111277105pab.102.1452155224857; Thu, 07 Jan 2016 00:27:04 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id qj8sm9945010pac.40.2016.01.07.00.26.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jan 2016 00:27:03 -0800 (PST) From: Caesar Wang To: Heiko Stuebner , Ulf Hansson Subject: [PATCH v2 03/12] ARM: dts: rockchip: override the clocks in i2s for kylin board Date: Thu, 7 Jan 2016 16:25:46 +0800 Message-Id: <1452155155-16232-4-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1452155155-16232-1-git-send-email-wxt@rock-chips.com> References: <1452155155-16232-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160107_002725_773415_90CF9D8E X-CRM114-Status: GOOD ( 10.81 ) X-Spam-Score: -2.4 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , Pawel Moll , Ian Campbell , Kumar Gala , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Rob Herring , leecam@google.com, linux-arm-kernel@lists.infradead.org, keescook@google.com, leozwang@google.com, Caesar Wang MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The sysclk seems be incorrect since we use the simple card for kylin board. The simple card call: asoc_simple_card_probe -> asoc_simple_card_dai_link_of -> asoc_simple_card_sub_parse_of -> ... clk = of_clk_get(args.np, 0); if (!IS_ERR(clk)) dai->sysclk = clk_get_rate(clk); The sysclk come from the first clock, then first clock is hclk_i2s in i2s for rk3036 dtsi. So, we can override the clocks to fit the simple card in here. Signed-off-by: Caesar Wang --- Changes in v2: None arch/arm/boot/dts/rk3036-kylin.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/rk3036-kylin.dts b/arch/arm/boot/dts/rk3036-kylin.dts index 27b6326..b642369 100644 --- a/arch/arm/boot/dts/rk3036-kylin.dts +++ b/arch/arm/boot/dts/rk3036-kylin.dts @@ -288,6 +288,13 @@ }; &i2s { + /** + * We should override the clocks since sysclk from the first clock + * in simple card. + */ + clock-names = "i2s_clk", "i2s_hclk"; + clocks = <&cru SCLK_I2S>, <&cru HCLK_I2S>; + #sound-dai-cells = <0>; status = "okay"; };