Where are the DTS sources within HEAD
Dr. Rolf Jansen
rj at obsigna.com
Wed Aug 8 22:43:07 UTC 2018
> Am 08.08.2018 um 15:43 schrieb Ian Lepore <ian at freebsd.org>:
> On Wed, 2018-08-08 at 15:35 -0300, Dr. Rolf Jansen wrote:
>> ...
>> while it is easy to find the DTS sources for any of the 9.x, 10.x and
>> 11.x truncs, I cannot seem to find any relevant DTS source for the
>> BeagleBone Black within HEAD. The old DTS files used named constants
>> and had some helpful comments, for example:
>>
>> https://svnweb.freebsd.org/base/release/11.2.0/sys/boot/fdt/dts/arm/b
>> eaglebone-black.dts?revision=335563&view=markup
>>
>> &am33xx_pinmux {
>> 34 i2c1_pins: pinmux_i2c1_pins {
>> 35 pinctrl-single,pins = <
>> 36 AM33XX_IOPAD(0x958,
>> PIN_INPUT_PULLUP | MUX_MODE2) /* spi0_d1.i2c1_sda */
>> 37 AM33XX_IOPAD(0x95c,
>> PIN_INPUT_PULLUP | MUX_MODE2) /* spi0_cs0.i2c1_scl */
>> 38 >;
>> 39 };
>>
>
> We now use the official public dts sources which come from the vendors.
> The files are in src/sys/gnu/dts/arm and the beaglebone files are all
> named am335x-bone*
OK, I found it, thank you very much.
Of special help was:
https://svnweb.freebsd.org/base/head/sys/gnu/dts/include/dt-bindings/pinctrl/omap.h?view=co.
https://svnweb.freebsd.org/base/head/sys/gnu/dts/include/dt-bindings/pinctrl/am33xx.h?view=co
And according to these headers, the following:
<
AM33XX_IOPAD(0x958, PIN_INPUT_PULLUP | MUX_MODE2)
AM33XX_IOPAD(0x95c, PIN_INPUT_PULLUP | MUX_MODE2)
>
translates to:
<
0x958-0x800, (1 << 5)|(1 << 4) | 2
0x95c-0x800, (1 << 5)|(1 << 4) | 2
>
= <0x158 0x32 0x15c 0x32>
In addition, https://github.com/jadonk/bonescript/blob/master/src/bone.js#L1408 and #L1430 show that MUX_MODE2 is the correct choice. That means, in my I2C1 overlay, I got the addresses and modes right.
Anyway, still no luck.
Best regards
Rolf
More information about the freebsd-arm
mailing list