Skip to content

Commit

Permalink
dt: Hack around CFE and I2C devices
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Stevenson <[email protected]>
  • Loading branch information
6by9 committed Nov 8, 2024
1 parent 4bfc571 commit ab2d06d
Showing 1 changed file with 64 additions and 2 deletions.
66 changes: 64 additions & 2 deletions arch/arm64/boot/dts/broadcom/rp1.dtso
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,20 @@
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>,
<1 IRQ_TYPE_LEVEL_HIGH>,
<2 IRQ_TYPE_LEVEL_HIGH>;

rp1_i2c6_38_39: rp1_i2c6_38_39 {
function = "i2c6";
pins = "gpio38", "gpio39";
drive-strength = <12>;
bias-pull-up;
};

rp1_i2c4_40_41: rp1_i2c4_40_41 {
function = "i2c4";
pins = "gpio40", "gpio41";
drive-strength = <12>;
bias-pull-up;
};
};

rp1_uart0: serial@c040030000 {
Expand Down Expand Up @@ -334,7 +348,11 @@
clocks = <&rp1_clocks RP1_CLK_SYS>;
i2c-scl-rising-time-ns = <65>;
i2c-scl-falling-time-ns = <100>;
status = "disabled";

pinctrl-0 = <&rp1_i2c4_40_41>;
pinctrl-names = "default";
clock-frequency = <100000>;
symlink = "i2c-4";
};

rp1_i2c5: i2c@c040084000 {
Expand All @@ -354,7 +372,11 @@
clocks = <&rp1_clocks RP1_CLK_SYS>;
i2c-scl-rising-time-ns = <65>;
i2c-scl-falling-time-ns = <100>;
status = "disabled";

pinctrl-0 = <&rp1_i2c6_38_39>;
pinctrl-names = "default";
clock-frequency = <100000>;
symlink = "i2c-6";
};

rp1_pwm0: pwm@c040098000 {
Expand Down Expand Up @@ -494,6 +516,46 @@
snps,priority = <0 1 2 3 4 5 6 7>;
snps,axi-max-burst-len = <4>;
};

rp1_csi0: csi@c040110000 {
compatible = "raspberrypi,rp1-cfe";
reg = <0xc0 0x40110000 0x0 0x100>, // CSI2 DMA address
<0xc0 0x40114000 0x0 0x100>, // PHY/CSI Host address
<0xc0 0x40120000 0x0 0x100>, // MIPI CFG address
<0xc0 0x40124000 0x0 0x1000>; // PiSP FE address

// interrupts must match rp1_pisp_fe setup
interrupts = <RP1_INT_MIPI0 IRQ_TYPE_LEVEL_HIGH>;

clocks = <&rp1_clocks RP1_CLK_MIPI0_CFG>;
assigned-clocks = <&rp1_clocks RP1_CLK_MIPI0_CFG>;
assigned-clock-rates = <25000000>;

#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};

rp1_csi1: csi@c040128000 {
compatible = "raspberrypi,rp1-cfe";
reg = <0xc0 0x40128000 0x0 0x100>, // CSI2 DMA address
<0xc0 0x4012c000 0x0 0x100>, // PHY/CSI Host address
<0xc0 0x40138000 0x0 0x100>, // MIPI CFG address
<0xc0 0x4013c000 0x0 0x1000>; // PiSP FE address

// interrupts must match rp1_pisp_fe setup
interrupts = <RP1_INT_MIPI1 IRQ_TYPE_LEVEL_HIGH>;

clocks = <&rp1_clocks RP1_CLK_MIPI1_CFG>;
assigned-clocks = <&rp1_clocks RP1_CLK_MIPI1_CFG>;
assigned-clock-rates = <25000000>;

#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};


};
};
};
Expand Down

0 comments on commit ab2d06d

Please sign in to comment.