From patchwork Wed Sep 27 16:25:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 14596 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2753793vqu; Wed, 27 Sep 2023 09:36:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFEtM1kWjy0M+9QMH/Vy730duCn6h3+bcRVDna0uPgXsSQRBL1+TV5UcbFwH9QaMr/AQMNS X-Received: by 2002:a05:6870:2189:b0:1d5:a3f5:e93 with SMTP id l9-20020a056870218900b001d5a3f50e93mr2799665oae.17.1695832608215; Wed, 27 Sep 2023 09:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695832608; cv=none; d=google.com; s=arc-20160816; b=xnZKW9FRRWdP/pzdWwvKqrBZSWj9POAagECJRNWQb8fXBchOopnUSK37uRswwV+1zR jMYzGT6KzdlJ5gFdmQ9I2SHFozRD6+Kz5r5Cpo8GsOG85OOD0KlC3QtcMbnWW4O05GeC ThS4sXFZrksw5sq4loKKdPP816eRwlseSiswUMRB747fVL7WrR9P/VUyYmhecte0Xdgq lppq+VT+nqCfvrc2+58i54K1JXCASaCxF3YFMlC/KB1Zs+L6sTJdESQy0M9PrrRo1Usv paleRfn+CqE15QFuO/2bUbHbfWMBQspkGPmkfjVxmn0NIePCVpphiv/OvjtjuVfV1CbQ AoFQ== 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; bh=q8/Oq9dbQ4BJziTyzc4+4jyfi6iahOb6yzxDBFTPiVM=; fh=RCG5UTJZL4x7EFXQRWT8toPnZJDmRxABMjXK1Kmzugw=; b=hztFG3gJfQHbAzkbFo3Ku2AiSIKeS8+XYt6SdrGziZVmXhBTEz7eB0eIgjwp0K8JNP 5Ek9NZiAH29Q9jkW+uJd1jClx+O48BmJ7UnwxyqhCq2xbVD+pHwyjgmYuX7qXZOcFaES rqqnLECJKsW/zYV9A6XBX1KrZ2pnDATNMCgwb2mEGKB7qw0klJucokL+YuPZCUck+/FL Jk9wMMh8oNv1Ykad+5sQqUE11CKCSToPAT91S4NH8k5m1qI+j3BOyz+8dhe8fsuKOyIw v9qSmBwzeFmlHA7m3Ka+O69nN9ri3PkZCDCd2AZ+0cRwXR20Cvy6OuhW7X/0vyqT6a+g Uttw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id f10-20020a65550a000000b00573fe48c908si15319080pgr.128.2023.09.27.09.36.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 09:36:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 8FCA3809E71C; Wed, 27 Sep 2023 09:25:25 -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 S231374AbjI0QZU (ORCPT + 19 others); Wed, 27 Sep 2023 12:25:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbjI0QZS (ORCPT ); Wed, 27 Sep 2023 12:25:18 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DE227DE; Wed, 27 Sep 2023 09:25:15 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.03,181,1694703600"; d="scan'208";a="177447615" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 28 Sep 2023 01:25:15 +0900 Received: from mulinux.home (unknown [10.226.92.108]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 05AB3401F564; Thu, 28 Sep 2023 01:25:10 +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 v2 0/2] Add RZ/V2M CSI slave support Date: Wed, 27 Sep 2023 17:25:06 +0100 Message-Id: <20230927162508.328736-1-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, RCVD_IN_DNSWL_BLOCKED,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]); Wed, 27 Sep 2023 09:25:25 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778209372670728101 X-GMAIL-MSGID: 1778209372670728101 Dear All, the CSI IP found inside the Renesas RZ/V2M SoC supports both SPI host and target. This series extends the CSI dt-bindings and driver to add SPI target support. v1->v2: I have dropped properties renesas,csi-ss and renesas,csi-ss-high. I have added property renesas,csi-no-ss, and to configure SS as active high one now needs to use property spi-cs-high. I have also purged "master" and "slave" as naming schemes (besides for the title of the cover letter, to make it easier to follow this discussion), I am now using "host" and "target" and related APIs instead. Cheers, Fab Fabrizio Castro (2): spi: renesas,rzv2m-csi: Add CSI (SPI) target related properties spi: rzv2m-csi: Add target mode support .../bindings/spi/renesas,rzv2m-csi.yaml | 9 ++ drivers/spi/Kconfig | 3 +- drivers/spi/spi-rzv2m-csi.c | 127 ++++++++++++------ 3 files changed, 94 insertions(+), 45 deletions(-)