Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I found many of the examples provided at hipstercircuits to be a bit overwhelming; especially if you're just looking to adjust the pins to mode 7. If anyone reading this is having the same issue, the following link may help: <a href="http://bbbadventures.blogspot.ca/2013/06/pinmuxing.html" rel="noreferrer">http://bbbadventures.blogspot.ca/2013/06/pinmuxing.html</a> It provides the most basic template.</p> <p>Should the link above break, here's the snippet provided (with a few tweaks for clarity):</p> <pre><code>/* * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ /dts-v1/; /plugin/; / { compatible = "ti,beaglebone", "ti,beaglebone-black"; /* identification */ part-number = "pinctrl-test-0"; fragment@0 { target = &lt;&amp;am33xx_pinmux&gt;; __overlay__ { pinctrl_test: pinctrl_test_0_pins { pinctrl-single,pins = &lt; 0x030 0x07 /* P8_12 OUTPUT | MODE7 */ 0x034 0x07 /* P8_11 OUTPUT | MODE7 */ /* Add more pins here */ &gt;; }; }; }; fragment@1 { target = &lt;&amp;ocp&gt;; __overlay__ { test_helper: helper { compatible = "bone-pinmux-helper"; pinctrl-names = "default"; pinctrl-0 = &lt;&amp;pinctrl_test&gt;; status = "okay"; }; }; }; }; </code></pre> <p>When adding more pins to the above snippet, you can use the following tables to identify which hex values match the pins:</p> <ul> <li><a href="https://github.com/derekmolloy/boneDeviceTree/blob/master/docs/BeagleboneBlackP8HeaderTable.pdf?raw=true" rel="noreferrer">https://github.com/derekmolloy/boneDeviceTree/blob/master/docs/BeagleboneBlackP8HeaderTable.pdf?raw=true</a></li> <li><a href="https://github.com/derekmolloy/boneDeviceTree/blob/master/docs/BeagleboneBlackP9HeaderTable.pdf?raw=true" rel="noreferrer">https://github.com/derekmolloy/boneDeviceTree/blob/master/docs/BeagleboneBlackP9HeaderTable.pdf?raw=true</a></li> </ul> <p>Each pin is set by appending an additional entry into pinctrl-single,pins. The format looks like this:</p> <p>[offset] [mode]</p> <p>Example: 0x030 0x07</p> <p>In the two tables linked above refer to the third column, entitled "ADDR/OFFSET", for the offset value.</p> <p>I hope this helps :)</p> <p>Edit: I should also mention that the answers provided by Martin and Don are both excellent should help cover the rest of the important details.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload