I’m just a newbie. Where I do add these, or check that it’s there?
eQEP0
My BBB only has P9_42, P9_41 pins, not P9_42B, P9_41B. So, skip.
eQEP1
I assume it’s using PWM1. But, I’m already using PWM1 with the following entries in /boot/uEnv.txt:
enable_uboot_overlays=1
uboot_overlay_addr4=BB-EHRPWM1-P9_14-P9_16.dtbo
disable_uboot_overlay_video=1
disable_uboot_overlay_audio=1
I assume, I would need eqep1.dtsi, similar to eqep2.dtsi. Okay, I can copy and edit.
Question:
What does /boot/uEnv.txt look like?
uboot_overlay_addr4=BB-EHRPWM1-P9_14-P9_16.dtbo
uboot_overlay_addr5=eqep1.dtbo
or just
uboot_overlay_addr4=eqep1.dtbo
eQEP2
This is what eqep2.dtsi configures, I think. It already mentions pins P8_12, P8_11, P8_16, P8_15 in “mode4” (I think).
USES_PIN( P8_12 );
USES_PIN( P8_11 );
USES_PIN( P8_16 );
USES_PIN( P8_15 );
...
&am33xx_pinmux {
eqep2_pins: eqep2 {
pinctrl-single,pins = <
PIN_PULLDN( P8_12, 4 ) // A
PIN_PULLDN( P8_11, 4 ) // B
PIN_PULLDN( P8_16, 4 ) // index
PIN_PULLDN( P8_15, 4 ) // strobe
>;
};
};
Question:
What does my /boot/uEnv.txt look like?
enable_uboot_overlays=1
uboot_overlay_addr4=BB-EHRPWM1-P9_14-P9_16.dtbo
uboot_overlay_addr5=BB-EHRPWM2-P8_13-P8_19.dtbo
uboot_overlay_addr6=eqep2.dtbo
disable_uboot_overlay_video=1
disable_uboot_overlay_audio=1
which loads PWM2 for eQEP2 to use?
Or, just eqep2.dtbo by itself, where I’m assuming eQEP2 will be using PWM2 internally? (I think, this is more correct way).
enable_uboot_overlays=1
uboot_overlay_addr4=BB-EHRPWM1-P9_14-P9_16.dtbo
uboot_overlay_addr5=eqep2.dtbo
disable_uboot_overlay_video=1
disable_uboot_overlay_audio=1
NOTE: I’m a newbie, just a member from general public. Device Tree and Firmware are not my area.