cdsteinkuehler / beaglebone-universal-io

Device tree overlay and support scripts for using most available hardware I/O on the BeagleBone without editing dts files or rebuilding the kernel
GNU General Public License v2.0
128 stars 54 forks source link

Beaglebone Black pad control for P9_24 and P9_26 with pruin setting #53

Open DrChad opened 6 years ago

DrChad commented 6 years ago

On the Beaglebone Black Rev C, debian 9.3, 4.4.68-ti-r110, the device tree sources /opt/source/bb.org-overlays/src/arm/cape_universal-00A0.dts show that when P9_24 and P9_26 are set up as pruin, the pad control should be: P9_24_pruin_pin: pinmux_P9_24_pruin_pin { pinctrl-single,pins = <0x184 0x36>; }; / Mode 6, Pull-Up, RxActive / and P9_26_pruin_pin: pinmux_P9_26_pruin_pin { pinctrl-single,pins = <0x180 0x36>; }; / Mode 6, Pull-Up, RxActive */ The command line: "config-pin p9.24 pruin && config-pin -q p9.24" shows "P9_24 Mode: pruin" however, the command "grep 984 pins" shows "pin 97 (44e10984.0) 00000026 pinctrl-single" this should be 36 rather than 26 i.e. it shows pull-down rather than pull-up. The results are similar for p9.26. Decompiling the corresponding dtbo(s), show that the 26 is the correct(?) value. Either the dts or dtb(s) should be modified to bring them into sync. My preference, fwiw, is the pull-up configuration to give two pruin pins a pullup input rather than all pull-downs.