cyndent1992
Posts: 1
Joined: Wed Jun 27, 2018 2:11 am

Something about DTS of CM3

Thu Jun 28, 2018 11:04 am

I read about the doc of CM3 and confuse about GPIO.
All GPIO pins have at least two alternative functions within the SoC.
And I read the dts files find some functions are defined in it.
I also read about the doc on https://www.raspberrypi.org/documentati ... on/uart.md, the functions can be changed in config.txt on /boot. But if it not run raspbian. How can I change the functions use this way? Or just change dts file?
I find gpio is defined in
bcm2710-rpi-cm3.dts
.
gpclk1_gpio5: gpclk1_gpio5 {
brcm,pins = <5>;
brcm,function = <BCM2835_FSEL_ALT0>;
};
gpclk1_gpio42: gpclk1_gpio42 {
brcm,pins = <42>;
brcm,function = <BCM2835_FSEL_ALT0>;
};
gpclk1_gpio44: gpclk1_gpio44 {
brcm,pins = <44>;
brcm,function = <BCM2835_FSEL_ALT0>;
};
gpclk2_gpio6: gpclk2_gpio6 {
brcm,pins = <6>;
brcm,function = <BCM2835_FSEL_ALT0>;
};
gpclk2_gpio43: gpclk2_gpio43 {
brcm,pins = <43>;
brcm,function = <BCM2835_FSEL_ALT0>;
};
Then I can change the function by change ALT number?

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1770
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Something about DTS of CM3

Thu Jun 28, 2018 12:19 pm

Have you seen the new "gpio" config.txt settings? It is described here: viewtopic.php?f=117&t=208748

Return to “Compute Module”

Who is online

Users browsing this forum: No registered users and 3 guests