From patchwork Thu Mar 7 15:13:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10843119 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3F0611575 for ; Thu, 7 Mar 2019 15:14:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 294A328D59 for ; Thu, 7 Mar 2019 15:14:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D1DF2E2E1; Thu, 7 Mar 2019 15:14: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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 B88A828D59 for ; Thu, 7 Mar 2019 15:14:58 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=arcOYp6yorDrlqF4AUoKSLX9J39zxh6OQtXGzsFEQ60=; b=ntlTuJe1cc7Rk6 5SJZ3N5AFhwLvkmBnld/NrcKkqchWoeZeOLaXJ9Vd3RR44XjBh/3A7kTyrd2VNPGyOP1TUGVpWH+F sCfeNytr4P8gg5G062pxxf0eC27nvUFVjzepkx7VlLioWNH7CrRIifROnq3NSa9VmxjhUZ+rUVBr+ 1WrJw4DLp4RKUvYOAi1bzPAURiq+G5I3Ytmd7jFhjEyyzcy1lPHSHs4/G2h43mcXR136KxjK+PnDX CjKhh1IVYdVP6pnd7+xs/Vo7tgHmbu2XWB+UNDU0dKKgV1IBfSR61qiHIYUSNcjzPyFxdnPQXWUAm EwuEOqjEolI99ElBLG2A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1ujU-0004qr-Ks; Thu, 07 Mar 2019 15:14:52 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1uiR-0003Qt-R8 for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2019 15:13:52 +0000 Received: by mail-wr1-x443.google.com with SMTP id y6so2706810wrn.7 for ; Thu, 07 Mar 2019 07:13:47 -0800 (PST) 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=R5vLPLHD1u8ZKSzf8/MNIriNP/bQNhz6kTsOhKPAebg=; b=M0/9j5+ktnBXtm9Y3+kdp2HiDFOK3F8lvKtWoJsEBoSLGk0lcKV9olvxIgFpDV41kW 8f2VuawmWRPYSI5fN/w7hb/Dmi/JN32VIRxPAn8/vKp0WMyeXLrBUWSBgbcmyhWNa6jS nicp5lAM/G224vGGmwapFtQhLGsSSy0uRmgNSsA75wM8UYXltedl/t1IaKIgtu7qgtmF EWlUOBsb0lkMxlyedFpfu+QseJc695GbpFb6QHnXOqHAMFBG4ed+yPzr0gYTtYnkp5pl cDas9vkVwkRYPTzAXJ9vwhLIAKxpd9r/NcJNggnneSElHczzMWKWtLVD6vmC9qbSAuht DPag== 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=R5vLPLHD1u8ZKSzf8/MNIriNP/bQNhz6kTsOhKPAebg=; b=kiW/96BgYtHOeYHTLt4K2GnBl9DhkrXjJlAk+e4G9sA3R1G6T6WoxoJ/4w8pAw785z jU+HpmDLI8K5ilVV11vEaMr/9KefNRF6h1itAjwqUlr0iHBng5EFWEkVcFb7WTT8zILD 1ItNQI/mU6LE0L1NYpl1EQCBDK9qxgmec4KieQW3KDghi2noR9W4YqSU3O9cVTvwpcNn q9oioEKudpgxwU9VmV1ScSLh16ERNKfI7F25sZrSvKuR/QYsNOSu8zoay+MmjdmkUyi3 0Hw49I48kLcyy74iXx85MzZPJYUIL+RozkkkhUyHkHyqa0H/sOfkHocE9f4yiaUwlRHF HiAA== X-Gm-Message-State: APjAAAUAHfYsp8YCeF6Q5TetzfKi96hCiRGINyy/7g2tyM4tJOVQ5vue by5w7ZMCeZQScHGlRAFFghmGVw== X-Google-Smtp-Source: APXvYqwgmx0WDwSidnP2KR1Czind1bkHzqSxfAgLdwZ1QVm1YlPCf529X8abJGgQJOMDywgb0liRAA== X-Received: by 2002:a5d:668b:: with SMTP id l11mr7139662wru.116.1551971626321; Thu, 07 Mar 2019 07:13:46 -0800 (PST) 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 r15sm5756563wrt.37.2019.03.07.07.13.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Mar 2019 07:13:45 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 3/9] arm64: dts: meson: g12a: add pinctrl support controllers Date: Thu, 7 Mar 2019 16:13:35 +0100 Message-Id: <20190307151342.7381-4-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190307151342.7381-1-narmstrong@baylibre.com> References: <20190307151342.7381-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_071347_887633_AA6C0DE6 X-CRM114-Status: GOOD ( 11.72 ) 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: linux-amlogic@lists.infradead.org, Neil Armstrong , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet 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 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 | 41 +++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index f2fc0f654150..c141cc7f6b09 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -91,6 +91,28 @@ #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 { @@ -137,6 +159,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 {