From patchwork Wed Apr 12 07:10:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 9676687 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 E0CD860381 for ; Wed, 12 Apr 2017 07:11:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D03CA284A3 for ; Wed, 12 Apr 2017 07:11:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1E5D285B3; Wed, 12 Apr 2017 07:11:59 +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 7563A284A3 for ; Wed, 12 Apr 2017 07:11:59 +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=z9ZC5ckEOsub0K4pT5hOOhvvK3Y/CXUa38fY7yxytE8=; b=fX8GEHQxNBpQAVDlap3r1pVgsS 8Bxtvsop0nxYezyBr+PHUo1tT10y9gKXH0WEIzjGW1AVIuubDQYtGB7q1A7D9UJk8RnVRLnt1+xy+ k4DqoCYl/i6KZelolATiuaWujoMxaMAdcBTeRV3vS2eLLzQ1dvrfV3G7vM5bv7t8D8xTsou49zhu/ 2zaxkqY4KaOqawxVnr/a7L5OFMaQ8pTkhE0OHqi4dUuqi0BSqW2gIRalH/J3SN+LNOoB0ZLctnMvq 9VMwsm/5iPgQ9w6uS6APTTlm+qwLaAB8u/F4icWU9MjdxpUM4uKkkNQ4nErqgvteHW3A6EHHmGmfJ JswXfXIw==; 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 1cyCRZ-00064s-Ju; Wed, 12 Apr 2017 07:11:57 +0000 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cyCRD-0005PJ-2u; Wed, 12 Apr 2017 07:11:41 +0000 Received: by mail-pg0-x242.google.com with SMTP id 79so3455118pgf.0; Wed, 12 Apr 2017 00:11:14 -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=5NshbgCghNRc325ctG4VIAEm39coILRyebKqi8j0r+c=; b=qxIyMTAJU1k7fqnRhyN1cSFy5d6AkfZt8Luapym4FnN2m1/lH1a//EssOgEiT0nofk cT/B5I4QAzzQrbyCg5pXPRwfhjiSO9kw0xDQREvi9FbP5sGhPigNhN4VBwx6gDsUIOrl O4FNoULAvv8jccuZb7VLv7iURjebwgSadpu/+LQGDz2NA5y2qeQcSQ/SK5dYK5a4rucV LE79KNhuKBxt5r5dU7dpIA8EkPH+Cw3niItKxIao5TI6s8+qU7bt06N//OiDjcDHjxVN jMqFJBTXs1p1nDRCwdTltCW53uVHu2Fkg2Yn+IjJ5HdK6lns+WNkPch/DFWqUZp/TMGp iZ/A== 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=5NshbgCghNRc325ctG4VIAEm39coILRyebKqi8j0r+c=; b=Scbrsmv/Tidxw4KYYcF5p0wJ/nxSiC6U59uoNWM0g5Z7uByHWQONc+eK2AxQv7gvCt E3i8v+V+wgQtb8X96W8e6Wxn/D4qpkNWcBwtNresk/5P9jZQ3VAp0hb3LkS3SlxWSDdL kvFGsjKv1MVb7SAvub+jiVtXrKWcGc7/eGUcqVlRY0CJjHCudWonM+Kyegt7ddyjGgSO 3m2eINCGsZVJXsBO1Wyq5pQZm9fHm9qvSefH0cckF1aV4rY5Tv/9TZDum6O39nlBB58s +7tFxzqyre9lEIcj8zU8aHH0y//d1m6QW5pYl13uLTymE2eyOUdaup9KaSQijGpGQYvZ ZMuQ== X-Gm-Message-State: AFeK/H0e21FQFr7NMJ1d6RtMhch4m5P7nCLTID9lc647lhkWWFBWhJP9Zx1ejOrcrAvO5g== X-Received: by 10.99.109.137 with SMTP id i131mr65794039pgc.103.1491981074338; Wed, 12 Apr 2017 00:11:14 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id i3sm34316224pfk.47.2017.04.12.00.11.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Apr 2017 00:11:13 -0700 (PDT) From: Kever Yang To: heiko@sntech.de Subject: [PATCH 4/4] arm64: dts: rk3399: add pinctrl for some peripheral Date: Wed, 12 Apr 2017 15:10:44 +0800 Message-Id: <1491981044-24635-4-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_001135_737304_5DF9DC60 X-CRM114-Status: UNSURE ( 8.65 ) 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: 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 pinctrl for sdio, sdmmc, pcie, spdif, hdmi. Signed-off-by: Kever Yang --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 113 +++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 54a5340..0096c70 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1737,6 +1737,91 @@ }; }; + sdio0 { + sdio0_bus1: sdio0-bus1 { + rockchip,pins = + <2 RK_PC4 RK_FUNC_1 &pcfg_pull_up>; + }; + + sdio0_bus4: sdio0-bus4 { + rockchip,pins = + <2 RK_PC4 RK_FUNC_1 &pcfg_pull_up>, + <2 RK_PC5 RK_FUNC_1 &pcfg_pull_up>, + <2 RK_PC6 RK_FUNC_1 &pcfg_pull_up>, + <2 RK_PC7 RK_FUNC_1 &pcfg_pull_up>; + }; + + sdio0_cmd: sdio0-cmd { + rockchip,pins = + <2 RK_PD0 RK_FUNC_1 &pcfg_pull_up>; + }; + + sdio0_clk: sdio0-clk { + rockchip,pins = + <2 RK_PD1 RK_FUNC_1 &pcfg_pull_none>; + }; + + sdio0_cd: sdio0-cd { + rockchip,pins = + <2 RK_PD2 RK_FUNC_1 &pcfg_pull_up>; + }; + + sdio0_pwr: sdio0-pwr { + rockchip,pins = + <2 RK_PD3 RK_FUNC_1 &pcfg_pull_up>; + }; + + sdio0_bkpwr: sdio0-bkpwr { + rockchip,pins = + <2 RK_PD4 RK_FUNC_1 &pcfg_pull_up>; + }; + + sdio0_wp: sdio0-wp { + rockchip,pins = + <0 RK_PA3 RK_FUNC_1 &pcfg_pull_up>; + }; + + sdio0_int: sdio0-int { + rockchip,pins = + <0 RK_PA4 RK_FUNC_1 &pcfg_pull_up>; + }; + }; + + sdmmc { + sdmmc_bus1: sdmmc-bus1 { + rockchip,pins = + <4 RK_PB0 RK_FUNC_1 &pcfg_pull_up>; + }; + + sdmmc_bus4: sdmmc-bus4 { + rockchip,pins = + <4 RK_PB0 RK_FUNC_1 &pcfg_pull_up>, + <4 RK_PB1 RK_FUNC_1 &pcfg_pull_up>, + <4 RK_PB2 RK_FUNC_1 &pcfg_pull_up>, + <4 RK_PB3 RK_FUNC_1 &pcfg_pull_up>; + }; + + sdmmc_clk: sdmmc-clk { + rockchip,pins = + <4 RK_PB4 RK_FUNC_1 &pcfg_pull_none>; + }; + + sdmmc_cmd: sdmmc-cmd { + rockchip,pins = + <4 RK_PB5 RK_FUNC_1 &pcfg_pull_up>; + }; + + sdmmc_cd: sdmcc-cd { + rockchip,pins = + <0 RK_PA7 RK_FUNC_1 &pcfg_pull_up>; + }; + + sdmmc_wp: sdmmc-wp { + rockchip,pins = + <0 RK_PB0 RK_FUNC_1 &pcfg_pull_up>; + }; + }; + sleep { ap_pwroff: ap-pwroff { rockchip,pins = <1 RK_PA5 RK_FUNC_1 &pcfg_pull_none>; @@ -1752,6 +1837,11 @@ rockchip,pins = <4 RK_PC5 RK_FUNC_1 &pcfg_pull_none>; }; + + spdif_bus_1: spdif-bus-1 { + rockchip,pins = + <3 RK_PC0 RK_FUNC_3 &pcfg_pull_none>; + }; }; spi0 { @@ -2011,6 +2101,19 @@ }; }; + hdmi { + hdmi_i2c_xfer: hdmi-i2c-xfer { + rockchip,pins = + <4 RK_PC1 RK_FUNC_3 &pcfg_pull_none>, + <4 RK_PC0 RK_FUNC_3 &pcfg_pull_none>; + }; + + hdmi_cec: hdmi-cec { + rockchip,pins = + <4 RK_PC7 RK_FUNC_1 &pcfg_pull_none>; + }; + }; + pcie { pcie_clkreqn: pci-clkreqn { rockchip,pins = @@ -2021,6 +2124,16 @@ rockchip,pins = <4 RK_PD0 RK_FUNC_1 &pcfg_pull_none>; }; + + pcie_clkreqn_cpm: pci-clkreqn-cpm { + rockchip,pins = + <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + pcie_clkreqnb_cpm: pci-clkreqnb-cpm { + rockchip,pins = + <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; + }; }; };