From patchwork Fri Feb 10 10:14:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 55376 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp874250wrn; Fri, 10 Feb 2023 02:31:48 -0800 (PST) X-Google-Smtp-Source: AK7set/+NK2Qba3IeNW6GTALISuebdYmlxyzSmN68g+4JAQl2tHxhhSU4vqjia6axtbHGkRj79Px X-Received: by 2002:a17:906:d156:b0:84d:3403:f4f2 with SMTP id br22-20020a170906d15600b0084d3403f4f2mr14846104ejb.62.1676025108447; Fri, 10 Feb 2023 02:31:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676025108; cv=none; d=google.com; s=arc-20160816; b=vzxtYetLgA61/400zt4lFt2fY8VrX01eRx9PwYA64vwvwZqvRQaL1VBrPYtytp2XB3 /UHe1d37GON75be1YVLpIQTvqsxYMqJ2csjs/oPldATfS5LDREZwDK7CVwCocFJ79q7m 6zF09e8aridqdGNKG8fE+P8l7/KwEjtpO4ATiAJvsBFU//H+HkVCeVNduvj073ifnlir o23NGJPRK0Jq2BB9ltthmpq70DdomRU5i0JU8iA3DwRgB9mAv9Czemk9jIoBvhckYD6p /uW405FdjmjxL6doogAoQke20NFVANz2Uw+/WEnqIflFlb5tlpdTeXd6NzALDxv/kTbQ zlLw== 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:dkim-signature; bh=rBbjYxRh64IfU3vXrqNjeu6KfF5z7Q6kjGhO7g7nJJo=; b=GWrqmg6lf1jX/njBnNuMIT1hRH+2b8EA0lqdU4+6WLngYtNU+BT277KhqHhuyM6C/X v20IY9rrivlCPipn7uRt/QphBDsWRP7IP47RPLlyvK3ojYJVyLXf0aPaehqOPSjIfEvW DFhv7dY9C10TIkEXFo4OTuK/h4sWfIsAp+ugs1va0ufLBlMapJy8JwvqhlDqKC7P/VPz d+GYr7phM5ALnFgtx49EovVCh427VNkBzlnsm6hC4HRiSQp+glwERzJRhR5s/dH899Kt XLFhfFy1RdFIYoNeVULB1/Pjhzotg7Nq2pGgzSHXOqX9uqEj40vV9Eq1dvSRyIMHQ7jG 3Y2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b="d9/ivSue"; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fe17-20020a1709072a5100b008787e4ac0bfsi2829144ejc.719.2023.02.10.02.31.25; Fri, 10 Feb 2023 02:31:48 -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; dkim=pass header.i=@me.com header.s=1a1hai header.b="d9/ivSue"; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231488AbjBJKVb (ORCPT + 99 others); Fri, 10 Feb 2023 05:21:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231994AbjBJKV3 (ORCPT ); Fri, 10 Feb 2023 05:21:29 -0500 X-Greylist: delayed 435 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 10 Feb 2023 02:21:28 PST Received: from pv50p00im-ztdg10012101.me.com (pv50p00im-ztdg10012101.me.com [17.58.6.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E8836E54F for ; Fri, 10 Feb 2023 02:21:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1676024053; bh=rBbjYxRh64IfU3vXrqNjeu6KfF5z7Q6kjGhO7g7nJJo=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=d9/ivSueKskIiulVdK7blukoTm+YyY3ORb3E4oSP52sFTk+kkFI5VPBx6yeX1P0k4 3wGmo+yBDggouWMQ5vHRHhW3AzQk3mGrkdefKyqYipOs1mb8wX8jQUeLCBpvzSlwvh S1RlwfspLTMyUu8sJk+fJvUKKGG1SAuI9T1sJ3fv+wx1vHAbpPedVURzsSshpDgmd2 y7Thx+GHcKmtTHi8HqSoLkuyefaRabXVBxPbfwhc1EqbEYbeFgvJt+fn7igTnWelBe k7JSeeqD3E+Wb1AQuGJEx1zSPzRkV046pJyCgjdx1B2r2eQCHxACVOZbMoqRYX2ZDI piim09cEMXCww== Received: from localhost (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10012101.me.com (Postfix) with ESMTPSA id 902307403A0; Fri, 10 Feb 2023 10:14:11 +0000 (UTC) From: Alain Volmat To: Mark Brown , Rob Herring , Krzysztof Kozlowski Cc: Alain Volmat , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: spi: conversion of spi-st-ssc into DT schema YAML Date: Fri, 10 Feb 2023 11:14:01 +0100 Message-Id: <20230210101403.14609-1-avolmat@me.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-GUID: 3h639xTX_ZTwEJj09vl8wvKfdJqAMtho X-Proofpoint-ORIG-GUID: 3h639xTX_ZTwEJj09vl8wvKfdJqAMtho X-Proofpoint-Virus-Version: =?utf-8?q?vendor=3Dfsecure_engine=3D1=2E1=2E170-?= =?utf-8?q?22c6f66c430a71ce266a39bfe25bc2903e8d5c8f=3A6=2E0=2E138=2C18=2E0?= =?utf-8?q?=2E572=2C17=2E0=2E605=2E474=2E0000000_definitions=3D2020-02-14=5F?= =?utf-8?q?11=3A2020-02-14=5F02=2C2020-02-14=5F11=2C2020-01-23=5F02_signatur?= =?utf-8?q?es=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 clxscore=1011 adultscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2302100085 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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?1757439703634636761?= X-GMAIL-MSGID: =?utf-8?q?1757439703634636761?= File st,ssc-spi.yaml replaces spi-st-ssc.txt for the ST Microelectronics SSC SPI driver. Signed-off-by: Alain Volmat --- .../devicetree/bindings/spi/spi-st-ssc.txt | 40 ------------ .../devicetree/bindings/spi/st,ssc-spi.yaml | 61 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 62 insertions(+), 40 deletions(-) delete mode 100644 Documentation/devicetree/bindings/spi/spi-st-ssc.txt create mode 100644 Documentation/devicetree/bindings/spi/st,ssc-spi.yaml diff --git a/Documentation/devicetree/bindings/spi/spi-st-ssc.txt b/Documentation/devicetree/bindings/spi/spi-st-ssc.txt deleted file mode 100644 index 1bdc4709e474..000000000000 --- a/Documentation/devicetree/bindings/spi/spi-st-ssc.txt +++ /dev/null @@ -1,40 +0,0 @@ -STMicroelectronics SSC (SPI) Controller ---------------------------------------- - -Required properties: -- compatible : "st,comms-ssc4-spi" -- reg : Offset and length of the device's register set -- interrupts : The interrupt specifier -- clock-names : Must contain "ssc" -- clocks : Must contain an entry for each name in clock-names - See ../clk/* -- pinctrl-names : Uses "default", can use "sleep" if provided - See ../pinctrl/pinctrl-bindings.txt - -Optional properties: -- cs-gpios : List of GPIO chip selects - See ../spi/spi-bus.txt - -Child nodes represent devices on the SPI bus - See ../spi/spi-bus.txt - -Example: - spi@9840000 { - compatible = "st,comms-ssc4-spi"; - reg = <0x9840000 0x110>; - interrupts = ; - clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>; - clock-names = "ssc"; - pinctrl-0 = <&pinctrl_spi0_default>; - pinctrl-names = "default"; - cs-gpios = <&pio17 5 0>; - #address-cells = <1>; - #size-cells = <0>; - - st95hf@0{ - compatible = "st,st95hf"; - reg = <0>; - spi-max-frequency = <1000000>; - interrupts = <2 IRQ_TYPE_EDGE_FALLING>; - }; - }; diff --git a/Documentation/devicetree/bindings/spi/st,ssc-spi.yaml b/Documentation/devicetree/bindings/spi/st,ssc-spi.yaml new file mode 100644 index 000000000000..496118df3a1b --- /dev/null +++ b/Documentation/devicetree/bindings/spi/st,ssc-spi.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/st,ssc-spi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics SSC SPI Controller + +description: | + The STMicroelectronics SSC SPI controller can be found on STi platforms + and it used to communicate with external devices using the + Serial Peripheral Interface. + +maintainers: + - Patrice Chotard + +allOf: + - $ref: "spi-controller.yaml#" + +properties: + compatible: + const: st,comms-ssc4-spi + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: ssc + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + #include + spi@9840000 { + compatible = "st,comms-ssc4-spi"; + reg = <0x9840000 0x110>; + interrupts = ; + clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>; + clock-names = "ssc"; + pinctrl-0 = <&pinctrl_spi0_default>; + pinctrl-names = "default"; + #address-cells = <1>; + #size-cells = <0>; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 2e32eb8d44f5..0fc3e4c6c1e5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2926,6 +2926,7 @@ L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained W: http://www.stlinux.com F: Documentation/devicetree/bindings/i2c/st,sti-i2c.yaml +F: Documentation/devicetree/bindings/spi/st,ssc-spi.yaml F: arch/arm/boot/dts/sti* F: arch/arm/mach-sti/ F: drivers/ata/ahci_st.c