From patchwork Thu Jun 22 11:33:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 111631 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5001979vqr; Thu, 22 Jun 2023 04:45:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5BE2IeLYyosigSyIZIMy5nVnD0zDwnbOwhCIlJFCkASDj0q5Kw5eoLQ5ycb6tYPH3H8BdE X-Received: by 2002:a05:6a00:1a53:b0:66a:6339:e8f6 with SMTP id h19-20020a056a001a5300b0066a6339e8f6mr635123pfv.10.1687434335222; Thu, 22 Jun 2023 04:45:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687434335; cv=none; d=google.com; s=arc-20160816; b=ostVatozC+zD6aNLv57a3orSUEsi4BUMmYvashH9h/2B/TbueKu6UlBCGxUSIt4R3V g+yW0Zo+hwc1w0YbDALlpE93pD9sL2wnCCZe5GW6yiu1gxfByVBx8172Xm6orsC/c3hf /hU2QPiozEH7JIqyy5iOJywVZpt3ELkQ9SQ1WpLWz/+VwrDmLGwS/3CILrQ8zNaAWTm4 EyL/PWSP44J8z+FTrzEaylW131tt8W22e6USD68wTpMhyW0iSDIBqeZh33JAs6GRv1z3 HmJPCwUpLnUNIF0wfgpjc46HIjQUAWtr2J3LglHodfNfo7od7aaQyg0zjhFeL4KtWjJT ddKw== 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=jk/wxWBG6cc9Nyu9o3NUgP1anFMEMq2b7BNII8mv6v4=; b=DBgEfq53qjlQwDimfpb/5Ey2SSn0Pjq97ioiZlkNnMAgcigcuWS4vpfHRdkyvN142C kbptr7xVd+WoiKsKFi6XLzerelrsUBCH5C1/Fx++YSbe2LnJvGzEh+ifF4tgZ9OcYUKU PAVsRhQBMIovlkri56jLgpe6auZ5qTQ8x9ChBlGbyhC8BMQ7ng825c/JxY2lrIGpwEe+ zT1iL7fH1jLdvkqb5bJYMxrJHK90vDeb/0uR3gbim6nDztzQOs/JjBfDrMRcW7Xm8KZ7 EPlWtVWlTGDqfDdiBNgWkfP11qPwM4zy7p3nA1pzoxJU53drohgPB/Xs0R//nxI4HxiH izhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l17-20020a637011000000b0054fd9e9b862si6326090pgc.232.2023.06.22.04.45.21; Thu, 22 Jun 2023 04:45:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230098AbjFVLeB (ORCPT + 99 others); Thu, 22 Jun 2023 07:34:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbjFVLd6 (ORCPT ); Thu, 22 Jun 2023 07:33:58 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F3B6419A9; Thu, 22 Jun 2023 04:33:56 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.00,263,1681138800"; d="scan'208";a="164938167" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 22 Jun 2023 20:33:56 +0900 Received: from mulinux.example.org (unknown [10.226.93.117]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 0370D41E8FE8; Thu, 22 Jun 2023 20:33:51 +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 , Conor Dooley Subject: [PATCH v2 1/5] spi: dt-bindings: Add bindings for RZ/V2M CSI Date: Thu, 22 Jun 2023 12:33:37 +0100 Message-Id: <20230622113341.657842-2-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230622113341.657842-1-fabrizio.castro.jz@renesas.com> References: <20230622113341.657842-1-fabrizio.castro.jz@renesas.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769403145446437242?= X-GMAIL-MSGID: =?utf-8?q?1769403145446437242?= Add dt-bindings for the CSI IP found inside the RZ/V2M SoC. Signed-off-by: Fabrizio Castro Reviewed-by: Conor Dooley Reviewed-by: Geert Uytterhoeven --- v2: no changes .../bindings/spi/renesas,rzv2m-csi.yaml | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/renesas,rzv2m-csi.yaml diff --git a/Documentation/devicetree/bindings/spi/renesas,rzv2m-csi.yaml b/Documentation/devicetree/bindings/spi/renesas,rzv2m-csi.yaml new file mode 100644 index 000000000000..e59183e53690 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/renesas,rzv2m-csi.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/renesas,rzv2m-csi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/V2M Clocked Serial Interface (CSI) + +maintainers: + - Fabrizio Castro + - Geert Uytterhoeven + +allOf: + - $ref: spi-controller.yaml# + +properties: + compatible: + const: renesas,rzv2m-csi + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: The clock used to generate the output clock (CSICLK) + - description: Internal clock to access the registers (PCLK) + + clock-names: + items: + - const: csiclk + - const: pclk + + resets: + maxItems: 1 + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + - power-domains + - '#address-cells' + - '#size-cells' + +unevaluatedProperties: false + +examples: + - | + #include + #include + csi4: spi@a4020200 { + compatible = "renesas,rzv2m-csi"; + reg = <0xa4020200 0x80>; + interrupts = ; + clocks = <&cpg CPG_MOD R9A09G011_CSI4_CLK>, + <&cpg CPG_MOD R9A09G011_CPERI_GRPH_PCLK>; + clock-names = "csiclk", "pclk"; + resets = <&cpg R9A09G011_CSI_GPH_PRESETN>; + power-domains = <&cpg>; + #address-cells = <1>; + #size-cells = <0>; + };