From patchwork Tue Jun 14 20:21:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 9176871 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 ED8A96021C for ; Tue, 14 Jun 2016 20:22:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF2FC265B9 for ; Tue, 14 Jun 2016 20:22:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D39D328236; Tue, 14 Jun 2016 20:22:12 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 73B3F265B9 for ; Tue, 14 Jun 2016 20:22:12 +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 1bCuqf-0005vG-G5; Tue, 14 Jun 2016 20:22:09 +0000 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bCuqd-0005sW-OW for linux-rockchip@lists.infradead.org; Tue, 14 Jun 2016 20:22:08 +0000 Received: by mail-pa0-x232.google.com with SMTP id b13so398529pat.0 for ; Tue, 14 Jun 2016 13:21:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=kAemSBz/YwJBGNqubuX5oPnqheiejbZrMcdLyKL/wFg=; b=Xa+LmhgzNi4w04v4G6Hp0gb6WL4PnsU45psgyvsUR68d66Tk2DvPb07II87FLPL9qo nC7ys/FVehFflm3w6XtmJwmkVIni0iW/BFeuR6GQdkVTqqtH9vqgcZLAw6Akk3ilmD1m Q8t/EGS+oq4P6A8z+VPMMnvzWauE8jtuFcSoE= 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; bh=kAemSBz/YwJBGNqubuX5oPnqheiejbZrMcdLyKL/wFg=; b=DSk+qz+beLpgr32GSCWyAOnV13JIdVVgUPM8AQ6/d8hcInJRMYpgS2rm9zuyAXbVja jTnoXpn2+UcndbK2Prt06VMK3tXGy3Vy31KKsfZ173fMrMUTywVoZ3h5rMw1WyLtKMNA fjY1vkNAsTG11QXsd45f+xz48lUptuYvnlKD518t/PQbbDfNuTciqVr2BfS5RK+1Nhyg BODGzePWJ8Th8RE4EO5QgaJ3/Vy0SRS+Vxgp29YZM+TRguipznMSUURA9A9KpvjcYrx9 oJiG9W369ztcCcCvbcQy2G5RjS0cJIDm3KwtniDFikXCaqHoIvV3E/ga6jBcG6oCAioS eanw== X-Gm-Message-State: ALyK8tJ98HRDZ9cOmnexVNviO9Z0RSn/YfwZNWz+jiVteUF7x83UnfF4DFuBhRsym0n2W823 X-Received: by 10.66.145.35 with SMTP id sr3mr29855563pab.82.1465935704165; Tue, 14 Jun 2016 13:21:44 -0700 (PDT) Received: from tictac.mtv.corp.google.com ([172.22.65.76]) by smtp.gmail.com with ESMTPSA id c189sm17899992pfg.19.2016.06.14.13.21.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Jun 2016 13:21:43 -0700 (PDT) From: Douglas Anderson To: Heiko Stuebner Subject: [PATCH] arm64: dts: rockchip: add ap_pwroff and ddrio_pwroff pins for rk3399 Date: Tue, 14 Jun 2016 13:21:11 -0700 Message-Id: <1465935671-13890-1-git-send-email-dianders@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160614_132207_839942_6E5808A8 X-CRM114-Status: GOOD ( 10.30 ) 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@arm.com, devicetree@vger.kernel.org, briannorris@chromium.org, yamada.masahiro@socionext.com, catalin.marinas@arm.com, dbasehore@chromium.org, will.deacon@arm.com, Douglas Anderson , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, olof@lixom.net, jay.xu@rock-chips.com, linux-arm-kernel@lists.infradead.org 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 There are two sleep related pins on rk3399: ap_pwroff and ddrio_pwroff. Let's add the definition of these two pins to rk3399's main dtsi file so that boards can use them. These two pins are similar to the global_pwroff and ddrio_pwroff pins in rk3288 and are expected to be used in the same way: boards will likely want to configure these pinctrl settings in their global pinctrl hog list. Note that on rk3288 there were two additional pins in the "sleep" section: "ddr0_retention" and "ddr1_retention". On rk3288 designs these pins appeared to actually route from rk3288 back to rk3288. Presumably on rk3399 this is simply not needed since the pins don't appear to exist there. Signed-off-by: Douglas Anderson --- 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 d331e800c00a..209f555b7c29 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -806,6 +806,16 @@ }; }; + sleep { + ap_pwroff: ap-pwroff { + rockchip,pins = <1 5 RK_FUNC_1 &pcfg_pull_none>; + }; + + ddrio_pwroff: ddrio-pwroff { + rockchip,pins = <0 1 RK_FUNC_1 &pcfg_pull_none>; + }; + }; + spdif { spdif_bus: spdif-bus { rockchip,pins =