2019-05-31 12:09:22 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
//
|
|
|
|
// Copyright (C) 2019 Logic PD, Inc.
|
2017-04-07 15:25:34 +00:00
|
|
|
|
|
|
|
/dts-v1/;
|
2018-12-28 14:55:41 +00:00
|
|
|
#include "imx6q.dtsi"
|
|
|
|
#include "imx6-logicpd-som.dtsi"
|
|
|
|
#include "imx6-logicpd-baseboard.dtsi"
|
2017-04-07 15:25:34 +00:00
|
|
|
|
|
|
|
/ {
|
2019-05-31 12:09:22 +00:00
|
|
|
model = "Logic PD i.MX6QD SOM-M3";
|
2017-04-07 15:25:34 +00:00
|
|
|
compatible = "fsl,imx6q";
|
|
|
|
|
2019-05-31 12:09:22 +00:00
|
|
|
backlight: backlight-lvds {
|
2018-12-28 14:55:41 +00:00
|
|
|
compatible = "pwm-backlight";
|
|
|
|
pwms = <&pwm3 0 20000>;
|
|
|
|
brightness-levels = <0 4 8 16 32 64 128 255>;
|
|
|
|
default-brightness-level = <6>;
|
|
|
|
power-supply = <®_lcd>;
|
2017-04-07 15:25:34 +00:00
|
|
|
};
|
|
|
|
|
2019-05-31 12:09:22 +00:00
|
|
|
panel-lvds0 {
|
|
|
|
compatible = "okaya,rs800480t-7x0gp";
|
|
|
|
|
|
|
|
port {
|
|
|
|
panel_in_lvds0: endpoint {
|
|
|
|
remote-endpoint = <&lvds0_out>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-28 14:55:41 +00:00
|
|
|
reg_lcd: regulator-lcd {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_lcd_reg>;
|
2017-04-07 15:25:34 +00:00
|
|
|
compatible = "regulator-fixed";
|
2018-12-28 14:55:41 +00:00
|
|
|
regulator-name = "lcd_panel_pwr";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
gpio = <&gpio4 17 GPIO_ACTIVE_HIGH>;
|
2017-04-07 15:25:34 +00:00
|
|
|
enable-active-high;
|
|
|
|
regulator-always-on;
|
2018-12-28 14:55:41 +00:00
|
|
|
vin-supply = <®_3v3>;
|
|
|
|
startup-delay-us = <500000>;
|
2017-04-07 15:25:34 +00:00
|
|
|
};
|
|
|
|
|
2019-05-31 12:09:22 +00:00
|
|
|
reg_lcd_reset: regulator-lcd-reset {
|
2018-12-28 14:55:41 +00:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_lcd_reset>;
|
2017-04-07 15:25:34 +00:00
|
|
|
compatible = "regulator-fixed";
|
2018-12-28 14:55:41 +00:00
|
|
|
regulator-name = "nLCD_RESET";
|
2017-04-07 15:25:34 +00:00
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
2018-12-28 14:55:41 +00:00
|
|
|
gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
|
|
|
|
enable-active-high;
|
|
|
|
regulator-always-on;
|
|
|
|
vin-supply = <®_lcd>;
|
|
|
|
};
|
2019-05-31 12:09:22 +00:00
|
|
|
};
|
2018-12-28 14:55:41 +00:00
|
|
|
|
2019-05-31 12:09:22 +00:00
|
|
|
&clks {
|
|
|
|
assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
|
|
|
|
<&clks IMX6QDL_CLK_LDB_DI1_SEL>,
|
|
|
|
<&clks IMX6QDL_CLK_IPU1_DI0_PRE_SEL>,
|
|
|
|
<&clks IMX6QDL_CLK_IPU2_DI0_PRE_SEL>;
|
|
|
|
assigned-clock-parents = <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>,
|
|
|
|
<&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>,
|
|
|
|
<&clks IMX6QDL_CLK_PLL2_PFD2_396M>,
|
|
|
|
<&clks IMX6QDL_CLK_PLL2_PFD2_396M>;
|
2017-04-07 15:25:34 +00:00
|
|
|
};
|
|
|
|
|
2018-12-28 14:55:41 +00:00
|
|
|
&hdmi {
|
|
|
|
ddc-i2c-bus = <&i2c3>;
|
2017-04-07 15:25:34 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-12-28 14:55:41 +00:00
|
|
|
&ldb {
|
2017-04-07 15:25:34 +00:00
|
|
|
status = "okay";
|
2018-12-28 14:55:41 +00:00
|
|
|
|
|
|
|
lvds-channel@0 {
|
|
|
|
fsl,data-mapping = "spwg";
|
|
|
|
fsl,data-width = <24>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
port@4 {
|
|
|
|
reg = <4>;
|
|
|
|
lvds0_out: endpoint {
|
|
|
|
remote-endpoint = <&panel_in_lvds0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-04-07 15:25:34 +00:00
|
|
|
};
|
|
|
|
|
2018-12-28 14:55:41 +00:00
|
|
|
&pwm3 {
|
2017-04-07 15:25:34 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2019-05-31 12:09:22 +00:00
|
|
|
®_hdmi {
|
|
|
|
regulator-always-on; /* Without this, the level shifter on HDMI doesn't turn on */
|
2017-04-07 15:25:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&iomuxc {
|
2018-12-28 14:55:41 +00:00
|
|
|
pinctrl_lcd_reg: lcdreg {
|
2017-04-07 15:25:34 +00:00
|
|
|
fsl,pins = <
|
2018-12-28 14:55:41 +00:00
|
|
|
MX6QDL_PAD_DI0_PIN15__GPIO4_IO17 0x100b0 /* R_LCD_PANEL_PWR */
|
2017-04-07 15:25:34 +00:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2018-12-28 14:55:41 +00:00
|
|
|
pinctrl_lcd_reset: lcdreset {
|
2017-04-07 15:25:34 +00:00
|
|
|
fsl,pins = <
|
2019-05-31 12:09:22 +00:00
|
|
|
MX6QDL_PAD_EIM_A25__GPIO5_IO02 0x100b0 /* LCD_nRESET */
|
2017-04-07 15:25:34 +00:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2018-12-28 14:55:41 +00:00
|
|
|
pinctrl_touchscreen: touchscreengrp {
|
2017-04-07 15:25:34 +00:00
|
|
|
fsl,pins = <
|
2018-12-28 14:55:41 +00:00
|
|
|
MX6QDL_PAD_GPIO_6__GPIO1_IO06 0x1b0b0 /* TOUCH_nPINTDAV */
|
2017-04-07 15:25:34 +00:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|