From patchwork Thu Jun 22 11:33:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 111628 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5000390vqr; Thu, 22 Jun 2023 04:42:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4nck9xMyTg+HC7FpMzjDQxuqtk8OzUYzvBqi636uLQdCfbEs5nedoklq8TT6dX04upGdSo X-Received: by 2002:a05:6a00:194d:b0:666:2889:32bd with SMTP id s13-20020a056a00194d00b00666288932bdmr9272363pfk.9.1687434131611; Thu, 22 Jun 2023 04:42:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687434131; cv=none; d=google.com; s=arc-20160816; b=HXZ7/TM6vvZ2/GT+fEDQTVE+846/5ce3j8qNgLWJt+KZ9FgIzkp6wQ9cupkTzvTWfh vu5vAsbho0pM8vTxpBclVT4PKkSkzvQVVbJM24TyJHOBeyRnloyfunJ0eoPSjuDh0Q11 3CU/NTRpjPm0ROigPGbGfabmphD85jKWo0Ia/0w1WNTzDawKszZAG2yxzFGZBQzLZtpm eZw+4X+FqFBPJF/xhOuzgeRpsoyQYstKJYnftRPOzDLeFMLucosyh9VGx7VRBniS7zSP hoAjisCO6ITFvfDUdZ8dqv9gN8kXUOb5+/+p13fLKssGHMFTanIxYwhJhKbM6Iy9h7Ks bYpA== 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=sTcU27TF5aOWZI7wPr2/z9QHd9oRGdCTBHefUqDsnG8=; b=LDXLOYAYwYfy3DzEt5AfHm/N+C7KcPBG+cnpsxyOeelhfxS1Zb1T6Kd1szbI/gKXs0 O5Zu/goAxXcdKldtFgdQqhwT3wcIsJyasEpv8TGZWDFRjwBhmDpQGe7I/dcsC+Ckak3h 43uIo+BuyEGgBNlBmf74ilHipw+sertaNrDABpwNhR4xOci+hLmZo28gjbuDSVQE64nf BdSqZ3253Rw7QfZMRAuOR7lohBUNscnN06HPW18kb5wfcnpogcq5CFusonpCx18TiUIQ U0PsQzvwP13S/kyR/g1UDCXNX2JCQUYyE/ei83z2Myw2ipO5HuissxeF9h4NyrnhaUv+ dC3w== 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 y4-20020aa79424000000b006686a20f78asi6212571pfo.124.2023.06.22.04.41.58; Thu, 22 Jun 2023 04:42:11 -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 S230203AbjFVLea (ORCPT + 99 others); Thu, 22 Jun 2023 07:34:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229839AbjFVLeQ (ORCPT ); Thu, 22 Jun 2023 07:34:16 -0400 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C0AB71FF2; Thu, 22 Jun 2023 04:34:07 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.00,263,1681138800"; d="scan'208";a="168532799" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 22 Jun 2023 20:34:07 +0900 Received: from mulinux.example.org (unknown [10.226.93.117]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id B96C740CCB9C; Thu, 22 Jun 2023 20:34:03 +0900 (JST) From: Fabrizio Castro To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven Cc: Fabrizio Castro , Magnus Damm , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Paterson , Biju Das Subject: [PATCH v2 4/5] arm64: dts: renesas: r9a09g011: Add CSI nodes Date: Thu, 22 Jun 2023 12:33:40 +0100 Message-Id: <20230622113341.657842-5-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?1769402932329117302?= X-GMAIL-MSGID: =?utf-8?q?1769402932329117302?= The Renesas RZ/V2M comes with 6 Clocked Serial Interface (CSI) IPs (CSI0, CSI1, CSI2, CSI3, CSI4, CSI5), but Linux is only allowed access to CSI0 and CSI4. This commit adds SoC specific device tree support for CSI0 and CSI4. Signed-off-by: Fabrizio Castro Reviewed-by: Geert Uytterhoeven --- v2: no changes arch/arm64/boot/dts/renesas/r9a09g011.dtsi | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a09g011.dtsi b/arch/arm64/boot/dts/renesas/r9a09g011.dtsi index 46d67b200a66..33f2ecf42441 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g011.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a09g011.dtsi @@ -236,6 +236,34 @@ sys: system-controller@a3f03000 { reg = <0 0xa3f03000 0 0x400>; }; + csi0: spi@a4020000 { + compatible = "renesas,rzv2m-csi"; + reg = <0 0xa4020000 0 0x80>; + interrupts = ; + clocks = <&cpg CPG_MOD R9A09G011_CSI0_CLK>, + <&cpg CPG_MOD R9A09G011_CPERI_GRPG_PCLK>; + clock-names = "csiclk", "pclk"; + resets = <&cpg R9A09G011_CSI_GPG_PRESETN>; + power-domains = <&cpg>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + csi4: spi@a4020200 { + compatible = "renesas,rzv2m-csi"; + reg = <0 0xa4020200 0 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>; + status = "disabled"; + }; + i2c0: i2c@a4030000 { #address-cells = <1>; #size-cells = <0>;