Skip to content

Commit 7b4e7a4

Browse files
jhautboisffainelli
authored andcommitted
ARM: dts: bcm2835: Add Unicam CSI nodes
Add both MIPI CSI-2 nodes in the bcm283x tree and take care of the Raspberry Pi / BCM2711 specific in the related files. Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Link: https://lore.kernel.org/r/20240424153542.32503-6-laurent.pinchart@ideasonboard.com Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
1 parent dd5c56c commit 7b4e7a4

3 files changed

Lines changed: 46 additions & 0 deletions

File tree

arch/arm/boot/dts/broadcom/bcm2711.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,14 @@
11141114
#address-cells = <2>;
11151115
};
11161116

1117+
&csi0 {
1118+
interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
1119+
};
1120+
1121+
&csi1 {
1122+
interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
1123+
};
1124+
11171125
&cma {
11181126
/*
11191127
* arm64 reserves the CMA by default somewhere in ZONE_DMA32,

arch/arm/boot/dts/broadcom/bcm2835-rpi.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@
2626
};
2727
};
2828

29+
&csi0 {
30+
clocks = <&clocks BCM2835_CLOCK_CAM0>,
31+
<&firmware_clocks 4>;
32+
clock-names = "lp", "vpu";
33+
power-domains = <&power RPI_POWER_DOMAIN_UNICAM0>;
34+
};
35+
36+
&csi1 {
37+
clocks = <&clocks BCM2835_CLOCK_CAM1>,
38+
<&firmware_clocks 4>;
39+
clock-names = "lp", "vpu";
40+
power-domains = <&power RPI_POWER_DOMAIN_UNICAM1>;
41+
};
42+
2943
&gpio {
3044
gpioout: gpioout {
3145
brcm,pins = <6>;

arch/arm/boot/dts/broadcom/bcm283x.dtsi

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,30 @@
454454
status = "disabled";
455455
};
456456

457+
csi0: csi@7e800000 {
458+
compatible = "brcm,bcm2835-unicam";
459+
reg = <0x7e800000 0x800>,
460+
<0x7e802000 0x4>;
461+
reg-names = "unicam", "cmi";
462+
interrupts = <2 6>;
463+
brcm,num-data-lanes = <2>;
464+
status = "disabled";
465+
port {
466+
};
467+
};
468+
469+
csi1: csi@7e801000 {
470+
compatible = "brcm,bcm2835-unicam";
471+
reg = <0x7e801000 0x800>,
472+
<0x7e802004 0x4>;
473+
reg-names = "unicam", "cmi";
474+
interrupts = <2 7>;
475+
brcm,num-data-lanes = <4>;
476+
status = "disabled";
477+
port {
478+
};
479+
};
480+
457481
i2c1: i2c@7e804000 {
458482
compatible = "brcm,bcm2835-i2c";
459483
reg = <0x7e804000 0x1000>;

0 commit comments

Comments
 (0)