Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp993116rdb; Fri, 19 Jan 2024 05:14:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHYrtXXbJD+OxGXFEvg+xOWYDV3wGx4vEePag02gRt9zrQS1p2TlMVdMeJlhZN6tqsG11v X-Received: by 2002:a05:6214:c82:b0:681:76e4:778e with SMTP id r2-20020a0562140c8200b0068176e4778emr2433943qvr.31.1705670098264; Fri, 19 Jan 2024 05:14:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705670098; cv=pass; d=google.com; s=arc-20160816; b=hcoQ2Kp3HEH1N2hzccih69t59j/Cq4FUORMcn9QDDxgyLdsF/Zslv/l5M4DM/ptocL jeZajkY4jvxyz24GJjPoIE0s85i9RstxWtUM9W9xHwkxzYDu+icm6iI0c0c4FAJ67rEC KbOXVGfuASunag8sINq8J5rjE3WnSseJr7hKX0YSfOFWBKPDJCN7MBu4CadujqHqgJFT rVZs2wvf+52Bo+jgcCBCuO5gpv65679v8lOVBGDlVZGABy+QTLpM6LBZ8SJgxP282V6E EsMsels+MUkcGkWAkiSmb3hjNPeGOoTm2WLBJj3JyolEbz1Ej02gL7TlRuT3B3qWtqTy 3tFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0p0YDW3jHe9RSxkQ7uT75oHghaehNTE0glSu3aemViw=; fh=d9uXzidHNW18/cOZMN8JMTUErLgGQxxVp20rzV5h7VI=; b=KfhgI12fFoHJOM7Y15yeMzdT/auCNZzNG9pp0sUy99NEaby6W9C6e5HvEa5ka0FYbf qy+R25gJvIqNWj7KuAUZCOSAKsc3VkQigGnn7VQQSjanqm5pQplD+npfmh2vcK7dBrvB 1pfp26b2SwtzYyTvC/UN5yNXw344Pe0H5HQstVBLVx23eESDKOFKYMCWR0ainCS50yL/ c1li/pU/yIAQwjFSGQYaqS3ALsIeJThf8yiKs9JhA9wIy7NIom+a1QBhGyS8kwpcIOiv vFptaNLXqnp8yRO6IL1DYhoOwKRcCeP+3VsqKxrlyQA74CRv4zWDWFwYeEm3PuvERn0w Pr8Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="qWjqKg/O"; 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-31178-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31178-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j15-20020a0ce00f000000b0067f9f6ca003si5943990qvk.21.2024.01.19.05.14.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 05:14:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31178-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="qWjqKg/O"; 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-31178-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31178-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0BB761C23181 for ; Fri, 19 Jan 2024 13:14:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6AFB52F68; Fri, 19 Jan 2024 13:14:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="qWjqKg/O" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 5681B3C467; Fri, 19 Jan 2024 13:14:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705670085; cv=none; b=NvVS7WLlMgFUI5Ih8zt2T5uWahSm4vnsBe+jIsqbwnsYWTuEeAbYfoe1x2xLlcZtzmUzlgrcsZ8YhM4lLoVTcuqGM8hKaNASyNJ6eYb4qUmJraoDo/JCBlPc/vx4ZVOUbEvBx8hABXZJwEdYwi4Q8MbvKXmuMIy9IXI/oni/rSs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705670085; c=relaxed/simple; bh=allHfdLuykCl8Tg8ovI4lhyewPlE2kSFzObLQeJtgTE=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YVcxRNEtUtYpkaRhSoWxDo1WTAgO12K9B2kLqm1kyOFPPO2n9Po/YOgvRQSotP9x7ouMD6X8QavvurHWX+RekPz9ss0rV0Fs7HbXTfCk7Svg7/GQMjE3u6VzPVbcF1bPjbreVi+EYY0cFI7not0ZopRLvmPy28QmNiPYX2rjYqQ= 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=qWjqKg/O; arc=none smtp.client-ip=198.47.19.142 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 fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40JDE56C129521; Fri, 19 Jan 2024 07:14:05 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1705670046; bh=0p0YDW3jHe9RSxkQ7uT75oHghaehNTE0glSu3aemViw=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=qWjqKg/Ox1CNNQtPGOXTL/rli3f0mfUk6L4/m4SoJ4Edx4mhiXdMm/2bctz3ru67N aKnrSHS9GzgJKfHkv8V8k913q0UIWV7TmPUH5affwHMx30/zTAcAGeIxWYDxOhK3fR a9m+Vvzc7SvDy2ZCDvaasN6AEgKaPjMhmJAYDouA= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40JDE5gV082162 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 19 Jan 2024 07:14:05 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 19 Jan 2024 07:14:05 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE112.ent.ti.com (10.64.6.33) 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; Fri, 19 Jan 2024 07:14:05 -0600 Received: from localhost (uda0133052.dhcp.ti.com [128.247.81.232]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40JDE5P8012848; Fri, 19 Jan 2024 07:14:05 -0600 Date: Fri, 19 Jan 2024 07:14:05 -0600 From: Nishanth Menon To: CC: , , , , , , , , , Dasnavis Sabiya Subject: Re: [PATCH 2/2] arm64: dts: ti: k3-am69-sk: Add support for OSPI flash Message-ID: <20240119131405.xumvsbgvqzgh4vje@defrost> References: <20240118153524.4135901-1-sabiya.d@ti.com> <20240118153524.4135901-3-sabiya.d@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240118153524.4135901-3-sabiya.d@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 21:05-20240118, 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 feb571a5a0f5..f368105942eb 100644 > --- a/arch/arm64/boot/dts/ti/k3-am69-sk.dts > +++ b/arch/arm64/boot/dts/ti/k3-am69-sk.dts > @@ -474,6 +474,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 { > @@ -1073,3 +1092,65 @@ &main_mcan7 { > pinctrl-0 = <&main_mcan7_pins_default>; > phys = <&transceiver4>; > }; > + > +&ospi0 { > + bootph-all; Only on the leaf nodes please. > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&mcu_fss0_ospi0_pins_default>; > + > + flash@0 { > + bootph-all; > + 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 { > + compatible = "fixed-partitions"; > + #address-cells = <1>; > + #size-cells = <1>; > + > + partition@0 { > + label = "ospi.tiboot3"; > + reg = <0x0 0x80000>; > + }; > + > + 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 { > + label = "ospi.phypattern"; > + reg = <0x3fc0000 0x40000>; > + }; > + }; > + }; > +}; > -- > 2.34.1 > -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D