Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp412721pxb; Mon, 25 Apr 2022 12:38:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw73jCIjW2jC8DKY2qAjiDZYOdY2syKqMuqHlPD0ZmgBq3ScSEeGHAwaU9nl0kx0MoYAlol X-Received: by 2002:a17:90a:8591:b0:1b9:da10:2127 with SMTP id m17-20020a17090a859100b001b9da102127mr33508918pjn.13.1650915494731; Mon, 25 Apr 2022 12:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650915494; cv=none; d=google.com; s=arc-20160816; b=Xo8AlpIj4ixa/jsQggMfWtAZeyG8xnXKey1hK0P5bkGhvpaoM+PbA7lWEox9qGmT/u KPgv8xfAk2Kxo0s3GPVHzgDyWdJV+6PZAav3yP7U6onfspIHNeBQ970XK8BE/Sqf4YnK F/87aAniaHQwoLl76wy5uFHsbC+H2wVyujleDMBb4fq+a3g/xfnjSqZpznZD4lnnmCkb ajDGJ/6rLAibcB9y3R7R+cyup4ZdmDgkR2azLyBdbyE3Dlg7waH1DFfaqoPwZzj8YCCC stcaWo/G4oikCaqZqru8FH4pjm5jcNUGLsP3CYI1SjVUyVEPJEr5LbGLlkl9gPmzX83I xciA== 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=P2d4cIDcbvg9KU66BPWBW5I2zBk7I56K8RKfV7ks3Ihk4qOjn+3SbyP2G6nUz4SMit J0cXmu6BqmmhyLbetM2T82GEagf+UOQkXpAa9u5YXyxHfvk0OV7GZXGLXO9m4wSkr2n1 es42Oj2WgHyRtNIVwSiqSvS6RnTNkN1V5UVuozYqTy/Yx5YZNnY9bCu6E1MmftUIqui9 WpakWgZW0VJnHmrtMOyEPIOeKqM77fQCSLURMaztmvHqKq1Wn++U84EDoR4G1fyhra8y V3i7sl7yEk+JSgj/s6pZFsVjkQdkz5GQDdz2VSSuE/0v0SQ7Pk0gjX/RzCffXIOP68/H HtvA== 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 c7-20020a656747000000b003ab22434b2asi5986063pgu.74.2022.04.25.12.37.58; Mon, 25 Apr 2022 12:38:14 -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 S239412AbiDYQ2l (ORCPT + 99 others); Mon, 25 Apr 2022 12:28:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243509AbiDYQ1s (ORCPT ); Mon, 25 Apr 2022 12:27:48 -0400 Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 598CF11F95A; Mon, 25 Apr 2022 09:24:44 -0700 (PDT) Received: from toolbox.int.toradex.com ([81.221.85.15]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0M39Wb-1nz2j7463L-00srzL; Mon, 25 Apr 2022 18:24:27 +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 v2 07/14] ARM: dts: imx6ull-colibri: add gpio-line-names Date: Mon, 25 Apr 2022 18:23:49 +0200 Message-Id: <20220425162356.176665-8-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220425162356.176665-1-marcel@ziswiler.com> References: <20220425162356.176665-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:66p6PX5wNb2wKe+k/nkJom0jqdDprxuGWpoW1j6+9i8a/UBM3Bf ovH4F+Vh82Q5+tUgzkfz60OKff+TJhCyzTKyr6hrVhwvyDqdWRGTbnJP7iwKlLQt9GKcssG z5weaCT0PBCcQIqGmFaAqYBefaQ4QDIjD+H6JplNCcs75yIVLtBY/BUbu9DRXh3QAU+/NPQ /mUpV08OH5tsj9eS2zE2g== X-UI-Out-Filterresults: notjunk:1;V03:K0:S3yHckW9Wvw=:myicn4QsuBW6gSPTvp1HtE pGhl0ziXwLqxQ9W9rymBzsMqrdXgvHUJtzLeCpnkhIMvtEkqYRU2aLNt6wnNfP44DUod0xyBl wsZKGvrX6vD/E3eDP8AOjZ3/nrQQEpPkW8uSO9JtIgvII/l1kB3Meoxcg1ZuvtCLDI8t0gS8t OZdt+UUsuL2hKgCKd6HqVVucA0kaQ0fZp4DkGojhZ8ZXrUWqQYWGfgDDfTTHtCV0XqR2/rPqR czMGYR2Ot81AwCJVTV/K3gLrELpCr1OBOduX3F9b56ZyLUUrjj9ZDWyxEQds2MAwUPauOmqx5 8gJYAdiUhclLaK8lachQfR/8NyjucbbkvkNJI2xQCYHYac0dsGHrA3Z+0RMGQBVHcgWFVPJj3 R8d/mx3fhQaQkZQ7c4GExbOuyc32iDJOCSGzfXc8fjagfYAyhKwpDawAl7LTRn0Qd43e+wEP0 D7AMgnpxqcAOgtDPL9+H4cPkXt8VyppJgbfV79/8ITyRUE9XQP7ItI9Hri3v9nzzOydHUpdmI BCv2MWs9kL6j6sH4lVqCo+Perk4j3HFSAWjFzHUTQVobbh1l7TDNEkS4a8QAOg+vfUbARi3+c bN5ClldTUKQJIs/y840qRlVqLhB0XjW/pC4nYvodrH6RsNTRqFqA8lr/G3C6WSnP5Ii+ZVgEB pj+kiFeNXRqDySoF+v3uWd51xbXZPe/aqrguwPoR/hgXuPtef5utIR7z2KMiOO9G770rH1POZ 81TuZe/FQ0zSgmlg 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 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