ARM: dts: da850: tilcdc related DT changes
Subsystems (4)
v7 cover ARM: dts: da850: tilcdc related DT changes
This series contains the last DT changes required for LCDC support on da850-lcdk. The first one adds the dumb-vga-dac nodes, the second limits the maximum pixel clock rate.
v1 -> v2:
- drop patch 3/3 (already merged)
- use max-pixelclock instead of max-bandwidth for display mode limiting
v2 -> v3:
- make the commit message in patch [2/2] more detailed
- move the max-pixelclock property to da850.dtsi as the limit affects all da850-based boards
v3 -> v4:
- remove the input port from the display node
- move the display ports node to da850-lcdk.dts
- rename the vga_bridge node to vga-bridge
- move the LCDC pins to the LCDC node (from the vga bridge node)
v4 -> v5:
- rename the display label to lcdc
- instead of using the 'dumb-vga-dac' compatible, add bindings for ti,ths8135 and use it as the vga-bridge node compatible
v5 -> v6:
- drop the endpoint numbers for nodes with single endpoints
- split patch 2/4 from v5 into two separate patches: one adding DT bindings and one adding actual support for ths8135
v6 -> v7:
- simplified patch 4/5 by removing unnecessary properties from ports and endpoints nodes
Bartosz Golaszewski (5):
ARM: dts: da850: rename the display node label
drm: bridge: add DT bindings for TI ths8135
drm: bridge: add support for TI ths8135
ARM: dts: da850-lcdk: add the vga-bridge node
ARM: dts: da850: specify the maximum pixel clock rate for tilcdc
.../bindings/display/bridge/ti,ths8135.txt | 46 +++++++++++++++++++ arch/arm/boot/dts/da850-lcdk.dts | 51 ++++++++++++++++++++++ arch/arm/boot/dts/da850.dtsi | 3 +- drivers/gpu/drm/bridge/dumb-vga-dac.c | 1 + 4 files changed, 100 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/display/bridge/ti,ths8135.txt
Signature · 6 lines
2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v7 1/5 ARM: dts: da850: rename the display node label
The tilcdc node name is 'display' as per the ePAPR 1.1 recommendation. The label is also 'display', but change it to 'lcdc' to make it clear what the underlying hardware is.
--- arch/arm/boot/dts/da850.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/da850.dtsi +1 -1
@@ -458,7 +458,7 @@ dma-names = "tx", "rx"; }; - display: display@213000 { + lcdc: display@213000 { compatible = "ti,da850-tilcdc"; reg = <0x213000 0x1000>; interrupts = <52>;
Signature · 6 lines
2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v7 1/5] ARM: dts: da850: rename the display node label
Quoted 15 lines · Bartosz Golaszewski
The tilcdc node name is 'display' as per the ePAPR 1.1 recommendation. The label is also 'display', but change it to 'lcdc' to make it clear what the underlying hardware is.
Signed-off-by Bartosz Golaszewski <[email protected]>--- arch/arm/boot/dts/da850.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/da850.dtsi +0
-0
arch/arm/boot/dts/da850.dtsi line 464
Quoted 8 lines
arch/arm/boot/dts/da850.dtsi +1
-1@@ -458,7 +458,7 @@ dma-names = "tx", "rx"; }; - display: display at 213000 { + lcdc: display at 213000 { compatible = "ti,da850-tilcdc"; reg = <0x213000 0x1000>; interrupts = <52>;
Tomi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20161214/c170611c/attachment-0001.sig>
Re: [PATCH v7 1/5] ARM: dts: da850: rename the display node label
Quoted 18 lines · Tomi Valkeinen
Quoted 17 lines · Bartosz Golaszewski
The tilcdc node name is 'display' as per the ePAPR 1.1 recommendation. The label is also 'display', but change it to 'lcdc' to make it clear what the underlying hardware is.
--- arch/arm/boot/dts/da850.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/da850.dtsi +0
-0@@ -458,7 +458,7 @@ dma-names = "tx", "rx"; };
Quoted 8 lines
arch/arm/boot/dts/da850.dtsi line 464
Quoted 6 lines
arch/arm/boot/dts/da850.dtsi +1
-1- display: display@213000 { + lcdc: display@213000 { compatible = "ti,da850-tilcdc"; reg = <0x213000 0x1000>; interrupts = <52>;Reviewed-by Tomi Valkeinen <[email protected]>
Applied with Tomi's reviewed-by.
Thanks,
Sekhar
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v7 2/5 drm: bridge: add DT bindings for TI ths8135
In reply to Bartosz GolaszewskiTHS8135 is a configurable video DAC. Add DT bindings for this chip.
--- .../bindings/display/bridge/ti,ths8135.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/ti,ths8135.txt
Documentation/devicetree/bindings/display/bridge/ti,ths8135.txt new file +46 -0
@@ -0,0 +1,46 @@ +THS8135 Video DAC +----------------- + +This is the binding for Texas Instruments THS8135 Video DAC bridge. + +Required properties: + +- compatible: Must be "ti,ths8135" + +Required nodes: + +This device has two video ports. Their connections are modelled using the OF +graph bindings specified in Documentation/devicetree/bindings/graph.txt. + +- Video port 0 for RGB input +- Video port 1 for VGA output + +Example +------- + +vga-bridge { + compatible = "ti,ths8135"; + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + + vga_bridge_in: endpoint { + remote-endpoint = <&lcdc_out_vga>; + }; + }; + + port at 1 { + reg = <1>; + + vga_bridge_out: endpoint { + remote-endpoint = <&vga_con_in>; + }; + }; + }; +};
Signature · 1 line
2.9.3
Archit Taneja
AppliedRe: [PATCH v7 2/5] drm: bridge: add DT bindings for TI ths8135
Hi,
Quoted 1 line · Bartosz Golaszewski
THS8135 is a configurable video DAC. Add DT bindings for this chip.
Queued to drm-misc-next
Quoted 62 lines
Signed-off-by Bartosz Golaszewski <[email protected]>Reviewed-by Laurent Pinchart <[email protected]>Acked-by Rob Herring <[email protected]>--- .../bindings/display/bridge/ti,ths8135.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/ti,ths8135.txtDocumentation/devicetree/bindings/display/bridge/ti,ths8135.txt new file +46
-0@@ -0,0 +1,46 @@ +THS8135 Video DAC +----------------- + +This is the binding for Texas Instruments THS8135 Video DAC bridge. + +Required properties: + +- compatible: Must be "ti,ths8135" + +Required nodes: + +This device has two video ports. Their connections are modelled using the OF +graph bindings specified in Documentation/devicetree/bindings/graph.txt. + +- Video port 0 for RGB input +- Video port 1 for VGA output + +Example +------- + +vga-bridge { + compatible = "ti,ths8135"; + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + + vga_bridge_in: endpoint { + remote-endpoint = <&lcdc_out_vga>; + }; + }; + + port at 1 { + reg = <1>; + + vga_bridge_out: endpoint { + remote-endpoint = <&vga_con_in>; + }; + }; + }; +};
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
PATCH v7 3/5 drm: bridge: add support for TI ths8135
In reply to Bartosz GolaszewskiTHS8135 is a configurable video DAC, but no configuration is actually necessary to make it work.
For now use the dumb-vga-dac driver to support it.
--- drivers/gpu/drm/bridge/dumb-vga-dac.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/dumb-vga-dac.c +1 -0
@@ -237,6 +237,7 @@ static int dumb_vga_remove(struct platform_device *pdev)static const struct of_device_id dumb_vga_match[] = { { .compatible ="dumb-vga-dac" }, + { .compatible ="ti,ths8135" }, {}, };MODULE_DEVICE_TABLE (of, dumb_vga_match);
Signature · 1 line
2.9.3
Archit Taneja
AppliedRe: [PATCH v7 3/5] drm: bridge: add support for TI ths8135
Quoted 4 lines · Bartosz Golaszewski
THS8135 is a configurable video DAC, but no configuration is actually necessary to make it work.
For now use the dumb-vga-dac driver to support it.
Queued to drm-misc-next
Archit
Quoted 20 lines
Signed-off-by Bartosz Golaszewski <[email protected]>Reviewed-by Laurent Pinchart <[email protected]>--- drivers/gpu/drm/bridge/dumb-vga-dac.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/bridge/dumb-vga-dac.c +1
-0@@ -237,6 +237,7 @@ static int dumb_vga_remove(struct platform_device *pdev)static const struct of_device_id dumb_vga_match[] = { { .compatible ="dumb-vga-dac" }, + { .compatible ="ti,ths8135" }, {}, };MODULE_DEVICE_TABLE (of, dumb_vga_match);
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Re: [PATCH v7 3/5] drm: bridge: add support for TI ths8135
Hi Archit,
Quoted 9 lines · Archit Taneja
Quoted 4 lines · Bartosz Golaszewski
THS8135 is a configurable video DAC, but no configuration is actually necessary to make it work.
For now use the dumb-vga-dac driver to support it.
Queued to drm-misc-next
This patch and 2/5 are not in v4.10 kernel. Did you mean to queue them to v4.10?
Thanks,
Sekhar
Re: [PATCH v7 3/5] drm: bridge: add support for TI ths8135
Hi Sekhar,
Quoted 9 lines · Sekhar Nori
Hi Archit,
Quoted 6 lines · Archit Taneja
Quoted 3 lines · Bartosz Golaszewski
THS8135 is a configurable video DAC, but no configuration is actually necessary to make it work.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
For now use the dumb-vga-dac driver to support it.
Queued to drm-misc-next
This patch and 2/5 are not in v4.10 kernel. Did you mean to queue them to v4.10?
These missed out on 4.10 because the drm related pull requests were already sent by then. These 2 patches are queued for 4.11.
Thanks,
Archit
Quoted 4 lines
Thanks,
Sekhar
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Re: [PATCH v7 3/5] drm: bridge: add support for TI ths8135
Quoted 14 lines · Archit Taneja
Hi Sekhar,
Quoted 11 lines · Sekhar Nori
Hi Archit,
Quoted 8 lines · Archit Taneja
Quoted 4 lines · Bartosz Golaszewski
THS8135 is a configurable video DAC, but no configuration is actually necessary to make it work.
For now use the dumb-vga-dac driver to support it.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Queued to drm-misc-next
This patch and 2/5 are not in v4.10 kernel. Did you mean to queue them to v4.10?
These missed out on 4.10 because the drm related pull requests were already sent by then. These 2 patches are queued for 4.11.
Alright, thanks for the update.
Regards,
Sekhar
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v7 4/5 ARM: dts: da850-lcdk: add the vga-bridge node
In reply to Bartosz GolaszewskiAdd the vga-bridge node to the board DT together with corresponding ports and vga connector. This allows to retrieve the edid info from the display automatically.
--- arch/arm/boot/dts/da850-lcdk.dts | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+)
arch/arm/boot/dts/da850-lcdk.dts +51 -0
@@ -51,6 +51,45 @@ system-clock-frequency = <24576000>; }; }; + + vga-bridge { + compatible = "ti,ths8135"; + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + + vga_bridge_in: endpoint { + remote-endpoint = <&lcdc_out_vga>; + }; + }; + + port at 1 { + reg = <1>; + + vga_bridge_out: endpoint { + remote-endpoint = <&vga_con_in>; + }; + }; + }; + }; + + vga { + compatible = "vga-connector"; + + ddc-i2c-bus = <&i2c0>; + + port { + vga_con_in: endpoint { + remote-endpoint = <&vga_bridge_out>; + }; + }; + }; }; &pmx_core {
@@ -236,3 +275,15 @@ &memctrl { status = "okay"; }; + +&lcdc { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_pins>; + + port { + lcdc_out_vga: endpoint { + remote-endpoint = <&vga_bridge_in>; + }; + }; +};
Signature · 1 line
2.9.3
Re: [PATCH v7 4/5] ARM: dts: da850-lcdk: add the vga-bridge node
Quoted 9 lines · Bartosz Golaszewski
Add the vga-bridge node to the board DT together with corresponding ports and vga connector. This allows to retrieve the edid info from the display automatically.
Signed-off-by Bartosz Golaszewski <[email protected]>Reviewed-by Laurent Pinchart <[email protected]>--- arch/arm/boot/dts/da850-lcdk.dts | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+)
Tomi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20161214/d7838da1/attachment.sig>
Sekhar Nori
AppliedRe: [PATCH v7 4/5] ARM: dts: da850-lcdk: add the vga-bridge node
Quoted 5 lines · Tomi Valkeinen
Quoted 4 lines · Bartosz Golaszewski
Add the vga-bridge node to the board DT together with corresponding ports and vga connector. This allows to retrieve the edid info from the display automatically.
Quoted 7 lines
Quoted 5 lines
--- arch/arm/boot/dts/da850-lcdk.dts | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+)Reviewed-by Tomi Valkeinen <[email protected]>
Applied to v4.11/dt with Tomi's reviewed-by.
Thanks,
Sekhar
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v7 5/5 ARM: dts: da850: specify the maximum pixel clock rate for tilcdc
In reply to Bartosz GolaszewskiAt maximum CPU frequency of 300 MHz the maximum pixel clock frequency is 37.5 MHz[1]. We must filter out any mode for which the calculated pixel clock rate would exceed this value.
Specify the max-pixelclock property for the display node for da850-lcdk.
--- arch/arm/boot/dts/da850.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm/boot/dts/da850.dtsi +1 -0
@@ -462,6 +462,7 @@ compatible = "ti,da850-tilcdc"; reg = <0x213000 0x1000>; interrupts = <52>; + max-pixelclock = <37500>; status = "disabled"; }; };
Signature · 1 line
2.9.3
Sekhar Nori
AppliedRe: [PATCH v7 5/5] ARM: dts: da850: specify the maximum pixel clock rate for tilcdc
Quoted 8 lines · Bartosz Golaszewski
At maximum CPU frequency of 300 MHz the maximum pixel clock frequency is 37.5 MHz[1]. We must filter out any mode for which the calculated pixel clock rate would exceed this value.
Specify the max-pixelclock property for the display node for da850-lcdk.
This wiki page is not really a TI datasheet and can change without notice. I changed this to refer to
http://www.ti.com/lit/ds/symlink/am1808.pdf (SPRS653E, revised March 2014), table 6-110.
Applied to v4.11/dt
Thanks,
Sekhar