Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1206447 > unrolled thread
| Started by | Eric Anholt <eric@anholt.net> |
|---|---|
| First post | 2015-08-13 03:00 +0200 |
| Last post | 2015-08-17 20:40 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 6/7] ARM: bcm2835: Add the DDC I2C controller to the device tree. Eric Anholt <eric@anholt.net> - 2015-08-13 03:00 +0200
Re: [PATCH 6/7] ARM: bcm2835: Add the DDC I2C controller to the device tree. Stephen Warren <swarren@wwwdotorg.org> - 2015-08-15 07:00 +0200
Re: [PATCH 6/7] ARM: bcm2835: Add the DDC I2C controller to the device tree. Eric Anholt <eric@anholt.net> - 2015-08-17 20:40 +0200
| From | Eric Anholt <eric@anholt.net> |
|---|---|
| Date | 2015-08-13 03:00 +0200 |
| Subject | [PATCH 6/7] ARM: bcm2835: Add the DDC I2C controller to the device tree. |
| Message-ID | <pWP2a-4fa-21@gated-at.bofh.it> |
We need to use it for getting video modes over HDMI.
Signed-off-by: Eric Anholt <eric@anholt.net>
---
arch/arm/boot/dts/bcm2835.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi
index 301c73f..8f3ba88 100644
--- a/arch/arm/boot/dts/bcm2835.dtsi
+++ b/arch/arm/boot/dts/bcm2835.dtsi
@@ -149,6 +149,15 @@
status = "disabled";
};
+ i2c2: i2c@7e805000 {
+ compatible = "brcm,bcm2835-i2c";
+ reg = <0x7e805000 0x1000>;
+ interrupts = <2 21>;
+ clocks = <&clk_i2c>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+
usb@7e980000 {
compatible = "brcm,bcm2835-usb";
reg = <0x7e980000 0x10000>;
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Stephen Warren <swarren@wwwdotorg.org> |
|---|---|
| Date | 2015-08-15 07:00 +0200 |
| Subject | Re: [PATCH 6/7] ARM: bcm2835: Add the DDC I2C controller to the device tree. |
| Message-ID | <pXBJw-7QY-7@gated-at.bofh.it> |
| In reply to | #1206447 |
On 08/12/2015 06:56 PM, Eric Anholt wrote:
> We need to use it for getting video modes over HDMI.
> diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi
> + i2c2: i2c@7e805000 {
> + compatible = "brcm,bcm2835-i2c";
> + reg = <0x7e805000 0x1000>;
> + interrupts = <2 21>;
> + clocks = <&clk_i2c>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + };
In an SoC .dtsi file, you'd typically write:
status = "disabled";
... in all nodes that represent IO controllers that interface to
external HW, so that board DT files can/must explicitly choose to enable
the device if it's actually in use on the board. Some systems might not
have HDMI and hence might not hook up the HDMI_SCL/SDA pads.
BCM2835-ARM-Peripherals.pdf states "Note that the BSC2 master is used
dedicated with the HDMI interface and should not be accessed by user
programs.". Does this imply the Linux kernel shouldn't be touching this
I2C controller; that the VC4 firmware might also be attempting to use
it? I wonder how any such sharing of the HW would work.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Eric Anholt <eric@anholt.net> |
|---|---|
| Date | 2015-08-17 20:40 +0200 |
| Message-ID | <pYxub-73D-45@gated-at.bofh.it> |
| In reply to | #1208016 |
[Multipart message — attachments visible in raw view] — view raw
Stephen Warren <swarren@wwwdotorg.org> writes:
> On 08/12/2015 06:56 PM, Eric Anholt wrote:
>> We need to use it for getting video modes over HDMI.
>
>> diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi
>
>> + i2c2: i2c@7e805000 {
>> + compatible = "brcm,bcm2835-i2c";
>> + reg = <0x7e805000 0x1000>;
>> + interrupts = <2 21>;
>> + clocks = <&clk_i2c>;
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> + };
>
> In an SoC .dtsi file, you'd typically write:
>
> status = "disabled";
>
> ... in all nodes that represent IO controllers that interface to
> external HW, so that board DT files can/must explicitly choose to enable
> the device if it's actually in use on the board. Some systems might not
> have HDMI and hence might not hook up the HDMI_SCL/SDA pads.
>
> BCM2835-ARM-Peripherals.pdf states "Note that the BSC2 master is used
> dedicated with the HDMI interface and should not be accessed by user
> programs.". Does this imply the Linux kernel shouldn't be touching this
> I2C controller; that the VC4 firmware might also be attempting to use
> it? I wonder how any such sharing of the HW would work.
In order for *any* of this driver to work, we need to ensure that the
firmware doesn't try to write to the corresponding part of the hardware.
DDC I2C is no different. All that will cause the firmware to do
anything with display is generating mbox/dispmanx requests (through the
firmware driver), and the undervoltage warnings.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web