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: 9176877 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 4C676604DB for ; Tue, 14 Jun 2016 20:23:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C051265B9 for ; Tue, 14 Jun 2016 20:23:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2EF1328236; Tue, 14 Jun 2016 20:23:51 +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 B2823265B9 for ; Tue, 14 Jun 2016 20:23:50 +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 1bCuqg-0005vR-IM; Tue, 14 Jun 2016 20:22:10 +0000 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bCuqd-0005sY-Nb for linux-arm-kernel@lists.infradead.org; Tue, 14 Jun 2016 20:22:08 +0000 Received: by mail-pa0-x233.google.com with SMTP id bz2so381704pad.1 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=jLdxhWvHGOMNjzgrjoJtyftTrvLmsbBzXuWnIzJtTnNDISyOq7F8UyoVGXJoOPpTNp RO3CDUfQ0f12MrSMqisz4NbNOkNDcSiwQmPPvgNl7GeleTxCmAp/nJGaRXzJrU6PUBro EpnIVq2J7FMJ944YxOgXNbBN8wo0ZMWx7ijtZIS10DuisNPjzC1fnIjPN7WS787QPU6F zjycr1z16kWUaTPhQ8r3jYgqFN92KzYm31OdQ4bbLgr/BGW28LU2SPeNwiirGrO9IK/6 Mm7K9nPvQFmYKdBRF3XXgkCUqvnobjNNv5ftBz6WYc5Cpz9d8hDE3+c92oLbxvoIXz4v x1sQ== X-Gm-Message-State: ALyK8tK+h4zJI778fk/Lya+X/8uY0f1MMhRtmaibmO8xRh+JOZRiLOOWo51k6YZI5rYayBD7 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_815038_AE707EA4 X-CRM114-Status: GOOD ( 11.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: 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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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 =