Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3597226rwb; Sun, 20 Nov 2022 17:53:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf74IfKWE/moOGebAbYQh9RyZCrUy+dWy0eyUtTs9r+4zVEIFaGvOXv3sT1fVjWOFUec2aHX X-Received: by 2002:aa7:c50d:0:b0:469:5c0c:55e8 with SMTP id o13-20020aa7c50d000000b004695c0c55e8mr5513422edq.165.1668995593471; Sun, 20 Nov 2022 17:53:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668995593; cv=none; d=google.com; s=arc-20160816; b=ZlmWQVxwnNNSBP+3sVI80AgdXjE2uW+tdXTbkPpvWjDSwidrLlC5aWPGXn3TTHVj5a J4Dhj6BwlnsucegkDQ8TIykM4EfloETdFKLiwTpL9vdlJIT7HiDptMaf5EqVqcBXjFtT prCeiexewWnFl7LQbkzmBeCXxzna+0iY/er6u0ow6aO4B7FiD5reyE3suQmrSw/sKztv ci0UBjL6m3xwhrVIs8eNQQSinZOP0iup3wOZL9s5xkLa8C/6oyAhImBVjvtPMHTKi0oy sUp5byp2gXt/8qFJe9btpz8d6euYIkxSveGKFtJaDNhWmgqC3bHG+B2fbCNSjgZBMOvj i+5g== 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=ndBHkl7AkZcZLbODGM1tQ2sz19Ih614D4C+lGv3/7b4=; b=gz0E0iEH/lDcYpsE1SIw2QszycvC8w0Ga48AwxrqfBMMJ/gjDwxK4SvlFUigDV01Nz 8FzB1VQpL8ijo1bfRo+108fH7dwOAu1zHqKwedbrjg8pYBLp8RXLhjwHxKfVnXESMQZT CmSyJ852KpAjOAdWmhaGRDSJqf2Xc97Iv8ERvJtzZ8hlEBF10NleUpY744XRDLDGHgb+ GGo53uWVg13wRamIZ4SKKSGZXf78G8kilVYXP+d888k4rElEN6C+I83271qrvcKcPe/K oQtV1HOW07cbNHNjHSa3cSYs8uUXGc+6ZgBXMH3SrUcCyqJhyAE9ATynYW6FjszMjF6G ISlg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xh9-20020a170906da8900b0073d9f16e5b3si8289293ejb.258.2022.11.20.17.52.48; Sun, 20 Nov 2022 17:53:13 -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 S229813AbiKUBsY (ORCPT + 90 others); Sun, 20 Nov 2022 20:48:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229551AbiKUBsV (ORCPT ); Sun, 20 Nov 2022 20:48:21 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 796A91DDF6; Sun, 20 Nov 2022 17:48:20 -0800 (PST) Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 21 Nov 2022 10:48:18 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 006EA20584CE; Mon, 21 Nov 2022 10:48:17 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Mon, 21 Nov 2022 10:48:18 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 96CD4B62AE; Mon, 21 Nov 2022 10:48:17 +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 v2 0/2] Introduce Socionext F_OSPI SPI flash controller Date: Mon, 21 Nov 2022 10:47:58 +0900 Message-Id: <20221121014800.13989-1-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 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 bindings 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 -- 2.25.1