Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2668209rdb; Mon, 5 Feb 2024 13:51:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IENG85lUxjlH434MBjD/j8GZyuHx7p1stMrz1mUv+vSPRTvCA+NjplB0p1sm64T5V8NeEAv X-Received: by 2002:a05:6808:2223:b0:3be:5998:cb1e with SMTP id bd35-20020a056808222300b003be5998cb1emr1051150oib.42.1707169869912; Mon, 05 Feb 2024 13:51:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707169869; cv=pass; d=google.com; s=arc-20160816; b=x/s9TD70lsS/g1e3Q4lKgrdLKMwFU5t89TgX9fEhAH2rLBd0+Ap7gdycX/GGBKzm7u z0U9hUAwEw8aRTGWJGkh80jyS2+XsQ1xCPyxYY5j4XRcPgXY/I6ktIOvOKmRLHGtuHK7 4of8fAGWKNgLOvsou8N0zIcmcXIGqdxh4AQlFoaZH3x0rwaBVxzVjwBocU73bVlyK3Tj EFFiAG5hX1keEiNMorCM0/md1VLas8FzV0x0/a9bCLaAYwAzXvFPXVuUMv9BNjS9rqO/ wzYj0TovLmRKlLDQ4jQVHeY2g3/e37XuVoD/Q0v9sry5nkTE8DDehxNF41CZlzCqaKcl cTWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=vs9QQhw4M4FWqaWliwpzwmw2s69GQGFmwNivTz/YgYc=; fh=UyOdaVnEDZ8YXOwbp3LasCh/LJL/SJeMsEQ0CoxAXAQ=; b=RbRHoB2s5Pts9T7dCrT3OYvCpy4yxJbkWG7F7xz2vrD16/RJGkRKwPutzDyaoh7uIs H8J6H1AY7/vGVnT/BqEIMe79B8jwytz3Z1s/ygXMRzmfdLR51fP9gbToRicW/QR6tjlG AuJ2M+gCDlveSwsfmKI2sWB22jjzn+hxX30A4V0CXXU/Xpgrwel4Dz1rqKkJWQkop/+8 Debqqm+BI53OuNnsz6mBd/v6ivcH+Q+I5yA163k1RYJwtCpqDrh0FCZjuFdG0BRJRIL6 KEggGCcNNpK/fpbXZI6L7DbV3XarOEYwNLUweM8sbpcLujgLEgVlHbJjZiUCb6DOebfb gFoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mistralsolutions.com header.s=google header.b=NosmGqAf; arc=pass (i=1 spf=pass spfdomain=mistralsolutions.com dkim=pass dkdomain=mistralsolutions.com dmarc=pass fromdomain=mistralsolutions.com); spf=pass (google.com: domain of linux-kernel+bounces-53922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mistralsolutions.com X-Forwarded-Encrypted: i=1; AJvYcCUcTBvzVU56asAjXxW93SpW/+09KIZf0vTBSgJH1Qzpr4IPgAsvalcE6n/kPTVRP+3orXgcC4MId2KNYFojKmilje2C4+jheI1Gs5UTBg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a12-20020a05622a02cc00b0042c24a4088csi869668qtx.196.2024.02.05.13.51.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 13:51:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53922-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=@mistralsolutions.com header.s=google header.b=NosmGqAf; arc=pass (i=1 spf=pass spfdomain=mistralsolutions.com dkim=pass dkdomain=mistralsolutions.com dmarc=pass fromdomain=mistralsolutions.com); spf=pass (google.com: domain of linux-kernel+bounces-53922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mistralsolutions.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 D5E161C27EA6 for ; Mon, 5 Feb 2024 21:51:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 321BD1353EA; Mon, 5 Feb 2024 20:34:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mistralsolutions.com header.i=@mistralsolutions.com header.b="NosmGqAf" Received: from egress-ip43b.ess.de.barracuda.com (egress-ip43b.ess.de.barracuda.com [18.185.115.247]) (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 04DAD1350DD for ; Mon, 5 Feb 2024 20:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=18.185.115.247 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707165277; cv=none; b=h6yjrhf9QmZy4v8fuTjzaUuEAqL70Mp4I7W2b15A5hZO+yB5V473BdmJCIImC9cBzzkMWrcg08JUznZMqPXna1xasBSEfecpvtOvTfZrNsO/IJgS9g/rCzNFiGPFaI/f1oEKSDfSutL+USRN0BEwfCbt1DLteKdWijMhmWhBk9k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707165277; c=relaxed/simple; bh=1jqizwfQ+c6Q0OkvZZEEQNJguvmRguC+Fg/Y3Oaxf64=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dnBy9CsUt+zcEKQem9XzXjrSgjtHFw6W7pk6XgbJ/lV8F7QyoFjmwVX2c+jMNL50ZNhTDZSx0BtEwiX69S+EzXuvtrJWWk3oQdcZCc/gMd7g0y/6rMnPWEDNm3XuI6Nt/XCxzjBoGGPz8kTn395GwkO6RPn4sOo7C+tX/gk4DxI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mistralsolutions.com; spf=pass smtp.mailfrom=mistralsolutions.com; dkim=pass (1024-bit key) header.d=mistralsolutions.com header.i=@mistralsolutions.com header.b=NosmGqAf; arc=none smtp.client-ip=18.185.115.247 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mistralsolutions.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mistralsolutions.com Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx-outbound16-171.eu-central-1b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 05 Feb 2024 20:34:32 +0000 Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-295b119823aso3761663a91.1 for ; Mon, 05 Feb 2024 12:34:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mistralsolutions.com; s=google; t=1707165271; x=1707770071; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vs9QQhw4M4FWqaWliwpzwmw2s69GQGFmwNivTz/YgYc=; b=NosmGqAfKhoRMUVBKXP87h8R9ps9cPmuB/ZBWa+1S2WgFaCuKJ5bPvMlE2OnbkeJMw U2usQmpqCvVKO4i6joDlqjx5FKHQmWvMTuuYebvWzewWSMzDfN+8GPNeNQXjbh7Ne3r3 G4KpPrdWG6B9C2LZZ9lnHGKtviBxWD6VCsWqs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707165271; x=1707770071; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vs9QQhw4M4FWqaWliwpzwmw2s69GQGFmwNivTz/YgYc=; b=UHFnHFL106Om1d/aY+F2JGYs3VgCxeufJ6rk5MEx3XW5UlgV5SZtcEPTkIxVS8mnKl uiWaQRjX9Wt+yFfNMlvHIlPpFUrVl38yOPWoyYXEbIg/eMWptfpwfimyBd8ThTqZyf2U VrNXyaWSssU2xxmktslfDBqYkyaHwlKwR1N6FM/Yv/jXMHTJTCr8Z31bIC5NVyrWsEk7 sLVMY3xehGNmbiEFbd81K8jxW2ybYR8fVzTzU6j5npkRQXPmhvGOd4M+xZko26Lxp1Ou BABLoIFlaVyufizFSbd+Emyy7EbKPW32cuiMkd8WU7HhBdarF2xpsRqNZUmv/KRoU5Vd U7Pw== X-Gm-Message-State: AOJu0YwrpCjwrfHKhXJFrAl7bmttGEPF6ZhFkYhxB8So0duE8fic9OKf vyxBWVuhyV3tJyXahm6iO34VDdKSAaC+i/cYz3s11cybSWMUuEGk0He8ApSWI+UVfUeDMWnT5bU GMEQF9LVxDZtiFEd0GGEaKUoLWObRctANDDFjPnBjqtoq2vZu5bG28hLweYbR9gFUrPitletpy6 em/ArRcZn9HzxUGeSMmGPk X-Received: by 2002:a17:902:e5d0:b0:1d7:15ea:4249 with SMTP id u16-20020a170902e5d000b001d715ea4249mr596359plf.7.1707163699301; Mon, 05 Feb 2024 12:08:19 -0800 (PST) X-Received: by 2002:a17:902:e5d0:b0:1d7:15ea:4249 with SMTP id u16-20020a170902e5d000b001d715ea4249mr596335plf.7.1707163699019; Mon, 05 Feb 2024 12:08:19 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUVNmuGupMxQg5vulrHPonr+3p+V+sHMd6H4tUdzU62/we5NXpd84XL+ZNIUsQ9+augtOsbYIikx6K2KEpkCGhWLGhrvcYvGFeJf4Ef3TIIhfL6AT9dp18G7T7m4qkx4MdFQnCgg7etS3T2Wy8IZsd5y8Zm/R2BxU997Zg+B5d/zvPUsf0+WDx2/8dcgmGTNDKhlOXuOoeB9WP4I7NY1H0nFwMBTuTPH6TdPhUAybGejRFJdR8OiaEcA/GU1gP3i0Zymq7CsaVb8Q7h72Id5g9gi0+me7XXI+eAwdShqTGrVZ5vzs+SwmRfALWINy/Y7nUGek9dBfBysA+A4aQGEmoKyZM= Received: from LAP559U.mistral.in ([106.51.69.35]) by smtp.gmail.com with ESMTPSA id t21-20020a170902dcd500b001d739667fc3sm263900pll.207.2024.02.05.12.08.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 12:08:18 -0800 (PST) From: sabiya.d@mistralsolutions.com X-Google-Original-From: sabiya.d@ti.com To: nm@ti.com, vigneshr@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, u-kumar1@ti.com, sabiya.d@mistralsolutions.com, Dasnavis Sabiya Subject: [PATCH V2 2/2] arm64: dts: ti: k3-am69-sk: Add support for OSPI flash Date: Tue, 6 Feb 2024 01:37:43 +0530 Message-Id: <20240205200744.216572-3-sabiya.d@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240205200744.216572-1-sabiya.d@ti.com> References: <20240205200744.216572-1-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-Transfer-Encoding: 8bit X-BESS-ID: 1707165271-304267-12419-36669-1 X-BESS-VER: 2019.1_20240201.2150 X-BESS-Apparent-Source-IP: 209.85.216.71 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUirNy1bSUcovVrIysjQxBLIygIKWBkmJKWaJqU lGRknJ5hZJlsapZmnJZkkGFmZm5onJZkq1sQC4+3ihQQAAAA== X-BESS-Outbound-Spam-Score: 0.50 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.254009 [from cloudscan14-232.eu-central-1a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_SC0_MISMATCH_TO META: Envelope rcpt doesn't match header 0.50 BSF_RULE7568M META: Custom Rule 7568M 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.00 NO_REAL_NAME HEADER: From: does not include a real name X-BESS-Outbound-Spam-Status: SCORE=0.50 using account:ESS91090 scores of KILL_LEVEL=7.0 tests=BSF_SC0_MISMATCH_TO, BSF_RULE7568M, BSF_BESS_OUTBOUND, NO_REAL_NAME X-BESS-BRTS-Status:1 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 64c737cc3d49..9ef9aec0b5bd 100644 --- a/arch/arm64/boot/dts/ti/k3-am69-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am69-sk.dts @@ -470,6 +470,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 { + 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>; + }; + + 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>; + }; + }; + }; +}; -- 2.34.1