Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4419388iob; Sun, 8 May 2022 12:06:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylYCLo7u8kFvNjvo4BnCokh8M5KKceAx8NfSalUttTAyOcjgx1OUNSBXEskkBqszZbswyj X-Received: by 2002:a17:907:1ca5:b0:6f4:b220:430b with SMTP id nb37-20020a1709071ca500b006f4b220430bmr11813718ejc.261.1652036799937; Sun, 08 May 2022 12:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652036799; cv=none; d=google.com; s=arc-20160816; b=aFiWHjYhicD8/gk8DOEu6LueoSuF35iwcW8eu/2ZJYAjaKNJe/n1TC7Z6GPvp0XMsU 9bq99O7BeJubbF8O0teQXh3a9DYEv2ULVY/Dn3xMksCRIkS4SHtqr6VJeYKCpadrxFqh oRqHLHqiNLQE7RtYGfPmEoXY3nV50kcKcUiHiIHdS6ngkeFZs67TGkm6nBWFiXn/wIfJ MEAvN4e8OoDQV3jQtVfRmB3EtRKlJGwHf/zy643f3aSVW94HQ63qncLZ2sM0GQjIpBHm 7qQY+FUxFRchjfRRxhjA4DJiqSoK9CjdSActZO3+Q6lshYOib9Wfpg+PP3yCwcdGYzQ9 fT5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qMaRLqS7cpFfXre/uGj0tVuygIt8upbWsPiAJm0rZAo=; b=LK2LdEuNclMXMlg+RMOpz0WaTyP9ElQFUFvrp9pX1deEqAzM31b6gVqnTlo/E2LzVC lSy8e14wwQ5hyeuneFVNBJijqFqydVisjRp0JQ8wLjIpqcr0pDpTJUO2gohXeuOsij5Q c7q5iLDPGxihxQDVTqoYnpRzQ2l3yJRnjUGV2nQN+glwX7gxBchIqYTsPAn8Hyw2AF5X 7HYMJnkxD0kYhJnT7p1XbxznqSqewVcE5vj48Po5D2CthjwhATFMW3FQacOXhSMqm7qz OZ3PtAGGoQUpVSYmZs2X7hGLT4IAWnSc4iCNySTm0+FG2diZSlbynqH49lzdqM7iZG1w MfQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gz12-20020a170906f2cc00b006e89020bc79si11248011ejb.937.2022.05.08.12.06.14; Sun, 08 May 2022 12:06:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1392530AbiEFN3d (ORCPT + 99 others); Fri, 6 May 2022 09:29:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1392538AbiEFN2u (ORCPT ); Fri, 6 May 2022 09:28:50 -0400 Received: from mout.perfora.net (mout.perfora.net [74.208.4.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CC9F69CE9; Fri, 6 May 2022 06:25:00 -0700 (PDT) Received: from toolbox.int.toradex.com ([81.221.85.15]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MWUKy-1nKyqC0pqM-00Xaf3; Fri, 06 May 2022 15:24:46 +0200 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Oleksandr Suvorov , Denys Drozdov , Marcel Ziswiler , Fabio Estevam , Frank Rowand , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Russell King , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 07/13] ARM: dts: imx6ull-colibri: add gpio-line-names Date: Fri, 6 May 2022 15:24:10 +0200 Message-Id: <20220506132416.273965-8-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220506132416.273965-1-marcel@ziswiler.com> References: <20220506132416.273965-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:SFAlcu06cKvTNE1AUscYdjzXk9ABdA0YnfOeZC4PmeJkDoafheT J2pXTv3Fh8zoeDv9HD+aFfXCqnexRlHUz0+q9WBiK3iXrYZoJ+qTwERpqDn2Rz+gnFJ04SW IxvRGnU7AfONHtQcH1G0plB3RKzv9xaj1/nrlv42pZzlfTvjB33AlWRBprbDP9B3xct7Mzz ReTTz2DC2trYikDhwn6aA== X-UI-Out-Filterresults: notjunk:1;V03:K0:5fCgHa7ypMQ=:hPDPu2zlOIVsXtSDxl+QbR L8GOr++vRvbOOCprhCd/YiuFAEOYntTd75g+z1vJoViIIuuBvmvosjvubjPgvae9hiWuMwf9b ++KfKuCMhKriHkQnYViGxSSZte4evrXuM3oUOIGr9A3tM8Bk4Xa1mPa+x/RcdtgQ4BHOR9yN2 RrbQiqpiiHqIJCoQpSYhKGiMO9xEOXgB5dtCtJ1En8Reu4LptKvHP05JySsEJaMGRUB3DaqbD rJfKzx+z840ChKjmo+ipeKd/G/XCsF0VLEtoreMiafJnzE4NxMKy4dTxr25bq0IQnU1D4oTQr tQgbjlL0Tf4PYI0aLEnlAyin2WvI68g0lniVmWBs7/5DyuAjkSIjPN2leK74YdahLcU05+48x AzbOCNO9Ktx5uknO2aNbapnq73fpOP8h+bOZtIS7iHBNCFMdotC22yQkrdWd8r0wYLc2EfGjW nvaD2pH49oZ8GW+dAYAX8QQsj/mgt+jiuejI7za3Qs1VgV+7+w8f3J2tEyu72wvxBJsmTtjBH 7gx64NYbNeuH13pUTA1Ec+3c9pTYPYuKlpN0hz1OuWI0WAm3fiuSFGCA8A4L8s/XW//rDV2IV vFL9CKmDphCQTHhPuvsF6zNalZpK60IhP7jYeh7BfwpOZE92y9bGqV/5mbBYuBwy0C9dx3VuA U6nLNnm4nim+pOpmd3Hz43QK8f4hFvROy1tFI8rFYmFCt7/0lFWZ6oU08NcgDdDma3y3oheJp zbMkInlJ1vr/eqTU X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Oleksandr Suvorov Add GPIO line names on module-level. Those are all GPIOs that a user might use on his custom carrier board. If more meaningful names are available on the carrier board, the user can overwrite the line names in the carrier board-level device tree. Signed-off-by: Oleksandr Suvorov Signed-off-by: Denys Drozdov Signed-off-by: Marcel Ziswiler --- (no changes since v1) .../arm/boot/dts/imx6ull-colibri-nonwifi.dtsi | 137 ++++++++++++++++++ arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi | 136 +++++++++++++++++ 2 files changed, 273 insertions(+) diff --git a/arch/arm/boot/dts/imx6ull-colibri-nonwifi.dtsi b/arch/arm/boot/dts/imx6ull-colibri-nonwifi.dtsi index 5e55a6c820bc..60f169227ad9 100644 --- a/arch/arm/boot/dts/imx6ull-colibri-nonwifi.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri-nonwifi.dtsi @@ -12,6 +12,143 @@ memory@80000000 { }; }; +&gpio1 { + gpio-line-names = "SODIMM_8", + "SODIMM_6", + "SODIMM_129", + "SODIMM_89", + "SODIMM_19", + "SODIMM_21", + "UNUSABLE_SODIMM_180", + "UNUSABLE_SODIMM_184", + "SODIMM_4", + "SODIMM_2", + "SODIMM_106", + "SODIMM_71", + "SODIMM_23", + "SODIMM_31", + "SODIMM_99", + "SODIMM_102", + "SODIMM_33", + "SODIMM_35", + "SODIMM_25", + "SODIMM_27", + "SODIMM_36", + "SODIMM_38", + "SODIMM_32", + "SODIMM_34", + "SODIMM_135", + "SODIMM_77", + "SODIMM_100", + "SODIMM_186", + "SODIMM_196", + "SODIMM_194"; +}; + +&gpio2 { + gpio-line-names = "SODIMM_55", + "SODIMM_63", + "SODIMM_178", + "SODIMM_188", + "SODIMM_73", + "SODIMM_30", + "SODIMM_67", + "SODIMM_104", + "", + "", + "", + "", + "", + "", + "", + "", + "SODIMM_190", + "SODIMM_47", + "SODIMM_192", + "SODIMM_49", + "SODIMM_51", + "SODIMM_53"; +}; + +&gpio3 { + gpio-line-names = "SODIMM_56", + "SODIMM_44", + "SODIMM_68", + "SODIMM_82", + "", + "SODIMM_76", + "SODIMM_70", + "SODIMM_60", + "SODIMM_58", + "SODIMM_78", + "SODIMM_72", + "SODIMM_80", + "SODIMM_46", + "SODIMM_62", + "SODIMM_48", + "SODIMM_74", + "SODIMM_50", + "SODIMM_52", + "SODIMM_54", + "SODIMM_66", + "SODIMM_64", + "SODIMM_57", + "SODIMM_61", + "SODIMM_29", + "SODIMM_37", + "SODIMM_88", + "SODIMM_86", + "SODIMM_92", + "SODIMM_90"; +}; + +&gpio4 { + gpio-line-names = "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "SODIMM_59", + "", + "", + "SODIMM_133", + "", + "SODIMM_28", + "SODIMM_75", + "SODIMM_96", + "SODIMM_81", + "SODIMM_94", + "SODIMM_101", + "SODIMM_103", + "SODIMM_79", + "SODIMM_97", + "SODIMM_69", + "SODIMM_98", + "SODIMM_85", + "SODIMM_65"; +}; + +&gpio5 { + gpio-line-names = "SODIMM_43", + "SODIMM_45", + "SODIMM_137", + "SODIMM_95", + "SODIMM_107", + "SODIMM_131", + "SODIMM_93", + "", + "SODIMM_138", + "", + "SODIMM_105", + "SODIMM_127"; +}; + &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 diff --git a/arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi b/arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi index 6e8ddb07e11d..3c47cfa7afa5 100644 --- a/arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi @@ -23,6 +23,142 @@ &cpu0 { clock-frequency = <792000000>; }; +&gpio1 { + gpio-line-names = "SODIMM_8", + "SODIMM_6", + "SODIMM_129", + "", + "SODIMM_19", + "SODIMM_21", + "UNUSABLE_SODIMM_180", + "UNUSABLE_SODIMM_184", + "SODIMM_4", + "SODIMM_2", + "SODIMM_106", + "SODIMM_71", + "SODIMM_23", + "SODIMM_31", + "SODIMM_99", + "SODIMM_102", + "SODIMM_33", + "SODIMM_35", + "SODIMM_25", + "SODIMM_27", + "SODIMM_36", + "SODIMM_38", + "SODIMM_32", + "SODIMM_34", + "SODIMM_135", + "SODIMM_77", + "SODIMM_100", + "SODIMM_186", + "SODIMM_196", + "SODIMM_194"; +}; + +&gpio2 { + gpio-line-names = "SODIMM_55", + "SODIMM_63", + "SODIMM_178", + "SODIMM_188", + "SODIMM_73", + "SODIMM_30", + "SODIMM_67", + "SODIMM_104", + "", + "", + "", + "", + "", + "", + "", + "", + "SODIMM_190", + "SODIMM_47", + "SODIMM_192", + "SODIMM_49", + "SODIMM_51", + "SODIMM_53"; +}; + +&gpio3 { + gpio-line-names = "SODIMM_56", + "SODIMM_44", + "SODIMM_68", + "SODIMM_82", + "", + "SODIMM_76", + "SODIMM_70", + "SODIMM_60", + "SODIMM_58", + "SODIMM_78", + "SODIMM_72", + "SODIMM_80", + "SODIMM_46", + "SODIMM_62", + "SODIMM_48", + "SODIMM_74", + "SODIMM_50", + "SODIMM_52", + "SODIMM_54", + "SODIMM_66", + "SODIMM_64", + "SODIMM_57", + "SODIMM_61", + "SODIMM_29", + "SODIMM_37", + "SODIMM_88", + "SODIMM_86", + "SODIMM_92", + "SODIMM_90"; +}; + +&gpio4 { + gpio-line-names = "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "SODIMM_59", + "", + "", + "SODIMM_133", + "", + "SODIMM_28", + "SODIMM_75", + "SODIMM_96", + "", + "", + "", + "", + "", + "", + "SODIMM_69", + "SODIMM_98", + "SODIMM_85", + "SODIMM_65"; +}; + +&gpio5 { + gpio-line-names = "SODIMM_43", + "SODIMM_45", + "SODIMM_137", + "SODIMM_95", + "SODIMM_107", + "SODIMM_131", + "", + "", + "", + "", + "SODIMM_105"; +}; + &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 -- 2.35.1