Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3089952rwb; Mon, 7 Aug 2023 08:07:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXoyeXdvIxn4AQM6j5rXI+VPUFC5DmT/pDMZ62Wnfs037HAAl+mRMnTjyNPEOxRSnSDSM8 X-Received: by 2002:a2e:3008:0:b0:2b7:364e:91ec with SMTP id w8-20020a2e3008000000b002b7364e91ecmr6153623ljw.13.1691420838371; Mon, 07 Aug 2023 08:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691420838; cv=none; d=google.com; s=arc-20160816; b=MmTqyhe6uN8gura7594Ggjv/dQcsoRtJb9PlF7hYsC9JImGAAzGT4Kx9NUWSPOWIBk B2ipmLDdJFTvybBdlOSotqFz5JTRDm8TZ8wL+jPTh1/XxV52IDwLy+cqfGRVDJaXMMob 1QyHNJp0IbDikl479rSd23C+9cqMB/dAzAxrmZXqdUhWS/yVL/w/0oWUcpklUsMvNV0S j5Z0RyniJmAsxlhFtBMc2MKuA/JHBydsIf9psYoANOGTru9c+IdDwwL/qqenFd8jLL4n BDszBPfzry/AkviiiCcVTz5TUVwUC5JVGIzmeHAAq446o4/C9wdL0Fiy0c2h5TRYXdLV vdxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=NJdbHAWINh9tDnG69+ypmrXoPpaIlunNO+Lvc31LXNo=; fh=tl0Vtmtg0S0DYpqnoUR+LNmQoLTpy3Rvy8GLWDaEHyM=; b=zB42ENA4LheO+UlToSgyemR7s7GB3cU+vjJvQTXRJbrvePqAY99D7jtSakxr/Rr3KZ GYX1MYPtrpUS3IGhQjGxtveDBOyY4lO/H62dpWSLOtLyZ+NrEqe16ESO3L6yXBmqNRdb 8gtV9IRegCzF4ZhHPIrYbN9wSJ1Oi2jfyzqx5vqEuK9BxIKKoYYRhaTt5ZkxyKnvyvRd 7TDj/CRwupM/8EHJi/RzlrCe22g9+aojyGiTGO2f6qRyDrM3cVtp2AsxGNxy1g/4L2v6 LGpHA+ceBWqu7Wq+LDoYZ47N1Rca8Zfg1e8h1v9JWNyLwp+shrt64Hqk/csyRJIPn8r4 UUYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=akvN2LkO; 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 u18-20020a170906069200b0098e48ad11e8si4888272ejb.902.2023.08.07.08.06.50; Mon, 07 Aug 2023 08:07:18 -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=akvN2LkO; 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 S234408AbjHGNnd (ORCPT + 99 others); Mon, 7 Aug 2023 09:43:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234456AbjHGNnI (ORCPT ); Mon, 7 Aug 2023 09:43:08 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 583121FEA; Mon, 7 Aug 2023 06:42:42 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 377Dg3aY023591; Mon, 7 Aug 2023 08:42:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691415723; bh=NJdbHAWINh9tDnG69+ypmrXoPpaIlunNO+Lvc31LXNo=; h=Date:Subject:To:References:From:In-Reply-To; b=akvN2LkO7lPBrLaTF1VTgkV3ZPIxA74V8LDjtoYKfkTnADRERIWuSqSpuVmn4lnSB Pxov0mAsXI0Cm/b4t7d/VQjMvX9h4kCcruzT4SLteMSM9t+mQMBNxpiM+nysufJEgQ cekz8W+gZjnuA1W1xEibwdMKmzAF4I8/jfR7ovx8= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 377Dg3fj040151 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Aug 2023 08:42:03 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 7 Aug 2023 08:42:02 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE110.ent.ti.com (157.170.170.21) 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; Mon, 7 Aug 2023 08:42:02 -0500 Received: from [10.24.69.141] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 377Dfw8h013246; Mon, 7 Aug 2023 08:41:59 -0500 Message-ID: Date: Mon, 7 Aug 2023 19:11:58 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v4] arm64: dts: ti: k3-j721s2: correct pinmux offset for ospi Content-Language: en-US To: Udit Kumar , , , , , , , , , , , , References: <20230804075341.3858488-1-u-kumar1@ti.com> From: Vaishnav Achath In-Reply-To: <20230804075341.3858488-1-u-kumar1@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,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 Hi Udit, On 04/08/23 13:23, Udit Kumar wrote: > Due to non-addressable regions in J721S2 SOC wkup_pmx was split > into four regions from wkup_pmx0 to wkup_pmx3. > > Correcting OSPI1 pin mux, which now falls under wkup_pmx1. > Along with that removing unused pin mux for OSPI-0. > > Fixes: 6bc829ceea41 ("arm64: dts: ti: k3-j721s2: Fix wkup pinmux range") > > Signed-off-by: Udit Kumar > --- > Logs with v4 > https://gist.github.com/uditkumarti/84a18d9c9a62fe0d22ee7c650340b12e > line 980 and 983 Both flashes are detected > > Logs with original tree > https://gist.github.com/uditkumarti/41d3d7ccf278d4e00e6da349478e58aa > (line 1192) pin mux error, line 1209 and 1212 flashes are not detected > > dtbs_check run after applying https://lore.kernel.org/all/20230721082654.27036-1-tony@atomide.com/ > > Change log: > > Changes in v4: > - Removed unused CS pin mux > - Rebased and tested with next-20230804 > - v3 : https://lore.kernel.org/all/20230803145655.806001-1-u-kumar1@ti.com/ > > Changes in v3: > - Corrected wkup_pmx for ospi1 > - Removed unused pin MCU_OSPI1_CSn1, shared with pmic > - v2: https://lore.kernel.org/all/20230802113500.162276-1-u-kumar1@ti.com/ > > 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/ > > .../dts/ti/k3-j721s2-common-proc-board.dts | 19 ++++++++++--------- > arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi | 3 --- > 2 files changed, 10 insertions(+), 12 deletions(-) > > diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts > index 20b32563c0ed..e81ef8a7a8a2 100644 > --- a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts > +++ b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts > @@ -282,18 +282,19 @@ J721S2_WKUP_IOPAD(0x104, PIN_INPUT, 0) /* (N26) MCU_ADC1_AIN6 */ > J721S2_WKUP_IOPAD(0x108, PIN_INPUT, 0) /* (N27) MCU_ADC1_AIN7 */ > >; > }; > +}; > > +&wkup_pmx1 { > mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-default-pins { > pinctrl-single,pins = < > - J721S2_WKUP_IOPAD(0x040, PIN_OUTPUT, 0) /* (A19) MCU_OSPI1_CLK */ > - J721S2_WKUP_IOPAD(0x05c, PIN_OUTPUT, 0) /* (D20) MCU_OSPI1_CSn0 */ > - J721S2_WKUP_IOPAD(0x060, PIN_OUTPUT, 0) /* (C21) MCU_OSPI1_CSn1 */ > - J721S2_WKUP_IOPAD(0x04c, PIN_INPUT, 0) /* (D21) MCU_OSPI1_D0 */ > - J721S2_WKUP_IOPAD(0x050, PIN_INPUT, 0) /* (G20) MCU_OSPI1_D1 */ > - J721S2_WKUP_IOPAD(0x054, PIN_INPUT, 0) /* (C20) MCU_OSPI1_D2 */ > - J721S2_WKUP_IOPAD(0x058, PIN_INPUT, 0) /* (A20) MCU_OSPI1_D3 */ > - J721S2_WKUP_IOPAD(0x048, PIN_INPUT, 0) /* (B19) MCU_OSPI1_DQS */ > - J721S2_WKUP_IOPAD(0x044, PIN_INPUT, 0) /* (B20) MCU_OSPI1_LBCLKO */ > + J721S2_WKUP_IOPAD(0x008, PIN_OUTPUT, 0) /* (A19) MCU_OSPI1_CLK */ > + J721S2_WKUP_IOPAD(0x024, PIN_OUTPUT, 0) /* (D20) MCU_OSPI1_CSn0 */ > + J721S2_WKUP_IOPAD(0x014, PIN_INPUT, 0) /* (D21) MCU_OSPI1_D0 */ > + J721S2_WKUP_IOPAD(0x018, PIN_INPUT, 0) /* (G20) MCU_OSPI1_D1 */ > + J721S2_WKUP_IOPAD(0x01c, PIN_INPUT, 0) /* (C20) MCU_OSPI1_D2 */ > + J721S2_WKUP_IOPAD(0x020, PIN_INPUT, 0) /* (A20) MCU_OSPI1_D3 */ > + J721S2_WKUP_IOPAD(0x010, PIN_INPUT, 0) /* (B19) MCU_OSPI1_DQS */ > + J721S2_WKUP_IOPAD(0x00c, PIN_INPUT, 0) /* (B20) MCU_OSPI1_LBCLKO */ > >; > }; > }; > 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 594766482071..a4006f328027 100644 > --- a/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi > @@ -56,9 +56,6 @@ mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-default-pins { > pinctrl-single,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 */ Thank you for the patch, Reviewed-by: Vaishnav Achath Thanks and Regards, Vaishnav > 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 */