From patchwork Fri Jun 30 06:01:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 9818461 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 117CC6035F for ; Fri, 30 Jun 2017 06:02:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 040C1285E2 for ; Fri, 30 Jun 2017 06:02:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ECC3E285ED; Fri, 30 Jun 2017 06:02:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A8B6F285E2 for ; Fri, 30 Jun 2017 06:02:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=TE5M65WzDI91KPt6HBM4ZdkH3csZDd/bvwVJUcwQqt4=; b=ir7 Q2UhgAB+5wMlFE93p3+rZ/ZfJE8qKLNZJ6VyQan9UJY8cfbmGxehwMrECgAzzP5CtGm99E2kuNCLM wXaycdUDd8LERzdmfzaXqWyKyPkgBmGEBLGFsChzXNHVF+sT8Bmx24dDzGaBHetq9RXOeOFWjqbVm /6TJtbNtqsfv2QJZ+kJxAjK8uzt2SozV7OgFWEb2d4xLEnm4DINCyxFTojJycsiYQADsbjF+nIsiJ VUP0soxPSorZM8cGLsOdvZOEAaoPQ7k9bzuubXWgy5ipizUERSdsHQObQYkJtcWE2MI/32ASFAMyi KIuz/zn9Lj99E4WknYXwn7zANzgkr4A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dQp0g-0002hT-VM; Fri, 30 Jun 2017 06:02:30 +0000 Received: from mail-pf0-f195.google.com ([209.85.192.195]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dQp0b-0002f9-U7; Fri, 30 Jun 2017 06:02:28 +0000 Received: by mail-pf0-f195.google.com with SMTP id e199so15795824pfh.0; Thu, 29 Jun 2017 23:02:04 -0700 (PDT) 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=Qcw+dCadygwBLIBuKOpndFmj4UI3h0O/V7Vle9s859E=; b=HkWSZzj3FysrtBGAKKe4iHNqOJu1jsIGm+DAUN4o1QFVAlN6xoU4C122kiPGG7Jeqb mTLEuUr+rsSeDGfoSCQNAB7c6vndIDVNbIDnVslMRawXrvX6k7yqbwT2ar9aZhwWucwF Z4HVziFsWojdD8aoz1tBYBa3MqxXhsoqQdl4H5UDxHH0Sldq5FIbA//Gyq393XBTVjW/ CaQbTKACRg9wtJtYUtZfRLIWvu78g2dMubyAT+3ExSW9+0sCaezdtTBW7aFgu4mETw9d sjUGbJNm+CfvAz4s4cL4NMNrbVFYhpGkHKwkVWVG+2ISqPcB6bIC6Jep1s8YBdx2X61w UO6Q== X-Gm-Message-State: AKS2vOzqZs7oO5yyb7sVJp3Rb8yQp8g9m7rj/UtnqrF714tJ7zy0gWp+ H7NScljtegWzwQ== X-Received: by 10.99.155.1 with SMTP id r1mr19813863pgd.273.1498802524141; Thu, 29 Jun 2017 23:02:04 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id t189sm14153007pfb.13.2017.06.29.23.02.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Jun 2017 23:02:03 -0700 (PDT) From: Caesar Wang To: heiko@sntech.de Subject: arm64: dts: rockchip: add SdioAudio pd control for rk3399 Date: Fri, 30 Jun 2017 14:01:53 +0800 Message-Id: <1498802513-535-1-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170629_230226_037805_6DFA6BC7 X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, zhangqing@rock-chips.com, dianders@chromium.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Caesar Wang MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The SdioAudio power domain includes the i2s/spdif/spi5/sdio. So this patch adds the pd control for rk3399 i2s/spdif/spi5/sdio, in order to save more power consumption. Signed-off-by: Caesar Wang --- Changes note: - As the Jeffy fixes the spi'cs issue recently as follows: aa09938 spi: rockchip: Disable Runtime PM when chip select is asserted c863795 spi: rockchip: Set GPIO_SS flag to enable Slave Select with GPIO CS c351587 spi: rockchip: fix error handling when probe - Posted this CL to support the SdioAudio power domain as commnets on https://chromium-review.googlesource.com/#/c/378562/ arch/arm64/boot/dts/rockchip/rk3399.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 33e17d7..a1dd0da 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -289,6 +289,7 @@ fifo-depth = <0x100>; resets = <&cru SRST_SDIO0>; reset-names = "reset"; + power-domains = <&power RK3399_PD_SDIOAUDIO>; status = "disabled"; }; @@ -678,6 +679,7 @@ pinctrl-0 = <&spi5_clk &spi5_tx &spi5_rx &spi5_cs0>; #address-cells = <1>; #size-cells = <0>; + power-domains = <&power RK3399_PD_SDIOAUDIO>; status = "disabled"; }; @@ -952,6 +954,11 @@ <&cru SCLK_SDMMC>; pm_qos = <&qos_sd>; }; + pd_sdioaudio@RK3399_PD_SDIOAUDIO { + reg = ; + clocks = <&cru HCLK_SDIO>; + pm_qos = <&qos_sdioaudio>; + }; pd_vio@RK3399_PD_VIO { reg = ; #address-cells = <1>; @@ -1372,6 +1379,7 @@ clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>; pinctrl-names = "default"; pinctrl-0 = <&spdif_bus>; + power-domains = <&power RK3399_PD_SDIOAUDIO>; status = "disabled"; }; @@ -1386,6 +1394,7 @@ clocks = <&cru SCLK_I2S0_8CH>, <&cru HCLK_I2S0_8CH>; pinctrl-names = "default"; pinctrl-0 = <&i2s0_8ch_bus>; + power-domains = <&power RK3399_PD_SDIOAUDIO>; status = "disabled"; }; @@ -1399,6 +1408,7 @@ clocks = <&cru SCLK_I2S1_8CH>, <&cru HCLK_I2S1_8CH>; pinctrl-names = "default"; pinctrl-0 = <&i2s1_2ch_bus>; + power-domains = <&power RK3399_PD_SDIOAUDIO>; status = "disabled"; }; @@ -1410,6 +1420,7 @@ dma-names = "tx", "rx"; clock-names = "i2s_clk", "i2s_hclk"; clocks = <&cru SCLK_I2S2_8CH>, <&cru HCLK_I2S2_8CH>; + power-domains = <&power RK3399_PD_SDIOAUDIO>; status = "disabled"; };