Received: by 2002:a05:7208:31d3:b0:81:e143:7c29 with SMTP id v19csp408024rbd; Fri, 5 Apr 2024 08:03:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrnesNlY7uahVjCnOOzrFBTaF7DYPB6fFdiPE5GLPOmxoB4OUqLjQmHDB1+bWdKr1HMHJWp/GZlsdPygXGeK6RAT6LrnRwc2Br5e4eHg== X-Google-Smtp-Source: AGHT+IFWST4wdvubYwtr6ef6u3dZ9B8hdsNg73C7haok6ui49kcAPDGAqPOGJXohqtwZD6lKOeHD X-Received: by 2002:a05:622a:214:b0:431:6cc3:8bb6 with SMTP id b20-20020a05622a021400b004316cc38bb6mr1553157qtx.57.1712329405671; Fri, 05 Apr 2024 08:03:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712329405; cv=pass; d=google.com; s=arc-20160816; b=Gf1Aa62orcZav8oMzt9CCfEG+BX9/BF4ktNuVt5fArLxc1zceAdMnzhPHGBI9KUASy 9UQURa4p33IgolaGiWtFRZnswOkVyBtfrhxxeNncvviz3+uUbm4wZbBoVQSly+fSJgy1 Zq8S9Eo5bNad4l/jySaxlm+yn/hjkSZCdMEXQlISbW9LW+OiDSK7czPCHzpEOSf55K8i gpeqySblnmkMnOUNuG3+qTsr9kjmVDD3Jcr/jXnwkoJ/4NlXoXiSSWUuJjJWFul4jHJe 2L+9tYmqwOuU7AoYf1V/MMqKtpkNPO7cNqWSgzH26bHuBijjpV3BUcYbKXW03HRHRKa3 9Plw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=jePpTY9wJhZN+709Nb4n6FZ8IJ1Mh7MLk4EHKC+eTMg=; fh=IWuIS2i/bnSVGWyy+6tqnzsJo41dtYeGH4NDrSGIfTg=; b=RqvXJcXEAdUpoQW+MUzzMtBbbnJUKep5neR/g902FY5AziohzrSjt/Ys9CAELayyiO wvY5hSyrte7wkUz6Y8vdx/q/RpDowL0mWgwsTPAzm5uHzpdNPFfZbdt3pS7orursVCIN KazXHjKsX5L52cpctX/Ft99dmJHV9JRZcWWv6GClOOt6CEGwxSAViNIwFW7E3UMalYAK 0ItnquQS0Ka/b5+bsOnFuUXDmxFsD1rYE4Aqkm+S8jUx6WZd6Lz4aD2SMyn4uCFefb7d ZhuoPKJU46tsGRY3bkIeTy59ac0YQC5kxtMxgJYwc7WnUAxPjmq6jFr90JWi12+4PZMf h3yQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=JxRT5eL3; 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-133203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133203-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 m7-20020a05622a118700b004316192b705si1934648qtk.517.2024.04.05.08.03.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 08:03:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133203-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=@bootlin.com header.s=gm1 header.b=JxRT5eL3; 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-133203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133203-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5E1251C232D4 for ; Fri, 5 Apr 2024 15:02:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99A1816F8EB; Fri, 5 Apr 2024 15:02:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="JxRT5eL3" 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 576FA16F29F; Fri, 5 Apr 2024 15:02:17 +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=1712329339; cv=none; b=qdvIi7+/hp79ME86rJnR2xkDJhkJxgg8U39fGo0wWpAY3b1EY2rph6eXQBBhmIxWCvz4YBjA+8kdJxKSiVn9Lart9Y4yWwUFmBxEi49xFYvKHw8WwAcmIPgyiioLiyQeluszeJtebqPoWMX7mzyWvKF7FuIEcWYaxt8G71FbTlo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712329339; c=relaxed/simple; bh=Qd6G5maD/2bB1FBCGYcJGy50moLaCDUjrKAdzbS6uh4=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=EulqVlXik8Oa3nXXhqA5hcpWnF0cZ4gVlVy4pYzs/Qw5O73sv8X0sWkoh0Ire2Srhz0912zZ6UUkecJrZBHo8zh6A8xusrzw8P2x5j+RY6BLWkWHFq3/2Zt8iBcE5+qdKxlP7m2Iv/8vc3TJ0EG01AY5HHWzDCuoBZ98eh6g5OE= 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=JxRT5eL3; 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 8FB601BF20F; Fri, 5 Apr 2024 15:02:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712329335; 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; bh=jePpTY9wJhZN+709Nb4n6FZ8IJ1Mh7MLk4EHKC+eTMg=; b=JxRT5eL3R3EXBHm0arUs8v088hDO1F4xaZiNcL62n2ehvtBnR0V0tB9pc1S1FoC2CIEYV6 M73Slz1iGfdqETMbMYi1hgjb6EB2YsXyqZjckQBrb85TpNqxr0utviSLgFEMskUoYuUGEl +Yw23A3rvlWlejGs0ahEcjSd4JxtEHRHhbCUYnBqzXrZETwpkRc4bOm3PKIcjL+cOr9CoY Bh9MuesdboX5aFzgkZwSbU4h87qMfJog7ZzVzYvqsLEAcyBYIwCVNLefLyq7rdzO5iv5ww 4QlMBCspCiuNwOUdqdLkJC3W65E7Y3Ey8YNPXHEwMkAUGNUmrpkNghvQ+vmXzg== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: [PATCH v2 00/11] spi: cadence-qspi: add Mobileye EyeQ5 support Date: Fri, 05 Apr 2024 17:02:10 +0200 Message-Id: <20240405-cdns-qspi-mbly-v2-0-956679866d6d@bootlin.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="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAHISEGYC/13MQQ6CMBCF4auQWTtmKK1BV97DsChtlUmghZYQC eHuVty5/F/yvg2Si+wS3IoNols4cfA5xKkA02n/csg2NwgSkgRd0VifcEoj49D2K1onBCktpW4 ryKcxuie/D/DR5O44zSGuh7+U3/VHVVT/U0uJhFpRVauLtVm9tyHMPfuzCQM0+75/AOuSe1+uA AAA 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?= , Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-GND-Sasl: theo.lebrun@bootlin.com Hi all, V2 of this series adding octal SPI-NOR support to Mobileye EyeQ5 platform. It has been tested on EyeQ5 hardware successfully. V1 cover letter [5] contains a brief summary of what gets added. There is no dependency except if you want zero errors in devicetree: system-controller series [3] for <&clocks> phandle. Have a nice day, Théo [0]: https://lore.kernel.org/lkml/20240216174227.409400-1-gregory.clement@bootlin.com/ [1]: https://lore.kernel.org/linux-mips/20240209-regname-v1-0-2125efa016ef@flygoat.com/ [2]: https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/log/ [3]: https://lore.kernel.org/lkml/20240301-mbly-clk-v9-0-cbf06eb88708@bootlin.com/ [4]: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git/log/ [5]: https://lore.kernel.org/lkml/20240308-cdns-qspi-mbly-v1-0-a503856dd205@bootlin.com/ To: Mark Brown To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: Vaishnav Achath To: Thomas Bogendoerfer To: Rob Herring Cc: linux-spi@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-mips@vger.kernel.org Cc: Vladimir Kondratiev Cc: Gregory CLEMENT Cc: Thomas Petazzoni Cc: Tawfik Bayouk Signed-off-by: Théo Lebrun Changes in v2: - Rebase upon v6.9-rc2. - Fix dt-bindings commit subject tags. - Take Reviewed-by: Krzysztof Kozlowski on dt-bindings commit. - Add dt-bindings commit to order compatibles alphabetically. adding EyeQ5 compatible can be taken alone easily. - Drop patch taken upstream: - Add To: Rob Herring, following get_maintainer.pl recommendation. - Link to v1: https://lore.kernel.org/r/20240308-cdns-qspi-mbly-v1-0-a503856dd205@bootlin.com Krzysztof: unsure if you want this. It is second so that commit spi: cadence-qspi: switch from legacy names to modern ones --- Théo Lebrun (11): spi: dt-bindings: cdns,qspi-nor: add mobileye,eyeq5-ospi compatible spi: dt-bindings: cdns,qspi-nor: sort compatibles alphabetically spi: cadence-qspi: allow building for MIPS spi: cadence-qspi: store device data pointer in private struct spi: cadence-qspi: add FIFO depth detection quirk spi: cadence-qspi: minimise register accesses on each op if !DTR spi: cadence-qspi: add no-IRQ mode to indirect reads spi: cadence-qspi: add early busywait to cqspi_wait_for_bit() spi: cadence-qspi: add mobileye,eyeq5-ospi compatible MIPS: mobileye: eyeq5: Add SPI-NOR controller node MIPS: mobileye: eyeq5: add octal flash node to eval board DTS .../devicetree/bindings/spi/cdns,qspi-nor.yaml | 19 +++- arch/mips/boot/dts/mobileye/eyeq5-epm5.dts | 15 +++ arch/mips/boot/dts/mobileye/eyeq5.dtsi | 15 +++ drivers/spi/Kconfig | 2 +- drivers/spi/spi-cadence-quadspi.c | 114 ++++++++++++++++----- 5 files changed, 132 insertions(+), 33 deletions(-) --- base-commit: afccf1991d034a11ce0a1c21d90feba510838e34 change-id: 20240209-cdns-qspi-mbly-de2205a44ab3 Best regards, -- Théo Lebrun