Hi
I am working on RPI-CM5 to customize the CM5IO board.
I have few queries
1.as per documentations RPI-CM5 module has GPIO0-GPIO27 GPIO's with alternative function selection possibility
2.do we have any other GPIO's other than GPIO0-GPIO27, in datasheet some places referring GPIO38 and GPIO39 and saying that they related to I2C0- how can we define this in device tree?
ex: if I use I2C0 - from GPIO0 and GPIO1 pins I can define like below,
// Configure I2C0 controller
&rp1_i2c0 {
status = "okay";
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&rp1_i2c0_0_1>,
}
rp1_i2c0_0_1: rp1_i2c0_0_1 {
function = "i2c0";
pins = "gpio0", "gpio1";
drive-strength = <12>;
bias-pull-up;
};
So, if i need to do for i2c0 on the GPIO38 and GPIO39 pins, how can i assign pinctrl-0 configuration in that case,
because it details not available like i2c0 in rp1.dtsi,
same way if want to enable VBUS_EN Enable, how can i do that?
similar scenario if i need to do it for any gpio's > GPIO27 how can i do that?
whether in RPI-CM5 do we have GPIO's > GPIO27
please help me on this.
THanks
Shivaji Y
I am working on RPI-CM5 to customize the CM5IO board.
I have few queries
1.as per documentations RPI-CM5 module has GPIO0-GPIO27 GPIO's with alternative function selection possibility
2.do we have any other GPIO's other than GPIO0-GPIO27, in datasheet some places referring GPIO38 and GPIO39 and saying that they related to I2C0- how can we define this in device tree?
ex: if I use I2C0 - from GPIO0 and GPIO1 pins I can define like below,
// Configure I2C0 controller
&rp1_i2c0 {
status = "okay";
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&rp1_i2c0_0_1>,
}
rp1_i2c0_0_1: rp1_i2c0_0_1 {
function = "i2c0";
pins = "gpio0", "gpio1";
drive-strength = <12>;
bias-pull-up;
};
So, if i need to do for i2c0 on the GPIO38 and GPIO39 pins, how can i assign pinctrl-0 configuration in that case,
because it details not available like i2c0 in rp1.dtsi,
same way if want to enable VBUS_EN Enable, how can i do that?
similar scenario if i need to do it for any gpio's > GPIO27 how can i do that?
whether in RPI-CM5 do we have GPIO's > GPIO27
please help me on this.
THanks
Shivaji Y
Statistics: Posted by shivajiyannaboina — Fri Jul 11, 2025 10:46 am