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 X-Patchwork-Id: 139860 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp646590vqi; Thu, 14 Sep 2023 14:54:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEhbIz5Yd/wBNiRX2kEtwjdQJyY0ld1Yy21mQwZSVlzVBhUFzrUurlhs0yan7vU/2/IKiSz X-Received: by 2002:a05:6a21:a585:b0:14c:ad99:22a9 with SMTP id gd5-20020a056a21a58500b0014cad9922a9mr52998pzc.32.1694728448718; Thu, 14 Sep 2023 14:54:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694728448; cv=none; d=google.com; s=arc-20160816; b=mQAhXqqFi4DLmFRI8Ymp5k3vjBZgz+vSfxhnnQm8n9bHzxs+AX62+A4mvuD7Px0Wl3 9Qdxk51olhLERQoO+Wr17BQmkJ+G+6ig8OaPbcNMhm7TE3uP3rnpHx+jowyL5lybqBK3 uwDqLPL0PHThloON7sH+5h1TzpEyKCopGzQ1+SgHKKue0lSrEDROcunipzqNcBqZicOp cqe53XBGJEwMGXjseXaVAQJc+hxqZMz3QvsrgiQkkoP5XDQzl4bKGSfRZx0FhUosjpMG PgojRB14ibKUbiAteeI7/dAoHloeAws7+ULpnxK0xPPgur+Lv6jJB4+v+5wWtDza4pcI SC2g== 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=jpXEVy7grXu6Zgld5LjPOxz94Ua6IVa7ZgCoit8GN8Q=; fh=tOnlsCKCWfZSJIHRIxVNN9v5J7ALKs5Og1IVm24X6ao=; b=bEG+WA//Qa3iQ0tIDomHQbw2jMM9V4w1BNFkzVVKP9Lq+hb1szUxSn9Nj7jb81CqoX mS4+dK5f4mSVOCcKWqNH11sftbGnkoE0+t9pq8gKrCjYUZlCASqFwYA+U/YRQ4GC64bc G8WbklWowjiX15jLWmbUPLPEme4HarMPOyNXglyP9GUNtui9WP/6vFyPZH2/qzUY5jrE B050mc0/DBHYhTXHOduAo64+bEI991sbijSqK6m6u3R7lFXR/5FauHA3BV2wgeFiK8KZ kF88Mcx5H1Q445o5mARxX6S/703ECR/q33Z1+MAM2nG9GdTQTswzlBxRjVoAW9uCgXBA wl3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WD3EM3v+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id v15-20020a056a00148f00b0068ffda29587si2397299pfu.109.2023.09.14.14.54.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 14:54:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WD3EM3v+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 83B7581143F2; Thu, 14 Sep 2023 12:02:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242104AbjINTCB (ORCPT + 33 others); Thu, 14 Sep 2023 15:02:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241637AbjINTBs (ORCPT ); Thu, 14 Sep 2023 15:01:48 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E2F82112; Thu, 14 Sep 2023 12:00:57 -0700 (PDT) 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 12:02:13 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777051578103313765 X-GMAIL-MSGID: 1777051578103313765 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