From patchwork Thu Nov 24 00:33:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 2152 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3113175wrr; Wed, 23 Nov 2022 16:38:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf5lrqh10XtlG5OlVBcHFaO4cc+n0+E6P+PoFaWBwo/oP5WbuBWpV8npKdsv3KPzqBmxf8V/ X-Received: by 2002:a17:902:bd83:b0:180:87d7:9be8 with SMTP id q3-20020a170902bd8300b0018087d79be8mr24164650pls.85.1669250310084; Wed, 23 Nov 2022 16:38:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669250310; cv=none; d=google.com; s=arc-20160816; b=QLvbektjUTgURBn3ZhIldFaN2YnyCq9B8YqspeggE5fqUvkRvRGKA8j0rhZvN0pJfp os68IoKuUZRrZwqnBF/wm+sPiyU3qsjqZNMojOfmzbMmtHkZhb8JQ7EwVIOJP6thc+75 ApREQ2YtFBeB5DEDgW24RqCLphd4sobc3vSroA14Nt9DgIr+Y3FLIOIZiAjfuR5rCIV6 lJpXzfj6WWs03gALs4+CQ2C/nTwmb4ioDmVtXcH0rD0qJd0t+B+hPyZCRFo+suvPSqsK ++sDrUlwB5q9c7994yti9U7NehadcVCrLX3NDyKIDarnccBHIzABQDGF6w0AtFvEjo5H ghfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=wCfvxsl+Img1wNs+jEkQ3Tu3gwL/0exkV2L5hLeefU4=; b=EwLIyluVt39S/NM+NGL879mY3y+47x5+twYKq+dJbT1cThBo4004hN4SvXzuwDOzIt XpvFMk4dt+fpl4GOWVh6N+A2OipD/iMP0qWU9xGrVuvB+IMsg/SejHtt23I7F4r74QWl zIbW+9pXK8o93l/1Kt2Cr5/jblMTQbeeCcuvvfu+pqj1V79AULhYeLuxORXy0dzVzusG 5NObn//RwM18XvH1BLCHpcm9HBnJFqN8mji5NpyCAW9DOF7BxqNUKoFJ4b8Co9cCZ4Gb 542E5OAMCW4h9pACnZqB5CpALELK+u0/3Fz/hjCE7s0buPdGaM0bM6EnsDBcwudWccOt rd/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j191-20020a6380c8000000b004774a855375si22712pgd.351.2022.11.23.16.38.17; Wed, 23 Nov 2022 16:38:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229723AbiKXAeG (ORCPT + 99 others); Wed, 23 Nov 2022 19:34:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbiKXAeA (ORCPT ); Wed, 23 Nov 2022 19:34:00 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5B847E14D9; Wed, 23 Nov 2022 16:33:55 -0800 (PST) Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 24 Nov 2022 09:33:54 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 935F9205D901; Thu, 24 Nov 2022 09:33:54 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Thu, 24 Nov 2022 09:33:54 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 564E1A8557; Thu, 24 Nov 2022 09:33:54 +0900 (JST) From: Kunihiko Hayashi To: Mark Brown , Rob Herring , Krzysztof Kozlowski Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 0/2] Introduce Socionext F_OSPI SPI flash controller Date: Thu, 24 Nov 2022 09:33:49 +0900 Message-Id: <20221124003351.7792-1-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750335812962270997?= X-GMAIL-MSGID: =?utf-8?q?1750335812962270997?= This series adds dt-bindings and a driver for Socionext F_OSPI controller for connecting an SPI Flash memory over up to 8-bit wide bus. The controller supports up to 4 chip selects. Changes since v2: - Drop a redundant word in the subject line - Drop quotes of referenceing URL in dt-bindings - Add Reviewed-by line to dt-bindings patch Changes since v1: - Drop vendor-specific properties for devices from host dt-bindings - Drop a function to parse vendor-specific properties - Fix wrong maximum addr.bytes (5 to 4) Kunihiko Hayashi (2): dt-bindings: spi: Add Socionext F_OSPI controller spi: Add Socionext F_OSPI SPI flash controller driver .../bindings/spi/socionext,f-ospi.yaml | 57 ++ drivers/spi/Kconfig | 9 + drivers/spi/Makefile | 1 + drivers/spi/spi-sn-f-ospi.c | 703 ++++++++++++++++++ 4 files changed, 770 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/socionext,f-ospi.yaml create mode 100644 drivers/spi/spi-sn-f-ospi.c