diff mbox

[v5,09/14] ARM: shmobile: koelsch: Enable DU device in DT

Message ID 1414332679-15497-10-git-send-email-laurent.pinchart+renesas@ideasonboard.com (mailing list archive)
State Accepted
Commit 0ee56d403549fd97d8acac6b7ba3a17f6999c30a
Headers show

Commit Message

Laurent Pinchart Oct. 26, 2014, 2:11 p.m. UTC
Specify the DU output topology, enable the DU device and configure the
related pins.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
---
 arch/arm/boot/dts/r8a7791-koelsch.dts | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

Comments

Sergei Shtylyov Dec. 24, 2015, 7:54 p.m. UTC | #1
On 10/26/2014 05:11 PM, Laurent Pinchart wrote:

> Specify the DU output topology, enable the DU device and configure the
> related pins.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
>   arch/arm/boot/dts/r8a7791-koelsch.dts | 16 +++++++++++++---
>   1 file changed, 13 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts
> index 53184637f160..0402c498b05b 100644
> --- a/arch/arm/boot/dts/r8a7791-koelsch.dts
> +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts
> @@ -212,14 +212,24 @@
>   	};
>   };
>
> +&du {
> +	pinctrl-0 = <&du_pins>;
> +	pinctrl-names = "default";
> +	status = "okay";
> +
> +	ports {
> +		port@1 {
> +			lvds_connector: endpoint {

    I don't understand what this unreferenced label achieves. Also, the 
Koelsch schematics tells me LVDS is connected to DU0, not DU1...

[...]

MBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Sergei Shtylyov Dec. 25, 2015, 11:45 p.m. UTC | #2
Hello.

On 12/24/2015 10:54 PM, Sergei Shtylyov wrote:

>> Specify the DU output topology, enable the DU device and configure the
>> related pins.
>>
>> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
>> ---
>>   arch/arm/boot/dts/r8a7791-koelsch.dts | 16 +++++++++++++---
>>   1 file changed, 13 insertions(+), 3 deletions(-)
>>
>> diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts
>> b/arch/arm/boot/dts/r8a7791-koelsch.dts
>> index 53184637f160..0402c498b05b 100644
>> --- a/arch/arm/boot/dts/r8a7791-koelsch.dts
>> +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts
>> @@ -212,14 +212,24 @@
>>       };
>>   };
>>
>> +&du {
>> +    pinctrl-0 = <&du_pins>;
>> +    pinctrl-names = "default";
>> +    status = "okay";
>> +
>> +    ports {
>> +        port@1 {
>> +            lvds_connector: endpoint {
>
>     I don't understand what this unreferenced label achieves. Also, the
> Koelsch schematics tells me LVDS is connected to DU0, not DU1...

    OK, figured it out now! However in the absence of #include for a LCD panel 
this still makes little sense.

> [...]

MBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Laurent Pinchart Dec. 26, 2015, 10:53 a.m. UTC | #3
Hi Sergei,

On Saturday 26 December 2015 02:45:55 Sergei Shtylyov wrote:
> On 12/24/2015 10:54 PM, Sergei Shtylyov wrote:
> >> Specify the DU output topology, enable the DU device and configure the
> >> related pins.
> >> 
> >> Signed-off-by: Laurent Pinchart
> >> <laurent.pinchart+renesas@ideasonboard.com>
> >> ---
> >> 
> >>   arch/arm/boot/dts/r8a7791-koelsch.dts | 16 +++++++++++++---
> >>   1 file changed, 13 insertions(+), 3 deletions(-)
> >> 
> >> diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts
> >> b/arch/arm/boot/dts/r8a7791-koelsch.dts
> >> index 53184637f160..0402c498b05b 100644
> >> --- a/arch/arm/boot/dts/r8a7791-koelsch.dts
> >> +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts
> >> @@ -212,14 +212,24 @@
> >>       };
> >>   };
> >> 
> >> +&du {
> >> +    pinctrl-0 = <&du_pins>;
> >> +    pinctrl-names = "default";
> >> +    status = "okay";
> >> +
> >> +    ports {
> >> +        port@1 {
> >> +            lvds_connector: endpoint {
> > 
> > I don't understand what this unreferenced label achieves. Also, the
> > Koelsch schematics tells me LVDS is connected to DU0, not DU1...
> 
> OK, figured it out now! However in the absence of #include for a LCD
> panel this still makes little sense.

That's right, but there's no panel mounted directly on the Koelsch board, so 
we can't hardcode a particular panel model in r8a7791-koelsch.dts. This is 
where DT overlays can be handy.
diff mbox

Patch

diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts
index 53184637f160..0402c498b05b 100644
--- a/arch/arm/boot/dts/r8a7791-koelsch.dts
+++ b/arch/arm/boot/dts/r8a7791-koelsch.dts
@@ -212,14 +212,24 @@ 
 	};
 };
 
+&du {
+	pinctrl-0 = <&du_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+
+	ports {
+		port@1 {
+			lvds_connector: endpoint {
+			};
+		};
+	};
+};
+
 &extal_clk {
 	clock-frequency = <20000000>;
 };
 
 &pfc {
-	pinctrl-0 = <&du_pins>;
-	pinctrl-names = "default";
-
 	i2c2_pins: i2c2 {
 		renesas,groups = "i2c2";
 		renesas,function = "i2c2";