Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1529419pxb; Thu, 14 Apr 2022 08:06:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrVNFY19XLd57Pjn1pyhu0Qy3F3DpbgEyaDNUYeMcTtpTyIxmZQFgTxnJtjegMpTCDaAjM X-Received: by 2002:a17:907:7b92:b0:6db:71f1:fc20 with SMTP id ne18-20020a1709077b9200b006db71f1fc20mr2565697ejc.343.1649948792995; Thu, 14 Apr 2022 08:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649948792; cv=none; d=google.com; s=arc-20160816; b=JANayoSIFHOAacyYLcw8SR2nhMI87YsTH5cxf7IbOnqBO20HKlDtanxSFcnUVKQgC1 WYzlkKCiTNQ7ovd55E9JGqN2fd57uurEwZXVRHh5aUnMkEYKX80Wus6nmju06GKpYx4m hIPFfuTrIH1UPr1rUM6DF7SzIZBDEuucLkd601aE5XAY92OXT83MJJvQP3aqZRk6myXY 2cG5xvQhbKa12+LahxuvfHb18ehlehYWaOSsZfYA3vTCln0HwrZ9nydtzy1FSAd/rrNO eIFiv4Mw1DkJIG7ruUWOUFDIwWSTM2LPHMTqi2LA375Gsj79zNqnZ7grXs/8dh3oX7S2 D8CQ== 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=w+xjPkx9QcNTqyqgmiYOg6el/rgmD0nCKwdbAK3ApWE=; b=TVFbCDeggHC3W9k2Qy5uFw17O2rdtYWjqGg7jy7gLDBNeFOJvXKMTvnNw4qH4ZB+k/ KtBFF9winMoJCLmuArSc32S6qmE8MxJsf1EAMsHTZCvRNTkW9KkuqjWQ74D0wP2/rNb4 cnGCITC92K8iyXyGUSBi5tRqnlvRr+s/1bUWPLRgx337ZA9d3iIzYJ87FODBO4pa96ba zIGfYjsgSO+zDpC95yeRjvwO/5cRzx7HEVCL77blpvfRBhRFHpa4MbOR8B4Rncwj7XwH 84eOjKuNpd72ghuyqEYZE48yRL01kQD5mfcK4xR5d8MFnZsgVAOAatQrlIqZ3BRAUpiU LhfQ== 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 i17-20020a05640242d100b00421c6f6c90bsi146139edc.124.2022.04.14.08.05.52; Thu, 14 Apr 2022 08:06:32 -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 S241221AbiDNIyk (ORCPT + 99 others); Thu, 14 Apr 2022 04:54:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241208AbiDNIyf (ORCPT ); Thu, 14 Apr 2022 04:54:35 -0400 Received: from mout.perfora.net (mout.perfora.net [74.208.4.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 031E06620C; Thu, 14 Apr 2022 01:51:56 -0700 (PDT) Received: from toolbox.toradex.int ([31.10.206.124]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1MV5f0-1nUNMN0tAU-00SAgE; Thu, 14 Apr 2022 10:51:45 +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 v1 08/14] ARM: dts: imx6ull-colibri: add gpio-line-names Date: Thu, 14 Apr 2022 10:51:00 +0200 Message-Id: <20220414085106.18621-9-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220414085106.18621-1-marcel@ziswiler.com> References: <20220414085106.18621-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:xVrXa6Dp1jqRjVWs8qnprkpstzzJjMWh/P4Dwr6W0GUGRk5k0GX pVO5CFuEwinRrpwhxf/JasqAbKL4yLCO88z0ylMmZekEAh3z1w6dvbL8FvbxXSX/2FufFUf b+QWIk+WglHlfRPn+FWAj+rL11A55JWR+ksnpw6E85nsmU10lygI+puuFkg8IPtcJbhKZWg uqJP4+jRKjW+t0lTwsdyQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:iJrN1vKwZTE=:si8QqmHWYBEZRn3NR525tz dqNDAA4jsDg0VAnWQgo6ip2jPoZgBEu1S+1oSe0KNJgpGVXYHZXjoZreoVFUUD4Bkh9Rze53r zqNVJp7bDbF7J/4TfF842d9tz45PW5CpJHYk/QoHR8SP8OjG7L5ZcE89e1c/iH6/xsY9xg1sM /5iKESO4MEEtrVLErH4d1i+6NUWeVWcxI+znYywaIC9DymKkthQk+jT2PFn/j+EDvnOf0Cv3F Xq7Kn9dyNhrCRLJ8IObGCewN0/LJIY+85U5m2iyOsijWCrZuvinFeIhJ2IkWHqhjIhMtmpWRb 5znCu5nUzLSbpJO8VCTxS+v2hbm4M0A18SN27Rj8nbjsfXxGks60KCLhzC+pigdv3LmsssGx4 xDkjFeMd3tCr8yE85H0ZdDJwxQnealwnKjUt+FkytsKqTON+TYW3/6+/CSHX1K6tC7H2pDyHS Ndmwxzmj7XoslLnandDHFnqT9WsRx9xBdq8qneXPhA1QYP41JQUxCZr8bNrV7DW8hfJ25r3/Y NNgUZ4edPW6jJL0IqR9DfITyYwdqA2KCuMJfu7QI2jVFqcMn8Cc/P3jgNfXtYL/yFGhTqUEUU wAFnKzR25RFEFj73c18UZdXYWabvB5rXbQ/5LsMGPnlJo9e6ZMKcZT7LL4vTZDSxsBBEMggyV mrqVwbVKkjmE4MCU+81lFdlo8qcn0fAAOvT6/5W02MMo81dJh0aY5OWGkEOWTmfUXso0= 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 --- .../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