blob: 45eb0b7f75f83c88339a7e04ebc42cdf77e037fb [file] [log] [blame]
Adam Ford55e33f92019-05-31 07:09:22 -05001// SPDX-License-Identifier: GPL-2.0
2//
3// Copyright (C) 2019 Logic PD, Inc.
Adam Forda2965c92017-04-07 10:25:34 -05004
5/dts-v1/;
Adam Ford158e9192018-12-28 08:55:41 -06006#include "imx6q.dtsi"
7#include "imx6-logicpd-som.dtsi"
8#include "imx6-logicpd-baseboard.dtsi"
Adam Forda2965c92017-04-07 10:25:34 -05009
10/ {
Adam Ford55e33f92019-05-31 07:09:22 -050011 model = "Logic PD i.MX6QD SOM-M3";
Adam Forda2965c92017-04-07 10:25:34 -050012 compatible = "fsl,imx6q";
13
Adam Ford55e33f92019-05-31 07:09:22 -050014 backlight: backlight-lvds {
Adam Ford158e9192018-12-28 08:55:41 -060015 compatible = "pwm-backlight";
16 pwms = <&pwm3 0 20000>;
17 brightness-levels = <0 4 8 16 32 64 128 255>;
18 default-brightness-level = <6>;
19 power-supply = <&reg_lcd>;
Adam Forda2965c92017-04-07 10:25:34 -050020 };
21
Adam Ford55e33f92019-05-31 07:09:22 -050022 panel-lvds0 {
23 compatible = "okaya,rs800480t-7x0gp";
24
25 port {
26 panel_in_lvds0: endpoint {
27 remote-endpoint = <&lvds0_out>;
28 };
29 };
30 };
31
Adam Ford158e9192018-12-28 08:55:41 -060032 reg_lcd: regulator-lcd {
33 pinctrl-names = "default";
34 pinctrl-0 = <&pinctrl_lcd_reg>;
Adam Forda2965c92017-04-07 10:25:34 -050035 compatible = "regulator-fixed";
Adam Ford158e9192018-12-28 08:55:41 -060036 regulator-name = "lcd_panel_pwr";
37 regulator-min-microvolt = <3300000>;
38 regulator-max-microvolt = <3300000>;
39 gpio = <&gpio4 17 GPIO_ACTIVE_HIGH>;
Adam Forda2965c92017-04-07 10:25:34 -050040 enable-active-high;
41 regulator-always-on;
Adam Ford158e9192018-12-28 08:55:41 -060042 vin-supply = <&reg_3v3>;
43 startup-delay-us = <500000>;
Adam Forda2965c92017-04-07 10:25:34 -050044 };
45
Adam Ford55e33f92019-05-31 07:09:22 -050046 reg_lcd_reset: regulator-lcd-reset {
Adam Ford158e9192018-12-28 08:55:41 -060047 pinctrl-names = "default";
48 pinctrl-0 = <&pinctrl_lcd_reset>;
Adam Forda2965c92017-04-07 10:25:34 -050049 compatible = "regulator-fixed";
Adam Ford158e9192018-12-28 08:55:41 -060050 regulator-name = "nLCD_RESET";
Adam Forda2965c92017-04-07 10:25:34 -050051 regulator-min-microvolt = <3300000>;
52 regulator-max-microvolt = <3300000>;
Adam Ford158e9192018-12-28 08:55:41 -060053 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
54 enable-active-high;
55 regulator-always-on;
56 vin-supply = <&reg_lcd>;
57 };
Adam Ford55e33f92019-05-31 07:09:22 -050058};
Adam Ford158e9192018-12-28 08:55:41 -060059
Adam Ford55e33f92019-05-31 07:09:22 -050060&clks {
61 assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
62 <&clks IMX6QDL_CLK_LDB_DI1_SEL>,
63 <&clks IMX6QDL_CLK_IPU1_DI0_PRE_SEL>,
64 <&clks IMX6QDL_CLK_IPU2_DI0_PRE_SEL>;
65 assigned-clock-parents = <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>,
66 <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>,
67 <&clks IMX6QDL_CLK_PLL2_PFD2_396M>,
68 <&clks IMX6QDL_CLK_PLL2_PFD2_396M>;
Adam Forda2965c92017-04-07 10:25:34 -050069};
70
Adam Ford158e9192018-12-28 08:55:41 -060071&hdmi {
72 ddc-i2c-bus = <&i2c3>;
Adam Forda2965c92017-04-07 10:25:34 -050073 status = "okay";
74};
75
Adam Ford158e9192018-12-28 08:55:41 -060076&ldb {
Adam Forda2965c92017-04-07 10:25:34 -050077 status = "okay";
Adam Ford158e9192018-12-28 08:55:41 -060078
79 lvds-channel@0 {
80 fsl,data-mapping = "spwg";
81 fsl,data-width = <24>;
82 status = "okay";
83
84 port@4 {
85 reg = <4>;
Adam Ford158e9192018-12-28 08:55:41 -060086 lvds0_out: endpoint {
87 remote-endpoint = <&panel_in_lvds0>;
88 };
89 };
90 };
91
Adam Ford158e9192018-12-28 08:55:41 -060092};
93
94&pwm3 {
Adam Forda2965c92017-04-07 10:25:34 -050095 status = "okay";
96};
97
Adam Ford55e33f92019-05-31 07:09:22 -050098&reg_hdmi {
99 regulator-always-on; /* Without this, the level shifter on HDMI doesn't turn on */
Adam Forda2965c92017-04-07 10:25:34 -0500100};
101
102&iomuxc {
Adam Ford158e9192018-12-28 08:55:41 -0600103 pinctrl_lcd_reg: lcdreg {
Adam Forda2965c92017-04-07 10:25:34 -0500104 fsl,pins = <
Adam Ford158e9192018-12-28 08:55:41 -0600105 MX6QDL_PAD_DI0_PIN15__GPIO4_IO17 0x100b0 /* R_LCD_PANEL_PWR */
Adam Forda2965c92017-04-07 10:25:34 -0500106 >;
107 };
108
Adam Ford158e9192018-12-28 08:55:41 -0600109 pinctrl_lcd_reset: lcdreset {
Adam Forda2965c92017-04-07 10:25:34 -0500110 fsl,pins = <
Adam Ford55e33f92019-05-31 07:09:22 -0500111 MX6QDL_PAD_EIM_A25__GPIO5_IO02 0x100b0 /* LCD_nRESET */
Adam Forda2965c92017-04-07 10:25:34 -0500112 >;
113 };
114
Adam Ford158e9192018-12-28 08:55:41 -0600115 pinctrl_touchscreen: touchscreengrp {
Adam Forda2965c92017-04-07 10:25:34 -0500116 fsl,pins = <
Adam Ford158e9192018-12-28 08:55:41 -0600117 MX6QDL_PAD_GPIO_6__GPIO1_IO06 0x1b0b0 /* TOUCH_nPINTDAV */
Adam Forda2965c92017-04-07 10:25:34 -0500118 >;
119 };
Adam Forda2965c92017-04-07 10:25:34 -0500120};