dt-bindings: Add AUO H546DLB01 single channel MIPI screen dts
authorbivvy <bivvy.bi@rock-chips.com>
Fri, 2 Sep 2016 08:41:29 +0000 (16:41 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 5 Sep 2016 09:15:46 +0000 (17:15 +0800)
H546dlb01 is a 5.46 inch OLED screen with resolution 1080x1920.

Change-Id: I977f355c53c58f6dba46c4581fc8190bfce04cf2
Signed-off-by: bivvy <bivvy.bi@rock-chips.com>
include/dt-bindings/display/screen-timing/lcd-h546dlb01-mipi.dtsi [new file with mode: 0644]

diff --git a/include/dt-bindings/display/screen-timing/lcd-h546dlb01-mipi.dtsi b/include/dt-bindings/display/screen-timing/lcd-h546dlb01-mipi.dtsi
new file mode 100644 (file)
index 0000000..d37ff0e
--- /dev/null
@@ -0,0 +1,172 @@
+/*
+ * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
+ *
+ * This file is dual-licensed: you can use it either under the terms
+ * of the GPL or the X11 license, at your option. Note that this dual
+ * licensing only applies to this file, and not this project as a
+ * whole.
+ *
+ *  a) This file is free software; you can redistribute it and/or
+ *     modify it under the terms of the GNU General Public License as
+ *     published by the Free Software Foundation; either version 2 of the
+ *     License, or (at your option) any later version.
+ *
+ *     This file is distributed in the hope that it will be useful,
+ *     but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *     GNU General Public License for more details.
+ *
+ * Or, alternatively,
+ *
+ *  b) Permission is hereby granted, free of charge, to any person
+ *     obtaining a copy of this software and associated documentation
+ *     files (the "Software"), to deal in the Software without
+ *     restriction, including without limitation the rights to use,
+ *     copy, modify, merge, publish, distribute, sublicense, and/or
+ *     sell copies of the Software, and to permit persons to whom the
+ *     Software is furnished to do so, subject to the following
+ *     conditions:
+ *
+ *     The above copyright notice and this permission notice shall be
+ *     included in all copies or substantial portions of the Software.
+ *
+ *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ *     OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * include/dt-bindings/display/screen-timing/lcd-h546dlb01-mipi.dtsi
+ * author: bivvy.bi@rock-chips.com
+ * create date: 2016-09-02
+ * lcd Model: AUO h546dlb01
+ * resolution: 1080 X 1920
+ * mipi channel: single
+ */
+
+disp_mipi_init: mipi_dsi_init {
+       compatible = "rockchip,mipi_dsi_init";
+       rockchip,screen_init = <1>;
+       rockchip,dsi_lane = <4>;
+       rockchip,dsi_hs_clk = <1050>;
+       rockchip,mipi_dsi_num = <1>;
+};
+
+disp_mipi_power_ctr: mipi_power_ctr {
+       compatible = "rockchip,mipi_power_ctr";
+};
+
+disp_mipi_init_cmds: screen-on-cmds {
+       compatible = "rockchip,screen-on-cmds";
+       rockchip,cmd_debug = <1>;
+
+       rockchip,on-cmds1 {
+               compatible = "rockchip,on-cmds";
+               rockchip,cmd_type = <LPDT>;
+               rockchip,dsi_id = <0>;
+               rockchip,cmd = <0x23 0xFE 0x08>;
+               rockchip,cmd_delay = <0>;
+       };
+
+       rockchip,on-cmds2 {
+               compatible = "rockchip,on-cmds";
+               rockchip,cmd_type = <LPDT>;
+               rockchip,dsi_id = <0>;
+               rockchip,cmd = <0x23 0x03 0x40>;
+               rockchip,cmd_delay = <0>;
+       };
+
+       rockchip,on-cmds3 {
+               compatible = "rockchip,on-cmds";
+               rockchip,cmd_type = <LPDT>;
+               rockchip,dsi_id = <0>;
+               rockchip,cmd = <0x23 0x07 0x1a>;
+               rockchip,cmd_delay = <0>;
+       };
+
+       rockchip,on-cmds4 {
+               compatible = "rockchip,on-cmds";
+               rockchip,cmd_type = <LPDT>;
+               rockchip,dsi_id = <0>;
+               rockchip,cmd = <0x23 0xfe 0x0d>;
+               rockchip,cmd_delay = <0>;
+       };
+
+       rockchip,on-cmds5 {
+               compatible = "rockchip,on-cmds";
+               rockchip,cmd_type = <LPDT>;
+               rockchip,dsi_id = <0>;
+               rockchip,cmd = <0x23 0x53 0xfe>;
+               rockchip,cmd_delay = <0>;
+       };
+
+       rockchip,on-cmds6 {
+               compatible = "rockchip,on-cmds";
+               rockchip,cmd_type = <LPDT>;
+               rockchip,dsi_id = <0>;
+               rockchip,cmd = <0x23 0xfe 0x00>;
+               rockchip,cmd_delay = <0>;
+       };
+
+       rockchip,on-cmds7 {
+               compatible = "rockchip,on-cmds";
+               rockchip,cmd_type = <LPDT>;
+               rockchip,dsi_id = <0>;
+               rockchip,cmd = <0x23 0x51 0xff>;
+               rockchip,cmd_delay = <0>;
+       };
+
+       rockchip,on-cmds8 {
+               compatible = "rockchip,on-cmds";
+               rockchip,cmd_type = <LPDT>;
+               rockchip,dsi_id = <0>;
+               rockchip,cmd = <0x23 0xc2 0x03>;
+               rockchip,cmd_delay = <0>;
+       };
+
+       rockchip,on-cmds9 {
+               compatible = "rockchip,on-cmds";
+               rockchip,cmd_type = <LPDT>;
+               rockchip,dsi_id = <0>;
+               rockchip,cmd = <0x05 dcs_exit_sleep_mode>;
+               rockchip,cmd_delay = <120>;
+       };
+
+       rockchip,on-cmds10 {
+               compatible = "rockchip,on-cmds";
+               rockchip,cmd_type = <LPDT>;
+               rockchip,dsi_id = <0>;
+               rockchip,cmd = <0x05 dcs_set_display_on>;
+               rockchip,cmd_delay = <0>;
+       };
+};
+
+disp_timings: display-timings {
+       native-mode = <&timing0>;
+       compatible = "rockchip,display-timings";
+
+       timing0: timing0 {
+               screen-type = <SCREEN_MIPI>;
+               lvds-format = <LVDS_8BIT_2>;
+               out-face = <OUT_P888>;
+               clock-frequency = <153000000>;
+               hactive = <1080>;
+               vactive = <1920>;
+               hback-porch = <24>;
+               hfront-porch = <8>;
+               vback-porch = <7>;
+               vfront-porch = <12>;
+               hsync-len = <5>;
+               vsync-len = <5>;
+               hsync-active = <0>;
+               vsync-active = <0>;
+               de-active = <0>;
+               pixelclk-active = <0>;
+               swap-rb = <0>;
+               swap-rg = <0>;
+               swap-gb = <0>;
+       };
+};