From patchwork Thu Jan 19 04:26:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 45589 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp139065wrn; Wed, 18 Jan 2023 20:38:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXsbg+YnoDaMDiFmtzeVcOa9JmQlAG9r4M8Picn0rW9so5vziwgEzDBeqqUZ3DWRUQxXG4ez X-Received: by 2002:a17:902:7c0e:b0:192:afb0:8960 with SMTP id x14-20020a1709027c0e00b00192afb08960mr9747353pll.3.1674103080079; Wed, 18 Jan 2023 20:38:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674103080; cv=none; d=google.com; s=arc-20160816; b=G+bbLaOv1/O7WAqD7ENKUg1hY1tAoDo4O/b2LYzcl9zDZnjk4lCH3NfCZZdd8nwN0F fk/ExoDGKfvsfEztDcTCtqB7biAcbHz5FNQrgDciFRaR4vYI8UTunBpSm+MnO/bmuaUi NsH6F/MXDM+1L7cq8Y2AjX92Ij78uWutRuQvUiJt11XPEnFzD+oux0Zr3OTY6NJIZdIH Eduq1ApcBNCRjsbdQs/jm+q2V3M/LJC7ap2cNuI8ToZyH+y7uRWe1p/za3wseApcKjJE 52RD+quJ1DgXR7HXVu1VAixtkqf5DMfX4gf6rKX7tgLWRVcQdftBlS51MYbOUiDh7xyk 2S0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=ynrV2oGHwYXAQlAvAQmhMZx3OijLheuKW61DC7TDWcI=; b=gbpeD99QKFLPltDSeQ81xsk8owSl5jZ4o+vcvlaHginogtioIRPdy/U31h6VpE+e7r UExvjbhgx+nQZ0WCQ8jBqT+JPhY5IWGdKOLjV8sueOJLyW84gD+8QaFm8Q22K7f1D9JS WoO8QkmfZqKZ7rs3q9VYHBXj/ehJpP3iJ+enD/uXmwYtwcM62ZJJyggQNC1uuw73bSFQ 4GfWTY8JBoULyjVwxehCXo+Cfa5PGJWsmRc7JJ5K93juKIb1e3mK9tcaNR9SdnSoGt+1 1FnNZCH/n/GBkjG44q0TX1Oy3Cfn/CwGfago6hjzkHLgV51SEMKZLyyPyVKF6WZqHuhi 31xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=q1FqUDX4; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020a170903028400b00186989178b0si36969573plr.132.2023.01.18.20.37.47; Wed, 18 Jan 2023 20:38:00 -0800 (PST) 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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=q1FqUDX4; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230320AbjASEa4 (ORCPT + 99 others); Wed, 18 Jan 2023 23:30:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229973AbjASE1k (ORCPT ); Wed, 18 Jan 2023 23:27:40 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91A966CCF2; Wed, 18 Jan 2023 20:26:50 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 30J4QONW015261; Wed, 18 Jan 2023 22:26:24 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1674102384; bh=ynrV2oGHwYXAQlAvAQmhMZx3OijLheuKW61DC7TDWcI=; h=From:To:CC:Subject:Date; b=q1FqUDX4MqOWbwOm7kuWit7GQATWV2LvJzfDaaDC7rGnvOBh/h+JMm9IQOoQVms9P /ucpdkSws+BOX2XHq29de5f/m61/LROG4gcZWvtMjhcYN8H39y3JluxFoin50MtmWv 0lpgmbyoaSlzgd7bX3+0UesztHAttH8qBa4cXJ24= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 30J4QOZb059417 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 18 Jan 2023 22:26:24 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Wed, 18 Jan 2023 22:26:23 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Wed, 18 Jan 2023 22:26:23 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 30J4QM5B119592; Wed, 18 Jan 2023 22:26:23 -0600 From: Vaishnav Achath To: , , , , , , , CC: , , Subject: [PATCH] arm64: dts: ti: k3-j7200: Fix wakeup pinmux range Date: Thu, 19 Jan 2023 09:56:22 +0530 Message-ID: <20230119042622.22310-1-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755424311223480889?= X-GMAIL-MSGID: =?utf-8?q?1755424311223480889?= The WKUP_PADCONFIG register region in J7200 has multiple non-addressable regions, split the existing wkup_pmx region as follows to avoid the non-addressable regions and include all valid WKUP_PADCONFIG registers. Also update references to old nodes with new ones. wkup_pmx0 -> 13 pins (WKUP_PADCONFIG 0 - 12) wkup_pmx1 -> 2 pins (WKUP_PADCONFIG 14 - 15) wkup_pmx2 -> 59 pins (WKUP_PADCONFIG 26 - 84) wkup_pmx3 -> 8 pins (WKUP_PADCONFIG 93 - 100) J7200 Datasheet (Table 6-106, Section 6.4 Pin Multiplexing) : https://www.ti.com/lit/ds/symlink/dra821u.pdf Fixes: d361ed88455f ("arm64: dts: ti: Add support for J7200 SoC") Signed-off-by: Vaishnav Achath Reviewed-by: Jayesh Choudhary --- .../dts/ti/k3-j7200-common-proc-board.dts | 2 +- .../boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 29 ++++++++++++++++++- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts index 6240856e4863..0d39d6b8cc0c 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts @@ -80,7 +80,7 @@ }; }; -&wkup_pmx0 { +&wkup_pmx2 { mcu_cpsw_pins_default: mcu-cpsw-pins-default { pinctrl-single,pins = < J721E_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* MCU_RGMII1_TX_CTL */ diff --git a/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi index fe669deba489..de56a0165bd0 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi @@ -56,7 +56,34 @@ wkup_pmx0: pinctrl@4301c000 { compatible = "pinctrl-single"; /* Proxy 0 addressing */ - reg = <0x00 0x4301c000 0x00 0x178>; + reg = <0x00 0x4301c000 0x00 0x34>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <32>; + pinctrl-single,function-mask = <0xffffffff>; + }; + + wkup_pmx1: pinctrl@0x4301c038 { + compatible = "pinctrl-single"; + /* Proxy 0 addressing */ + reg = <0x00 0x4301c038 0x00 0x8>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <32>; + pinctrl-single,function-mask = <0xffffffff>; + }; + + wkup_pmx2: pinctrl@0x4301c068 { + compatible = "pinctrl-single"; + /* Proxy 0 addressing */ + reg = <0x00 0x4301c068 0x00 0xec>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <32>; + pinctrl-single,function-mask = <0xffffffff>; + }; + + wkup_pmx3: pinctrl@0x4301c174 { + compatible = "pinctrl-single"; + /* Proxy 0 addressing */ + reg = <0x00 0x4301c174 0x00 0x20>; #pinctrl-cells = <1>; pinctrl-single,register-width = <32>; pinctrl-single,function-mask = <0xffffffff>;