Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
0002 //
0003 // Copyright (C) 2020 Pengutronix, Ulrich Oelmann <kernel@pengutronix.de>
0004 
0005 /dts-v1/;
0006 #include "imx6q.dtsi"
0007 #include "imx6qdl-skov-cpu.dtsi"
0008 
0009 / {
0010         model = "SKOV IMX6 CPU QuadCore";
0011         compatible = "skov,imx6q-skov-reve-mi1010ait-1cp1", "fsl,imx6q";
0012 
0013         backlight: backlight {
0014                 compatible = "pwm-backlight";
0015                 pinctrl-names = "default";
0016                 pinctrl-0 = <&pinctrl_backlight>;
0017                 enable-gpios = <&gpio6 23 GPIO_ACTIVE_LOW>;
0018                 pwms = <&pwm2 0 20000 0>;
0019                 brightness-levels = <0 255>;
0020                 num-interpolated-steps = <17>;
0021                 default-brightness-level = <8>;
0022                 power-supply = <&reg_24v0>;
0023         };
0024 
0025         panel {
0026                 compatible = "multi-inno,mi1010ait-1cp";
0027                 backlight = <&backlight>;
0028                 power-supply = <&reg_3v3>;
0029 
0030                 port {
0031                         panel_in: endpoint {
0032                                 remote-endpoint = <&lvds0_out>;
0033                         };
0034                 };
0035         };
0036 };
0037 
0038 &clks {
0039         assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
0040                           <&clks IMX6QDL_CLK_LDB_DI1_SEL>;
0041         assigned-clock-parents = <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>,
0042                                  <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>;
0043 };
0044 
0045 &hdmi {
0046         ddc-i2c-bus = <&i2c2>;
0047         status = "okay";
0048 };
0049 
0050 &i2c1 {
0051         pinctrl-names = "default";
0052         pinctrl-0 = <&pinctrl_i2c1>;
0053         clock-frequency = <100000>;
0054         status = "okay";
0055 
0056         touchscreen@38 {
0057                 compatible = "edt,edt-ft5406";
0058                 reg = <0x38>;
0059                 pinctrl-names = "default";
0060                 pinctrl-0 = <&pinctrl_touchscreen>;
0061                 interrupt-parent = <&gpio3>;
0062                 interrupts = <19 IRQ_TYPE_EDGE_FALLING>;
0063                 reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
0064                 touchscreen-size-x = <1280>;
0065                 touchscreen-size-y = <800>;
0066                 wakeup-source;
0067         };
0068 };
0069 
0070 &i2c2 {
0071         pinctrl-names = "default";
0072         pinctrl-0 = <&pinctrl_i2c2>;
0073         clock-frequency = <100000>;
0074         status = "okay";
0075 };
0076 
0077 &ldb {
0078         status = "okay";
0079 
0080         lvds-channel@0 {
0081                 status = "okay";
0082 
0083                 port@4 {
0084                         reg = <4>;
0085 
0086                         lvds0_out: endpoint {
0087                                 remote-endpoint = <&panel_in>;
0088                         };
0089                 };
0090         };
0091 };
0092 
0093 &iomuxc {
0094         pinctrl_backlight: backlightgrp {
0095                 fsl,pins = <
0096                         MX6QDL_PAD_RGMII_TD3__GPIO6_IO23                0x58
0097                 >;
0098         };
0099 
0100         pinctrl_i2c1: i2c1grp {
0101                 fsl,pins = <
0102                         /* external 1 k pull up */
0103                         MX6QDL_PAD_EIM_D21__I2C1_SCL            0x40010878
0104                         /* external 1 k pull up */
0105                         MX6QDL_PAD_EIM_D28__I2C1_SDA            0x40010878
0106                 >;
0107         };
0108 
0109         pinctrl_i2c2: i2c2grp {
0110                 fsl,pins = <
0111                         /* internal 22 k pull up required */
0112                         MX6QDL_PAD_KEY_COL3__I2C2_SCL           0x4001F878
0113                         /* internal 22 k pull up required */
0114                         MX6QDL_PAD_KEY_ROW3__I2C2_SDA           0x4001F878
0115                 >;
0116         };
0117 
0118         pinctrl_touchscreen: touchscreengrp {
0119                 fsl,pins = <
0120                         /* external 10 k pull up */
0121                         /* CTP_INT */
0122                         MX6QDL_PAD_EIM_D19__GPIO3_IO19          0x1b0b0
0123                         /* CTP_RST */
0124                         MX6QDL_PAD_EIM_D23__GPIO3_IO23          0x1b0b0
0125                 >;
0126         };
0127 };
0128 
0129 &reg_tft_vcom {
0130         regulator-min-microvolt = <3160000>;
0131         regulator-max-microvolt = <3160000>;
0132         voltage-table = <3160000 73>;
0133 };