* [PATCH 1/2] ARM: shmobile: r8a7794: add VIN DT support
2015-08-19 22:20 [PATCH 0/2] Add VIN and ADV7180 device tree support for R8A7794/SILK board Sergei Shtylyov
@ 2015-08-19 22:22 ` Sergei Shtylyov
2015-08-19 22:24 ` [PATCH 2/2] ARM: shmobile: silk: add VIN0/ADV7180 " Sergei Shtylyov
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: Sergei Shtylyov @ 2015-08-19 22:22 UTC (permalink / raw)
To: linux-arm-kernel
Define the generic R8A7794 part of the VIN[01] device nodes. Add aliases for
the VIN[01] device nodes.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
arch/arm/boot/dts/r8a7794.dtsi | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
Index: renesas/arch/arm/boot/dts/r8a7794.dtsi
=================================--- renesas.orig/arch/arm/boot/dts/r8a7794.dtsi
+++ renesas/arch/arm/boot/dts/r8a7794.dtsi
@@ -27,6 +27,8 @@
i2c4 = &i2c4;
i2c5 = &i2c5;
spi0 = &qspi;
+ vin0 = &vin0;
+ vin1 = &vin1;
};
cpus {
@@ -628,6 +630,24 @@
status = "disabled";
};
+ vin0: video@e6ef0000 {
+ compatible = "renesas,vin-r8a7794";
+ reg = <0 0xe6ef0000 0 0x1000>;
+ interrupts = <0 188 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp8_clks R8A7794_CLK_VIN0>;
+ power-domains = <&cpg_clocks>;
+ status = "disabled";
+ };
+
+ vin1: video@e6ef1000 {
+ compatible = "renesas,vin-r8a7794";
+ reg = <0 0xe6ef1000 0 0x1000>;
+ interrupts = <0 189 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp8_clks R8A7794_CLK_VIN1>;
+ power-domains = <&cpg_clocks>;
+ status = "disabled";
+ };
+
clocks {
#address-cells = <2>;
#size-cells = <2>;
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 2/2] ARM: shmobile: silk: add VIN0/ADV7180 DT support
2015-08-19 22:20 [PATCH 0/2] Add VIN and ADV7180 device tree support for R8A7794/SILK board Sergei Shtylyov
2015-08-19 22:22 ` [PATCH 1/2] ARM: shmobile: r8a7794: add VIN DT support Sergei Shtylyov
@ 2015-08-19 22:24 ` Sergei Shtylyov
2015-08-20 18:54 ` [PATCH 0/2] Add VIN and ADV7180 device tree support for R8A7794/SILK board Simon Horman
2015-10-08 21:45 ` [PATCH] ARM: shmobile: porter: add VIN0/ADV7180 DT support Sergei Shtylyov
3 siblings, 0 replies; 9+ messages in thread
From: Sergei Shtylyov @ 2015-08-19 22:24 UTC (permalink / raw)
To: linux-arm-kernel
Define the SILK board dependent part of the VIN0 device node.
Add the device node for Analog Devices ADV7180 video decoder to I2C1 bus.
Add the necessary subnodes to interconnect VIN0 and ADV7180 devices.
Based on the Henninger VIN0/ADV8170 device tree patch by myself.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
arch/arm/boot/dts/r8a7794-silk.dts | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Index: renesas/arch/arm/boot/dts/r8a7794-silk.dts
=================================--- renesas.orig/arch/arm/boot/dts/r8a7794-silk.dts
+++ renesas/arch/arm/boot/dts/r8a7794-silk.dts
@@ -104,6 +104,11 @@
renesas,groups = "qspi_ctrl", "qspi_data4";
renesas,function = "qspi";
};
+
+ vin0_pins: vin0 {
+ renesas,groups = "vin0_data8", "vin0_clk";
+ renesas,function = "vin0";
+ };
};
&scif2 {
@@ -135,6 +140,19 @@
status = "okay";
clock-frequency = <400000>;
+
+ composite-in@20 {
+ compatible = "adi,adv7180";
+ reg = <0x20>;
+ remote = <&vin0>;
+
+ port {
+ adv7180: endpoint {
+ bus-width = <8>;
+ remote-endpoint = <&vin0ep>;
+ };
+ };
+ };
};
&mmcif0 {
@@ -193,3 +211,20 @@
};
};
};
+
+/* composite video input */
+&vin0 {
+ status = "okay";
+ pinctrl-0 = <&vin0_pins>;
+ pinctrl-names = "default";
+
+ port {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ vin0ep: endpoint {
+ remote-endpoint = <&adv7180>;
+ bus-width = <8>;
+ };
+ };
+};
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/2] Add VIN and ADV7180 device tree support for R8A7794/SILK board
2015-08-19 22:20 [PATCH 0/2] Add VIN and ADV7180 device tree support for R8A7794/SILK board Sergei Shtylyov
2015-08-19 22:22 ` [PATCH 1/2] ARM: shmobile: r8a7794: add VIN DT support Sergei Shtylyov
2015-08-19 22:24 ` [PATCH 2/2] ARM: shmobile: silk: add VIN0/ADV7180 " Sergei Shtylyov
@ 2015-08-20 18:54 ` Simon Horman
2015-08-20 19:04 ` Sergei Shtylyov
2015-10-08 21:45 ` [PATCH] ARM: shmobile: porter: add VIN0/ADV7180 DT support Sergei Shtylyov
3 siblings, 1 reply; 9+ messages in thread
From: Simon Horman @ 2015-08-20 18:54 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Aug 20, 2015 at 01:20:42AM +0300, Sergei Shtylyov wrote:
> Hello.
>
> Here's the set of 2 patches against Simon Horman's 'renesas.git' repo's
> 'renesas-devel-20150819-v4.2-rc7' tag. Here we add the VIN and ADV7180
> video decoder device tree support on the R8A7794/SILK board. The patchset
> requires previously posted SILK SDHI1 support patch in order to apply and
> R8A7794/SILK I2C1 support in order to apply and build.
>
> [1/2] ARM: shmobile: r8a7794: add VIN DT support
> [2/2] ARM: shmobile: silk: add VIN0/ADV7180 DT support
Thanks, I have queued these up for v4.4.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/2] Add VIN and ADV7180 device tree support for R8A7794/SILK board
2015-08-20 18:54 ` [PATCH 0/2] Add VIN and ADV7180 device tree support for R8A7794/SILK board Simon Horman
@ 2015-08-20 19:04 ` Sergei Shtylyov
2015-08-20 20:19 ` Sergei Shtylyov
0 siblings, 1 reply; 9+ messages in thread
From: Sergei Shtylyov @ 2015-08-20 19:04 UTC (permalink / raw)
To: linux-arm-kernel
On 08/20/2015 09:54 PM, Simon Horman wrote:
>> Here's the set of 2 patches against Simon Horman's 'renesas.git' repo's
>> 'renesas-devel-20150819-v4.2-rc7' tag. Here we add the VIN and ADV7180
>> video decoder device tree support on the R8A7794/SILK board. The patchset
>> requires previously posted SILK SDHI1 support patch in order to apply and
>> R8A7794/SILK I2C1 support in order to apply and build.
>>
>> [1/2] ARM: shmobile: r8a7794: add VIN DT support
>> [2/2] ARM: shmobile: silk: add VIN0/ADV7180 DT support
>
> Thanks, I have queued these up for v4.4.
Perhaps a bit too early: the PFC VIN patch hasn't been merged yet. Sorry
for not specifying the PFC dependency...
MBR, Sergei
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/2] Add VIN and ADV7180 device tree support for R8A7794/SILK board
2015-08-20 19:04 ` Sergei Shtylyov
@ 2015-08-20 20:19 ` Sergei Shtylyov
2015-08-20 23:11 ` Simon Horman
0 siblings, 1 reply; 9+ messages in thread
From: Sergei Shtylyov @ 2015-08-20 20:19 UTC (permalink / raw)
To: linux-arm-kernel
On 08/20/2015 10:04 PM, Sergei Shtylyov wrote:
>>> Here's the set of 2 patches against Simon Horman's 'renesas.git' repo's
>>> 'renesas-devel-20150819-v4.2-rc7' tag. Here we add the VIN and ADV7180
>>> video decoder device tree support on the R8A7794/SILK board. The patchset
>>> requires previously posted SILK SDHI1 support patch in order to apply and
>>> R8A7794/SILK I2C1 support in order to apply and build.
>>>
>>> [1/2] ARM: shmobile: r8a7794: add VIN DT support
>>> [2/2] ARM: shmobile: silk: add VIN0/ADV7180 DT support
>>
>> Thanks, I have queued these up for v4.4.
>
> Perhaps a bit too early: the PFC VIN patch hasn't been merged yet. Sorry
> for not specifying the PFC dependency...
OTOH, the frames get captured somehow even without the PFC patch, so might
as well leave these patches applied. Your choice...
MBR, Sergei
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/2] Add VIN and ADV7180 device tree support for R8A7794/SILK board
2015-08-20 20:19 ` Sergei Shtylyov
@ 2015-08-20 23:11 ` Simon Horman
0 siblings, 0 replies; 9+ messages in thread
From: Simon Horman @ 2015-08-20 23:11 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Aug 20, 2015 at 11:19:11PM +0300, Sergei Shtylyov wrote:
> On 08/20/2015 10:04 PM, Sergei Shtylyov wrote:
>
> >>> Here's the set of 2 patches against Simon Horman's 'renesas.git' repo's
> >>>'renesas-devel-20150819-v4.2-rc7' tag. Here we add the VIN and ADV7180
> >>>video decoder device tree support on the R8A7794/SILK board. The patchset
> >>>requires previously posted SILK SDHI1 support patch in order to apply and
> >>>R8A7794/SILK I2C1 support in order to apply and build.
> >>>
> >>>[1/2] ARM: shmobile: r8a7794: add VIN DT support
> >>>[2/2] ARM: shmobile: silk: add VIN0/ADV7180 DT support
> >>
> >>Thanks, I have queued these up for v4.4.
> >
> > Perhaps a bit too early: the PFC VIN patch hasn't been merged yet. Sorry
> >for not specifying the PFC dependency...
>
> OTOH, the frames get captured somehow even without the PFC patch, so
> might as well leave these patches applied. Your choice...
Thanks. I will defer these patches for now.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH] ARM: shmobile: porter: add VIN0/ADV7180 DT support
2015-08-19 22:20 [PATCH 0/2] Add VIN and ADV7180 device tree support for R8A7794/SILK board Sergei Shtylyov
` (2 preceding siblings ...)
2015-08-20 18:54 ` [PATCH 0/2] Add VIN and ADV7180 device tree support for R8A7794/SILK board Simon Horman
@ 2015-10-08 21:45 ` Sergei Shtylyov
2015-10-09 1:14 ` Simon Horman
3 siblings, 1 reply; 9+ messages in thread
From: Sergei Shtylyov @ 2015-10-08 21:45 UTC (permalink / raw)
To: linux-arm-kernel
Define the Porter board dependent part of the VIN0 device node.
Add the device node for Analog Devices ADV7180 video decoder to I2C2 bus.
Add the necessary subnodes to interconnect VIN0 and ADV7180 devices.
This patch is analogous to the commit 8d62f4f75320 ("ARM: shmobile:
henninger: add VIN0/ADV7180 DT support") as there are no differences
between the boards in this respect.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
This patch is against 'renesas-devel-20151008-v4.3-rc4' tag of Simon Horman's
'renesas.git' repo plus the Porter I2C2 support patch just posted.
arch/arm/boot/dts/r8a7791-porter.dts | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Index: renesas/arch/arm/boot/dts/r8a7791-porter.dts
=================================--- renesas.orig/arch/arm/boot/dts/r8a7791-porter.dts
+++ renesas/arch/arm/boot/dts/r8a7791-porter.dts
@@ -114,6 +114,11 @@
renesas,groups = "i2c2";
renesas,function = "i2c2";
};
+
+ vin0_pins: vin0 {
+ renesas,groups = "vin0_data8", "vin0_clk";
+ renesas,function = "vin0";
+ };
};
&scif0 {
@@ -166,8 +171,38 @@
status = "okay";
clock-frequency = <400000>;
+
+ composite-in@20 {
+ compatible = "adi,adv7180";
+ reg = <0x20>;
+ remote = <&vin0>;
+
+ port {
+ adv7180: endpoint {
+ bus-width = <8>;
+ remote-endpoint = <&vin0ep>;
+ };
+ };
+ };
};
&sata0 {
status = "okay";
};
+
+/* composite video input */
+&vin0 {
+ status = "ok";
+ pinctrl-0 = <&vin0_pins>;
+ pinctrl-names = "default";
+
+ port {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ vin0ep: endpoint {
+ remote-endpoint = <&adv7180>;
+ bus-width = <8>;
+ };
+ };
+};
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] ARM: shmobile: porter: add VIN0/ADV7180 DT support
2015-10-08 21:45 ` [PATCH] ARM: shmobile: porter: add VIN0/ADV7180 DT support Sergei Shtylyov
@ 2015-10-09 1:14 ` Simon Horman
0 siblings, 0 replies; 9+ messages in thread
From: Simon Horman @ 2015-10-09 1:14 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Oct 09, 2015 at 12:45:49AM +0300, Sergei Shtylyov wrote:
> Define the Porter board dependent part of the VIN0 device node.
> Add the device node for Analog Devices ADV7180 video decoder to I2C2 bus.
> Add the necessary subnodes to interconnect VIN0 and ADV7180 devices.
>
> This patch is analogous to the commit 8d62f4f75320 ("ARM: shmobile:
> henninger: add VIN0/ADV7180 DT support") as there are no differences
> between the boards in this respect.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thanks Sergei,
I have queued this one up for v4.4 too.
^ permalink raw reply [flat|nested] 9+ messages in thread