From patchwork Mon Nov 21 01:47:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 23508 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1344708wrr; Sun, 20 Nov 2022 17:51:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf7g1gCjfHFTEFj0WKGErmJ/iUyFA0eqaHInnOVEE8bBhQkX5SsPtjmfo8BzyPrIHP85Mdy6 X-Received: by 2002:a05:6402:2929:b0:469:b603:ca21 with SMTP id ee41-20020a056402292900b00469b603ca21mr182185edb.350.1668995519323; Sun, 20 Nov 2022 17:51:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668995519; cv=none; d=google.com; s=arc-20160816; b=dUvpfz/xspXoOV8kLSenOWwgZHGrjzh9yeR/9cacfhDE0+Vmnd1nskoEsZ7L2qmEor nF8Si41virMhz9Qb+hmd41ZEohRu/SIf9rw6w5MhU40i+WmJtJEdBr7/VxogM0Yl4Ac0 qJLptErnwS9IRjyWmsHVzUh/40sgsRQMf4W9kl01nAGoYdIirp17SBQltUmg5Ppa/J83 OKboD/hz2CmSqY/CILLMip7+abjVlsE4RKWEAyGS2J9M3AWIbZGYcVSeV6XbM6xWu27m nmPWCV/Gao4L4LAQ42XnaZrwviAIr7fvoHWGN15kPAkY0ywfd6t9hc2sYTcrbIC9vQ5o Oftw== 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=9aRaBK04QUGlihK3SWW+HYKs179Pf0VZ6pG1HtnCIOM=; b=gma2kjdDAyrNY+k+rNOym7sbmwwhb9QFPjXg4taVtD71+irAFperpj+u1ZcYOcdKQy OsFFm2jhsJ1xHmDw2Ys8X/3o9iKuNCv0Sw70T2WwKVwtcOOsSs4hAzvrrOEbpbtf4VYx FWPLqW8IR4pR16LO3YrLCacThB01EA7ziBQ32+5sD0+Ot3apHYMXK+W0Zyoh4c3SZzLP DYUnqx3dtinreB3LeIwGnlQD4WjBKcA9d5jc8D+rhSA6NTi0PcN5bKGB3YiQ2wPKYC7q cB/Hxiktl3105eTEljbxwjCL2qEaW5gu591vV4ImNQ/BqZyXhhAk27UoksB02KQqOQrv bkYA== 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 z27-20020a1709063adb00b0078dacbcaa7asi7664323ejd.992.2022.11.20.17.51.31; Sun, 20 Nov 2022 17:51:59 -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 S229877AbiKUBsf (ORCPT + 99 others); Sun, 20 Nov 2022 20:48:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229773AbiKUBsX (ORCPT ); Sun, 20 Nov 2022 20:48:23 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0E87821E09; Sun, 20 Nov 2022 17:48:21 -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:19 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 07C4820584CE; Mon, 21 Nov 2022 10:48:19 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Mon, 21 Nov 2022 10:48:19 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 7F76FB62A4; Mon, 21 Nov 2022 10:48:18 +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 1/2] dt-bindings: spi: Add Socionext F_OSPI controller bindings Date: Mon, 21 Nov 2022 10:47:59 +0900 Message-Id: <20221121014800.13989-2-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221121014800.13989-1-hayashi.kunihiko@socionext.com> References: <20221121014800.13989-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?1750068645618496960?= X-GMAIL-MSGID: =?utf-8?q?1750068645618496960?= 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..e04492c4fc84 --- /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>; + }; + };