Received: by 2002:a05:7208:31d3:b0:81:e143:7c29 with SMTP id v19csp410195rbd; Fri, 5 Apr 2024 08:05:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVfYEO08UBy9l0jwQ1pXzTv1Q8TKBnYSIykMAEDS7jxzxVDDfAPIl6y17smGTu7O1BN++wEyYbPbNO7H34PSPonC8pRtRiiyyItJIpyUQ== X-Google-Smtp-Source: AGHT+IEicy74ZptyxGx4GDa6INrvIJNYttO3m+KPJxT+6kG9Iy5qlwldzbPxRSUiOWYaN3Fi8u9b X-Received: by 2002:a05:6a00:cc6:b0:6ea:d740:62a4 with SMTP id b6-20020a056a000cc600b006ead74062a4mr1917995pfv.25.1712329558574; Fri, 05 Apr 2024 08:05:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712329558; cv=pass; d=google.com; s=arc-20160816; b=uZ1pZ4iZZOSRSZiKW+H6EPZjNNiw+LG+vjJ95KlYves86nEeKccDM1htgmzBceA8Og DnG0ysvo/K4j3IjCpo/PRHHOE2rhm87ioCWYosvnXZeZfF0U30ETRMuRjgcDNZHnJdBF yyyqb6n0TNu8fa+6NkQ9/nVQbMzCxANj13XuK/PIdIDorkjgsDYZng0RmkdsvCKITu5I UJ9w19rio445qiIr5nP/eLjJ+WJUDaeDXoBnTSNJtzQJbKZNgp70t62ZWWRGtmxyy7WC pAgcp32fKiGQJbtjH6dcg78Vsnp47MqJmp2R4D/ZkByk/Z1v8SgHHRge7GdkW7p1mL2C Xa0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=F5PO+vwFUf8/nCeUbsDaSi0BqfsaPd3EG3ZxXLAXPXU=; fh=tK2ZwPrzf0wEjErhiOYEkdXvNUDFUxIIS/fYILyFyNs=; b=vIubfbmGEvesbZnpq/nwbWb0IYnVVpQHcgj3LPkY1KCwNJYcmRC5tFHdKPywb2zGD9 KbpVZ6SMtjpP77TMrqsetSPuW7o+jb94IoL7AlWCjzuNvkOenBfYd4YThg/eemXJFr79 udX4wu04xaImJw20xKMq5PFmEpCqEZEjFq7DgjnwY+jp6rJTTJxQdEBj/Lmtt5VS6BgH gwB4dBncrF5FI7crHiKkMQzxitK2TXZ8JvGNe4n03p2GrcY57J+DSXkenNCzkv04wSLq o6XyYI/ml+lEJmCPm36Q7HMS2HeUXlmiZQ2YlfxrrJVBBrnRpyYQd0rxjoSJwp3rWsLd nZFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=l0FcwKe2; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-133212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n2-20020a632702000000b005dc89957de5si1567415pgn.497.2024.04.05.08.05.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 08:05:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=l0FcwKe2; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-133212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 54CE428535A for ; Fri, 5 Apr 2024 15:04:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBB8E171E79; Fri, 5 Apr 2024 15:02:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="l0FcwKe2" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.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 1082E171640; Fri, 5 Apr 2024 15:02:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712329346; cv=none; b=Yd+ml94C4Z4aDcp5h415mzsBFHWmjymnMpwfiNRlE+DePjkjv/orZLF4JJt1WRKzvcNyhOGJC/Zoyva3iLWqJ7ZcSixM7nG/v4YAVsA7fhz/gMCszyxNXriUp48KXgOo+I7KkCods60LZgur7jGLbAlEczWVzkIgMzHq6rBKmL0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712329346; c=relaxed/simple; bh=eyJRE0nsHnfgc4bQmba8lWsCsTaBQsKuv8mV6FP30m4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZKrjr50gEjTNjJLUggv4TOQ27dPxM7s96Acm5Pcueu55J3o1iC3UqaUpR9agKsL768JFcyK3amPE34dYTKn94ENNYx4dYkh6vi5vYT/Vb4dqb6ZXJj3u7VtotoS62pene7JtE2U9gfTPQorJlO0GPftAzqcBR1+hvsy/K1Mq0WY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=l0FcwKe2; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id A983F1BF207; Fri, 5 Apr 2024 15:02:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712329342; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F5PO+vwFUf8/nCeUbsDaSi0BqfsaPd3EG3ZxXLAXPXU=; b=l0FcwKe2Ye0H9G9ba6GIOniWdY40nd0ZUewY7xLyhmy8co9ZAgIkFyMQz/hpjvZxRhC/bq M+IWIl+KZRtkNxOthL6vFid9w5zsYBmlCjgxJhNZ2bvBGOv0cgMBsXl35/JAzvkut1xzmz UqKMwx7TAOEm88tqPB/E2u1IqbtatJ5kCQnU61+wF1j9nU4tmwuV6NiOtXdweFmTARkVyt 05LGg3Oiq3sIvQ6KkKiJ52FnsiVp0yBHdgaJxi64UzEADK4lCup7LYxK7HKl6jEGErbUOY 5549ia/0Bxtgckw1nsnXQwE9wCrAf3L6aGu8quYw2enu0apAQwJfjUlHJQDdtw== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Fri, 05 Apr 2024 17:02:19 +0200 Subject: [PATCH v2 09/11] spi: cadence-qspi: add mobileye,eyeq5-ospi compatible 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: 8bit Message-Id: <20240405-cdns-qspi-mbly-v2-9-956679866d6d@bootlin.com> References: <20240405-cdns-qspi-mbly-v2-0-956679866d6d@bootlin.com> In-Reply-To: <20240405-cdns-qspi-mbly-v2-0-956679866d6d@bootlin.com> To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vaishnav Achath , Thomas Bogendoerfer , Rob Herring Cc: 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 , =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: b4 0.13.0 X-GND-Sasl: theo.lebrun@bootlin.com Declare a new mobileye,eyeq5-ospi compatible. Exploit quirk flags: detect FIFO depth through SRAMPARTITION register; avoid IRQs during read operations. Signed-off-by: Théo Lebrun --- drivers/spi/spi-cadence-quadspi.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-quadspi.c index 230aad490e03..11f54f507787 100644 --- a/drivers/spi/spi-cadence-quadspi.c +++ b/drivers/spi/spi-cadence-quadspi.c @@ -2059,6 +2059,13 @@ static const struct cqspi_driver_platdata pensando_cdns_qspi = { .quirks = CQSPI_NEEDS_APB_AHB_HAZARD_WAR | CQSPI_DISABLE_DAC_MODE, }; +static const struct cqspi_driver_platdata mobileye_eyeq5_ospi = { + .hwcaps_mask = CQSPI_SUPPORTS_OCTAL, + .quirks = CQSPI_DISABLE_DAC_MODE | CQSPI_NO_SUPPORT_WR_COMPLETION | + CQSPI_DETECT_FIFO_DEPTH | CQSPI_RD_NO_IRQ | + CQSPI_BUSYWAIT_EARLY, +}; + static const struct of_device_id cqspi_dt_ids[] = { { .compatible = "cdns,qspi-nor", @@ -2092,6 +2099,10 @@ static const struct of_device_id cqspi_dt_ids[] = { .compatible = "amd,pensando-elba-qspi", .data = &pensando_cdns_qspi, }, + { + .compatible = "mobileye,eyeq5-ospi", + .data = &mobileye_eyeq5_ospi, + }, { /* end of table */ } }; -- 2.44.0