Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp589951pxm; Wed, 23 Feb 2022 06:56:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxarWcyojOPkrAOcNsLu0AYYRtTGogIwK+QB3WfR9PsOSBIZ+NztZY5Aex7y9nW9RO7EGfH X-Received: by 2002:a63:6442:0:b0:362:ad55:f5e5 with SMTP id y63-20020a636442000000b00362ad55f5e5mr23710404pgb.180.1645628216241; Wed, 23 Feb 2022 06:56:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645628216; cv=none; d=google.com; s=arc-20160816; b=o0aCIKuPbBiLtQZkG/yMQmJ2Ow2ZLJnPfu77nNSSM5AhSL9rTEnEfAXhljp7W2wm1i 7ohYz12g3191tWNUTd2BJuoibO2PHpqXxxONpYXBHEjua54SYX/dW41sQKxhwac7Jn0r jMZ9gR/zSXStVsy5/+GIH5azRLl0YUKT+6VeaoY2kNP7Vyic7tseMv2pb+Ikw6EOIhVW DMh8eM/CkFgmWg+JovEXHJ2gS+A/a+8ba6zLeiquCKs3txdZmUXozQRDhReY9uSpbdvu qW1/c0fDRtgRxZFW2iFZ4YPj+nfBDqVkP4+8XlEMQSIJjbe9jQjRJTGFGBK0GnY0Equd x81Q== 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 :dkim-signature; bh=rfXnIM/gkob7yquc82H0fk8dp64O1xLMrZytH71Q7Ss=; b=WTOG3E+GztYerz+mC9FQS2LSHJ+UVREHg6/uOIpyB7U6otQ9iJEMFEURkJyhQ0pZu3 Ler/2AxmGxJLsXBrb8VF/HQFg2QlOVQ7sMxmJ+BRP5GJZXc6Ym6UMGX3UI6QwxT7hao5 L12PXC7gW6I2Hme5HoM605dwX/vpE13LrzOm5p+7RjcUv53OTMy3ACbWnFQpNnYv7BS2 Reiq0e9vr8/2wNcgvK3+bHR3lA5kZA2Db2HdkbJfAXkWJkt7prUu6Ls3Sd+knkIYOOzd 2CtMHQwJM21d2QuT2JYVQj2q9Tp9nQzCEQI3gSh7mnl3XsAD8hAcrHUQWBi7V7tCcCpa 8gEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=QFdAdvyy; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13si16259608pfc.194.2022.02.23.06.56.40; Wed, 23 Feb 2022 06:56:56 -0800 (PST) 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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=QFdAdvyy; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241630AbiBWOf2 (ORCPT + 99 others); Wed, 23 Feb 2022 09:35:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241553AbiBWOf0 (ORCPT ); Wed, 23 Feb 2022 09:35:26 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00B1BB3E6E; Wed, 23 Feb 2022 06:34:57 -0800 (PST) Received: from tatooine.ideasonboard.com (unknown [IPv6:2a01:e0a:169:7140:7ebc:9e38:c4df:c57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 442A5929; Wed, 23 Feb 2022 15:34:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1645626896; bh=t7lXyoF+dyXhtYXC4fPPLMW3kGBxlRCCjpwpkuyd/NM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QFdAdvyydxPmLVK0oZz77NP/VG+nAD2fQY7iSbKs/H8sJfTVle6/unEwzHsZfFZQY SmwbJ1u6aDZq045UofPFbsyoN4wLdfBVCeK3UnX9Fv/cAEADljzkrf5JGlGoCvCSg5 YoVaPR0YQvNf5JqF0osV0zTuMaOYJ3NXpFC6AngI= From: Jean-Michel Hautbois To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, sbranden@broadcom.com, rjui@broadcom.com, f.fainelli@gmail.com, nsaenz@kernel.org, robh+dt@kernel.org, laurent.pinchart@ideasonboard.com, stefan.wahren@i2se.com, dave.stevenson@raspberrypi.com, naush@raspberrypi.com, Jean-Michel Hautbois Subject: [PATCH v5.1 2/2] ARM: dts: bcm2711: Add unicam CSI nodes Date: Wed, 23 Feb 2022 15:34:34 +0100 Message-Id: <20220223143434.71853-2-jeanmichel.hautbois@ideasonboard.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220223143434.71853-1-jeanmichel.hautbois@ideasonboard.com> References: <20220208155027.891055-7-jeanmichel.hautbois@ideasonboard.com> <20220223143434.71853-1-jeanmichel.hautbois@ideasonboard.com> 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,SPF_HELO_PASS,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 Add both MIPI CSI-2 nodes in the core bcm2711 tree. Use the 3-cells interrupt declaration, corresponding clocks and default as disabled. Thanks to Stefan Wahren for his guidance on how to deal with different RPi variants. Signed-off-by: Jean-Michel Hautbois Reviewed-by: Laurent Pinchart --- arch/arm/boot/dts/bcm2711.dtsi | 8 ++++++++ arch/arm/boot/dts/bcm2835-rpi.dtsi | 14 ++++++++++++++ arch/arm/boot/dts/bcm283x.dtsi | 22 ++++++++++++++++++++++ 3 files changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi index dff18fc9a906..53dbd5d00c3a 100644 --- a/arch/arm/boot/dts/bcm2711.dtsi +++ b/arch/arm/boot/dts/bcm2711.dtsi @@ -1036,6 +1036,14 @@ &rmem { #address-cells = <2>; }; +&csi0 { + interrupts = ; +}; + +&csi1 { + interrupts = ; +}; + &cma { /* * arm64 reserves the CMA by default somewhere in ZONE_DMA32, diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi index 8f988dd253fc..d339f62bdc8f 100644 --- a/arch/arm/boot/dts/bcm2835-rpi.dtsi +++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi @@ -40,6 +40,20 @@ vchiq: mailbox@7e00b840 { }; }; +&csi0 { + clocks = <&clocks BCM2835_CLOCK_CAM0>, + <&firmware_clocks 4>; + clock-names = "lp", "vpu"; + power-domains = <&power RPI_POWER_DOMAIN_UNICAM0>; +}; + +&csi1 { + clocks = <&clocks BCM2835_CLOCK_CAM1>, + <&firmware_clocks 4>; + clock-names = "lp", "vpu"; + power-domains = <&power RPI_POWER_DOMAIN_UNICAM1>; +}; + &gpio { pinctrl-names = "default"; diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi index c113661a6668..7b96e1707024 100644 --- a/arch/arm/boot/dts/bcm283x.dtsi +++ b/arch/arm/boot/dts/bcm283x.dtsi @@ -456,6 +456,28 @@ dsi1: dsi@7e700000 { status = "disabled"; }; + csi0: csi@7e800000 { + compatible = "brcm,bcm2835-unicam"; + reg = <0x7e800000 0x800>, + <0x7e802000 0x4>; + reg-names = "unicam", "cmi"; + interrupts = <2 6>; + status = "disabled"; + port { + }; + }; + + csi1: csi@7e801000 { + compatible = "brcm,bcm2835-unicam"; + reg = <0x7e801000 0x800>, + <0x7e802004 0x4>; + reg-names = "unicam", "cmi"; + interrupts = <2 7>; + status = "disabled"; + port { + }; + }; + i2c1: i2c@7e804000 { compatible = "brcm,bcm2835-i2c"; reg = <0x7e804000 0x1000>; -- 2.32.0