Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2211992rdh; Tue, 26 Sep 2023 16:45:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IErr/V8UwBabBebeVwj8nnRdadVuq2xa1PogTcqL+bi4rRla4GF/QMhPUl+59wWPheWlL/H X-Received: by 2002:a05:6a21:3e05:b0:142:aced:c643 with SMTP id bk5-20020a056a213e0500b00142acedc643mr312336pzc.31.1695771921155; Tue, 26 Sep 2023 16:45:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695771921; cv=none; d=google.com; s=arc-20160816; b=k67gFSNCZwklwNfGFTxfJ/777l6vYC0YvY2tfR4gxwcm/bc6r6ongrqP3VM/9rNHDI PabBNIWoVT/+Fu0h6B1kGO+Bkk2Z6E6EbU6mRqwpmzHQHn7icjn/V7AkFxrJPFGIYgUo yMhPSSjczcsjtgTmvPQznjP3J47drD/V6+S0gjjBov1uBiidcx6AyUnv75e0ORcIRz3I w0DypR5E4LfZt4IzGa25gwhrKtt3/zML7Eos9N99vCMo/jb5HddOKdMYF3WM83NCRphw 9SBsG9XYoZbEgWjpxPSvY3pPJKe4ETl1xUmpDQc7T9tC5IE4EU/f2WXlb+k1e7TdaBai Sw0g== 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=gH35+7pr/iEFDHeAMdsYzMpRjkiBm0eHQ12w7Bst0AQ=; fh=RCG5UTJZL4x7EFXQRWT8toPnZJDmRxABMjXK1Kmzugw=; b=L5pIDsieHDeZrQoBXxBJD+4hTWfQjHwTqpcgAFy2lqJv9nGzhOB5xcGHNm78qbtb6/ h/0Q8VZK/RbYLTo6e7o13QoY1UzY/2FPgwYuO+CvOVEc4WejJtYkmLNs9yeXxymLFzHd L5UJsw4WXQ3Ms++3NTo1X1nSB2v3bYJoxE7oaN1cT5qilsgXZRjO0d0iZYWO1C8DQfvM ezvLVfwWR7MkbkraVZVCkjbbGDo0yDFUxjmvWDR/+fVktsxOgxQeqYU5qwQDY7Zw6roP 1LN0/q7ZqaeIc1ul3nj6nhjOlAsMhvr22RhHBlyBQEvk0omgogf0WgxzSmAjrVNrmYs4 LZFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id kz15-20020a170902f9cf00b001bb2d95f2a7si12686114plb.267.2023.09.26.16.45.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 16:45:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id DE4F481B93CF; Tue, 26 Sep 2023 16:44:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233850AbjIZXn7 (ORCPT + 99 others); Tue, 26 Sep 2023 19:43:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbjIZXlz (ORCPT ); Tue, 26 Sep 2023 19:41:55 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 88B1E76AE; Tue, 26 Sep 2023 15:57:08 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.03,178,1694703600"; d="scan'208";a="177325632" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 27 Sep 2023 06:08:31 +0900 Received: from mulinux.home (unknown [10.226.92.200]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id DFF8E40B91B6; Wed, 27 Sep 2023 06:08:26 +0900 (JST) From: Fabrizio Castro To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven Cc: Fabrizio Castro , Magnus Damm , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Chris Paterson , Biju Das , Lad Prabhakar Subject: [PATCH 1/2] spi: renesas,rzv2m-csi: Add SPI Slave related properties Date: Tue, 26 Sep 2023 22:08:17 +0100 Message-Id: <20230926210818.197356-2-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230926210818.197356-1-fabrizio.castro.jz@renesas.com> References: <20230926210818.197356-1-fabrizio.castro.jz@renesas.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 26 Sep 2023 16:44:08 -0700 (PDT) The CSI IP found inside the Renesas RZ/V2M SoC can also work in SPI slave mode. When working in slave mode, the IP can make use of the SS (Slave Select) pin, with "low" as default active level. The active level of SS can be changed to "high" upon configuration. This patch adds two new properties, one to make use of the SS pin when in slave mode, and one to make the SS pin active high. Signed-off-by: Fabrizio Castro --- .../bindings/spi/renesas,rzv2m-csi.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/renesas,rzv2m-csi.yaml b/Documentation/devicetree/bindings/spi/renesas,rzv2m-csi.yaml index e59183e53690..c3d8ad6525bb 100644 --- a/Documentation/devicetree/bindings/spi/renesas,rzv2m-csi.yaml +++ b/Documentation/devicetree/bindings/spi/renesas,rzv2m-csi.yaml @@ -39,6 +39,17 @@ properties: power-domains: maxItems: 1 + renesas,csi-ss: + type: boolean + description: + Use CSI Slave Selection (SS) pin to enable transmission and reception when + in slave mode. + + renesas,csi-ss-high: + type: boolean + description: + The SS pin is active high (by default the SS pin is active low). + required: - compatible - reg @@ -50,6 +61,10 @@ required: - '#address-cells' - '#size-cells' +dependencies: + renesas,csi-ss: [ spi-slave ] + renesas,csi-ss-high: [ 'renesas,csi-ss' ] + unevaluatedProperties: false examples: -- 2.34.1