Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5700582rwb; Tue, 1 Aug 2023 06:50:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlHF7dfoq2Q70tCNhtfAbR+bZ592OUrpgBzSQXfatCJW9bs8p++iGpoi94KeDXGdEDUtILMT X-Received: by 2002:a17:902:d483:b0:1bb:91f2:bb32 with SMTP id c3-20020a170902d48300b001bb91f2bb32mr15577522plg.39.1690897840609; Tue, 01 Aug 2023 06:50:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690897840; cv=none; d=google.com; s=arc-20160816; b=mGLifJBokgkqeL7o4dUQr20aedk0xaOcDmQEmomdZNPjhXaxOHU8qkyiH8BYbJKRTR BThjdv3+dMLZPOOtsStZLoPcaJbWa45CwpDlOsBOYjFbsAQzLIpE1CKEv5vRRjCqdTOE CwHPqjbJfIZ9EohaffZksr5ppvDG8wrffi+FeCgzALPU4ODluXrkwrNavDAQG3Ex1TDt 1Zcrcea9fa2lOoTLqJI5b9qWxwN2G4EL5YnlueMIhgfsZ0I+xAEgAOM9CPsoMzz7lSt+ rgbAAbPhhOMYZ0vAdZ9jmvYDNj6k2g1zOEYmCSq2g8sm/hdOAkFMBc8b+K/g5ZqCOIzv ezSQ== 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=x1Go1UoptslckA14tMiSKOBHZznYjXt+QYrFnxphHQA=; fh=gsTWYBodrQXR4VD/se6PaZFJjsUosYsVEkBTlzLyHl4=; b=IxJ+gI76APuKt5/EZoH7XvXjPab//R/3AJZDxyQw03TrYSwheKK5yJGk63X6GRWjT8 qRudXKz4ecGDP8z7mFa8PmQF/rYPYi9lWKzpHY9u5bH48OxhEp/eLX5To06ZD0/Lqcfz +ZngnRrz/WXXdYEazzMI6ISg95HOJF59lUmelqtSehJQdLQzwUUyCngB3aej4M2oWqNj /Sb5pD4gm11/BVAubootkTmgusVbSopRVWxwISX36yYMuE5k0ATmELabAGdBqqiM3MkP 9yDn9t+/Prc/9A4nrfjNsQPCRjB6sy4gfR8ruIn6okirXSTLk26x0AcJRKNizjHwDuim EJ6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=izXC6hV0; 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 e2-20020a170902d38200b001b3d2717f7bsi639069pld.61.2023.08.01.06.50.28; Tue, 01 Aug 2023 06:50:40 -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=izXC6hV0; 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 S232151AbjHAM4t (ORCPT + 99 others); Tue, 1 Aug 2023 08:56:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230026AbjHAM4r (ORCPT ); Tue, 1 Aug 2023 08:56:47 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56438E6; Tue, 1 Aug 2023 05:56:45 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 371Cuaaq039783; Tue, 1 Aug 2023 07:56:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690894596; bh=x1Go1UoptslckA14tMiSKOBHZznYjXt+QYrFnxphHQA=; h=From:To:CC:Subject:Date; b=izXC6hV0HM6F6C+4YwTGvAEbQk3B6mn+8UGKqXHCTnq+G9AdgBFNpDktx7bPM0q7M ulcE1YYDFqMlJWjgOMyGzCzYzD/55q9VQoGIYe/dexCiwba7QsihFA1VXjT4HykqlP iKXrf7dwFOMrDy4XX1JV9qTGYv//NqkcGIdZQ/Zc= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 371Cuafk061129 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 1 Aug 2023 07:56:36 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) 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.23; Tue, 1 Aug 2023 07:56:36 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE114.ent.ti.com (10.64.6.35) 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; Tue, 1 Aug 2023 07:56:36 -0500 Received: from udit-HP-Z2-Tower-G9-Workstation-Desktop-PC.dhcp.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 371CuWId009627; Tue, 1 Aug 2023 07:56:33 -0500 From: Udit Kumar To: , , , , , , , , , , CC: Udit Kumar Subject: [PATCH] arm64: dts: ti: k3-j721s2-som-p0: Correct pinmux offset for ospi0 Date: Tue, 1 Aug 2023 18:26:26 +0530 Message-ID: <20230801125626.3287306-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 --- Test log without patch https://gist.github.com/uditkumarti/41d3d7ccf278d4e00e6da349478e58aa (line 1192) reports pin mux is out of range for ospi Test log with patch https://gist.github.com/uditkumarti/46999c99911c9ff3777493fbaea243c6 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..1a9d13237c2d 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_pins1_default: mcu-fss0-ospi0-default-pins1 { + 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_pins1_default>; flash@0 { compatible = "jedec,spi-nor"; -- 2.34.1