From patchwork Wed Aug 31 23:28:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 9308013 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 42C92601C0 for ; Wed, 31 Aug 2016 23:29:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3424F2913E for ; Wed, 31 Aug 2016 23:29:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27FAB2914B; Wed, 31 Aug 2016 23:29:41 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id BD5F82913E for ; Wed, 31 Aug 2016 23:29:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bfEwu-0004xW-9w; Wed, 31 Aug 2016 23:29:40 +0000 Received: from mail-pa0-f66.google.com ([209.85.220.66]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bfEwe-0004s3-3v; Wed, 31 Aug 2016 23:29:25 +0000 Received: by mail-pa0-f66.google.com with SMTP id ez1so3286618pab.3; Wed, 31 Aug 2016 16:29:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5FmvYUeOJF2SQqLJ5htD14KAJ8GPNF3o2TIAtji9KrQ=; b=d9XB0JVQu1qFsrnCdue2XA/JpETeUGltMY9TI5uITczOKf6PVdbmf+Qap6yYjllxWV Xpd7zArB21ESn9MfKhd9Tu63qbWOh8P7KVoBCeN2b1eUqsANAUz7PbxMLkUkTgfTld01 QZIv7xfNOqVprFoYHplofTg3481TJxgtYvH/kp0Zon7B6J/bGYPAES/fyhbu0ytFfWHS WI1nJ6UdZ5fGnbygAdzCBeq2ZELLBwl+vcfDkFlwBcVwCQWFZPkoq8ZhcCGJWwZSvIcA npB11w/sC6MYPtrJUnxEaz5uoKa9luq6+7rr6JXHpiqn8BvNWGWHuvPj/pZgDxtGaOmQ Om1Q== X-Gm-Message-State: AE9vXwNBU1CIdUvR/SSzbA/aeg2uoBfiNikWfGNnyuQryWxUkY/mOBvtb1Fgm0Os2Dgzow== X-Received: by 10.66.43.7 with SMTP id s7mr21718626pal.27.1472686143184; Wed, 31 Aug 2016 16:29:03 -0700 (PDT) Received: from nb.corp.google.com ([172.22.52.177]) by smtp.gmail.com with ESMTPSA id y6sm2228340pav.1.2016.08.31.16.29.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Aug 2016 16:29:02 -0700 (PDT) From: Caesar Wang To: Heiko Stuebner , netdev@vger.kernel.org Subject: [PATCH v3 3/5] arm64: dts: rockchip: add the gmac power domain on rk3399 Date: Thu, 1 Sep 2016 07:28:50 +0800 Message-Id: <1472686132-27827-4-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1472686132-27827-1-git-send-email-wxt@rock-chips.com> References: <1472686132-27827-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160831_162924_507857_993F8D76 X-CRM114-Status: GOOD ( 10.01 ) 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 , Huang Tao , Brian Norris , Xing Zheng , Elaine Zhang , Masahiro Yamada , Catalin Marinas , dbasehore@chromium.org, Will Deacon , Douglas Anderson , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, Rob Herring , Roger Chen , David Wu , Shunqian Zheng , Jianqun Xu , linux-arm-kernel@lists.infradead.org, Caesar Wang MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch supports the gmac pd to save power consumption. Even though some boards not need Ethernet support, the driver core can also take care of powering up the pd before probe. Signed-off-by: Roger Chen Signed-off-by: Caesar Wang --- Changes in v3: - leave into two patches based on patchv2, and fix nits and commit, as comment on https://patchwork.kernel.org/patch/9306339/ Changes in v2: - Fixes the order, ss Heiko commnets on https://patchwork.kernel.org/patch/9305991/ arch/arm64/boot/dts/rockchip/rk3399.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 32aebc8..2ab233f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -611,6 +611,11 @@ status = "disabled"; }; + qos_gmac: qos@ffa5c000 { + compatible = "syscon"; + reg = <0x0 0xffa5c000 0x0 0x20>; + }; + qos_hdcp: qos@ffa90000 { compatible = "syscon"; reg = <0x0 0xffa90000 0x0 0x20>; @@ -739,6 +744,11 @@ }; /* These power domains are grouped by VD_LOGIC */ + pd_gmac@RK3399_PD_GMAC { + reg = ; + clocks = <&cru ACLK_GMAC>; + pm_qos = <&qos_gmac>; + }; pd_vio@RK3399_PD_VIO { reg = ; #address-cells = <1>;