From patchwork Tue Oct 23 19:06:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 149466 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1080919ljp; Tue, 23 Oct 2018 12:07:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV63z+bwVbbxpykEk9L8Xs6VX3PB4mJzRFSliWRW17aOYxTe1EqYjkSo9kGBSycrBVKigPYMA X-Received: by 2002:a17:902:b206:: with SMTP id t6-v6mr50896004plr.228.1540321642106; Tue, 23 Oct 2018 12:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540321642; cv=none; d=google.com; s=arc-20160816; b=s4sJHEoEIyVDupR2hb4L1McgX7ZMDGHRogBEUSB8IaxoJIIv76VpO9HtO15OJxQc0c xKxwlL9aK0q+ZjCr8WQzPccYtgAPj1yim1+/ei15m3kpshbJi0Xn59WNWTtRmg69Hjd8 0IgvV4Fanhx6jchuXs6yg2p7AY5TCDnNYC68EFCcM7zFY78Vv68cLuouP3ocHpwjoZhT 6nahvHnHfz9wyVDpYZjyv6iAB+BiA737u314dPknCec3n9MB0LlbSTHRea3aYwmwu4tk B8JGhV7OOHgOuNjPeysvMEh4LgTNOSKaD8FS8cyFZ8H6nqldR8ELzkxRHPN2v8DiSAyu ALrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=dM5n3AfaOF7ndZCp2d7aOJs0/BKCgH5twTcGD2xF2B8=; b=tG7pnUqSXjRzq27YQ1N0JRkIw8LhktiRtq00EB2bfqBLDKXcwXL0KubPvSXoYC1jbU bvLaGKmssRnvUazWXM0ZnMWFLx/UDeAFCc8VDQsERjvtNs3i7rlEVhOSwxn4UlEL4yYW DJAYahmMmFjm/sPndVSvrBByVxNcTzbVyPpMnYDL12DvdaMyHtB+p4TP5JkAvT8AUxd1 lD+t6o/11DOz+2VWbv7tn5BGHX/VcKgZUa/F+Kqzj1/e7Q19Bt5NYVUgL05SdNWw/mct eMeYVK3nNoqzW/48c0Vfqxpss7Ago/is6PPuJwjHB1e0TOewDzhLJ+Z2nSGbteFx6ZKz 8CrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C6lxIww7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a15-v6si1981044pfn.248.2018.10.23.12.07.21; Tue, 23 Oct 2018 12:07:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C6lxIww7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728856AbeJXDcA (ORCPT + 32 others); Tue, 23 Oct 2018 23:32:00 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41166 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728426AbeJXDb7 (ORCPT ); Tue, 23 Oct 2018 23:31:59 -0400 Received: by mail-pg1-f196.google.com with SMTP id 23-v6so1092756pgc.8 for ; Tue, 23 Oct 2018 12:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dM5n3AfaOF7ndZCp2d7aOJs0/BKCgH5twTcGD2xF2B8=; b=C6lxIww7QnkYoipUdnNucUUmZRiyLif9qnOaWtSC5GWsuDAscHjY0vZNKm6ikmYYRW Abr73puaNmDE2rXe3v9asCD2zkFkFBLxSSku0Ks+vJWQifxsDNaC8vnime5ZPUzGfpdJ bMeMyi0uwTQCCUvyD1itU+rlowYekJ+Dkf8Ao= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dM5n3AfaOF7ndZCp2d7aOJs0/BKCgH5twTcGD2xF2B8=; b=rGDIQZsl/wDeN+Mcmu2F7c3pDlV8f7VBS9NfQeeEJF6U4fQXic0AtZgR6KxkOVlyvo AVVM7Xkuo8HkOziBwsKz/31Y0MHVYnKmzl7vuK8BlArdZMDr9gl7EEc8twqt27W6pfgS 6RRh7dnJYdyCy+2Z+TpCarbtKJCcRXxMiL2lZQWAjw9qvkDk9s6u9ffRCdI+PE9Nc5mT ZukvSrqOJc5GEHaT2TjzlPVp9wlhkvzcB03+SGVCob9u+Otg5A3NIosaBLBnaDOnr+mz iel3CYQDQdWpMiXK/GciFee1L2CihSVEkH2mwcgfr4VNPQRk8ezMJqOa+fhU2eCMxbX+ N3aQ== X-Gm-Message-State: AGRZ1gKkPlri88xZxt875frdmCvgDBqitczwxa8Umgus4jwD0xSVVzom LrE+7/A6BgneA5mQFZLwJIJD X-Received: by 2002:a63:f844:: with SMTP id v4mr1860975pgj.82.1540321639000; Tue, 23 Oct 2018 12:07:19 -0700 (PDT) Received: from localhost.localdomain ([2405:204:744c:7bc5:17c:5f65:76c4:d542]) by smtp.gmail.com with ESMTPSA id v189-v6sm4897075pfb.54.2018.10.23.12.07.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 12:07:18 -0700 (PDT) From: Manivannan Sadhasivam To: xuwei5@hisilicon.com, linus.walleij@linaro.org, robh+dt@kernel.org Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH 1/5] arm64: dts: hisilicon: Add Pinctrl support for HiKey970 board Date: Wed, 24 Oct 2018 00:36:51 +0530 Message-Id: <20181023190655.12004-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181023190655.12004-1-manivannan.sadhasivam@linaro.org> References: <20181023190655.12004-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add pinctrl support based on "pinctrl-single" driver for HiKey970 development board from HiSilicon. Signed-off-by: Manivannan Sadhasivam --- .../boot/dts/hisilicon/hikey970-pinctrl.dtsi | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 arch/arm64/boot/dts/hisilicon/hikey970-pinctrl.dtsi -- 2.17.1 diff --git a/arch/arm64/boot/dts/hisilicon/hikey970-pinctrl.dtsi b/arch/arm64/boot/dts/hisilicon/hikey970-pinctrl.dtsi new file mode 100644 index 000000000000..64fb9a3bd707 --- /dev/null +++ b/arch/arm64/boot/dts/hisilicon/hikey970-pinctrl.dtsi @@ -0,0 +1,87 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Pinctrl dts file for HiSilicon HiKey970 development board + */ + +#include + +/ { + soc { + range: gpio-range { + #pinctrl-single,gpio-range-cells = <3>; + }; + + pmx0: pinmux@e896c000 { + compatible = "pinctrl-single"; + reg = <0x0 0xe896c000 0x0 0x72c>; + #pinctrl-cells = <1>; + #gpio-range-cells = <0x3>; + pinctrl-single,register-width = <0x20>; + pinctrl-single,function-mask = <0x7>; + /* pin base, nr pins & gpio function */ + pinctrl-single,gpio-range = <&range 0 82 0>; + }; + + pmx2: pinmux@e896c800 { + compatible = "pinconf-single"; + reg = <0x0 0xe896c800 0x0 0x72c>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <0x20>; + }; + + pmx5: pinmux@fc182000 { + compatible = "pinctrl-single"; + reg = <0x0 0xfc182000 0x0 0x028>; + #gpio-range-cells = <3>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <0x20>; + pinctrl-single,function-mask = <0x7>; + /* pin base, nr pins & gpio function */ + pinctrl-single,gpio-range = <&range 0 10 0>; + + }; + + pmx6: pinmux@fc182800 { + compatible = "pinconf-single"; + reg = <0x0 0xfc182800 0x0 0x028>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <0x20>; + }; + + pmx7: pinmux@ff37e000 { + compatible = "pinctrl-single"; + reg = <0x0 0xff37e000 0x0 0x030>; + #gpio-range-cells = <3>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <0x20>; + pinctrl-single,function-mask = <7>; + /* pin base, nr pins & gpio function */ + pinctrl-single,gpio-range = <&range 0 12 0>; + }; + + pmx8: pinmux@ff37e800 { + compatible = "pinconf-single"; + reg = <0x0 0xff37e800 0x0 0x030>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <0x20>; + }; + + pmx1: pinmux@fff11000 { + compatible = "pinctrl-single"; + reg = <0x0 0xfff11000 0x0 0x73c>; + #gpio-range-cells = <0x3>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <0x20>; + pinctrl-single,function-mask = <0x7>; + /* pin base, nr pins & gpio function */ + pinctrl-single,gpio-range = <&range 0 46 0>; + }; + + pmx16: pinmux@fff11800 { + compatible = "pinconf-single"; + reg = <0x0 0xfff11800 0x0 0x73c>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <0x20>; + }; + }; +};