From: Tony Lindgren <tony@atomide.com> Date: 2016-06-02 17:39:39
* Robert Nelson [off-list ref] [160602 10:39]:
On Thu, Jun 2, 2016 at 2:41 AM, Yong Li [off-list ref] wrote:
quoted
From: Yong Li <redacted>
Without this patch, I2C-1 is missing on beaglebone black boards
Signed-off-by: Yong Li <redacted>
---
arch/arm/boot/dts/am335x-boneblack.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)
This is also 'common' for the white/green, if your really going to push
this, please add it to:
am335x-bone-common.dtsi
But isn't this exposed on the cape pins? So the use can be
whatever for these pins?
Tony
From: Robert Nelson <hidden> Date: 2016-06-02 17:46:33
On Thu, Jun 2, 2016 at 12:39 PM, Tony Lindgren [off-list ref] wrote:
* Robert Nelson [off-list ref] [160602 10:39]:
quoted
On Thu, Jun 2, 2016 at 2:41 AM, Yong Li [off-list ref] wrote:
quoted
From: Yong Li <redacted>
Without this patch, I2C-1 is missing on beaglebone black boards
Signed-off-by: Yong Li <redacted>
---
arch/arm/boot/dts/am335x-boneblack.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)
This is also 'common' for the white/green, if your really going to push
this, please add it to:
am335x-bone-common.dtsi
But isn't this exposed on the cape pins? So the use can be
whatever for these pins?
That is correct, "i2c1" is on the cape connector, with no primary
function defined.
Currently on mainline, the board and cape eeprom i2c bus's are enabled.
i2c0 = board eeprom
i2c2 = 'cape' eeprom
personally, nak by me to add i2c1 by default, should use overlay's to enable it.
Regards,
--
Robert Nelson
https://rcn-ee.com/
From: Tony Lindgren <tony@atomide.com> Date: 2016-06-02 17:56:41
* Robert Nelson [off-list ref] [160602 10:48]:
On Thu, Jun 2, 2016 at 12:39 PM, Tony Lindgren [off-list ref] wrote:
quoted
* Robert Nelson [off-list ref] [160602 10:39]:
quoted
On Thu, Jun 2, 2016 at 2:41 AM, Yong Li [off-list ref] wrote:
quoted
From: Yong Li <redacted>
Without this patch, I2C-1 is missing on beaglebone black boards
Signed-off-by: Yong Li <redacted>
---
arch/arm/boot/dts/am335x-boneblack.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)
This is also 'common' for the white/green, if your really going to push
this, please add it to:
am335x-bone-common.dtsi
But isn't this exposed on the cape pins? So the use can be
whatever for these pins?
That is correct, "i2c1" is on the cape connector, with no primary
function defined.
Currently on mainline, the board and cape eeprom i2c bus's are enabled.
i2c0 = board eeprom
i2c2 = 'cape' eeprom
personally, nak by me to add i2c1 by default, should use overlay's to enable it.
Yes sounds like the best we can do is define it but set it with
status = "disabled" for now.
Regards,
Tony
From: Li, Yong B <hidden> Date: 2016-06-03 05:46:56
Hi Tony,
I can submit a V2 version about the "disabled", or just drop this patch?
Thanks,
Yong
-----Original Message-----
From: Tony Lindgren [mailto:tony at atomide.com]
Sent: Friday, June 3, 2016 1:57 AM
To: Robert Nelson <redacted>
Cc: Li, Yong B <redacted>; Benoit Cousson <redacted>; Rob Herring <robh+dt@kernel.org>; Pawel Moll <redacted>; Mark Rutland <mark.rutland@arm.com>; Ian Campbell <redacted>; Kumar Gala <redacted>; Russell King <redacted>; linux-omap at vger.kernel.org; devicetree <redacted>; linux-arm-kernel at lists.infradead.org; linux kernel <redacted>; sdliyong at gmail.com
Subject: Re: [PATCH] ARM: dts: am335x-boneblack: add i2c1 DT entry
* Robert Nelson [off-list ref] [160602 10:48]:
On Thu, Jun 2, 2016 at 12:39 PM, Tony Lindgren [off-list ref] wrote:
quoted
* Robert Nelson [off-list ref] [160602 10:39]:
quoted
On Thu, Jun 2, 2016 at 2:41 AM, Yong Li [off-list ref] wrote:
quoted
From: Yong Li <redacted>
Without this patch, I2C-1 is missing on beaglebone black boards
Signed-off-by: Yong Li <redacted>
---
arch/arm/boot/dts/am335x-boneblack.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)
This is also 'common' for the white/green, if your really going to
push this, please add it to:
am335x-bone-common.dtsi
But isn't this exposed on the cape pins? So the use can be whatever
for these pins?
That is correct, "i2c1" is on the cape connector, with no primary
function defined.
Currently on mainline, the board and cape eeprom i2c bus's are enabled.
i2c0 = board eeprom
i2c2 = 'cape' eeprom
personally, nak by me to add i2c1 by default, should use overlay's to enable it.
Yes sounds like the best we can do is define it but set it with status = "disabled" for now.
Regards,
Tony
From: Tony Lindgren <tony@atomide.com> Date: 2016-06-07 06:00:13
* Li, Yong B [off-list ref] [160602 22:49]:
Hi Tony,
I can submit a V2 version about the "disabled", or just drop this patch?
Probably best to wait on this one until we know how it can be
enabled without manually editing the dts file. I'm still hoping
u-boot could enable it based on some environment variable..
Regards,
Tony
From: Li, Yong B <hidden> Date: 2016-06-07 06:14:38
Thanks Tony.
I checked the DTS/overlays using linux-yocto-4.1 kernel(Ostro OS). It seems to me that the kernel/u-boot do not include the latest overlay support patch. And I also tested the latest Debian 8.4 using BBB boards, the I2C1 does not work too. This patch is the simplest solution for I2C1/I2C2 in linux-yocto-4.1.
Thanks,
Yong
-----Original Message-----
From: Tony Lindgren [mailto:tony at atomide.com]
Sent: Tuesday, June 7, 2016 2:00 PM
To: Li, Yong B <redacted>
Cc: Robert Nelson <redacted>; Benoit Cousson <redacted>; Rob Herring <robh+dt@kernel.org>; Pawel Moll <redacted>; Mark Rutland <mark.rutland@arm.com>; Ian Campbell <redacted>; Kumar Gala <redacted>; Russell King <redacted>; linux-omap at vger.kernel.org; devicetree <redacted>; linux-arm-kernel at lists.infradead.org; linux kernel <redacted>; sdliyong at gmail.com
Subject: Re: [PATCH] ARM: dts: am335x-boneblack: add i2c1 DT entry
* Li, Yong B [off-list ref] [160602 22:49]:
Hi Tony,
I can submit a V2 version about the "disabled", or just drop this patch?
Probably best to wait on this one until we know how it can be enabled without manually editing the dts file. I'm still hoping u-boot could enable it based on some environment variable..
Regards,
Tony
From: Robert Nelson <hidden> Date: 2016-06-07 17:15:30
On Tue, Jun 7, 2016 at 1:14 AM, Li, Yong B [off-list ref] wrote:
Thanks Tony.
I checked the DTS/overlays using linux-yocto-4.1 kernel(Ostro OS). It seems to me that the kernel/u-boot do not include the latest overlay support patch. And I also tested the latest Debian 8.4 using BBB boards, the I2C1 does not work too. This patch is the simplest solution for I2C1/I2C2 in linux-yocto-4.1.
ps, your patch is also broken, you didn't even mux the pins, so i2c1
doesn't work for you anyways. ;)
pinctrl-0 = <&i2c2_pins>; -> pinctrl-0 = <&i2c1_pins>;
Option 1:
With the latest BBB image's, we utilize "cape_universal", thus you can
enable I2C1 via:
root at beaglebone:~# config-pin -l P9.17
default gpio gpio_pu gpio_pd spi i2c pwm
root at beaglebone:~# config-pin -l P9.18
default gpio gpio_pu gpio_pd spi i2c pwm
root at beaglebone:~# config-pin P9.17 i2c
root at beaglebone:~# config-pin P9.18 i2c
Option 2, for the BB-I2C1 overlay:
add
cape_enable=bone_capemgr.enable_partno=BB-I2C1
Option 3, wait for Pantelis's solution... ;)
http://comments.gmane.org/gmane.linux.kernel/2234662
Regards,
--
Robert Nelson
https://rcn-ee.com/
From: Li, Yong B <hidden> Date: 2016-06-08 07:11:21
Thanks Robert!
-----Original Message-----
From: Robert Nelson [mailto:robertcnelson at gmail.com]
Sent: Wednesday, June 8, 2016 1:15 AM
To: Li, Yong B <redacted>
Cc: Tony Lindgren <tony@atomide.com>; Benoit Cousson <redacted>; Rob Herring <robh+dt@kernel.org>; Pawel Moll <redacted>; Mark Rutland <mark.rutland@arm.com>; Ian Campbell <redacted>; Kumar Gala <redacted>; Russell King <redacted>; linux-omap at vger.kernel.org; devicetree <redacted>; linux-arm-kernel at lists.infradead.org; linux kernel <redacted>; sdliyong at gmail.com; Pantelis Antoniou <redacted>
Subject: Re: [PATCH] ARM: dts: am335x-boneblack: add i2c1 DT entry
On Tue, Jun 7, 2016 at 1:14 AM, Li, Yong B [off-list ref] wrote:
Thanks Tony.
I checked the DTS/overlays using linux-yocto-4.1 kernel(Ostro OS). It seems to me that the kernel/u-boot do not include the latest overlay support patch. And I also tested the latest Debian 8.4 using BBB boards, the I2C1 does not work too. This patch is the simplest solution for I2C1/I2C2 in linux-yocto-4.1.
ps, your patch is also broken, you didn't even mux the pins, so i2c1 doesn't work for you anyways. ;)
pinctrl-0 = <&i2c2_pins>; -> pinctrl-0 = <&i2c1_pins>;
Option 1:
With the latest BBB image's, we utilize "cape_universal", thus you can enable I2C1 via:
root at beaglebone:~# config-pin -l P9.17
default gpio gpio_pu gpio_pd spi i2c pwm
root at beaglebone:~# config-pin -l P9.18
default gpio gpio_pu gpio_pd spi i2c pwm
root at beaglebone:~# config-pin P9.17 i2c
root at beaglebone:~# config-pin P9.18 i2c
Option 2, for the BB-I2C1 overlay:
add
cape_enable=bone_capemgr.enable_partno=BB-I2C1
Option 3, wait for Pantelis's solution... ;)
http://comments.gmane.org/gmane.linux.kernel/2234662
Regards,
--
Robert Nelson
https://rcn-ee.com/