From: Wolfram Sang <wsa+renesas@sang-engineering.com>
To: linux-renesas-soc@vger.kernel.org, Simon Horman <horms@verge.net.au>
Cc: linux-i2c@vger.kernel.org,
Simon Horman <horms+renesas@verge.net.au>,
Wolfram Sang <wsa+renesas@sang-engineering.com>
Subject: [PATCH v4 09/14] ARM: dts: gose: use demuxer for I2C2
Date: Sun, 6 Nov 2016 21:20:27 +0100 [thread overview]
Message-ID: <20161106202032.5227-10-wsa+renesas@sang-engineering.com> (raw)
In-Reply-To: <20161106202032.5227-1-wsa+renesas@sang-engineering.com>
From: Simon Horman <horms+renesas@verge.net.au>
Create a separate bus for HDMI related I2C2 and provide fallback to GPIO.
Based on work for the r8a7790/lager by Wolfram Sang.
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
[wsa: rebased, corrected board name in subject, and fixed aliases]
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
arch/arm/boot/dts/r8a7793-gose.dts | 170 +++++++++++++++++++++----------------
1 file changed, 97 insertions(+), 73 deletions(-)
diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts
index 6329d9d2e8a3e3..df07dc252537fe 100644
--- a/arch/arm/boot/dts/r8a7793-gose.dts
+++ b/arch/arm/boot/dts/r8a7793-gose.dts
@@ -48,6 +48,8 @@
aliases {
serial0 = &scif0;
serial1 = &scif1;
+ i2c9 = &gpioi2c2;
+ i2c11 = &i2chdmi;
};
chosen {
@@ -275,6 +277,100 @@
#clock-cells = <0>;
clock-frequency = <148500000>;
};
+
+ gpioi2c2: i2c-9 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "i2c-gpio";
+ status = "disabled";
+ gpios = <&gpio2 7 GPIO_ACTIVE_HIGH /* sda */
+ &gpio2 6 GPIO_ACTIVE_HIGH /* scl */
+ >;
+ i2c-gpio,delay-us = <5>;
+ };
+
+ /*
+ * A fallback to GPIO is provided for I2C2.
+ */
+ i2chdmi: i2c-11 {
+ compatible = "i2c-demux-pinctrl";
+ i2c-parent = <&i2c2>, <&gpioi2c2>;
+ i2c-bus-name = "i2c-hdmi";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ak4643: codec@12 {
+ compatible = "asahi-kasei,ak4643";
+ #sound-dai-cells = <0>;
+ reg = <0x12>;
+ };
+
+ composite-in@20 {
+ compatible = "adi,adv7180";
+ reg = <0x20>;
+ remote = <&vin1>;
+
+ port {
+ adv7180: endpoint {
+ bus-width = <8>;
+ remote-endpoint = <&vin1ep>;
+ };
+ };
+ };
+
+ hdmi@39 {
+ compatible = "adi,adv7511w";
+ reg = <0x39>;
+ interrupt-parent = <&gpio3>;
+ interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
+
+ adi,input-depth = <8>;
+ adi,input-colorspace = "rgb";
+ adi,input-clock = "1x";
+ adi,input-style = <1>;
+ adi,input-justification = "evenly";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+ adv7511_in: endpoint {
+ remote-endpoint = <&du_out_rgb>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+ adv7511_out: endpoint {
+ remote-endpoint = <&hdmi_con>;
+ };
+ };
+ };
+ };
+
+ hdmi-in@4c {
+ compatible = "adi,adv7612";
+ reg = <0x4c>;
+ interrupt-parent = <&gpio1>;
+ interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
+ remote = <&vin0>;
+ default-input = <0>;
+
+ port {
+ adv7612: endpoint {
+ remote-endpoint = <&vin0ep>;
+ };
+ };
+ };
+
+ eeprom@50 {
+ compatible = "renesas,r1ex24002", "atmel,24c02";
+ reg = <0x50>;
+ pagesize = <16>;
+ };
+ };
};
&du {
@@ -498,82 +594,10 @@
&i2c2 {
pinctrl-0 = <&i2c2_pins>;
- pinctrl-names = "default";
+ pinctrl-names = "i2c-hdmi";
status = "okay";
clock-frequency = <100000>;
-
- ak4643: codec@12 {
- compatible = "asahi-kasei,ak4643";
- #sound-dai-cells = <0>;
- reg = <0x12>;
- };
-
- composite-in@20 {
- compatible = "adi,adv7180";
- reg = <0x20>;
- remote = <&vin1>;
-
- port {
- adv7180: endpoint {
- bus-width = <8>;
- remote-endpoint = <&vin1ep>;
- };
- };
- };
-
- hdmi@39 {
- compatible = "adi,adv7511w";
- reg = <0x39>;
- interrupt-parent = <&gpio3>;
- interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
-
- adi,input-depth = <8>;
- adi,input-colorspace = "rgb";
- adi,input-clock = "1x";
- adi,input-style = <1>;
- adi,input-justification = "evenly";
-
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
-
- port@0 {
- reg = <0>;
- adv7511_in: endpoint {
- remote-endpoint = <&du_out_rgb>;
- };
- };
-
- port@1 {
- reg = <1>;
- adv7511_out: endpoint {
- remote-endpoint = <&hdmi_con>;
- };
- };
- };
- };
-
- hdmi-in@4c {
- compatible = "adi,adv7612";
- reg = <0x4c>;
- interrupt-parent = <&gpio1>;
- interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
- remote = <&vin0>;
- default-input = <0>;
-
- port {
- adv7612: endpoint {
- remote-endpoint = <&vin0ep>;
- };
- };
- };
-
- eeprom@50 {
- compatible = "renesas,r1ex24002", "atmel,24c02";
- reg = <0x50>;
- pagesize = <16>;
- };
};
&rcar_sound {
--
2.9.3
next prev parent reply other threads:[~2016-11-06 20:20 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-06 20:20 [PATCH v4 00/14] ARM: dts: r8a779x: use demuxer for I2C Wolfram Sang
2016-11-06 20:20 ` [PATCH v4 01/14] ARM: dts: lager: rename and reindex i2cexio Wolfram Sang
2016-11-07 13:12 ` Geert Uytterhoeven
2016-11-10 10:11 ` Simon Horman
2016-11-06 20:20 ` [PATCH v4 02/14] ARM: dts: lager: use demuxer for IIC1/I2C1 Wolfram Sang
2016-11-06 20:20 ` [PATCH v4 03/14] ARM: dts: lager: use demuxer for IIC2/I2C2 Wolfram Sang
2016-11-06 20:20 ` [PATCH v4 04/14] ARM: dts: lager: use demuxer for IIC3/I2C3 Wolfram Sang
2016-11-06 20:20 ` [PATCH v4 05/14] ARM: dts: koelsch: use demuxer for I2C1 Wolfram Sang
2016-11-06 20:20 ` [PATCH v4 06/14] ARM: dts: koelsch: use demuxer for I2C2 Wolfram Sang
2016-11-06 20:20 ` [PATCH v4 07/14] ARM: dts: koelsch: use demuxer for I2C4 Wolfram Sang
2016-11-15 15:45 ` Geert Uytterhoeven
2016-11-15 17:44 ` Simon Horman
2016-11-16 10:35 ` Geert Uytterhoeven
2016-11-16 13:47 ` Simon Horman
2016-11-16 14:14 ` Geert Uytterhoeven
2016-11-16 14:17 ` Simon Horman
2016-11-16 13:48 ` Geert Uytterhoeven
2016-11-06 20:20 ` [PATCH v4 08/14] ARM: dts: porter: use demuxer for I2C2 Wolfram Sang
2016-11-06 20:20 ` Wolfram Sang [this message]
2016-11-06 20:20 ` [PATCH v4 10/14] ARM: dts: gose: use demuxer for I2C4 Wolfram Sang
2016-11-06 20:20 ` [PATCH v4 11/14] ARM: dts: alt: use demuxer for I2C1 Wolfram Sang
2016-11-06 20:20 ` [PATCH v4 12/14] ARM: dts: alt: use demuxer for I2C4 Wolfram Sang
2016-11-06 20:20 ` [PATCH v4 13/14] ARM: dts: silk: use demuxer for I2C1 Wolfram Sang
2016-11-06 20:20 ` [PATCH v4 14/14] i2c: mux: demux-pinctrl: make drivers with no pinctrl work again Wolfram Sang
2016-11-07 13:10 ` Geert Uytterhoeven
2016-11-10 20:12 ` Wolfram Sang
2016-11-09 8:44 ` [PATCH v4 00/14] ARM: dts: r8a779x: use demuxer for I2C Simon Horman
2016-11-09 8:55 ` Geert Uytterhoeven
2016-11-09 8:59 ` Wolfram Sang
2016-11-09 14:35 ` Simon Horman
2016-11-09 19:00 ` Geert Uytterhoeven
2016-11-11 8:20 ` Simon Horman
2016-11-10 10:06 ` Simon Horman
2016-11-09 17:28 ` Wolfram Sang
2016-11-10 3:56 ` Magnus Damm
2016-11-10 7:57 ` Wolfram Sang
2016-11-10 8:12 ` Magnus Damm
2016-11-10 15:30 ` Niklas Söderlund
2016-11-10 15:39 ` Wolfram Sang
2017-01-04 10:25 ` Wolfram Sang
2017-01-09 9:34 ` Niklas Söderlund
2017-01-31 15:42 ` Niklas Söderlund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161106202032.5227-10-wsa+renesas@sang-engineering.com \
--to=wsa+renesas@sang-engineering.com \
--cc=horms+renesas@verge.net.au \
--cc=horms@verge.net.au \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).