From patchwork Fri Apr 28 12:15:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentin Caron X-Patchwork-Id: 13226334 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 D0C65C77B60 for ; Fri, 28 Apr 2023 12:17:44 +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:References:In-Reply-To: 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: List-Owner; bh=EC4kqn6Mu6kPFJHFkw0wnCjLNMDbAUllj3vqi55mShw=; b=PXMeBhA5YLk0Qx 6pmCxcThWx7vNRQYFWAgydV8SpG67nkkFIn77oaSZH6Y6aPHNEYySg5Y7vcct0OPtzintX0DTJSvE n/WqXYjIwJCOTMSmuzPd77mADjUI0c2HEm5eUaW+bgjhlqDslxG5CIkdhDLsCQ73jw+XDoQqNd842 WleeLhIhY86mhr+nucVQYjs+JhSrfi4d+MCRcsZ8jthgOZBdtOtPnMJkPHNq0PF/JzF5+M6OHrsb4 73x+yMw+m5/dZxA6dDDm2R7A8zI3DPGgqF0iq2zkbKjruUJ2YndFPuc5Mjpt+w2eXtLFfUIwC8+y2 Xs5KpS8is2UBUsmoUnyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1psN1i-009fXY-1C; Fri, 28 Apr 2023 12:16:38 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1psN1a-009fOh-2X for linux-arm-kernel@lists.infradead.org; Fri, 28 Apr 2023 12:16:33 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33SA7T4n030488; Fri, 28 Apr 2023 14:16:15 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=+hQ1SVkd3GWosyQHpiiz2/BXe0lh3n2EhvFzWJWkxws=; b=Ffzqt9Hrc9CGzNT6hDe6BpO2AsUqsFs/4LL1+USgHBG3dw1eN2k0wxZgfpCyeSfuL1Cr vEtpswEG6KIXCPVcaQYxtjtOpYIhOhBt1IpJjyORE297TStQz7qEeO+xlYpanP8YsXAG nz09ma2b9pkZeidgZDEybZztvpNsIBGznXRRwhPw8I0OXHnFm85EAyLde5unWwpUM4DL KMsofkLC4QcBgGS6jZIDhc6w2rfxibjp9H9/eGczBd62BQXhU2FBQxFQixWOdOobrQu0 Zq0G4p/J7+7/cMoHxwhkl3uGR22OfgIZe6P4bKzVaam4zsmV8nw79pjtDb2BzCJNyezh /A== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3q7x8dduhe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Apr 2023 14:16:15 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A88AB100034; Fri, 28 Apr 2023 14:16:14 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A04C4227EE3; Fri, 28 Apr 2023 14:16:14 +0200 (CEST) Received: from localhost (10.201.20.168) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 28 Apr 2023 14:16:14 +0200 From: Valentin Caron To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Alexandre Torgue , Alain Volmat CC: , , , , , Valentin Caron Subject: [PATCH 4/7] dt-bindings: spi: stm32: add bindings regarding stm32h7 spi slave Date: Fri, 28 Apr 2023 14:15:21 +0200 Message-ID: <20230428121524.2125832-5-valentin.caron@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230428121524.2125832-1-valentin.caron@foss.st.com> References: <20230428121524.2125832-1-valentin.caron@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.20.168] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-28_04,2023-04-27_01,2023-02-09_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230428_051631_163295_7A66389C X-CRM114-Status: GOOD ( 13.45 ) 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 From: Alain Volmat Update the spi-stm32 binding yaml regarding to the SPI slave support. Signed-off-by: Alain Volmat Signed-off-by: Valentin Caron --- Documentation/devicetree/bindings/spi/st,stm32-spi.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/st,stm32-spi.yaml b/Documentation/devicetree/bindings/spi/st,stm32-spi.yaml index c599eb359d56..1d26fa2658c5 100644 --- a/Documentation/devicetree/bindings/spi/st,stm32-spi.yaml +++ b/Documentation/devicetree/bindings/spi/st,stm32-spi.yaml @@ -27,6 +27,7 @@ allOf: then: properties: st,spi-midi-ns: false + spi-slave: false properties: "#address-cells": true @@ -62,6 +63,13 @@ properties: - const: rx - const: tx + cs-gpios: + description: + In case of spi-slave not defined, cs-gpios behave as defined in + spi-controller.yaml. + In case of spi-slave defined, if <0>, indicate that SS should be + detected via the dedicated HW pin + patternProperties: "^[a-zA-Z][a-zA-Z0-9,+\\-._]{0,63}@[0-9a-f]+$": type: object