From patchwork Mon Mar 18 09:58:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 160478 Delivered-To: patch@linaro.org Received: by 2002:ac9:18c7:0:0:0:0:0 with SMTP id i7csp2580319oce; Mon, 18 Mar 2019 02:59:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYGOU/kzfh8wqRsNZQYmnRgXjS9suIWRkGLpA1RbYIeLKJEduo9n1zj1DSBQ81CjhrFvjv X-Received: by 2002:a17:902:2903:: with SMTP id g3mr18670808plb.222.1552903180708; Mon, 18 Mar 2019 02:59:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552903180; cv=none; d=google.com; s=arc-20160816; b=H6fZDmMF2bPESEobhEyY/pgePw1J1B7eJyGWj7O/Ex5bqpXB4QR0TUAGeX3uBRhSY3 ePIcbC6H7Fj/jDNrHKT93/RwdrT84Ad3Pz6RX+EZd4zNPvsQfBIt1ct1oiQxUfZTZYIG 8gtCK7cLV/sYZcIKKU+EzMxux/oICSYlpumTF1iRICOCdujgVlnoFmstTAVDvonk72eQ F9vsR2V2gfSRyK+L3dECIMtHSaes8I9Ghb3NcNOaqK/v51Z4BLbMbHjz2k/+j2GMnXes O1tVPH15YYo+0DSvdydMpLFpT592xkqO0TpmhONIvhGpUDFvN7S/tSj8TFCGr8oxBUUK PrrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=x3eHeD7NoqoSXtftkvb/ote82xUCD6KJ4VjSqqVyBww=; b=IJrXPohGc0gtbTzdzXPpd5PzSPkbgB/SKYy7tQBTtmqjDgtIcQpjih/8ytqqQ6dOkR e9rfbz3eGj43s5K25LBzkaEjep4p562HGdmT+xVkyVQBiUMZACIIhVhZp9/V5Kn6w2pC gvnWApu6RdFS0C6ccZXi/55v7ePQhIAKVH4S+w2nLljnADQCQm0QS55VtsIInFB80Sb9 V3tEJYIx0FNan/HotQ2OZb8b6tlSYqF9kg7rFxqRNBW0GqhbOFfS1VUbJjoYu0mCLH4a kWpuzj2JPbkmy0gIyfXdzWTfE+WTocyBU+iIM8U77yt6hdHZXqbbwdNhIJk7IFbKLRuS e2cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="0yQyXf+/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14si9016451pll.86.2019.03.18.02.59.40; Mon, 18 Mar 2019 02:59:40 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="0yQyXf+/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727891AbfCRJ7j (ORCPT + 31 others); Mon, 18 Mar 2019 05:59:39 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:55927 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726933AbfCRJ66 (ORCPT ); Mon, 18 Mar 2019 05:58:58 -0400 Received: by mail-wm1-f67.google.com with SMTP id 4so12251496wmf.5 for ; Mon, 18 Mar 2019 02:58:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=x3eHeD7NoqoSXtftkvb/ote82xUCD6KJ4VjSqqVyBww=; b=0yQyXf+/gZAHiHFv8dS1dlc2q2pFMl8jLkkS6WcZLV9by/P5q6Xdb2NRu/Lw00Pa0P fPAFDRjhK0S6VibqKfS+K2UHyJ7EtWUVkVk8zzyxSYWzauAArR2Ve73f6pV8IKqCPOKk 5WVDkhwZ+I5aNzt5VbHZGwTlH+AQ6Dk6JnLFG5Gdb73riQmBrMF6TEzy6Sss8Ww1xER2 AuiFyqcAcbj3AMjqmoIi/7no+mJlXFoG7kfeVQs5BOw8QWv2I0d3SQhdc/fHcguqNoba Bi654ZZ49k/SxQv7ko1kjI3TUr1HAPe1jJtBwMhuy3YoZn/3h0Apo6Sw9oeEV670wBqM SMKQ== 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:mime-version:content-transfer-encoding; bh=x3eHeD7NoqoSXtftkvb/ote82xUCD6KJ4VjSqqVyBww=; b=r3ofKdVoXKD6PnMMC76orl/KUjoodhfmHkR+TotpYgRMiYHu8v43XJ5/LKYmRAEcUn PMl7psiPzvsepKb31lgOJCGBJTaYvJ6QWHI1kYWoyz/AzxSLLuOjgdnYP73cDedgflA7 noV4jRexnCfGnhJYjdA44ZOBaQLzGP+uiXEDzykxPApvjgJe+vaOoQBKvyVpDcFUAkv1 HhZmH2D8PoANw4GHVzTuch1ICLFtzee+kwZmBs9EPEjLpMTcGDohEgPpXoELgOsGYFCy J+FtcmRA3Auo7pU1Rf2CuxXiVbCEScT1v7qs/iILz44OVxF6n0xWT0B918OCt1DHXWiS C/bw== X-Gm-Message-State: APjAAAUNk64V8nTVb6YQcm0nGZPLBfcOUf2Uk398BP5aVqOP4QpTYlfI t0u1hXIBKZqn6Pr88xyszX5owgQLPgqETg== X-Received: by 2002:a1c:8112:: with SMTP id c18mr10736870wmd.41.1552903136279; Mon, 18 Mar 2019 02:58:56 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id g8sm5459034wro.77.2019.03.18.02.58.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Mar 2019 02:58:55 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com Cc: Jerome Brunet , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong Subject: [PATCH v2 2/8] arm64: dts: meson: g12a: add pinctrl support controllers Date: Mon, 18 Mar 2019 10:58:45 +0100 Message-Id: <20190318095851.4062-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190318095851.4062-1-narmstrong@baylibre.com> References: <20190318095851.4062-1-narmstrong@baylibre.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jerome Brunet Add the peripheral and always-on pinctrl controllers to the g12a soc. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 42 +++++++++++++++++++++ 1 file changed, 42 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index 5c0983edf837..e050737a1b3e 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -92,6 +92,29 @@ #address-cells = <2>; #size-cells = <2>; ranges = <0x0 0x0 0x0 0x34400 0x0 0x400>; + + periphs_pinctrl: pinctrl@40 { + compatible = "amlogic,meson-g12a-periphs-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gpio: bank@40 { + reg = <0x0 0x40 0x0 0x4c>, + <0x0 0xe8 0x0 0x18>, + <0x0 0x120 0x0 0x18>, + <0x0 0x2c0 0x0 0x40>, + <0x0 0x340 0x0 0x1c>; + reg-names = "gpio", + "pull", + "pull-enable", + "mux", + "ds"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&periphs_pinctrl 0 0 86>; + }; + }; }; hiu: bus@3c000 { @@ -138,6 +161,25 @@ clocks = <&xtal>, <&clkc CLKID_CLK81>; clock-names = "xtal", "mpeg-clk"; }; + + ao_pinctrl: pinctrl@14 { + compatible = "amlogic,meson-g12a-aobus-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gpio_ao: bank@14 { + reg = <0x0 0x14 0x0 0x8>, + <0x0 0x1c 0x0 0x8>, + <0x0 0x24 0x0 0x14>; + reg-names = "mux", + "ds", + "gpio"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&ao_pinctrl 0 0 15>; + }; + }; }; sec_AO: ao-secure@140 {