* [PATCH] ARM: dts: bcm2835-rpi: Avoid conflicts on i2c0 @ 2017-11-15 20:57 Stefan Wahren [not found] ` <1510779424-642-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Stefan Wahren @ 2017-11-15 20:57 UTC (permalink / raw) To: Eric Anholt, Rob Herring, Mark Rutland Cc: Florian Fainelli, Scott Branden, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, pbrobinson-Re5JQEeQqe8AvxtiuMwx3w, Stefan Wahren The GPU firmware of the Raspberry Pi 3 uses i2c0 to communicate to the FXL6408 gpio expander. It's a bad idea to use the same interface from the ARM side. Since this interface isn't used by the other RPi boards, it's save to remove the complete node and avoid this conflict. Signed-off-by: Stefan Wahren <stefan.wahren-eS4NqCHxEME@public.gmane.org> Fixes: 9d56c22a7861 ("ARM: bcm2835: Add devicetree for the Raspberry Pi 3.") --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi index e36c392..995d17b 100644 --- a/arch/arm/boot/dts/bcm2835-rpi.dtsi +++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi @@ -44,13 +44,6 @@ }; }; -&i2c0 { - pinctrl-names = "default"; - pinctrl-0 = <&i2c0_gpio0>; - status = "okay"; - clock-frequency = <100000>; -}; - &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&i2c1_gpio2>; -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 4+ messages in thread
[parent not found: <1510779424-642-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>]
* Re: [PATCH] ARM: dts: bcm2835-rpi: Avoid conflicts on i2c0 [not found] ` <1510779424-642-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org> @ 2017-11-16 20:34 ` Eric Anholt 2017-11-17 18:30 ` Dave Stevenson 0 siblings, 1 reply; 4+ messages in thread From: Eric Anholt @ 2017-11-16 20:34 UTC (permalink / raw) To: Rob Herring, Mark Rutland Cc: Florian Fainelli, Scott Branden, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, pbrobinson-Re5JQEeQqe8AvxtiuMwx3w, Stefan Wahren [-- Attachment #1: Type: text/plain, Size: 554 bytes --] Stefan Wahren <stefan.wahren-eS4NqCHxEME@public.gmane.org> writes: > The GPU firmware of the Raspberry Pi 3 uses i2c0 to communicate to > the FXL6408 gpio expander. It's a bad idea to use the same interface > from the ARM side. Since this interface isn't used by the other > RPi boards, it's save to remove the complete node and avoid this > conflict. It's not used by other kernel drivers currently, but should we leave it in for the pi0/1/2 folks that might have userspace I2C stuff using it? That's a thing people do, right? I actually don't know. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 832 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ARM: dts: bcm2835-rpi: Avoid conflicts on i2c0 2017-11-16 20:34 ` Eric Anholt @ 2017-11-17 18:30 ` Dave Stevenson 2017-11-17 19:51 ` Phil Elwell 0 siblings, 1 reply; 4+ messages in thread From: Dave Stevenson @ 2017-11-17 18:30 UTC (permalink / raw) To: Eric Anholt Cc: Stefan Wahren, Mark Rutland, Scott Branden, devicetree, Rob Herring, linux-rpi-kernel, linux-arm-kernel On 16 November 2017 at 20:34, Eric Anholt <eric@anholt.net> wrote: > Stefan Wahren <stefan.wahren@i2se.com> writes: > >> The GPU firmware of the Raspberry Pi 3 uses i2c0 to communicate to >> the FXL6408 gpio expander. It's a bad idea to use the same interface >> from the ARM side. Since this interface isn't used by the other >> RPi boards, it's save to remove the complete node and avoid this >> conflict. > > It's not used by other kernel drivers currently, but should we leave it > in for the pi0/1/2 folks that might have userspace I2C stuff using it? > That's a thing people do, right? I actually don't know. The firmware hasn't used BSC0 for the GPIO expander since the end of January. It now bit bashes it. Sorry if that information hadn't filtered through. I've got a patch I was about to send to rpi-linux for comment which sets up the i2c-mux-pinctrl driver on BSC0 so that it can be used either on GPIOs 0&1, or the GPIOs connected to the DSI and CSI connectors (I want it to talk to the camera module, and I guess Eric won't complain for talking to the DSI display). I'll aim to sort it on Monday. Dave ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ARM: dts: bcm2835-rpi: Avoid conflicts on i2c0 2017-11-17 18:30 ` Dave Stevenson @ 2017-11-17 19:51 ` Phil Elwell 0 siblings, 0 replies; 4+ messages in thread From: Phil Elwell @ 2017-11-17 19:51 UTC (permalink / raw) To: Dave Stevenson, Eric Anholt Cc: Mark Rutland, devicetree, Scott Branden, Rob Herring, linux-rpi-kernel, linux-arm-kernel On 17/11/2017 18:30, Dave Stevenson wrote: > On 16 November 2017 at 20:34, Eric Anholt <eric@anholt.net> wrote: >> Stefan Wahren <stefan.wahren@i2se.com> writes: >> >>> The GPU firmware of the Raspberry Pi 3 uses i2c0 to communicate to >>> the FXL6408 gpio expander. It's a bad idea to use the same interface >>> from the ARM side. Since this interface isn't used by the other >>> RPi boards, it's save to remove the complete node and avoid this >>> conflict. >> >> It's not used by other kernel drivers currently, but should we leave it >> in for the pi0/1/2 folks that might have userspace I2C stuff using it? >> That's a thing people do, right? I actually don't know. > > The firmware hasn't used BSC0 for the GPIO expander since the end of > January. It now bit bashes it. Sorry if that information hadn't > filtered through. > > I've got a patch I was about to send to rpi-linux for comment which > sets up the i2c-mux-pinctrl driver on BSC0 so that it can be used > either on GPIOs 0&1, or the GPIOs connected to the DSI and CSI > connectors (I want it to talk to the camera module, and I guess Eric > won't complain for talking to the DSI display). I'll aim to sort it on > Monday. Regardless of the use (or not) of i2c0 by the VPU on Pi 3, i2c0 is the I2C interface intended for the ARM on early Pi Model Bs. The enabling or not of the I2C interfaces should be left to the model-specific DTS files. Regards, Phil ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-11-17 19:51 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-11-15 20:57 [PATCH] ARM: dts: bcm2835-rpi: Avoid conflicts on i2c0 Stefan Wahren [not found] ` <1510779424-642-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org> 2017-11-16 20:34 ` Eric Anholt 2017-11-17 18:30 ` Dave Stevenson 2017-11-17 19:51 ` Phil Elwell
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).