From patchwork Wed Apr 12 07:10:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 9676681 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 DD39060381 for ; Wed, 12 Apr 2017 07:11:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDCED285B6 for ; Wed, 12 Apr 2017 07:11:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C27BE285BD; Wed, 12 Apr 2017 07:11:47 +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=-0.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,URIBL_BLACK 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 7C0BB285B6 for ; Wed, 12 Apr 2017 07:11:47 +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:References: In-Reply-To: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:List-Owner; bh=FyGAwGaIEfwWqSXpGCa9EcUUFu17yheKoDYSPdsdXXg=; b=cl80vEAKIQPnOkykcRC9G6xT82 4nDLUox34expjzKw9M/oZlLslMp949sppDZ9Tz2CO8f4Ygn8ncitZ/MvhfzUWU8qeqmJgyCRMax7T ly9uJhM6HJbwh6abOcR3LBv4BXfoKDnE6NMOXu39A5S+un3mjkbSiT6KnDFfrMdN9GfIUxWJjM4nr toa6GOtMJos+942vce4EZuEBqSXfzIAMqaBYaA/k7Bs7EN2XNuvc/4AvyaprQ0LDM3dGscHOozsMv BVBzdiAbRMevvjH8GvPIkhIZMqaFA02Tinwn2IHUQ1BJfVEWbP65+pwn3h3BWqKL5qlBb6Jz7rEpM okimU/Pw==; 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 1cyCRL-0005lk-L6; Wed, 12 Apr 2017 07:11:43 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cyCR3-0005OZ-HM; Wed, 12 Apr 2017 07:11:27 +0000 Received: by mail-pf0-x241.google.com with SMTP id o126so3310399pfb.1; Wed, 12 Apr 2017 00:11:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=EFMu5wUj8vGJ1raCYQm8mSg31ijCVh3CyG4Gd2yFmwA=; b=YBvGgoG1P9GyhfYTo+t0VG13KMag8SqSajiIFcd60KLubTSeHRuw9ORk1wdVz75Cw0 S3tmeY0TZlmXgP5BOTcL+JzagdM74q82JHmMPYnHho1a14M3Ig+d9tufF9/zUptgwMIm /ipclXJmPbF3ukQMppWOG+zwj6fW5GscJfUhcYjOIB8dR46KD77AxbNnceHMrID5N7Fn yaBnPoa+KHKIRZIh1AMEF7UGExmtDYWOceggdXnSSIhZUhJ+4kGle77jIbndQ18UY0lB KBuVJAox2zVy6Dypgct2IzB3xyVvTgFKh8nBmNrgtq8Ye3LJ8ilq80AlNtAfQEuzN3fO +O3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=EFMu5wUj8vGJ1raCYQm8mSg31ijCVh3CyG4Gd2yFmwA=; b=gTGAQHXb2pZGCOVoiHMo6xftAlruxR9aZgVymrzJXq4O3ti94cK8/MbRKzQsLPCZVf jvCtlbQT8hJ0akibIUnpAxflHTpnEcE7BDewM4bTSFsrEVZoncG6Jo27OkkDsXTBs5pd eN9TPyJQvGmTrji9sM9lkZ2OIgkNxjKN2aLh50OOuNHJcC/xQtgPv1bVsdeRVQ9uHxr9 4jMBU16xwZcMaI94FFgYk9dRulI74CPNprJUETzfORhs5oWDrriZjcg0Glb65QrOIMzH Tqmi7WYQLjP8RrQTAB58CIZ3R1vIe3Mfz9ExfVaqdM0ZnPaPEUImkm/2MRtpwbpBVPRE UBqA== X-Gm-Message-State: AN3rC/6ogfB1uAJoEmjCcaMf6n2xtaQjFcWeYYsZKX3oiammUW6R5kmz0Ol7kvoUfB/YiA== X-Received: by 10.98.252.72 with SMTP id e69mr23115025pfh.247.1491981064592; Wed, 12 Apr 2017 00:11:04 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id i3sm34316224pfk.47.2017.04.12.00.11.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Apr 2017 00:11:04 -0700 (PDT) From: Kever Yang To: heiko@sntech.de Subject: [PATCH 2/4] arm64: dts: rk3399: add power domain for some peripheral Date: Wed, 12 Apr 2017 15:10:42 +0800 Message-Id: <1491981044-24635-2-git-send-email-kever.yang@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1491981044-24635-1-git-send-email-kever.yang@rock-chips.com> References: <1491981044-24635-1-git-send-email-kever.yang@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170412_001125_639895_6B2D7F3C X-CRM114-Status: GOOD ( 10.42 ) 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: Douglas Anderson , devicetree@vger.kernel.org, Brian Norris , Catalin Marinas , Shawn Lin , Elaine Zhang , Will Deacon , Kever Yang , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Rob Herring , David Wu , Mark Rutland , Jianqun Xu , 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 Add power domain for sd, usb, edp. Signed-off-by: Kever Yang --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 36 +++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 387ae34..9d44c19 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -947,6 +947,10 @@ }; /* These power domains are grouped by VD_LOGIC */ + pd_edp@RK3399_PD_EDP { + reg = ; + clocks = <&cru PCLK_EDP_CTRL>; + }; pd_emmc@RK3399_PD_EMMC { reg = ; clocks = <&cru ACLK_EMMC>; @@ -958,11 +962,33 @@ <&cru PCLK_GMAC>; pm_qos = <&qos_gmac>; }; - pd_sd@RK3399_PD_SD { - reg = ; - clocks = <&cru HCLK_SDMMC>, - <&cru SCLK_SDMMC>; - pm_qos = <&qos_sd>; + pd_perihp@RK3399_PD_PERIHP { + reg = ; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&cru ACLK_PERIHP>; + pm_qos = <&qos_perihp>, + <&qos_pcie>, + <&qos_usb_host0>, + <&qos_usb_host1>; + + pd_sd@RK3399_PD_SD { + reg = ; + clocks = <&cru HCLK_SDMMC>, + <&cru SCLK_SDMMC>; + pm_qos = <&qos_sd>; + }; + }; + pd_sdioaudio@RK3399_PD_SDIOAUDIO { + reg = ; + clocks = <&cru HCLK_SDIO>; + pm_qos = <&qos_sdioaudio>; + }; + pd_usb3@RK3399_PD_USB3 { + reg = ; + clocks = <&cru ACLK_USB3>; + pm_qos = <&qos_usb_otg0>, + <&qos_usb_otg1>; }; pd_vio@RK3399_PD_VIO { reg = ;