From patchwork Fri Nov 11 15:50:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shenwei Wang X-Patchwork-Id: 13040561 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DF073C433FE for ; Fri, 11 Nov 2022 15:54:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+T4hPXKz96gOS+HkrOXqtTJs3dFfxG8DYnPfLDcIOA8=; b=GnqXYvxvsMRcsX Xxhq02fHXDzfxpVlrJ2VMqpUgeOpPfBIIrOcD3aOQFBF7FQhX6uc5aQWKoqEJv9V+CQqhv60Pj1Z5 OAVW1XjOA9Z5oqTmAhYknbsFZwtgY4JVki/JHeF5IrN4iclME4OAq6qmCKvisd/Et/wcwW4KmbiOa Dhcu/TSTfj+VsRdkvFRfMaz+d31Ox01dDft0acRgC2dBae7aRjbkOCPtBGnyAUzP0ylS6S/winflz Uqn1sXf1yeJagYmmbmBKXjeIWjPTFAF69/QBQWaExbo9V95k4abAHgNL5dpiu20JNSF+pRk/XgZsR NV+dlvIN8P/VcKBg/bkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1otWLB-00GhPH-ET; Fri, 11 Nov 2022 15:53:14 +0000 Received: from mail-eopbgr60054.outbound.protection.outlook.com ([40.107.6.54] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1otWJ3-00GgIu-1m for linux-arm-kernel@lists.infradead.org; Fri, 11 Nov 2022 15:51:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Uio7mLMm5H/cnBxWnswNDNIV5z/4Y5/p2WbfURlCCfS1WTUkVHHQH//E7l6+IFZwclcQEMqyNeDIq7Bq2e6L5ZXyrmPO+7ZrKg6rf+fab238MpWOiGQ941+GbeZsXa49Th/ARQlOmk+LhdpYMOkITsoS1Ig9rfnqXSNsWwO9ll4Juno4FLoNeMsbYGKC3GTXuaBjgEYdPQz820FG0ZBmJafImZA0DReLoYw8SSBl/WE22NkI98C/w/KR6HavgT3eMDMn4/A8HCZ3q1XuBV5UjgF+6dKvHZXcXcYq6tuNVQwYtWtvBREc03FylPkqRGNsOOtOQ5OETb8zlr01oaD/Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Fwi4znr6WRUMdIdIGzyyqVbMbsDzsFH2WItrIUdizSg=; b=aEYazTZSbX85xHNdsmRdngyEGfnRJ4bftytqjk23CGyYzJwQ+iUOD+q3uWwq4/dR62ctcSeTdocmFD2btHVSBrZ106FeM2VHNHtY6vIUQhvjZfvl4kzmfCrMIgdTFnamSg+O0Bvz3yJNkZmiDBf4do5nuDeOcDKXp7jU+KGm20GbMphEdDFg2LoM9edB4tAPm1zvm/9sgqM99AFYhvc2N5ftTgwUiSLnEGMvBjw4smeQkPtU09V4IScjDcebPUDtYoHUfgDs/OY4uI+6rz85eNQSAamgrk4BEl0wyVb+9QT5X74zWuwcO+/aBC2ur8HC+kIsczD415FtUai3Bft9MA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fwi4znr6WRUMdIdIGzyyqVbMbsDzsFH2WItrIUdizSg=; b=l49k0aNjmgNzo8qdDB/g21TwfAmyXA5L+i856XjfflpjvU5b3UgeMAO+oyHYXHR8By+8P5y+yfbuIUFW75z8T9BSwJvdmbja7GWFKHj8/WdYiw3gZV6g41kraHcgS68eZbQWSkdq0uJ/wTqEQWxrtxYsRKwwW8qW7GWdj8eSYu4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) by VE1PR04MB7342.eurprd04.prod.outlook.com (2603:10a6:800:1a0::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.13; Fri, 11 Nov 2022 15:50:58 +0000 Received: from PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::6b44:4677:ad1d:b33a]) by PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::6b44:4677:ad1d:b33a%6]) with mapi id 15.20.5813.013; Fri, 11 Nov 2022 15:50:58 +0000 From: Shenwei Wang To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer Cc: Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Shenwei Wang , Peng Fan , Linus Walleij , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev Subject: [PATCH v5 3/3] arm64: dts: imx8qxp-ss-lsio: add gpio-ranges property Date: Fri, 11 Nov 2022 09:50:16 -0600 Message-Id: <20221111155016.434591-4-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221111155016.434591-1-shenwei.wang@nxp.com> References: <20221111155016.434591-1-shenwei.wang@nxp.com> X-ClientProxiedBy: BY3PR05CA0025.namprd05.prod.outlook.com (2603:10b6:a03:254::30) To PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9185:EE_|VE1PR04MB7342:EE_ X-MS-Office365-Filtering-Correlation-Id: 86e55aa0-00bc-45b5-c60a-08dac3fc8653 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sylaSwVEHOyxY448nH6dO/kpi7gQMlVodBtVTtMGU8Zdp0yev5VlcfslysPd1ctnSA1NHLGyzf7/2+hPvoPcBGFWaLiW41NFl5xEzxSBDo1YtP8qtveSUNSSISB4gy2N9PV7sd2ipS932IqeWcmxE36vWA+B4Ku4QL6HIiHku8mmUqzbst9DbzFdOIl6DBO9l5YcNCMun/a6JdU1g75SBraE+r9935M4qCuMTS4hKxVcRNCBd3KvhugUNUp3pC1YZSlm+Ufltne0mHOPCWorXFNB5q0RouN8FHJzg1ZGrkPbunyDkJLKSuw6tgE6nNeK2Rdj1sXsBbohLltmesnc9QHnYXAAivCkNmhOX+ATyG/GoXMuy6s2/9xVbJe0i4d6J2KHzMT6zIhuc03kJFljhaYr43fwH6utCrK3pbk2plh7OLjocQLDeui/P9W+lkQZ5oTMBZ8udDpftz14q6X+VvFa7UK/ebmGFVh1gzMEc5rCIC5PmQL0GYng0pPoy3doKhzUcaSSXgNsXwNUZqhWQYcCtG273PCg6KIipsxhiSgm7muLuL1dHtRIVV6FchskYvKYznQ57vFTI3ugT7zqdZJjnR/XmQGjpQBiFUC6hC9jSBrZ7sdmu8+iu5Fnc2f3F+ye2Z586yGA8WIjpYzxRsKP0GwyHi6fiPj5+IX8A+QxC9qDARPSPdW74NrKkZo7sluGElOBh6u3D4WRU26k1BZfwj3VaHSkZo6nlGF0ZIyJvlldmD7awulbRkvp3r/TyovXZN5OM09FH75QMBAtmYWBrVuYv4YDopQ9FZdRov0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9185.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(136003)(346002)(396003)(366004)(39860400002)(451199015)(38350700002)(38100700002)(66556008)(66476007)(4326008)(478600001)(6486002)(66946007)(5660300002)(41300700001)(7416002)(86362001)(8676002)(6666004)(54906003)(8936002)(316002)(186003)(1076003)(110136005)(2906002)(44832011)(2616005)(6506007)(6512007)(26005)(36756003)(55236004)(52116002)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /JQHLyaQf09S5HpYZbtXJ9tW/eR9J7aggX/6q+aa/ytyMgKdfkCm7qap0YeP0ODV6NIA4Y+SXmlHPzQNiJnH0zmhGSLOTcyfON7IVHk5NsA+ABXRD0piOUMP7w4bz6VX2cBxqLMTaag4oK0idNNmqXL/ZF0QxLRCHXEQUhs1nRFu98d3nlXG4fmvqOY8uduaF26xSapSzwxjb7CBEVxknATLCF1dnMZe9Ov9+EQYvSgDr7u1VyeLgMs6ojn+WyT9IE6NBLD/EB7ZXfKd1GYY4N13Ct4fi4iTuaKMJsmac/DMWDJ6x9LMOFyGLwD5PJ/h1NIXze5s+gdhMlMCybbXSn0ZTJvSjOCQK6Hfnj/DdzXtyxQFpQxbZlJy8UlMia2Z4ku8KeaarZu9tCcSyS1tXBRteGttTe0TwrELDRo/5L46mSluhWlPFelMBr+u8Y9znUER6QOlDMpq5Sr0Yrz68vX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2K5DHQlYjrzJW6EKY8WRuiY3lvBP9emvYVwhtLmRJCzl5PEJlEZmxy X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86e55aa0-00bc-45b5-c60a-08dac3fc8653 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9185.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2022 15:50:58.1502 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZwxeVFg+XS+GOH42cBG5dNjjogCf0dm+8TqB5bs+JtA/VCn6Y50UIdImUe2339w8s39XuNI3U+HKI0nB7jGfaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7342 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221111_075101_191969_19513462 X-CRM114-Status: GOOD ( 10.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org add gpio-ranges property for imx8qxp soc. This gpio-range is used to record which GPIOs correspond to which pins on which pin controllers. The GPIO to PIN mapping will be referenced by the pad wakeup function in GPIO-MXC driver. Signed-off-by: Shenwei Wang Reviewed-by: Linus Walleij Reviewed-by: Peng Fan --- .../boot/dts/freescale/imx8qxp-ss-lsio.dtsi | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-ss-lsio.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp-ss-lsio.dtsi index 8e2152c6eb88..8f722b1dd078 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-ss-lsio.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp-ss-lsio.dtsi @@ -6,26 +6,51 @@ &lsio_gpio0 { compatible = "fsl,imx8qxp-gpio", "fsl,imx35-gpio"; + gpio-ranges = <&iomuxc 1 56 12>, + <&iomuxc 13 69 4>, + <&iomuxc 19 75 4>, + <&iomuxc 24 80 1>, + <&iomuxc 25 82 7>; }; &lsio_gpio1 { compatible = "fsl,imx8qxp-gpio", "fsl,imx35-gpio"; + gpio-ranges = <&iomuxc 0 89 9>, + <&iomuxc 9 99 16>, + <&iomuxc 25 116 7>; }; &lsio_gpio2 { compatible = "fsl,imx8qxp-gpio", "fsl,imx35-gpio"; + gpio-ranges = <&iomuxc 0 123 1>, + <&iomuxc 1 126 2>, + <&iomuxc 3 129 1>; }; &lsio_gpio3 { compatible = "fsl,imx8qxp-gpio", "fsl,imx35-gpio"; + gpio-ranges = <&iomuxc 0 146 4>, + <&iomuxc 4 151 13>, + <&iomuxc 17 165 8>; }; &lsio_gpio4 { compatible = "fsl,imx8qxp-gpio", "fsl,imx35-gpio"; + gpio-ranges = <&iomuxc 0 0 3>, + <&iomuxc 3 4 4>, + <&iomuxc 7 9 6>, + <&iomuxc 13 16 6>, + <&iomuxc 19 23 2>, + <&iomuxc 21 26 2>, + <&iomuxc 23 30 6>, + <&iomuxc 29 37 3>; }; &lsio_gpio5 { compatible = "fsl,imx8qxp-gpio", "fsl,imx35-gpio"; + gpio-ranges = <&iomuxc 0 40 3>, + <&iomuxc 3 44 6>, + <&iomuxc 9 51 3>; }; &lsio_gpio6 {