Hello,
At work an electrical engineer wants to use the beaglebone black. He uses a dts overlay. I pointed him to FreeBSD and he likes the idea using that. My question is: How do I handle the overlay in FreeBSD. If I am correct the overlay handling is not the same as in Linux.
Do I have to insert the overlay somewhere (pinmux@800 section ?) inside the am335x-boneblack.dts file? Can someone point me to documentation about it or explain how to do it?
I am using FreeBSD 12.0-CURRENT r319859
This is the ovelay:
At work an electrical engineer wants to use the beaglebone black. He uses a dts overlay. I pointed him to FreeBSD and he likes the idea using that. My question is: How do I handle the overlay in FreeBSD. If I am correct the overlay handling is not the same as in Linux.
Do I have to insert the overlay somewhere (pinmux@800 section ?) inside the am335x-boneblack.dts file? Can someone point me to documentation about it or explain how to do it?
I am using FreeBSD 12.0-CURRENT r319859
This is the ovelay:
Code:
/dts-v1/;
/plugin/;
/{
compatible = "ti,beaglebone", "ti,beaglebone-black";
part_number = "BB_ITS";
version = "00A0";
exclusive-use =
"P9.23", /* A0 */
"P9.14", /* A1 */
"P9.15", /* A2 */
"P9.16", /* A3 */
"P9.17", /* SPI0_CS */
"P9.18", /* SPI0_DI */
"P9.21", /* SPI0_DO */
"P9.22", /* SPI0_CLK */
"P9.13",
"P9.24",
"P9.26";
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
bb_its: pinmux_bb_its {
pinctrl-single,pins = <
0x074 0x27
0x048 0x27
0x040 0x27
0x04c 0x27
0x15c 0x27 /* pin nummer tabel Beaglebone Black P9 Header, 0x17 : 00 = fast, 0 = output, 1 = pullup, 0 = pullup enabled, 111 = mode 7 (GPIO) */
0x158 0x27
0x154 0x27
0x150 0x27
0x044 0x27
0x184 0x27
0x180 0x27
>;
};
};
};
fragment@1 {
target = <&ocp>;
__overlay__ {
bb_its_pinmux {
compatible = "bone-pinmux-helper";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&bb_its>;
};
};
};
fragment@2{
target = <&pruss>;
__overlay__ {
status = "okay";
};
};
};