From patchwork Fri Nov 11 15:50:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shenwei Wang X-Patchwork-Id: 13040559 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 3376CC4332F for ; Fri, 11 Nov 2022 15:52:58 +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=iG39PJWEvimLgWmHlh4kFY1eMHnOvYcRiVdF+1gj4lE=; b=jwXf1HEaMYZd+6 9Wdaw5xtCPRSaZqhlz58/nvbB09BMOg1mLc1Y7qeyC7nCyaELa4JY56qf9KXCCzJy9QNrhZ9Ld9ir oGIkkHSJlsmUTDUCbil2mq5so30USTe4XIoqDjHXeiwa8Cag/54QFV24lkzATKlAac6X+bHBuPyl7 Mk8omd8BaFMhOGvHbo4271JF9pyJMg8EUKtyfOWIdXqjDnfill9e9T7zW0Keu0oX/2Xolli4N6HWv VVsuJY0mdDDxWtE2LmYWaCwCwPJ/2CwWdQdb9lcF3SPmYG38wLxPOPA4rW308iJfpBVBnEo7fMCx+ WpKUT5Z2t++cHE8Bz33A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1otWJo-00Ggkg-4i; Fri, 11 Nov 2022 15:51:48 +0000 Received: from mail-vi1eur03on2086.outbound.protection.outlook.com ([40.107.103.86] helo=EUR03-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1otWIn-00Gg86-Mw for linux-arm-kernel@lists.infradead.org; Fri, 11 Nov 2022 15:50:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LRIRNk7tynQb2V75Fh+VP1jyyZaP1fq1dI1JMiM25ZfGz+wkRn3yUNLM7Z8i06POsn5mZVV1RbyFYSx1/O4bbavgrORNVbL8zbEemuzj6/On6qISYyg4KE4OuDMsFS8TE0aCN3LHvcJA5zaFVku76QCbE+mEf5BpqkH+44ajesc8LQAwjkJs/iheoH5fwNjD0fpoW9i55o5zgdQRw83jf9nhMelWXT7ZQtjlj3PSrnUBXN2pgQ8j+gc42X5VlYjDyO4f5L4zaBZFP+xKAmlRa7E0ktHEhbE16rTtv35kQLKqBBg48dIa+vMpcpJX5aiBr1Ng7DPMeiVYxXDgq5SGKg== 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=r9tbLJ09QYeGU25u4uHN7twnPVqob2xwFLaiOPPaB8Q=; b=hx8PMWbBK0dQgRRoKMtIjGad8PM2mvLV97Ho+PZF3+41AdcgIGCow6aGj1qobV8xSOd2dWAuTU7RlejFwRSSZzis3tctJGCW8wLrnXoxzpmiNs63jbMR897Mq/jgCTfLUmpr+dIUbw08hjdihMO4chh7Bkfiqtc95tEbqMWCpoHDAuvvtURd+MPEz7vBFeQOHNuK3ossrQqeltztIQE+xNaCejM0S+3mSe33u6mwS3d6KIL0QMHLKKCrAaOsIl7ZueQRy/1654IqvlzmzxCY7OyJSJd5WAOvXI6HHzZUDFaxrAW09NU7Q+u/6k7KMLtoUaMKMPyC1Dsop0wRXYoDGg== 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=r9tbLJ09QYeGU25u4uHN7twnPVqob2xwFLaiOPPaB8Q=; b=aM1639nPqDlm9IMqwVrd0X6iweCcxQgfbeCm3gS6Ix2eBQkKQjtehfwDa7XDLULg+bL0EF6FGi4t4HhK04qaPpVFWZM9HsI93GXLvp+CKzZVgKR3JbnD/Ob+18RwWYQ6SQtODP2gjcRy4+k3h7Szh997hhIleOh12LmEWufSXjU= 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:44 +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:44 +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 1/3] arm64: dts: imx8dxl-ss-lsio: add gpio-ranges property Date: Fri, 11 Nov 2022 09:50:14 -0600 Message-Id: <20221111155016.434591-2-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: BYAPR11CA0085.namprd11.prod.outlook.com (2603:10b6:a03:f4::26) 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: c98d0ffc-246c-4e92-1a7e-08dac3fc7de7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aBZ/BV0ln5uZTey0C4fxHRCt64kfxtjHWkvdlUuo5kymC22HYJlsUeobvjO8yTNZ4aTaODGGB3rrrazbElS/kiwghFsODmaIXQLqTb4sQxTUUJyafeG0rIGubBN1YgzGo1yVbKaA3AwWKxtfDLcSpPTqPO1csNUeW/tA6yZ3Fmy1HC4AC3M1EJ/sxwjj31uYhmbzSPKoEGUcVvrDg55q9Z5JNIpjDvuU+LyzNWvoNSos+GFv5VPE6uB7ceTAlVeFLfpBpgu/R3Z+ugRkU6yM4JZCed/4fAbrpj3dpg1zEVGoqQZYyMdhm2wRchlw0GOUiE2H8BC+Egn70Phk2THKV0FNXdy/cC/wKgzolGE6MSVVkqkECg6/1tnVDWt+r4WNxutO1jTfXpSBPBd3tK/Ws4KjE3YzlSSJt91yW5ZgEFHRMLfxoMdmcV7m7Wo3a+kzBeBFRPwMtBm7moEBxG4QSbiw/hOKURqZXKgfZMRwkGTYx9ZjK1WKlkatNoaVwTFJPfV9fjGwtdQsoXZ+HcVEcxQZU3Ax+ZN3T02bAV9HG7DWVrWyLO6E6keU5vuFdqMJZJ4YWl/lCGUh8a5quGgyxUnmWubzRfenoNM/JfxIL7NFbhQPi6rmjsU6wiJItK38KyJg5i9XsPcmSj9uaGnVvyDqCeJ3UImtzWlGIBiHfrb9bVyeErNLUsTs7iztqQFFDal7XIDUi0Y+YDfeTbcXknKcqrxxgR0OOX5yqX0uvTsKXnL8tbJimgivuFO1+4Dv664QHN4D8xxGbL0H9GC7SHUAZ7TrOImWwvNgLtnsbNo= 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: /rssal6NtfqdgJR0UKhA04Y+ZWcQ0mAtg02K8oK5YFtPTe/uiRC88dVMJFOnxXwRcBSwwxgOmykxP5mlNXwfsUr3QWphiTYvHzc8+Bj7nL7fo7EmNIFfgMCGp7nCYbOvFyUa2iSQjgRxKEioCi3VWFGBOERFKO4Rm4vuI63WoThFrMuIim+av5XKLKOtwhD+27lNcw7edet8hpMGhmozn7d/un6+z/gPbmmvqc4HXt+3y0CGhWe6yeztLb5GqsNR6XUO9YGluzetXjRgeMhOu5eb0fS0bS/NZHXuyrRmxdQJIlMjlKM91wxn4byDrcrEDaKwGKw1qUYBahosq0tJA2VBFbqBOnwGRq+uz5rxYkmPdnhio37QLoSKnHgSmT1cDNQumzCAeI8+8h5DS8ImemzadMp8XTVYmmIp3nKdNGoUBZnw2TkRjBWnh6YDcGZh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ltGSkuQYo3cMciDP7/2hteCtXYtfhm1iJh+7RLG55Umi06OgeG+z+HNdofFbosDhkYGqxv2o05 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c98d0ffc-246c-4e92-1a7e-08dac3fc7de7 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:44.0162 (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: mF3CnVsDPV4MsSQGhyaaawBnSzY8PCMWspMIDCZB+n1zvkCHPN/Q0kmAlh6K/OMFcV5ZVf4SL5ObfI4LkSUFVA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7342 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221111_075045_865063_4FE15004 X-CRM114-Status: GOOD ( 10.37 ) 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 imx8dxl 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/imx8dxl-ss-lsio.dtsi | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-ss-lsio.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl-ss-lsio.dtsi index 815bd987b09b..5306d2b3fc3f 100644 --- a/arch/arm64/boot/dts/freescale/imx8dxl-ss-lsio.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8dxl-ss-lsio.dtsi @@ -6,41 +6,82 @@ &lsio_gpio0 { compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; interrupts = ; + gpio-ranges = <&iomuxc 0 47 13>, + <&iomuxc 13 61 4>, + <&iomuxc 19 67 4>, + <&iomuxc 24 72 1>; }; &lsio_gpio1 { compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; interrupts = ; + gpio-ranges = <&iomuxc 4 74 5>, + <&iomuxc 9 80 16>; }; &lsio_gpio2 { compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; interrupts = ; + gpio-ranges = <&iomuxc 1 98 2>, + <&iomuxc 3 101 1>, + <&iomuxc 5 107 8>; }; &lsio_gpio3 { compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; interrupts = ; + gpio-ranges = <&iomuxc 0 115 4>, + <&iomuxc 9 121 1>, + <&iomuxc 10 120 1>, + <&iomuxc 11 123 1>, + <&iomuxc 12 122 1>, + <&iomuxc 13 125 1>, + <&iomuxc 14 124 1>, + <&iomuxc 16 126 1>, + <&iomuxc 17 128 1>, + <&iomuxc 18 131 1>, + <&iomuxc 19 130 1>, + <&iomuxc 20 133 1>, + <&iomuxc 21 132 1>, + <&iomuxc 22 129 1>, + <&iomuxc 23 134 1>; }; &lsio_gpio4 { compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; interrupts = ; + gpio-ranges = <&iomuxc 0 0 3>, + <&iomuxc 3 4 4>, + <&iomuxc 7 9 12>, + <&iomuxc 19 22 2>, + <&iomuxc 21 25 2>, + <&iomuxc 29 29 3>; }; &lsio_gpio5 { compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; interrupts = ; + gpio-ranges = <&iomuxc 0 32 3>, + <&iomuxc 3 36 6>, + <&iomuxc 9 43 3>; }; &lsio_gpio6 { compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; interrupts = ; + gpio-ranges = <&iomuxc 0 53 7>, + <&iomuxc 8 86 10>, + <&iomuxc 19 107 8>; }; &lsio_gpio7 { compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; interrupts = ; + gpio-ranges = <&iomuxc 0 0 3>, + <&iomuxc 3 4 4>, + <&iomuxc 8 22 2>, + <&iomuxc 10 25 2>, + <&iomuxc 16 44 2>; }; &lsio_mu0 {