Re: BeagleBone Black and GPIO issues

Brook Milligan <[email protected]>
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <[email protected]>
> On Oct 13, 2024, at 9:52 PM, Lloyd Parkes <[email protected]> wrote:
> 
> I suspect there hasn't been a sufficient confluence of FDT pinctrl
> understanding and BBB hardware to make this happen. Neither should be
> super difficult, but we need both. Also, TI's documentation doesn't
> help with it's barking made register names.

I agree, the names are needlessly complicated.

I have, however, found this driver

	https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/

which seems to be what is needed.  I think it might match the following in sys/external/gpl2/dts/dist/arch/arm/boot/dts/am33xx-l4.dtsi:

scm: scm@0 {
	compatible = "ti,am3-scm", "simple-bus";
	reg = <0x0 0x2000>;
	#address-cells = <1>;
	#size-cells = <1>;
	#pinctrl-cells = <1>;
	ranges = <0 0 0x2000>;

	am33xx_pinmux: pinmux@800 {
		compatible = "pinctrl-single";
		reg = <0x800 0x238>;
		#pinctrl-cells = <2>;
		pinctrl-single,register-width = <32>;
		pinctrl-single,function-mask = <0x7f>;
	};

That block starts (@0) at 0x44e10000 and the 0x800 offset is the GPIO control registers.

Does this look right?

Cheers,
Brook
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.