From patchwork Mon Jan 15 13:16:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hector Palacios X-Patchwork-Id: 762817 Received: from outbound-ip8b.ess.barracuda.com (outbound-ip8b.ess.barracuda.com [209.222.82.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AAC7115AF6; Mon, 15 Jan 2024 13:17:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=digi.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=digi.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=digi.com header.i=@digi.com header.b="RjkmX9rc" Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11lp2169.outbound.protection.outlook.com [104.47.56.169]) by mx-outbound45-239.us-east-2c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 15 Jan 2024 13:17:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=krj8+7n4y9c9D1/fXCSD7HAs+iZIPVfB9iC4rBjgaDUS735Qb3IDm0lYP+mMPg7U58pyzajb/3Cdwzr9Y8trOPhJDw8sSSQUHAFl0fyLNIDE7uz/o4vGqa6vg9tUUoRx2jQjLOqZz/XYRXHLSMAVDKmH83Qa8/M7Ixb4vMnZP9WvcyQxR/9ltr9SQct1EJ7OEZf0+j3Z+9/dgIP2tMC0tCDzT/eqXldhMMG6u+RtgZ2XSMhCpm3w0XrgRmF3grlCYtW2jbj/MNcdP6TaAw+3NMRdi/6UWFijPqtmS57euG354uaK1xm3opGil0naiWWru2NEG0m0OgHHXMOTNbhJRA== 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=V4maJKDp2+VGlfkpTrShcl3bRCtBX7AX5bV9HVT5ijE=; b=gSR2TRcXo3Jo06aiga5MbSxBNOKrQ1GtKqWu0XWDJJx3EChardxPqjKjtgj1u/q1B0ZGPbq+jxFASKt+WyE2he67j2MtEGG+RoWF40J4zuy6kqmVdvU4AclO7Aj+xK6B9mEb/vvANGhIfX4yhEUci4qDj1+B6iYx252ysWFxRM/UJRTOUx/sCIdB9wIdLNl11Xm0b4j8Ttrt7gbWoedUjaQx5/QPAVJ+UuQB17vYHsBo0n4eakxLJvC+jvb/+be1eeZUWjeG+BrxcvD5hlsmKKytD2Ja0NXfU9qzLKwZqdyptta/AkBFNt92rwYhP2ICal/5AiYkzIQjLGHMHAM4Rw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=digi.com; dmarc=pass action=none header.from=digi.com; dkim=pass header.d=digi.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digi.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V4maJKDp2+VGlfkpTrShcl3bRCtBX7AX5bV9HVT5ijE=; b=RjkmX9rcQpviq3mma/xspB9ZaQ8h43APVWgtmo48Rx2Yqz5qnuZtQrZSJ3bFdfTYL5SbRdqv513oih5zCwX1DtMVH7xmy9xsFfNrXd6VV9+c+LYx2/nFM993u7gvYBTfbF77eQAE2FnX4WprVjT/lhO7BhrJ4yQme5d4GFoB6qa7Rf5zXCTSBZuCOexcoHOm8Uh4ryiYKBZbaI/V84OgmEq2uxclAvJQjV6GEGhIB+CoD2tuD485UD8u/iIGhaT2DOhhuR2/y91rQBArYt1djtGr3HPOPazoIyD8i9k2/iqRt63/tIBMvLjmIC61nmfBm8dyVnpvPZjyYtKY+ZWjFA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=digi.com; Received: from BY5PR10MB4370.namprd10.prod.outlook.com (2603:10b6:a03:20b::19) by PH7PR10MB5724.namprd10.prod.outlook.com (2603:10b6:510:125::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.23; Mon, 15 Jan 2024 13:16:53 +0000 Received: from BY5PR10MB4370.namprd10.prod.outlook.com ([fe80::283b:b934:7a82:c8c7]) by BY5PR10MB4370.namprd10.prod.outlook.com ([fe80::283b:b934:7a82:c8c7%7]) with mapi id 15.20.7181.026; Mon, 15 Jan 2024 13:16:53 +0000 From: Hector Palacios To: linus.walleij@linaro.org, brgl@bgdev.pl, robh+dt@kernel.org Cc: stefan@agner.ch, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, peng.fan@nxp.com, haibo.chen@nxp.com, alexander.stein@ew.tq-group.com, hector.palacios@digi.com Subject: [PATCH v2 1/2] gpio: vf610: add support to DT 'ngpios' property Date: Mon, 15 Jan 2024 14:16:04 +0100 Message-Id: <20240115131605.395691-2-hector.palacios@digi.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240115131605.395691-1-hector.palacios@digi.com> References: <20240115131605.395691-1-hector.palacios@digi.com> X-ClientProxiedBy: DM5PR08CA0042.namprd08.prod.outlook.com (2603:10b6:4:60::31) To BY5PR10MB4370.namprd10.prod.outlook.com (2603:10b6:a03:20b::19) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB4370:EE_|PH7PR10MB5724:EE_ X-MS-Office365-Filtering-Correlation-Id: 74b1062f-f831-4599-9e06-08dc15cc3dad X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UAC+ro7f37GVUPaiLSsPwunjLAKYu5N0FOsGX3ZydwmNZB3EbmAN8uPoTG7kxHNtSKoHS239mEk5HlLhkLAbk8G9GFsUxg9P+BAQjHzrQMRuzyht/h6emwidy9nl1ZT/11PF2RyIQsrFDa25cekJXiN3l9zNWwWOZxIFmmyNMi8eUGk0bA8bmY9yAN6KCnvRIdTx1TnY8NN5rV0EfhdUnVFxFhxOes2n4/S6ambPrlKNXJOKvFkC6SdpkyNhtVrzjJT0uWP2lij7xb5st2HU8s3KJR6b6TjM1dYxEIn9YoUAoIHTvWXUddiN9BNsbljBPGpHmAvFA4zwKHPVTNGyw40K+zXWcj6iYmXfFF56XqGgIzLTy6pDb4j0ARf4mjGGaVo0bqNoMdZEA8rTI1O0RPJhp8Due/l9LsRpKwmIewTRNZcalM/pUtM2uq+2BGKr4xf4rvTWm/T+8fjRYiGJHXioe46r+4lgcVU9AFi2RIavnARy7C5x3bIKb3Pm5NrXjF2ZZH3nlBrZuIai60HccstPaqMFx4d539+nvr2z/h3x1ERnki9SMN+3OLyoSSImaf6luJY0bIVMgwg5NJbRv/OZ6wqWvyCygVoGxQ7GOzD+sSo9ky8ghLmG/OUa08XY X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR10MB4370.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(376002)(396003)(39850400004)(366004)(346002)(230922051799003)(64100799003)(451199024)(1800799012)(186009)(41300700001)(38350700005)(2906002)(5660300002)(36756003)(83380400001)(86362001)(316002)(6506007)(52116002)(6512007)(478600001)(6486002)(6666004)(66556008)(66476007)(66946007)(2616005)(26005)(107886003)(1076003)(38100700002)(44832011)(8676002)(4326008)(8936002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kHc8Lr1i5xXpcZkQUJmQ5y8Up4h1iOIYxgPDOvw2CWvbucYOQOk8XifJMwwHMdmiX1R8ShYU55jFp/S9umVrv2LKDJD/xYY1mZYBeringdemsdlBMamve+1aTF+GHimXTUTZ9FNcnbzPR5O1nLNDeJzf6z/9Eqw48txvOZFsQGWyHMoQItHh5iE9FuoSKxQqbI3pWCYlLPFFTa9aZDjUjufbivDLfcPYhWJ3letm7QBX+sIiZ66ajBD6fc1fsaD9kSlTG54PAVXSifesTBzsilxfdL13Yd2AK39yStFE9n6yJrwPcOhzrRhCjkG+F6Qam5I/MJ2evORLok/UjlNtAEwOzn3WlQdGVd6nc4SLoXJo5OiyJzt8otM/3m/NLrey0j70nVaLxShIh/nzpHDBa5YzDycep3hwPklEyjdSE0BX1omw4YOFMn0Kel9L78wXDlaYY5/9ur4d6fXdOmZhHFhZIs8ATatAba5yNxszHHQ16lmE3NJiGW47C9aP8kir0LvaQ9Z7sU75JE5FmFTlKH3g3O96U2hqrszUayE+RjxOo320oKjcw3c/7O0/cvNKJ4iMB76bFQbMknwsNpbiqYA6xxeBPQGxR8lLWZREky/zjMBQwmehxCrNL9DUggY60mlIqtygZJ9IbDYsv0im7+5bR1gtBoHbfKiahrzuA7LNqyEXtwn1tU5f3bbPD/pUB2kvVqfMfshu1sKuBoWQcOboFFgDU6WhOaOjtvby1xetuGUmH0KbWouWEZeiFTi7kkjNfACOTNGgCzHZySRK3ySFrV+G+l8nFRiZCHIfKYPyHxKB4UAZ9yCqFfz7M/aFHrC2hf70RWKgEK203VoOxQnSeqwv7ciUJ+2WgECGD0HW8lKTEhjs4Qf2WkYqJ0MGTpOl6avw8REndqoT/5frbbsvPX1zAVG0hjXmaTJ3fpTGPRD/VQT+kkKxqpHWUDVK3Efzz1XGOU/jbD/rsm2FbxpGuTZIAcwrP8SQKC3gyRRQ7zUEme+kX7ADryesMpQ9DZuIbP/E9Prr0xFzMYS0VnooanZ7VEQMhf1r77QOWSxcQ+wj8flaFSUy9Gjh2dsk/rTTKa4Ny/xR/NqncrdL3w9/txbBHtLgs2fZfA7ldtkLZtQSqkh0rwOXD9aSMy5Z9i2rkK+1uD7inj0gtSO8CPzQ0++tACtDEl4rZQ4VS/KnYHcdWGps7TdoIp9isxGhzd9KcJPN6LRlcT7KJRcL1/uQhLNKcKDJYRkY7ZrFBsOE+XzOAFSTUzdXyvtejRoG1WaK2YGVFO/4bCvpWwO5o6zLfFeE60ioEYHPOVvphPRKwOZmqCxF92kvR9KTu4Eaftq0mzF8d6CN/buwVD1isziIRS0BVAmJGBkMEjyRQ/CrCbWfUD0p2Ztm7UZ8yEs6VhB5y2N3LUGTh0j8julg9D0NueL0BWbM93qmDt++Em0NMVZL5v2s9veIIdvi7sQCpW1NK8T700IFx8hCzDI8mclZuCSXTup5oj9dVbThFt0iOrNzmCzwtwcbOe6bbW/btlu6WsSMddwnwr9ensuK9WDQLcdcZtFU373+5FeJ/oDAD/kq5qq7F9ZqaYRfKGFA X-MS-Exchange-CrossTenant-Network-Message-Id: 74b1062f-f831-4599-9e06-08dc15cc3dad X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB4370.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jan 2024 13:16:53.4852 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: abb4cdb7-1b7e-483e-a143-7ebfd1184b9e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: L2p6wSFST3tpJij5y5h/n402DoYCEh93P3iZWtXsm24EcJkjSrTWxKVvEklx/uWpn/H6MZtEMoTdL4ihKvS5IA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB5724 X-OriginatorOrg: digi.com X-BESS-ID: 1705324639-111759-12520-348-3 X-BESS-VER: 2019.1_20240103.1634 X-BESS-Apparent-Source-IP: 104.47.56.169 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVobmhhZAVgZQ0DjZLC3R2NIi0c Aoydg4LSklzczIwMQwxdQ42dzA0CBJqTYWACVyVQlBAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.253535 [from cloudscan20-227.us-east-2b.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS112744 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Default to hardcoded VF610_GPIO_PER_PORT (32 pins) but allow optional generic 'ngpios' property to be specified from the device tree. Signed-off-by: Hector Palacios --- Documentation/devicetree/bindings/gpio/gpio-vf610.yaml | 6 ++++++ drivers/gpio/gpio-vf610.c | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml index a27f92950257..ba4ebdbc5546 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml +++ b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml @@ -65,6 +65,12 @@ properties: minItems: 1 maxItems: 4 + ngpios: + description: The number of GPIO pins of the port + minimum: 1 + maximum: 32 + default: 32 + patternProperties: "^.+-hog(-[0-9]+)?$": type: object diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c index 07e5e6323e86..4abdf75e9a0a 100644 --- a/drivers/gpio/gpio-vf610.c +++ b/drivers/gpio/gpio-vf610.c @@ -276,6 +276,7 @@ static int vf610_gpio_probe(struct platform_device *pdev) struct vf610_gpio_port *port; struct gpio_chip *gc; struct gpio_irq_chip *girq; + u32 ngpios; int i; int ret; bool dual_base; @@ -353,7 +354,11 @@ static int vf610_gpio_probe(struct platform_device *pdev) gc = &port->gc; gc->parent = dev; gc->label = dev_name(dev); - gc->ngpio = VF610_GPIO_PER_PORT; + ret = device_property_read_u32(dev, "ngpios", &ngpios); + if (ret || ngpios > VF610_GPIO_PER_PORT) + gc->ngpio = VF610_GPIO_PER_PORT; + else + gc->ngpio = (u16)ngpios; gc->base = -1; gc->request = gpiochip_generic_request; From patchwork Mon Jan 15 13:16:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hector Palacios X-Patchwork-Id: 763460 Received: from outbound-ip24b.ess.barracuda.com (outbound-ip24b.ess.barracuda.com [209.222.82.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 566D915AF6; Mon, 15 Jan 2024 13:17:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=digi.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=digi.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=digi.com header.i=@digi.com header.b="fJmevtSA" Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11lp2169.outbound.protection.outlook.com [104.47.56.169]) by mx-outbound45-239.us-east-2c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 15 Jan 2024 13:17:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AUiG2Cx78Gtx4ekq07dSbh69sPXotVx/sd6RwvMEITzl5INQHYKTXGBOFs4GUEwrQLz2ep0KaWCHX8bAgSqSWS1tiHCVaTLCXI4KG8KpdBPxb/NJs0rqtNHeksQ8M+13fCTJSDXdVrhB6dR5hv0T3yVIAg5lXbvct3Yem1NSQHo+8aMBAYI60BCC+g6jv0vUXvdyXqlZPWkqsHJjA7mSBXWCv1lk0BMREorEFVxmmi96iQKAWYqDqnP81HTiMqP6ylEgG/OBQXIZi6KjwPYSckuEN3wOZwBKD4M/1XjP1O533yH1ziCOI/o+LkTMzPnRi6waLiG5oB2Z49Q5kk6A3A== 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=U66kNV+nxEwPq6JzmRc7XVuiSHyrKSzuiysTkD3mYJ4=; b=KiO3iIySwhWNm/W7c8s/xNOW8l9SfOXVLRnhSQOpdQORTS/X8q8wkPJo9qsweunBSNCaUjrI6CjYlsoBp0dkv2nVGuydjUGXjLZk1JCs046thl82ePQ5f/D5ua26rvE+gZDueHDOZc5wv1CoH0HTS1rYoXwopv6IGCVKOGn6hD203POZlB62TrLxMCiFSHYtH0N6PET5uOnvOptu+xhjPytyHgcXhE4H4iCJ6T4hMGGJJBh9zMedLqYRQ0ycECPUk3v289TdzRDGiV8136AFBxa4Iqa3eSJ91AHnyWeOSPq557LiMT7RcDB6zmrJI/QU34havZI0a0fkLNtY5H5qZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=digi.com; dmarc=pass action=none header.from=digi.com; dkim=pass header.d=digi.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digi.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U66kNV+nxEwPq6JzmRc7XVuiSHyrKSzuiysTkD3mYJ4=; b=fJmevtSAkMrhFgC9HyjH1M9sU4LKAwg6LPyMbXTaz6GoP112o6rXaR78OwcfiG1Lro0bqkx3QA0Uam89/FcR4Ay8BRrbk5Qg2wquhYdTPcBKDzVk8RmfI/vljE0fJesmKdB2ch6iqGF1pJO037Xvuw7VjzKXlx/YpiX6tfkVxwWcCx7/fDKrUnPF0Tplg5q5VnDqTdNaExjSmfWcRFvFjSSEVsbSTTyRIiOPFbPPuJNSk8N4mNUgZbLVFXoJcEW+mGnurDj/PaXFY1IXvX3Ktt3min/OVG1SyS/tnU2vZfE00YughsaaE/GqBVdAnR1ggk18HEgFq1TucbLyr0H6sA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=digi.com; Received: from BY5PR10MB4370.namprd10.prod.outlook.com (2603:10b6:a03:20b::19) by PH7PR10MB5724.namprd10.prod.outlook.com (2603:10b6:510:125::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.23; Mon, 15 Jan 2024 13:16:56 +0000 Received: from BY5PR10MB4370.namprd10.prod.outlook.com ([fe80::283b:b934:7a82:c8c7]) by BY5PR10MB4370.namprd10.prod.outlook.com ([fe80::283b:b934:7a82:c8c7%7]) with mapi id 15.20.7181.026; Mon, 15 Jan 2024 13:16:56 +0000 From: Hector Palacios To: linus.walleij@linaro.org, brgl@bgdev.pl, robh+dt@kernel.org Cc: stefan@agner.ch, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, peng.fan@nxp.com, haibo.chen@nxp.com, alexander.stein@ew.tq-group.com, hector.palacios@digi.com Subject: [PATCH v2 2/2] arm64: dts: imx93: specify available 'ngpios' per GPIO port Date: Mon, 15 Jan 2024 14:16:05 +0100 Message-Id: <20240115131605.395691-3-hector.palacios@digi.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240115131605.395691-1-hector.palacios@digi.com> References: <20240115131605.395691-1-hector.palacios@digi.com> X-ClientProxiedBy: DM5PR08CA0042.namprd08.prod.outlook.com (2603:10b6:4:60::31) To BY5PR10MB4370.namprd10.prod.outlook.com (2603:10b6:a03:20b::19) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB4370:EE_|PH7PR10MB5724:EE_ X-MS-Office365-Filtering-Correlation-Id: 1dcc4f86-06e0-482c-2017-08dc15cc3f94 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wfU7k0IrFPJeYMF9M3V1DhuAPPs3/GvAIJtjD3bHxtNsRPuSmx71IN1mJDY5LP/fc2o0YYyEuEBfBcgO0lv67jfEs+VxZ5tavjF0ExZgICYF5C5XSFGKpXGnn/R9iN7F12ZaRWM9CvMhSKg3Noou4M6OqRUjxCc2JYLC6IpiNngTPJLUavXwdv2ZjvNq9RLkCGF8ccLVsp0ZJ1bgZarNpKSYWk/R8n4qkefa9RcTZ+JmQ1JOiTH7Xh4tEErHUDzNafY3oNJv/Nt7G2Wd/Pu4SFt4nfkftVRfxrPsngklqURDV98mAVc86lniFd46r3LoNZ5iq4Zv7kwubrKdF/aGWA68cX9zBZWT6r9XoQwUEmereMPwDb7sul2X3KEMFLpv5M2kniGYl55tnwQCwr+q7s1ufRL2eDMNxa+BSHhBMlJB1pRQU3IFGxux/WOBNRxCkMYg6Zy9xSguCpiQ5Tahqg4Go8GY6Xj+UrrdqQApb860+28FfhtCC6hJHr+989MBja/EhRHKICniizeRYIhdSIk97SkteXw9w0JfFZX+emFoGlFqKEC9zI4imEl60LnY7uhikSGNgnig61g6Hq26Gc4Ni5HSOLFthKfO6aytu+67eMN3iF2L4DnpT66lFs5f X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR10MB4370.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(376002)(396003)(39850400004)(366004)(346002)(230922051799003)(64100799003)(451199024)(1800799012)(186009)(41300700001)(38350700005)(2906002)(5660300002)(36756003)(83380400001)(86362001)(316002)(6506007)(52116002)(6512007)(478600001)(6486002)(6666004)(66556008)(66476007)(66946007)(2616005)(26005)(107886003)(1076003)(38100700002)(44832011)(8676002)(4326008)(8936002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: REpUNxTWxuvHrkx6jHVp+FzvwhU0UMQG8X9dwlFWewqtYbb5qmziThe7e88uGFV+5q+WwdCaN7gPdCtqum9Zc9K03xizaxrkT7kCzUG7s290HL5NcjIRpV28f5FCDD44IMdDaHEcU8Kx0TomW+qdVNC2qegITTk10FeCeQxHjmkQqBRcwZPXxKhU5eAMAxwuUES7JsUXRe2F2KWhSLP2q9O6VpcLGtK+2Jby2faYE0v+OP9KqZXdGXREW+zFNfWh24om++MvFWKdqHvoeCwQWXbnjt8pcj4irDKhZvZ9yPdJYZ8A1laQhz4Y6hWKXFwNcRBjwtjYTYMtMa4QIjBrvyrO7lSDQVR9+R5u64DxrziXBgOkJ9FJIvi/e4MhCHK1IwMh+PDmNAabD32Jurv7mKotyysstVrs1H1H4hZ7LCSTLXdkEg+8BfML9Xvy8ATjjJc96XIB3qDfvoBskvSTF/cP0Xi5HDXA7V+dTtsN6mdKzdHaehb00UkZ2YFoJ5k/4W/7j5O7DZ4XzsRXhbyjL0hJ9xhmEh1dgnoNs6YcfxPpCLeGrBJVy+QQXGWazMykSzD/GxhrfDoI8TxO8NuJDVPNaXb+6RLsH+ktubmNkDGdFYFF3vPyLDWxTSX/L0JmrJjyWHRS9CewUSZAyzuv3nwq/5LyK2sGDAXya9vQE5gNiM3QDaMhxv54e3ZzMKCjEy5vXvzfcma/k2I8gasg5BHgFzcW8QS2ClAhjewFn5GI066Io0kKuDPCmF07Kpk/zqTa2vBadBO2Gq6qMOkWWQTTBt2Cawc5+s/hZpWLUSTAC6Gq1SjjLhyBcRZFAiNWouaYiB8qwXbFfB3GN4be4EIOnBQfuTIeLLABX7aXLEOa6HYJjjmVpv7evrlxk+AlS5jQfzWx43jFfmw4NuXsyYbSFvaNz2Ak9sdrIJUbA3BDvkboWqjjK9oALfpBQ7aaa8n922Tr6iIxagP96VWzONwTrroA7TX8ZmFIin+PA28o9BKDsbw4hJwS5YQ9Tj4Yh0vdLb1T/GwQfA56jbtkKWkioOdF7ZHe1Co7rMMHRdnHaE5k8kdszJ9bno1RHaIFpB1UU1aarILU8TLVSX/Cs+EzYOAgC/VUe1RMCddHq7m7NMK+qblmG+29l6lSiCVqJ2k37SEwDKMStj3dgSVdyOewG2wWPUyExvEL298Csm9avM+9/D+gu176ISyi8xN3eTtv9/Zq+gtI2DD9jM0ZqG8lhgd2iXBIXw0C8XIXeRVjZlWKwA+rPxMhv+aeF+GD4BhxaCIjkDb26Y0gbNO1DMRvIl3m7MaBzEL+jPSzgOqMCC6DkUFX5NKKDnHrhcON8S++mBTZVJB0sd/quKLo3fzNZ6mV6bYCaEK5scbSOJ9tpkISnq7Ye2bJ7WI2NMynRUE7ftKh4/pN8uYRznrCTXumEoa3PAZfRAria9agmhjJtuct3DZn+l6zRng8mIgFm9CnuDmna95EbZ0inBUtQvdIYV201RVOpx0HCFlnGZxR3hSdx1wGThGqe/rC6c8HI3K5AESehY0/XSGWPNESuzeEiUyvLOEiTqczrQEmiTbvFSYT6RJZBeXDuNpwuoEO X-OriginatorOrg: digi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1dcc4f86-06e0-482c-2017-08dc15cc3f94 X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB4370.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jan 2024 13:16:56.6636 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: abb4cdb7-1b7e-483e-a143-7ebfd1184b9e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NfiUftyOfbyXbmLCwjHpA+bkqi+p+pi7v9nMVcdv5jAszw8vgcn4RSGLX9fzXK936VSOJWhRv4/n7+brEjz3ug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB5724 X-BESS-ID: 1705324639-111759-12520-348-1 X-BESS-VER: 2019.1_20240103.1634 X-BESS-Apparent-Source-IP: 104.47.56.169 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVoYmhsZAVgZQ0NQixdLI1DDR0M DS3NTQ0tQkNdk0EQQNE1MNTZItlGpjAVpic8VBAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.253535 [from cloudscan11-158.us-east-2a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS112744 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 According to NXP HRM for i.MX93, the following GPIO pins are available: - GPIO1: 16 pins (0..15) - GPIO2: 30 pins (0..29) - GPIO3: 32 pins (0..31) - GPIO4: 30 pins (0..29) Signed-off-by: Hector Palacios --- arch/arm64/boot/dts/freescale/imx93.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index 34c0540276d1..7eb2cab7c749 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -970,6 +970,7 @@ gpio2: gpio@43810000 { <&clk IMX93_CLK_GPIO2_GATE>; clock-names = "gpio", "port"; gpio-ranges = <&iomuxc 0 4 30>; + ngpios = <30>; }; gpio3: gpio@43820000 { @@ -986,6 +987,7 @@ gpio3: gpio@43820000 { clock-names = "gpio", "port"; gpio-ranges = <&iomuxc 0 84 8>, <&iomuxc 8 66 18>, <&iomuxc 26 34 2>, <&iomuxc 28 0 4>; + ngpios = <32>; }; gpio4: gpio@43830000 { @@ -1001,6 +1003,7 @@ gpio4: gpio@43830000 { <&clk IMX93_CLK_GPIO4_GATE>; clock-names = "gpio", "port"; gpio-ranges = <&iomuxc 0 38 28>, <&iomuxc 28 36 2>; + ngpios = <30>; }; gpio1: gpio@47400000 { @@ -1016,6 +1019,7 @@ gpio1: gpio@47400000 { <&clk IMX93_CLK_GPIO1_GATE>; clock-names = "gpio", "port"; gpio-ranges = <&iomuxc 0 92 16>; + ngpios = <16>; }; ocotp: efuse@47510000 {