overlays are the best permanent solution On 10/12/2017 6:30 AM, Jose Valenzuela San Juan wrote: > What I do is enable them using config-pin like so (pins p9-17 & p9-18 > in the example): > | > sudo config-pin p9-17i2c > sudo config-pin p9-18i2c > | > by default those are configured as gpio. This settings are lost when > you restart, but you can autoexecute those commands every boot. > > You can see how are configured (or check if the previos command > worked) with the -q option: > | > config-pin -q p9-17 > | > > > list available modes with -l: > | > config-pin -l p9-17 > | > > > or get detailed info with -i: > | > config-pin -i p9-17 > | > > > That's what i am using for the moment, but I like to also know for a > more > correct/goodpractice/efficient/permanent/lowlevel/before-boot/devicetree/uboot > way of setting those parameters. > > Other thing: the latest images were updated check > https://beagleboard.org/latest-images. > Also there are monthly and weekly releases: https://rcn-ee.net > You most probably need to update u-boot to go from > bone-debian-8.7-lxqt-4gb-armhf-2017-03-19-4gb.img to the latest. > > Regards, > > On Thursday, October 12, 2017 at 9:07:06 AM UTC-3, sajeevan k wrote: > > Hi all, > > I would like to use both I2C1 and I2C2 which are available in > Beaglebone Black P9 connector. I could make I2C2 working. But so > far I couldn't make I2C1 working. > > In /boot/uEnv.txt, I have not commented the line > cmdline=coherent_pool=1M net.ifnames=0 quiet cape_universal=enable > > That means Universal cap is active. > > So I cannot use the command > > echo BB-I2C1 > /sys/devices/platform/bone_capemgr/slots > > > for enabling I2C1. > > > I would like to make Universal Cape enabled, other wise I will not > be able to make the P9_14 and P9_16 as PWMs. > > > > So my question is, is there anyway to enable I2C1, while Universal > Cap is enabled? > > > I am using the latest debian image - > bone-debian-8.7-lxqt-4gb-armhf-2017-03-19-4gb.img and BBB Rev C. > > > > I have examined the am335x-boneblack.dts file (got from coverting > /boot/dtbs/4.4.54-ti-r93/am335x-boneblack.dtb). > > > In this .dts file i2c1 portion is as shown below. > > > > i2c@4802a000 { > compatible = "ti,omap4-i2c"; > #address-cells = <0x1>; > #size-cells = <0x0>; > ti,hwmods = "i2c2"; > reg = <0x4802a000 0x1000>; > interrupts = <0x47>; > status = "disabled"; > linux,phandle = <0xa0>; > phandle = <0xa0>; > }; > > > pinmux_i2c2_pins { > > pinctrl-single,pins = <0x178 0x33 0x17c 0x33>; > linux,phandle = > <0x35>; > phandle = <0x35>; > }; > > > I modified it as below. > > > > > i2c@4802a000 { > compatible = "ti,omap4-i2c"; > #address-cells = <0x1>; > #size-cells = <0x0>; > ti,hwmods = "i2c2"; > reg = <0x4802a000 0x1000>; > interrupts = <0x47>; > status = "okay"; > pinctrl-names = "default"; > pinctrl-0 = <0x35>; > clock-frequency = <0x61a80>; > linux,phandle = <0xa0>; > phandle = <0xa0>; > }; > > > pinmux_i2c2_pins { > > pinctrl-single,pins = <0x178 0x33 0x17c 0x33>; > linux,phandle = > <0x35>; > phandle = <0x35>; > }; > > > But still I2C1 is not working. Is my procedure right? Am I missing > something? > > > > > Expecting Your fast reply. > > Thanks in advance for the help. > > > > Thanks & Regards, > Sajeevan.K > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google > Groups "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beagleboard/d6db1d3e-9b68-4f8c-b88d-ba805e94ab2c%40googlegroups.com > <https://groups.google.com/d/msgid/beagleboard/d6db1d3e-9b68-4f8c-b88d-ba805e94ab2c%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout.
-- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/6a51f6ff-76f1-6835-7f8f-607db04f0ac4%40gmail.com. For more options, visit https://groups.google.com/d/optout.
