Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp466424lql; Mon, 11 Mar 2024 07:59:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU3/k3BzLT7HHRfZ/TdV8f2tUTcBgNy7nVAk9tMog5cgZXcx9p0D9x4FY1+HYKDSOrPOSqKmOucFKyvDSsmY+muId2OM3jIf6l2ru364g== X-Google-Smtp-Source: AGHT+IFrDllktmLZhdPUcqqSNYpQ6MFyOJrX0ZyZmCa5GCM5Fcpv3XG4bsM+7DDkOBsPqnVmTvVf X-Received: by 2002:a19:f703:0:b0:513:572f:88ea with SMTP id z3-20020a19f703000000b00513572f88eamr3718825lfe.19.1710169163319; Mon, 11 Mar 2024 07:59:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710169163; cv=pass; d=google.com; s=arc-20160816; b=OnKbXrKs/pb1sXvKgx4aPurgdx4+cMGI9aH0f++aRTGRZvk70hyAhRfiRsKeLswZKB Rq3Ro5WYidq3khavPLrqGAT+uIq0AmrtTiuWf81AQSbQxPiRu9B1WtqpnOgy1Ih2VPei m+45gj2oY3syyWSln9/IhMf8U9yELT8r1FYxWwhwfAuR+JegcERpyOq95qmqIuxVN/Jt bJupn9so+AnlyS+a/IvNl01lWgSXNQg66lBPWHhC+Pt/Nb90uwzbJdFUHORd8NuYxeZt K0xU4oBCl4h9Snj9W9YwwbrECRceuWaEPlICn+HmN/cV3ndXPjw/jYi9eil9E07TXCpR 2QuA== 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:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:dkim-signature; bh=ZwRt3x6WTOICB2Ycb2p4tE12SJGCsEIXFQMpK/HU148=; fh=pnBBby9rN+fsrAm2Q1kGZU2wscvlq7uy2LwKDWdlt+Y=; b=JipHMyWjoAVeRNBzL22srakEUIi/aZbEB/kughd84TH6n2uIuTdHregxWcuUQqw/xZ lnLyNoTn9m6yL+YWDEk9Aac/OgyoJSbXqN1RQ9yTuhOfB+rqykPsI7+1zzYL4lmbG7UK uPtq/AWGkj/4uOI3Ej9THAszT6IXHalBNglNUmnsPiYrsVC8aOfnlH3tyqU4XtinQJf+ dw456QpzcdMMevflWGEJKMiRYDMzjKDp0GIEviaCtmAYuFRE+TTyklHfKmwgH1v9Veo9 PaWuK1ZfESKhehjm0SwukX0kpQxGfqsqpM8sXl3gAlLzEVvIGmDMFkjgiNUJn1mYo7aI LXug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="C/FdvGT1"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-99028-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99028-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f24-20020a170906049800b00a442072c5fdsi2514450eja.667.2024.03.11.07.59.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 07:59:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99028-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="C/FdvGT1"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-99028-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99028-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0E26B1F2214A for ; Mon, 11 Mar 2024 14:59:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9BC134436C; Mon, 11 Mar 2024 14:55:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="C/FdvGT1" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BAFB747F48; Mon, 11 Mar 2024 14:55:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710168927; cv=none; b=kpOb0pcL/gMkRIEXM3vCFsb9DjEW4nBUKp6Y6R1JJjkBjaAGf9X2BfRfZUwj4heL2o3DU2MmWXkjCxxj7pwFAze5rVQB9e5EgQizJrCxpSwDNcqudwEo9jPYTfI+vNbhZx439CawwQ3GZG6nwMNqjmC9NpJzm4+lAY99LRYZ1+Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710168927; c=relaxed/simple; bh=LvW9nTAyldiPop/Tibv4R+2RE6G1PnecV6XkNaBzfHU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=HzdOpRnm4x/g4vbcN6dp4o3WisNMW/xLpZ5w+4AE7/r1aiWUnUNf4fd8MLNlGALANgtbX4SuR6v94XKjBwM5TCDckJC0XkywbZAwH1y9NjvwA+ZICYmF9PxoiSrDW9kZm9N1DfnZU1/Z46Lf0Yru3cvK3g731njFG3cCUYmLO2M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=C/FdvGT1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3417C433B2; Mon, 11 Mar 2024 14:55:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710168927; bh=LvW9nTAyldiPop/Tibv4R+2RE6G1PnecV6XkNaBzfHU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=C/FdvGT1IhklU0hQgvncDarCtzuZJg/X9/A/KRM2Ok9EyBGOGD9918a269te/L6dJ PjHJA3rntAnFWHn9/3NsK2F6kTxh6I9FK/1akxCWbSzW8IPdxcUTHkjDgM8AWd6Nxm ycdRRfkkBdbmksRI6cJwQvY75MnN6I9QzrNBJ8FYOqVkidwteJJSEz50MUJ9wPEObw Vf8wnp2LhIoaQoHY4lLmhaRItN2s/p4UvKtHxpjiuot0vL/M7Edl/KrzGCT8a1hWDe Hvj3IicHJ2d1PXu8/XS+UvMgpBtvHjikO4FJizE2CvIDA9LKq9Xb0ea7RjPfbY84un i0aj9TzbTD7mg== From: Pratyush Yadav To: Tudor Ambarus Cc: =?utf-8?Q?Th=C3=A9o?= Lebrun , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vaishnav Achath , Thomas Bogendoerfer , "linux-mtd@lists.infradead.org" , Pratyush Yadav , Michael Walle , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Vladimir Kondratiev , Gregory CLEMENT , Thomas Petazzoni , Tawfik Bayouk Subject: Re: [PATCH 11/11] MIPS: mobileye: eyeq5: add octal flash node to eval board DTS In-Reply-To: (Tudor Ambarus's message of "Mon, 11 Mar 2024 14:06:10 +0000") References: <20240308-cdns-qspi-mbly-v1-0-a503856dd205@bootlin.com> <20240308-cdns-qspi-mbly-v1-11-a503856dd205@bootlin.com> Date: Mon, 11 Mar 2024 15:55:23 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) 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=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Mar 11 2024, Tudor Ambarus wrote: > On 3/8/24 17:18, Th=C3=A9o Lebrun wrote: >> Add SPI-NOR octal flash node to evaluation board devicetree. >>=20 >> Signed-off-by: Th=C3=A9o Lebrun >> --- >> arch/mips/boot/dts/mobileye/eyeq5-epm5.dts | 15 +++++++++++++++ >> 1 file changed, 15 insertions(+) >>=20 >> diff --git a/arch/mips/boot/dts/mobileye/eyeq5-epm5.dts b/arch/mips/boot= /dts/mobileye/eyeq5-epm5.dts >> index 6898b2d8267d..0e5fee7b680c 100644 >> --- a/arch/mips/boot/dts/mobileye/eyeq5-epm5.dts >> +++ b/arch/mips/boot/dts/mobileye/eyeq5-epm5.dts >> @@ -21,3 +21,18 @@ memory@0 { >> <0x8 0x02000000 0x0 0x7E000000>; >> }; >> }; >> + >> +&ospi { >> + flash0: flash@0 { >> + compatible =3D "jedec,spi-nor"; >> + reg =3D <0>; /* chip select */ >> + >> + spi-max-frequency =3D <40000000>; >> + spi-rx-bus-width =3D <8>; >> + cdns,read-delay =3D <1>; >> + cdns,tshsl-ns =3D <400>; >> + cdns,tsd2d-ns =3D <400>; >> + cdns,tchsh-ns =3D <125>; >> + cdns,tslch-ns =3D <50>; > > These cdns properties look bad, they bypass SPI NOR entirely. I'd check > if these timings can be determined at SFDP parsing time, then I'd pass > them to the SPI controller. I agree, but I don't see any table in SFDP that describes these timings. So I don't think there is a way to discover them. > > I see these properties are already accepted in the bindings file for few > years now. Something to improve later on. --=20 Regards, Pratyush Yadav