Date: Wed, 8 Aug 2018 19:42:59 -0300 From: "Dr. Rolf Jansen" <rj@obsigna.com> To: Ian Lepore <ian@freebsd.org> Cc: freebsd-arm@FreeBSD.org Subject: Re: Where are the DTS sources within HEAD Message-ID: <FFF95A1C-23DF-4FB1-B0CE-4DFAF5630E23@obsigna.com> In-Reply-To: <1533753801.9860.101.camel@freebsd.org> References: <9F663B28-C76A-452E-87FA-58C3BD5C294F@obsigna.com> <1533753801.9860.101.camel@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> Am 08.08.2018 um 15:43 schrieb Ian Lepore <ian@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: >>=20 >> https://svnweb.freebsd.org/base/release/11.2.0/sys/boot/fdt/dts/arm/b >> eaglebone-black.dts?revision=3D335563&view=3Dmarkup >>=20 >> &am33xx_pinmux { >> 34 i2c1_pins: pinmux_i2c1_pins { >> 35 pinctrl-single,pins =3D < >> 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 }; >>=20 >=20 > 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/pinct= rl/omap.h?view=3Dco. = https://svnweb.freebsd.org/base/head/sys/gnu/dts/include/dt-bindings/pinct= rl/am33xx.h?view=3Dco 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 > =3D <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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FFF95A1C-23DF-4FB1-B0CE-4DFAF5630E23>