Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp192526rdh; Wed, 7 Feb 2024 01:42:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbA+2zsp20NN6N8xLmNyITFLXMh6JnmqvZn4b1uw4zESwrI7fhwqBsz/ZBazANazPIYfZP X-Received: by 2002:a17:902:db0f:b0:1d9:b58e:70a2 with SMTP id m15-20020a170902db0f00b001d9b58e70a2mr5800389plx.8.1707298922438; Wed, 07 Feb 2024 01:42:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707298922; cv=pass; d=google.com; s=arc-20160816; b=a1mM6NwcKy/uRq1N+xdpw9DAg9TyDGhvsOyuvpyfF6I9yuHqust6NElC1gqmHsNotG JYNgsexHvHB6tMPTXnl4ql4DukPXADyHNlflPLkDa1IvQ5YPVE+hOmdxN2J0AxLnfPhN LiMR2V/uuT6KN6vRP81fi3iU+SCXo8GlVEBtpOFG9uzDLZBymIg0ntRUmCjrZUrPFFRp fxo9XL0i+3DsMFg7ArUoDUOiqrWolJ+wa6BTAhM4SmrW+tAhvai3eD7dvKAdD+Jlwxf9 6o8lOlHzPHkHpN+mVcgKkJnjNweR74Cl8cqIbsxZ1AbgbnvJFEOGM4Q6dpOTwZne12// hZmg== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=SOzyt0EF/Om6sMYBCsg6uB82WUavl6cpyJpn0kOAg4Q=; fh=BH4SZlaj1X2MQko8AOWbmj9JpTB83XqqR6QoIJVvARE=; b=zShV5cI41A1bg6gvUZ6d/7EG3SaUG4pccWmOzC+CFptwAcpPQzL85+1deUswiJuev+ c+KG8nv68JewLD+CjfWVHiUWwKbZcC3JHHLZj4el3BnyizsHbHo0W2WwiI+DZr2ZKLbB eJExmLSMwIbSnNdFUcKxvJut+ifE5Wp7WwNiPuO4MIgm1SAO6rhMl1Yc3pNjGMGYW0N0 s0UpK8GEJv86dM2u7jKUlmxURKzhiU58EE5BwjFudYY/w20ulkSg5GnnsK8NJVcbXWdR bGbnFmk+nl5gl1X+4DX0U09y5aWiIBCNI5qb2Xpr9wbqCGAzWpByznS5ARWG1g1kE9SM hkRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tuGYofVK; 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-56235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=2; AJvYcCWtMIJZLzmaNdlyywzzv2dVq0D+kWDuC6VgU3c8EzQAnat7nVHCBSqgfa3pPFJWoGHeCL1xVDWM7XRXD9d1wL8B/UQEc3Lj8DAJhxPGUg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id je20-20020a170903265400b001d8da5e2681si1171543plb.402.2024.02.07.01.42.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 01:42:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tuGYofVK; 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-56235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56235-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 285B5B2537C for ; Wed, 7 Feb 2024 09:41:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C78F35280; Wed, 7 Feb 2024 09:38:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="tuGYofVK" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 3FD9E288AE; Wed, 7 Feb 2024 09:38:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707298693; cv=none; b=fHuSHmQgFuDee8MUG4HpKqJHeFmsyXUVJSQnludf3+DfFbT9YZfWo2mBNcczbwKIFt0TZNvC04S6Bzyul5ZJ36unRMlXZXv2yA7/b31N5khsPEfzHt5z6jxvbdJvMgnGnwVQKu2xpzdQ4TrP4xkZZ9W+gKLU5NMeUE4l8bgJqZI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707298693; c=relaxed/simple; bh=Ku6yxq93zK30Dm+6ROgr5NQtVTuS9Ifro1Pddbtwfbs=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=apjrvT3GNoivDgFNpCnaFS7hPju0xyaDC7d50jrt9aGpyXd+rnWuuRsM+buCB6jSx/q8da2FpTHg3YE67wdV6AvBlIMjck31YkrGSxAZp4UpKZyMSnaN+T8eztTkMWAmAzsM3y1EY9a9O+y7NXiAYpTYg95v5USbB0kEeeNu/jA= 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=tuGYofVK; arc=none smtp.client-ip=198.47.19.141 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 fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4179bxDF063459; Wed, 7 Feb 2024 03:37:59 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707298679; bh=SOzyt0EF/Om6sMYBCsg6uB82WUavl6cpyJpn0kOAg4Q=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=tuGYofVKPdiYLY+P9i+cyylot0lYagba5BiF3Iab7FDniYMkvNZmFGBHf2AY2PUUZ PQkaBzmnNgH9N90ioDUPet6KiYe855dvck1RPKazWTQtn+/GRSWKURSf3O5evZ3Kn3 81NXD0vAWAc0D2pWL1UC6W8Ckk9rHBn0biyNyPuE= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4179bxDs016204 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 7 Feb 2024 03:37:59 -0600 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 7 Feb 2024 03:37:59 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE108.ent.ti.com (157.170.170.38) 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, 7 Feb 2024 03:37:59 -0600 Received: from [172.24.20.156] (lt5cd2489kgj.dhcp.ti.com [172.24.20.156]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4179bu2G075875; Wed, 7 Feb 2024 03:37:56 -0600 Message-ID: <8edafc4f-c4b9-4cf6-9a11-178492404170@ti.com> Date: Wed, 7 Feb 2024 15:07:55 +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: [PATCH] arm64: dts: ti: k3-am68-sk-som: Add support for OSPI flash To: Sinthu Raja , Nishanth Menon , Tero Kristo , Vignesh Raghavendra CC: , , , Sinthu Raja References: <20240206092334.30307-1-sinthu.raja@ti.com> Content-Language: en-US From: "Kumar, Udit" In-Reply-To: <20240206092334.30307-1-sinthu.raja@ti.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 2/6/2024 2:53 PM, Sinthu Raja wrote: > From: Sinthu Raja > > AM68 SK has an OSPI NOR flash on its SOM connected to OSPI0 instance. > Enable support for the same. Also, describe the OSPI flash partition > information through the device tree, according to the offsets in the > bootloader. > > Signed-off-by: Sinthu Raja > --- > arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi | 79 ++++++++++++++++++++++ > 1 file changed, 79 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi b/arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi > index 20861a0a46b0..84011d5e1b3b 100644 > --- a/arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi > @@ -130,6 +130,25 @@ rtos_ipc_memory_region: ipc-memories@a8000000 { > }; > }; > > +&wkup_pmx0 { > + mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins-default { > + 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(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 */ > + J721S2_WKUP_IOPAD(0x018, PIN_INPUT, 0) /* (F18) MCU_OSPI0_D3 */ > + J721S2_WKUP_IOPAD(0x01c, PIN_INPUT, 0) /* (E19) MCU_OSPI0_D4 */ > + J721S2_WKUP_IOPAD(0x020, PIN_INPUT, 0) /* (G19) MCU_OSPI0_D5 */ > + J721S2_WKUP_IOPAD(0x024, PIN_INPUT, 0) /* (F19) MCU_OSPI0_D6 */ > + J721S2_WKUP_IOPAD(0x028, PIN_INPUT, 0) /* (F20) MCU_OSPI0_D7 */ > + J721S2_WKUP_IOPAD(0x008, PIN_INPUT, 0) /* (E18) MCU_OSPI0_DQS */ > + J721S2_WKUP_IOPAD(0x004, PIN_INPUT, 0) /* (E20) MCU_OSPI0_LBCLKO */ E20 is seems to be not connected  . Refer page-11 of SOM schematic (PROC131 001 AM68 SK, rev E2) Can we think of to remove pin, which is not connected . > + >; > + }; > +}; > + > &wkup_pmx2 { > wkup_i2c0_pins_default: wkup-i2c0-default-pins { > pinctrl-single,pins = < > @@ -152,6 +171,66 @@ eeprom@51 { > }; > }; > > +&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 { > + 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>; > + }; > + }; > + }; > +}; > + > &mailbox0_cluster0 { > status = "okay"; > interrupts = <436>;