Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1180199rdb; Mon, 19 Feb 2024 06:53:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXH4g3d9NN9BMnScEXAzYhdlmSAderS2rHhYC8b0rv5v5tjyNwRyddo+TfCI9gWpNYD05l4DygI21PxuixttRAhfjSVqJ1KtLs5j39vbQ== X-Google-Smtp-Source: AGHT+IHC7A1tMrHioagq2f/GxtY8lcE5Hps5G/uNT1I0CCVaNiu7w2FSK6gEttCJexvUc2nFugU4 X-Received: by 2002:a17:902:f711:b0:1db:beab:69b2 with SMTP id h17-20020a170902f71100b001dbbeab69b2mr8912017plo.7.1708354384220; Mon, 19 Feb 2024 06:53:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708354384; cv=pass; d=google.com; s=arc-20160816; b=YmpWB9LTah9kyLpCBRiEFNE3yU5BCsPZk7AixKF1pWRTurY4L7HCepzrCMzYCmfOiA UVOML9IWB1wS/yBfa9G7z9Y3TK1kZUT/ZYbY7My0lX9GAUk8FhrBL9HSxOzpWzGUKVsl OeaR6XI8u0NfYZrNUIpQm3RJqJ+Wzw10uCVun4Rui3YI3gt+NVWuftK3iWxU2P8MwCYn 0Tpo3uMq2yDi05OHdpkwwNNW7skWfyFzORHd7oRwEzqjBNgsVkAZ4lOv1LaQnOwhJa4W +lNyKdsZXl2H6ft7afXdyuYeXtvA8FfvRdEjgEZUkqI0PwupDg4DbkTHCdGjzB7Cnhhr uJRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=cTeNPPUiHyloiQJwO1KCVRZMjmcyOZitwPbdjibYJyI=; fh=Ie+M390YS042eU0PzzPoq4ehNRvQyetIwpWMz7X+6Pc=; b=MxGbigPWEesX2aXsk9Ki0aDl9g+jcc/tYfI7mzHRsAkbzZFUbjS9tzFIsJ3X/FsZ/Q 3XwOTh9UyNaaaz1Q/UqvqSYjz2QhXyI2DelNiG9FTF6uVpLOOAtE9i3V5OGsIQ3IzUae qpOJD/60cMhHAI/oN2jZb3EfyrKqUpBqAlPIj5dC7CSS4CEuz3IYLgqeWR3zCao2KYAQ lumLRnwNQCinXy3IgHpWMSNMbLuZYseK+B5ATL8imEh8fWXJ/UmJxR8HB6HbbAlKjhnN UQODYrkd//PtPJsJ8ZTw137BqC8kJoYTKnk3CBp8t6CyYSqgyS8013RpkaARhJGUmEO5 VlHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ncLqtjTZ; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-71513-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f7-20020a170902684700b001dbe0bf1922si2778800pln.424.2024.02.19.06.53.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 06:53:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71513-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ncLqtjTZ; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-71513-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EA76328389D for ; Mon, 19 Feb 2024 14:53:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E43622E419; Mon, 19 Feb 2024 14:52:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="ncLqtjTZ" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 6347E37141; Mon, 19 Feb 2024 14:52:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708354376; cv=none; b=EGUUrvi0YSIHVgDV7L1YPjmmlQf2+LKuzZNzc2TNoaw4qOUsXQ+jtH3OfPhXVjoEez90DlWNdsq82rdX6CSPF26vtvwyZzlDYkyO32QVDGzNuruyr2S9Lafkaus8Cdi/F3FxDj82l21kOMJGcIQCxeuJyG8jGM7SBhlTECyLJwM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708354376; c=relaxed/simple; bh=ZlRNDV84m3/OQcjHrnNbDqMZPVxR9wQ6CGgRBMtzN2A=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=Ads5IH/bCAPKpFIbsKgl7ADGKcWoWY8Gy/5rYVHJyw1o2COIw3iLQ3/2Rhna0Bw1igLo9udVzCOW/DgWEK7rp0uRxlBj0XNpwg+CrQmQ8miYxmdcHL2ygUgFnJTUc/hNrBUG/CoiYwgcefEYfnjWXrHDq/26f0OJOWcBbXMGRjU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=ncLqtjTZ; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41JEqioG059731; Mon, 19 Feb 2024 08:52:44 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1708354365; bh=cTeNPPUiHyloiQJwO1KCVRZMjmcyOZitwPbdjibYJyI=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=ncLqtjTZsr+2+EH88zJHKjHOmnKRcbRnpFnKDOZSEHNaiT4dFq3xE+7wvTsJqvQB2 JRzJJdGLLbWRTF7xrdE5B+HtkYF75xPrScNE0OduX9I7zPemeWbxwRncP0FEW76wUb VD5pMAUzUFUzZ2jaRBM7s7+x3JfF/s+MvhgC3mgY= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41JEqiTI007663 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 19 Feb 2024 08:52:44 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) 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; Mon, 19 Feb 2024 08:52:44 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE108.ent.ti.com (10.64.6.29) 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, 19 Feb 2024 08:52:44 -0600 Received: from [10.250.151.109] ([10.250.151.109]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 41JEqdci106044; Mon, 19 Feb 2024 08:52:40 -0600 Message-ID: Date: Mon, 19 Feb 2024 20:22:38 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RESEND PATCH V2 2/2] arm64: dts: ti: k3-am69-sk: Add support for OSPI flash Content-Language: en-US To: , , , , , , CC: , , , Dasnavis Sabiya References: <20240219111422.171315-1-sabiya.d@ti.com> <20240219111422.171315-3-sabiya.d@ti.com> From: "Kumar, Udit" In-Reply-To: <20240219111422.171315-3-sabiya.d@ti.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 2/19/2024 4:44 PM, sabiya.d@mistralsolutions.com wrote: > From: Dasnavis Sabiya > > AM69 SK has S28HS512T OSPI flash connected to MCU OSPI0. > Enable support for the same. Also describe the partition > information according to the offsets in the bootloader. > > Signed-off-by: Dasnavis Sabiya > --- > arch/arm64/boot/dts/ti/k3-am69-sk.dts | 81 +++++++++++++++++++++++++++ > 1 file changed, 81 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-am69-sk.dts b/arch/arm64/boot/dts/ti/k3-am69-sk.dts > index 0ff4d1623cf4..acda25a9e814 100644 > --- a/arch/arm64/boot/dts/ti/k3-am69-sk.dts > +++ b/arch/arm64/boot/dts/ti/k3-am69-sk.dts > @@ -471,6 +471,25 @@ J784S4_IOPAD(0x09C, PIN_OUTPUT, 0) /* (AF35) MCAN7_TX */ > }; > }; > > +&wkup_pmx0 { > + bootph-all; > + mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-default-pins { > + pinctrl-single,pins = < > + J784S4_WKUP_IOPAD(0x000, PIN_OUTPUT, 0) /* (E32) MCU_OSPI0_CLK */ > + J784S4_WKUP_IOPAD(0x02c, PIN_OUTPUT, 0) /* (A32) MCU_OSPI0_CSn0 */ > + J784S4_WKUP_IOPAD(0x00c, PIN_INPUT, 0) /* (B33) MCU_OSPI0_D0 */ > + J784S4_WKUP_IOPAD(0x010, PIN_INPUT, 0) /* (B32) MCU_OSPI0_D1 */ > + J784S4_WKUP_IOPAD(0x014, PIN_INPUT, 0) /* (C33) MCU_OSPI0_D2 */ > + J784S4_WKUP_IOPAD(0x018, PIN_INPUT, 0) /* (C35) MCU_OSPI0_D3 */ > + J784S4_WKUP_IOPAD(0x01c, PIN_INPUT, 0) /* (D33) MCU_OSPI0_D4 */ > + J784S4_WKUP_IOPAD(0x020, PIN_INPUT, 0) /* (D34) MCU_OSPI0_D5 */ > + J784S4_WKUP_IOPAD(0x024, PIN_INPUT, 0) /* (E34) MCU_OSPI0_D6 */ > + J784S4_WKUP_IOPAD(0x028, PIN_INPUT, 0) /* (E33) MCU_OSPI0_D7 */ > + J784S4_WKUP_IOPAD(0x008, PIN_INPUT, 0) /* (C34) MCU_OSPI0_DQS */ > + >; > + }; > +}; > + > &wkup_pmx2 { > bootph-all; > pmic_irq_pins_default: pmic-irq-default-pins { > @@ -1070,3 +1089,65 @@ &main_mcan7 { > pinctrl-0 = <&main_mcan7_pins_default>; > phys = <&transceiver4>; > }; > + > +&ospi0 { > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&mcu_fss0_ospi0_pins_default>; > + > + flash@0 { > + compatible = "jedec,spi-nor"; > + reg = <0x0>; > + spi-tx-bus-width = <8>; > + spi-rx-bus-width = <8>; > + spi-max-frequency = <25000000>; > + cdns,tshsl-ns = <60>; > + cdns,tsd2d-ns = <60>; > + cdns,tchsh-ns = <60>; > + cdns,tslch-ns = <60>; > + cdns,read-delay = <4>; > + > + partitions { > + bootph-all; > + compatible = "fixed-partitions"; > + #address-cells = <1>; > + #size-cells = <1>; > + > + partition@0 { > + label = "ospi.tiboot3"; > + reg = <0x0 0x80000>; > + }; Recent update around u-boot shows, 512K is not sufficient for tiboot3. Please consider to make it 1MB > + > + partition@80000 { > + label = "ospi.tispl"; > + reg = <0x80000 0x200000>; > + }; > + > + partition@280000 { > + label = "ospi.u-boot"; > + reg = <0x280000 0x400000>; > + }; > + > + partition@680000 { > + label = "ospi.env"; > + reg = <0x680000 0x40000>; > + }; > + > + partition@6c0000 { > + label = "ospi.env.backup"; > + reg = <0x6c0000 0x40000>; > + }; > + > + partition@800000 { > + label = "ospi.rootfs"; > + reg = <0x800000 0x37c0000>; > + }; > + > + partition@3fc0000 { > + bootph-pre-ram; > + label = "ospi.phypattern"; > + reg = <0x3fc0000 0x40000>; > + }; > + }; > + }; > +};