Re: [PATCH v8 2/3] ARM: dts: Add support for i.MX6 UltraLite DART Variscite Customboard

2021-01-10 Thread Oliver Graute
On 09/01/21, Fabio Estevam wrote:
> On Fri, Jan 8, 2021 at 7:23 PM Oliver Graute  wrote:
> 
> > +   panel1: panel-lcd {
> > +   compatible = "sgd,gktw70sdad1sd";
> > +
> > +   backlight = <_lcd>;
> > +   power-supply = <_touch_3v3>;
> > +   label = "gktw70sdad1sd";
> > +
> > +   display-timing {
> 
> If you pass the compatible, then you don't need to add the
> display-timing in the device tree.

thx I`ll drop it

Best Regards,

Oliver


Re: [PATCH v8 2/3] ARM: dts: Add support for i.MX6 UltraLite DART Variscite Customboard

2021-01-09 Thread Fabio Estevam
On Fri, Jan 8, 2021 at 7:23 PM Oliver Graute  wrote:

> +   panel1: panel-lcd {
> +   compatible = "sgd,gktw70sdad1sd";
> +
> +   backlight = <_lcd>;
> +   power-supply = <_touch_3v3>;
> +   label = "gktw70sdad1sd";
> +
> +   display-timing {

If you pass the compatible, then you don't need to add the
display-timing in the device tree.


[PATCH v8 2/3] ARM: dts: Add support for i.MX6 UltraLite DART Variscite Customboard

2021-01-08 Thread Oliver Graute
This patch adds DeviceTree Source for the i.MX6 UltraLite DART NAND/WIFI

Signed-off-by: Oliver Graute 
Cc: Shawn Guo 
Cc: Neil Armstrong 
Cc: Marco Felsch 
Cc: Parthiban Nallathambi 
---
Changelog:

v8:
 - backlight droped the status line
 - port the display panel
 - added pinctrl for touch

v7:
 - fixed wakeup-source

v6:
 - added some muxing
 - added codec in sound node
 - added adc1 node

 arch/arm/boot/dts/Makefile  |   1 +
 arch/arm/boot/dts/imx6ul-var-6ulcustomboard.dts | 270 
 2 files changed, 271 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx6ul-var-6ulcustomboard.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 3d1ea0b..7a73b72 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -634,6 +634,7 @@ dtb-$(CONFIG_SOC_IMX6UL) += \
imx6ul-tx6ul-0010.dtb \
imx6ul-tx6ul-0011.dtb \
imx6ul-tx6ul-mainboard.dtb \
+   imx6ul-var-6ulcustomboard.dtb \
imx6ull-14x14-evk.dtb \
imx6ull-colibri-eval-v3.dtb \
imx6ull-colibri-wifi-eval-v3.dtb \
diff --git a/arch/arm/boot/dts/imx6ul-var-6ulcustomboard.dts 
b/arch/arm/boot/dts/imx6ul-var-6ulcustomboard.dts
new file mode 100644
index ..e647d22
--- /dev/null
+++ b/arch/arm/boot/dts/imx6ul-var-6ulcustomboard.dts
@@ -0,0 +1,270 @@
+// SPDX-License-Identifier: (GPL-2.0)
+/*
+ * Support for Variscite DART-6UL Module
+ *
+ * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ * Copyright (C) 2015-2016 Variscite Ltd. - http://www.variscite.com
+ * Copyright (C) 2018-2021 Oliver Graute 
+ */
+
+/dts-v1/;
+
+#include 
+#include "imx6ul-imx6ull-var-dart-common.dtsi"
+
+/ {
+   model = "Variscite i.MX6 UltraLite Carrier-board";
+   compatible = "variscite,6ulcustomboard", "fsl,imx6ul";
+
+   backlight_lcd: backlight {
+   compatible = "pwm-backlight";
+   pwms = < 0 2>;
+   brightness-levels = <0 4 8 16 32 64 128 255>;
+   default-brightness-level = <6>;
+   status = "okay";
+   };
+
+   gpio-keys {
+   compatible = "gpio-keys";
+   pinctrl-names = "default";
+   pinctrl-0 = <_gpio_keys>;
+
+   user {
+   gpios = < 0 GPIO_ACTIVE_LOW>;
+   linux,code = ;
+   wakeup-source;
+   };
+   };
+
+   gpio-leds {
+   compatible = "gpio-leds";
+   pinctrl-names = "default";
+   pinctrl-0 = <_gpio_leds>;
+
+   d16-led {
+   gpios = < 20 GPIO_ACTIVE_HIGH>;
+   linux,default-trigger = "heartbeat";
+   };
+   };
+
+   panel1: panel-lcd {
+   compatible = "sgd,gktw70sdad1sd";
+
+   backlight = <_lcd>;
+   power-supply = <_touch_3v3>;
+   label = "gktw70sdad1sd";
+
+   display-timing {
+   /* clock-frequency = <29232000>; */
+   clock-frequency = <3500>;
+   hactive = <800>;
+   vactive = <480>;
+   hfront-porch = <40>;
+   hback-porch = <40>;
+   vsync-len = <48>;
+   vback-porch = <29>;
+   vfront-porch = <13>;
+   hsync-len = <3>;
+   hsync-active = <0>;
+   vsync-active = <0>;
+   de-active = <1>;
+   pixelclk-active = <0>;
+   };
+
+   port {
+   panel_in: endpoint {
+   remote-endpoint = <_out>;
+   };
+   };
+   };
+
+   sound {
+   compatible = "simple-audio-card";
+   simple-audio-card,name = "wm8731audio";
+   simple-audio-card,widgets =
+   "Headphone", "Headphone Jack",
+   "Line", "Line Jack",
+   "Microphone", "Mic Jack";
+   simple-audio-card,routing =
+   "Headphone Jack", "RHPOUT",
+   "Headphone Jack", "LHPOUT",
+   "LLINEIN", "Line Jack",
+   "RLINEIN", "Line Jack",
+   "MICIN", "Mic Bias",
+   "Mic Bias", "Mic Jack";
+   simple-audio-card,format = "i2s";
+   simple-audio-card,bitclock-master = <_dai>;
+   simple-audio-card,frame-master = <_dai>;
+
+   codec_dai: simple-audio-card,codec {
+   sound-dai = <>;
+   system-clock-frequency = <12288000>;
+   };
+   };
+};
+
+ {
+   status = "okay";
+};
+
+ {
+   status = "okay";
+};
+
+ {
+   status = "okay";
+};
+
+ {
+   status = "okay";
+};
+
+ {
+   status =