From patchwork Thu Sep 14 19:00:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13385862 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EF5E2EEAA62 for ; Thu, 14 Sep 2023 19:01:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=YYIBqQubPoHma++Dlw9oH7SAWtF9d/t8GoQvSRBUFDo=; b=0n3k0N6TdlqWYY 2Fav70BBTi4S+u8diceO1gRpcO+4NhEaHYpAh53AHVENkjfyTQt+MVS5MQw0DzpOZN12z9IbWH+lI ji+YRZph5aLSRk2g/yNDxOJaJHpq/cS1aCNWVlI3lOCjilQIjLI/hKqbhuPcELjBXQ7XJf4qCdzAg myDZn/okd4CjlsP6HpcYTww/ctGEBpAdo3epA621BmyIFy8Xc+6PLgKJh8N3HwHrZA8LZibBJCnAz cfqmzHNvqh8KCTBTpKY6PznvVilesxxBGK5yhmSatGwDx0k3HjO0sV4ptXKLyAFlCPqheMYoc+oEt OPEDslc/bSsXm6j1jpmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgraN-0097qu-1f; Thu, 14 Sep 2023 19:01:07 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgraF-0097pG-0N for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 19:01:00 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 79907B82A86; Thu, 14 Sep 2023 19:00:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47243C433C9; Thu, 14 Sep 2023 19:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694718057; bh=qShUtFOUyzVf8/Vy8Ou2aMiD2+CkI0mrrVsJEqs5+Do=; h=From:To:Cc:Subject:Date:From; b=WD3EM3v+YCsBFw/HyGd5NpYli5TyFDn1qgSxdXNa5AQACYr3nq+s4WGnNeZcmLYZw LYMq6jvrnI2End4qZDjcMCF1z8XvldTNI/k8tOuxi/ugnRwcZPCQ0yKNLwaJInp47j IvasPjFi9rX51Y01FD0p2ScHUnJbNP9YkA4TElP2gve9YSNRTo1tWFhbAwVYo1bwGR CKcXDOgJ2aqC0f45FYpbx1Wsgxexl6tSsNuPsQkr8tFjvP/o6ePwxJif3z2LquVvjM GxwKSGl13V/8sq6EjXNIIiazum1ELgB/n+hCMfrqAIZWrYztj079ccJWpn+NN8Lnzu 5IbAWdz5aC6xQ== Received: (nullmailer pid 1853444 invoked by uid 1000); Thu, 14 Sep 2023 19:00:55 -0000 From: Rob Herring To: Mark Brown , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Erwan Leray , Fabrice Gasnier Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH] spi: dt-bindings: st,stm32-spi: Move "st,spi-midi-ns" to spi-peripheral-props.yaml Date: Thu, 14 Sep 2023 14:00:42 -0500 Message-Id: <20230914190049.1853136-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_120059_426923_040EEEB9 X-CRM114-Status: GOOD ( 11.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In order to validate SPI peripherals, SPI controller-specific child node properties need to be in a separate schema, spi-peripheral-props.yaml, which SPI peripheral schemas reference. As there is just a single property in this case, just add it to spi-peripheral-props.yaml directly. Signed-off-by: Rob Herring --- .../bindings/spi/spi-peripheral-props.yaml | 5 +++++ .../devicetree/bindings/spi/st,stm32-spi.yaml | 20 ------------------- 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml index dc4f7bb47090..15938f81fdce 100644 --- a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml +++ b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml @@ -113,6 +113,11 @@ properties: minItems: 2 maxItems: 4 + st,spi-midi-ns: + description: | + Only for STM32H7, (Master Inter-Data Idleness) minimum time + delay in nanoseconds inserted between two consecutive data frames. + # The controller specific properties go here. allOf: - $ref: arm,pl022-peripheral-props.yaml# diff --git a/Documentation/devicetree/bindings/spi/st,stm32-spi.yaml b/Documentation/devicetree/bindings/spi/st,stm32-spi.yaml index 9ca1a843c820..ae0f082bd377 100644 --- a/Documentation/devicetree/bindings/spi/st,stm32-spi.yaml +++ b/Documentation/devicetree/bindings/spi/st,stm32-spi.yaml @@ -18,15 +18,6 @@ maintainers: allOf: - $ref: spi-controller.yaml# - - if: - properties: - compatible: - contains: - const: st,stm32f4-spi - - then: - properties: - st,spi-midi-ns: false properties: compatible: @@ -59,17 +50,6 @@ properties: - const: rx - const: tx -patternProperties: - "^[a-zA-Z][a-zA-Z0-9,+\\-._]{0,63}@[0-9a-f]+$": - type: object - # SPI slave nodes must be children of the SPI master node and can - # contain the following properties. - properties: - st,spi-midi-ns: - description: | - Only for STM32H7, (Master Inter-Data Idleness) minimum time - delay in nanoseconds inserted between two consecutive data frames. - required: - compatible - reg