Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2295708rwl; Thu, 13 Apr 2023 04:41:47 -0700 (PDT) X-Google-Smtp-Source: AKy350bv5agvdY5yi17pmXr33lk4Px9vSLz83DyC8GA+tLN3j+jXNEJLDk8Z8Kf8xbtnRRlahKDP X-Received: by 2002:a17:90b:698:b0:246:88c7:4374 with SMTP id m24-20020a17090b069800b0024688c74374mr1635469pjz.34.1681386107728; Thu, 13 Apr 2023 04:41:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681386107; cv=none; d=google.com; s=arc-20160816; b=VgvZeUOyaeW5/gvlV6Be5gxqEq9p7s8nuECyJdsmAknS/52QXTs5sKq/nX+FFD+UrR 358Aiu6yT8PoCxuwy71MFhwI/cP1jWgE6TQtYGXCLwB8TyBJl9lgYEcDCCaBBSE01Do2 A+LdtrUKHICA4gtvcXM3dhTUurKi94txQaL4Eq8h5GPdAIjQFvg1XdWY3hbOeQSGtjPT Z5oGiYS7uKset4lliRzUfzTPfygA7mnl/ETvtzUkiWktSApd03/+hTD1Tz9w0ZW4V5aA rNtkeUNnezpLvTz3Pmhyiz4Yi6wDn3Zf3jER9N7P0Zl39NHnRj+2rjWlZpIknyIR7s7v VP5g== 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:dkim-signature; bh=m66B/9uT9mWYOEyZbd8z/k+G4QiidL/7FmVJXlLVW/U=; b=pOb235DDsMjP5SqieuZRUXtmgXJ2Xv5VZQky0xU6SKNj0dgirdFvG0BujI1oQvNj6I siShIyduZrO+vnIsKHJ2NxH6V9mtAjhrGf2m+T8nf2o3lVS2nsNhJ5c9WLAbC2lcCpzt UFF/ZsMalf1nXC388KPXV6f1EdQLiCQO9j4+12Zy8Qdoempbde4qGnmt5zKGz1bMRNkp cfUQ9DjbBvVIJCFG9qfAcxV5ox49SmFt/HH/6h81L4n2J95ng7Edbd0e9UFFmjwt7jlX UUejR3NjcJDAOqux9Kdd7YwlJHM96slnkTdLQEPPgdL6NgLbxk8jiJDWw3tnWRiqYqkq wJ3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=hgm6xnGd; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lp7-20020a17090b4a8700b0023d1684ce14si1967104pjb.182.2023.04.13.04.41.15; Thu, 13 Apr 2023 04:41:47 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=hgm6xnGd; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230032AbjDMLku (ORCPT + 99 others); Thu, 13 Apr 2023 07:40:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbjDMLkt (ORCPT ); Thu, 13 Apr 2023 07:40:49 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4D56269D; Thu, 13 Apr 2023 04:40:47 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id gw13so8281808wmb.3; Thu, 13 Apr 2023 04:40:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681386046; x=1683978046; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=m66B/9uT9mWYOEyZbd8z/k+G4QiidL/7FmVJXlLVW/U=; b=hgm6xnGddWYrtgZzDQB8etna94nRQacYpeJTqaTBRs2X9wUyIBAYpdgqeicJdE8TV3 b2yybhT0Thzptj/4EolAbcI84Be5Ya68gSXR7TSNBw85zqxkqtV52V52SMixWwVIYZD4 N7W3NJJRg38lcIGqzC6RDslvpx2jTP/QrQk1w+lDugmlLzaM6KvBd6aA6vBiHZ/LRklo snZi8cpqcxE/Mv97b1pllp+Ybx6/907SOieY4D7n2p+jDiKb/UhfiRaogW+XdBLlEhTX 4C3hnFfeljzvcCW3g7LQzBbDKi8cHqMXYEncETC4yMe2wuhK9v1fo2oBteMmY/XKXVgc 8AQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681386046; x=1683978046; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=m66B/9uT9mWYOEyZbd8z/k+G4QiidL/7FmVJXlLVW/U=; b=NZcDund7P73yrIUNID9KB5VA7H2TOSpCfqf7SZ3U+m75kOLB0FoDIKik1YsvZjgt6f jgjJoT1tVrhv95IF6bgOTTyk9NndhYrOXiOYyE6r7eRUPFvilHtcooWHWDVbMR+GBu3O amACGdkG1Cmtgj8QtYapyNAw0isZNFSvC0STFIK3YydDXwfar+VhD3UKLJKkiVCTOmaC gab5GQxD2kgzhpsC2jMtoNtJbwQbPcOnLCJnALIZwpXtyle476WHLKEqtSbbNGXZJzGX dIo36+2o7uosbmoaqJmAu9MDb9KabUEZ8wOxLA+5oO/eq+EWmkusm24tcJ7PYODzmxk4 H83w== X-Gm-Message-State: AAQBX9duXRP12WxC0Ly1a7p83y6V6iiCL3VDhmjlmAo6RwCcqLhv/Fpa JhtgtFWHUc641kOc8Pz+4qc= X-Received: by 2002:a7b:c7d4:0:b0:3eb:39e0:3530 with SMTP id z20-20020a7bc7d4000000b003eb39e03530mr1517475wmk.41.1681386046105; Thu, 13 Apr 2023 04:40:46 -0700 (PDT) Received: from localhost.localdomain (host81-136-160-130.in-addr.btopenworld.com. [81.136.160.130]) by smtp.gmail.com with ESMTPSA id k15-20020a05600c1c8f00b003ede2c59a54sm5272515wms.37.2023.04.13.04.40.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 04:40:45 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Geert Uytterhoeven , Magnus Damm Cc: Rob Herring , Krzysztof Kozlowski , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH] arm64: dts: renesas: rg2lc-smarc: Enable CRU, CSI support Date: Thu, 13 Apr 2023 12:40:16 +0100 Message-Id: <20230413114016.16068-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 From: Lad Prabhakar Enable CRU, CSI on RZ/G2LC SMARC EVK and tie the CSI to the OV5645 sensor using Device Tree overlay. Signed-off-by: Lad Prabhakar --- arch/arm64/boot/dts/renesas/Makefile | 1 + .../r9a07g044c2-smarc-cru-csi-ov5645.dtso | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r9a07g044c2-smarc-cru-csi-ov5645.dtso diff --git a/arch/arm64/boot/dts/renesas/Makefile b/arch/arm64/boot/dts/renesas/Makefile index ebcbd66ba816..7114cbbd8713 100644 --- a/arch/arm64/boot/dts/renesas/Makefile +++ b/arch/arm64/boot/dts/renesas/Makefile @@ -79,6 +79,7 @@ dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043u11-smarc.dtb dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043-smarc-pmod.dtbo dtb-$(CONFIG_ARCH_R9A07G044) += r9a07g044c2-smarc.dtb +dtb-$(CONFIG_ARCH_R9A07G044) += r9a07g044c2-smarc-cru-csi-ov5645.dtbo dtb-$(CONFIG_ARCH_R9A07G044) += r9a07g044l2-smarc.dtb dtb-$(CONFIG_ARCH_R9A07G044) += r9a07g044l2-smarc-cru-csi-ov5645.dtbo diff --git a/arch/arm64/boot/dts/renesas/r9a07g044c2-smarc-cru-csi-ov5645.dtso b/arch/arm64/boot/dts/renesas/r9a07g044c2-smarc-cru-csi-ov5645.dtso new file mode 100644 index 000000000000..f983bdd3ea30 --- /dev/null +++ b/arch/arm64/boot/dts/renesas/r9a07g044c2-smarc-cru-csi-ov5645.dtso @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree overlay for the RZ/G2LC SMARC EVK with + * OV5645 camera connected to CSI and CRU enabled. + * + * Copyright (C) 2023 Renesas Electronics Corp. + */ + +/dts-v1/; +/plugin/; + +#include +#include + +#define OV5645_PARENT_I2C i2c0 +#include "rz-smarc-cru-csi-ov5645.dtsi" + +&ov5645 { + enable-gpios = <&pinctrl RZG2L_GPIO(0, 1) GPIO_ACTIVE_HIGH>; + reset-gpios = <&pinctrl RZG2L_GPIO(5, 2) GPIO_ACTIVE_LOW>; +}; -- 2.25.1