From patchwork Thu Nov 24 00:33:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 25257 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3113092wrr; Wed, 23 Nov 2022 16:38:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf4vM0fq86MX4nX45xWhyZPJNXOkzkTEeVoL+Lc+1YELBq3obM4C4K97bZvi66gEnsL93ig3 X-Received: by 2002:a17:902:ea91:b0:186:880c:1680 with SMTP id x17-20020a170902ea9100b00186880c1680mr13323205plb.164.1669250293718; Wed, 23 Nov 2022 16:38:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669250293; cv=none; d=google.com; s=arc-20160816; b=Y6R+e7frxe8LpfWSVoo+uvus8+QdHkD6mvXwRJtX4WAGeTIUCqDBIzPEu/BYt9O3/N N2rKCapqczrBi4Tn4/kCbWCb55fa7op4tFlOejC/Wqw6j4kP9Mbjeurcz+9IGnAxryLw PVo9l6Cblykhy/Bv/yvyi3IHUFPtd+nOrO5taBx4puVDKom15aqo3IcXt58ygxVrR+qD uqpPvlzq7fjE4ond4GZvVUicrsMwZzS+B/IICgHWTS6+DS7KIyunCGLCmD+IoESU7F1S hCQ0bDBFqD1VWb1i/a69VJEay6mIMg6B+Ke4zHSAg1Bf11ov5cfPKBL4DZJ2PduVnTo+ sxlQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=c6mgK4dTKUIOJOtZ7PxcZKC9waAAFp19TA+TTjLjhfM=; b=FFxHMx0Nk76VlZlzXG/LJbnLcivli1Nv/PTv/jDdCvAsFkMQOOZLsaL+33/t5g83m6 4HAdcOsip5NrXUrUAr3b2C2GPyMm19dQYUZaULFwiEBAHUUDpCYwxA/fe9QlEar2YkBJ zfDuLR6Qmg8XupQYaxwUXsczuy+3MzTW4Mfw1Q5+6VbHXsHHD4m+jDCK8yRTviQC0+99 6khDuXuKGYSF2fcHM75IDRJCHtQn+g1swxJAj/9p4Fwyko7v0YmUU2/NmIgyNq/CohrS wsi01RiZ9+A3iOIArZlHzkoR3zfxYzxYT8LOiAH/ZjI4rB4wf49EOUNj6QT6l1g1Z0bk YWjA== 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 pf2-20020a17090b1d8200b0020b27227d6dsi3639105pjb.6.2022.11.23.16.38.01; Wed, 23 Nov 2022 16:38: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 S229568AbiKXAeC (ORCPT + 99 others); Wed, 23 Nov 2022 19:34:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbiKXAeA (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 44700E2214; Wed, 23 Nov 2022 16:33:56 -0800 (PST) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 24 Nov 2022 09:33:55 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 9B3662059054; Thu, 24 Nov 2022 09:33:55 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Thu, 24 Nov 2022 09:33:55 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 2E399A8557; Thu, 24 Nov 2022 09:33:55 +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 , Krzysztof Kozlowski Subject: [PATCH v3 1/2] dt-bindings: spi: Add Socionext F_OSPI controller Date: Thu, 24 Nov 2022 09:33:50 +0900 Message-Id: <20221124003351.7792-2-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221124003351.7792-1-hayashi.kunihiko@socionext.com> References: <20221124003351.7792-1-hayashi.kunihiko@socionext.com> 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?1750335795498928944?= X-GMAIL-MSGID: =?utf-8?q?1750335795498928944?= Add devicetree binding documentation for Socionext F_OSPI SPI flash controller. Signed-off-by: Kunihiko Hayashi Reviewed-by: Krzysztof Kozlowski --- .../bindings/spi/socionext,f-ospi.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/socionext,f-ospi.yaml diff --git a/Documentation/devicetree/bindings/spi/socionext,f-ospi.yaml b/Documentation/devicetree/bindings/spi/socionext,f-ospi.yaml new file mode 100644 index 000000000000..9878d1446552 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/socionext,f-ospi.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/socionext,f-ospi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Socionext F_OSPI controller + +description: | + The Socionext F_OSPI is a controller used to interface with flash + memories using the SPI communication interface. + +maintainers: + - Kunihiko Hayashi + +allOf: + - $ref: spi-controller.yaml# + +properties: + compatible: + const: socionext,f-ospi + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + num-cs: + minimum: 1 + maximum: 4 + +required: + - compatible + - reg + - clocks + - "#address-cells" + - "#size-cells" + +unevaluatedProperties: false + +examples: + - | + ospi0: spi@80000000 { + compatible = "socionext,f-ospi"; + reg = <0x80000000 0x1000>; + clocks = <&clks 0>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + + flash@0 { + compatible = "spansion,s25fl128s", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <50000000>; + }; + };