On 07/11/18 10:27, Jyri Sarha wrote:
> From: Tomi Valkeinen <[email protected]>
> 
> K2G EVM has an SiI902x HDMI encoder on the board, and a separately
> purchasable LCD which can be attached to the board. Only one of these
> displays can be used at a time, and two dip-switches need to be changed
> when switching to another display.
> 
> The HDMI support is added to the base k2g-evm.dts file, and the LCD
> support is added as a separate k2g-evm-lcd.dts file. The user must
> choose one of the dtbs, depending on which display he wants to use.
> 
> Signed-off-by: Tomi Valkeinen <[email protected]>
> Cc: [email protected]
> Signed-off-by: Jyri Sarha <[email protected]>
> ---
>  arch/arm/boot/dts/Makefile                 |  1 +
>  arch/arm/boot/dts/keystone-k2g-evm-lcd.dts | 80 +++++++++++++++++++++++++++
>  arch/arm/boot/dts/keystone-k2g-evm.dts     | 87 
> ++++++++++++++++++++++++++++++
>  3 files changed, 168 insertions(+)
>  create mode 100644 arch/arm/boot/dts/keystone-k2g-evm-lcd.dts
> 
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index b5bd3de..bb17e81 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -230,6 +230,7 @@ dtb-$(CONFIG_ARCH_KEYSTONE) += \
>       keystone-k2l-evm.dtb \
>       keystone-k2e-evm.dtb \
>       keystone-k2g-evm.dtb \
> +     keystone-k2g-evm-lcd.dtb \
>       keystone-k2g-ice.dtb
>  dtb-$(CONFIG_MACH_KIRKWOOD) += \
>       kirkwood-b3.dtb \
> diff --git a/arch/arm/boot/dts/keystone-k2g-evm-lcd.dts 
> b/arch/arm/boot/dts/keystone-k2g-evm-lcd.dts
> new file mode 100644
> index 0000000..be04980
> --- /dev/null
> +++ b/arch/arm/boot/dts/keystone-k2g-evm-lcd.dts
> @@ -0,0 +1,80 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * Device Tree Source for K2G EVM with LCD Display
> + *
> + * Copyright (C) 2016-2018 Texas Instruments Incorporated - 
> http://www.ti.com/
> + */
> +
> +#include "keystone-k2g-evm.dts"
> +#include <dt-bindings/pwm/pwm.h>
> +
> +/ {
> +     lcd0: display {
> +             compatible = "newhaven,nhd-4.3-480272ef-atxl", "panel-dpi";
> +             label = "lcd";
> +
> +             backlight = <&lcd_bl>;
> +
> +             panel-timing {
> +                     clock-frequency = <9000000>;
> +                     hactive = <480>;
> +                     vactive = <272>;
> +                     hfront-porch = <2>;
> +                     hback-porch = <2>;
> +                     hsync-len = <41>;
> +                     vfront-porch = <2>;
> +                     vback-porch = <2>;
> +                     vsync-len = <10>;
> +                     hsync-active = <0>;
> +                     vsync-active = <0>;
> +                     de-active = <1>;
> +                     pixelclk-active = <1>;
> +             };

I think most of these are leftovers from the omapdrm version.
"panel-dpi", the timings, label...

 Tomi

-- 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to