Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp842109rwo; Wed, 2 Aug 2023 05:12:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlFdHWGlneN6eWoyj1EnlwoieWiDJJjrfZgruIKJTqPWIWUhCXkFM9m2A6jBvAw99jphNJY5 X-Received: by 2002:a05:6871:b23:b0:1bf:32bf:1913 with SMTP id fq35-20020a0568710b2300b001bf32bf1913mr2362335oab.43.1690978371605; Wed, 02 Aug 2023 05:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690978371; cv=none; d=google.com; s=arc-20160816; b=bstk0Xmt9No68nAjw4WqnPkpkRmdAPEhzvnNmcE4lWeGa8TXQ09X88vT/SKmry4WDb Xw+o1776i65yIEs/cPPTwCjkZtV8FuRUeOxE9NKCP/x+qHbO1zF2e0qy8j0387AGzbtN MaxAWRtxWoSNfSO1GiH7eZrgXVAbkmKfeZPHzdMc57LrUeqQyCZuVroI+yT/ngQC+Yby jX8aAHqWRzWJMI0zjcoXTVFFJ6rDxWL8PsAV3AtXpPEq/iSqaz0XuLtSLluVXqjFlgD/ 1EW9c0qR4RG8VVzKdduaN3mXSSgKTvXjTf5JvDgC6nS9kWqoQb1trfXxMinf5noOpoi5 kUXA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=N3aEGUEAKcwcM0z+aACk3Ka+pcKGBojvrgHFZ09VgPw=; fh=gsTWYBodrQXR4VD/se6PaZFJjsUosYsVEkBTlzLyHl4=; b=lZvVHV9SRl0iqeExnvn7pxa8F6/f5Pl/hmB/tYEUAiMXNEQkxrEGDSlRdaj3ftTJVN T/RXnzlGpm1unf3YxanBFaeqE6csNPH+vG8xSYdzk3SW/QV8TWbQ+od3ABZkwEJJzRer U2utxp/R2dtEE5XjG4uk5DAlG9HuMannanSWJVtQ9Xt86n2Uhkw2AbLv5Wr8sh0WgWnR 1NeyYcMhoG++QYlv1IXa8SoBtmI7FAAhghf9obBxgGiSHPAdXgTUwcN8ENvKdkKMs5oo vMGSz+NhCz0+w4UDA4M36ij+cV7uUeQNyyjaf9darPdi2a1m/B8CzDPKSUzXz4g8Twcj PEHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=chE8mybT; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a654145000000b005526bd0c526si3116431pgp.641.2023.08.02.05.12.38; Wed, 02 Aug 2023 05:12:51 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=chE8mybT; 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 S233618AbjHBLfW (ORCPT + 99 others); Wed, 2 Aug 2023 07:35:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233300AbjHBLfV (ORCPT ); Wed, 2 Aug 2023 07:35:21 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FBD7211E; Wed, 2 Aug 2023 04:35:19 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 372BZDIc115644; Wed, 2 Aug 2023 06:35:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690976113; bh=N3aEGUEAKcwcM0z+aACk3Ka+pcKGBojvrgHFZ09VgPw=; h=From:To:CC:Subject:Date; b=chE8mybTllWQFbxRNvPdc0QBRf2OYCPtX/1qAWImgMbuMw1ihn6jaAemLYV0MmJb2 tiNXCBhkV7LnD6icHO+NTtkrDI2m4IWob95IjVgqSYOMq2WuHMBuCBq/HsZ1HeQsx2 O6bdEkoagqmBsHGtut1dxqnwwwcDqIyxExJ+AjUY= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 372BZD6P107984 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 2 Aug 2023 06:35:13 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 2 Aug 2023 06:35:12 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 2 Aug 2023 06:35:12 -0500 Received: from udit-HP-Z2-Tower-G9-Workstation-Desktop-PC.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 372BZ8Mp116138; Wed, 2 Aug 2023 06:35:09 -0500 From: Udit Kumar To: , , , , , , , , , , CC: Udit Kumar Subject: [PATCH v2] arm64: dts: ti: k3-j721s2-som-p0: Correct pinmux offset for ospi0 Date: Wed, 2 Aug 2023 17:05:00 +0530 Message-ID: <20230802113500.162276-1-u-kumar1@ti.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Due to non-addressable regions in J721S2 SOC wkup_pmx was split into four regions from wkup_pmx0 to wkup_pmx3. After split while updating the pin mux references to newly defined four wkup_pmx, pin mux for OSPI0 was left. Pin mux for OSPI0 is spread over two range wkup_pmx0 and wkup_pmx1, along with correcting pin mux for ospi adding correct pin mux setting within ospi node. Fixes: 6bc829ceea41 ("arm64: dts: ti: k3-j721s2: Fix wkup pinmux range") Signed-off-by: Udit Kumar --- Logs with v2 https://gist.github.com/uditkumarti/701f5f21edd4a10d22abe5f70a752279 Change log: Changes in v2: Changed name of pin mux to align with https://lore.kernel.org/all/20230721082654.27036-1-tony@atomide.com/ patch v1: https://lore.kernel.org/all/20230801125626.3287306-1-u-kumar1@ti.com/ arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi index d57dd43da0ef..fd1d6c884736 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi @@ -45,8 +45,6 @@ mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-default-pins { J721S2_WKUP_IOPAD(0x000, PIN_OUTPUT, 0) /* (D19) MCU_OSPI0_CLK */ J721S2_WKUP_IOPAD(0x02c, PIN_OUTPUT, 0) /* (F15) MCU_OSPI0_CSn0 */ J721S2_WKUP_IOPAD(0x030, PIN_OUTPUT, 0) /* (G17) MCU_OSPI0_CSn1 */ - J721S2_WKUP_IOPAD(0x038, PIN_OUTPUT, 0) /* (F14) MCU_OSPI0_CSn2 */ - J721S2_WKUP_IOPAD(0x03c, PIN_OUTPUT, 0) /* (F17) MCU_OSPI0_CSn3 */ J721S2_WKUP_IOPAD(0x00c, PIN_INPUT, 0) /* (C19) MCU_OSPI0_D0 */ J721S2_WKUP_IOPAD(0x010, PIN_INPUT, 0) /* (F16) MCU_OSPI0_D1 */ J721S2_WKUP_IOPAD(0x014, PIN_INPUT, 0) /* (G15) MCU_OSPI0_D2 */ @@ -61,6 +59,15 @@ J721S2_WKUP_IOPAD(0x004, PIN_INPUT, 0) /* (E20) MCU_OSPI0_LBCLKO */ }; }; +&wkup_pmx1 { + mcu_fss0_ospi0_1_pins_default: mcu-fss0-ospi0-1-default-pins { + pinctrl-single,pins = < + J721S2_WKUP_IOPAD(0x000, PIN_OUTPUT, 0) /* (F14) MCU_OSPI0_CSn2 */ + J721S2_WKUP_IOPAD(0x004, PIN_OUTPUT, 0) /* (F17) MCU_OSPI0_CSn3 */ + >; + }; +}; + &wkup_pmx2 { wkup_i2c0_pins_default: wkup-i2c0-default-pins { pinctrl-single,pins = < @@ -127,7 +134,7 @@ &main_mcan16 { &ospi0 { status = "okay"; pinctrl-names = "default"; - pinctrl-0 = <&mcu_fss0_ospi0_pins_default>; + pinctrl-0 = <&mcu_fss0_ospi0_pins_default>, <&mcu_fss0_ospi0_1_pins_default>; flash@0 { compatible = "jedec,spi-nor"; -- 2.34.1