From: tim@krieglstein.org (Tim Sander)
To: linux-arm-kernel@lists.infradead.org
Subject: devicetree pinmuxing on beaglebone
Date: Sat, 13 Apr 2013 01:28:17 +0200 [thread overview]
Message-ID: <201304130128.17892.tim@krieglstein.org> (raw)
Hi
I have a patched kernel with devicetree support. The kernel version i got
running was 3.8.4. Unfortunatly with loads of patches.
After searching hours* for the right settings for pinmux in devicetree
i came up with the following fragment which i tried to drop into the end of
am335x-bone.dts:
/ {
fragment at 0 {
target = <&am33xx_pinmux>;
__overlay__ {
wind_pins:pinctrl-single,pins = <
0x000 0x27 /* gpmc_ad0 = ad0 = P8-25 = gpio1_0|input, no
pullup, gpio mux */
0x004 0x27 /* gpmc_ad1 = ad1 = P8-24 = gpio1_1|input, no
pullup, gpio mux */
0x008 0x27 /* gpmc_ad2 = ad2 = P8-5 = gpio1_2|input, no pullup,
gpio mux */
0x00c 0x27 /* gpmc_ad3 = ad3 = P8-6 = gpio1_3|input, no pullup,
gpio mux */
0x020 0x27 /* gpmc_ad8 = ehrpwm2A = P8_19 = gpio0 22|input, no
pullup, gpio mux */
>;
};
};
};
I am not sure if the offsets/values are correct (see below) but the dtc
compiled without error. But i don't think it does any value checking?
But booting this thing i could not see any changes in the debugfs
representation of the pinmux driver. Any ideas why these pinmux changes don't
change up?
Thanks
Tim
*First the pinmux is not described in the kernel documentation for the
beaglebone. It took me quite a while to figure out that there was an magic
offset to of 0x800 to the first value. This was caused by a stupid
documentation for the am3359 chip reference where page 811 (9.3.50) only
states all functions for all mux register and refers to Table 9-10. This table
contains the offset but the names are not very descriptive and the register
description is empty ("?$%*!). But it says to look at the device datasheet.
The device datasheet then says nothing about muxing but refers to a s******
windows tool. Please fixup the documentation TI.
reply other threads:[~2013-04-12 23:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201304130128.17892.tim@krieglstein.org \
--to=tim@krieglstein.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.