/* * arch/arm/boot/dts/panel-o-720p-6-0.dtsi * * Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. * * This program 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 program 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. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include #include / { host1x { dsi { panel_o_720p_6_0: panel-o-720p-6-0 { status = "disabled"; compatible = "o,720-1280-6-0"; nvidia,dsi-instance = ; nvidia,dsi-n-data-lanes = <4>; nvidia,dsi-pixel-format = ; nvidia,dsi-refresh-rate = <60>; nvidia,dsi-video-data-type = ; nvidia,dsi-video-clock-mode = ; nvidia,dsi-video-burst-mode = ; nvidia,dsi-virtual-channel = ; nvidia,dsi-panel-reset = ; nvidia,dsi-power-saving-suspend = ; nvidia,dsi-ulpm-not-support = ; nvidia,dsi-init-cmd = , , , , , , , <0x0 DSI_DCS_WRITE_1_PARAM 0xcc 0x05 0x0>, , , , <0x0 DSI_DCS_WRITE_1_PARAM 0xbd 0x0 0x0>, , <0x0 DSI_DCS_WRITE_1_PARAM 0xbd 0x01 0x0>, , <0x0 DSI_DCS_WRITE_1_PARAM 0xbd 0x02 0x0>, , <0x0 DSI_DCS_WRITE_1_PARAM 0xbd 0x0 0x0>, , <0x0 DSI_DCS_WRITE_1_PARAM 0xbd 0x0 0x0>, , <0x0 DSI_DCS_WRITE_1_PARAM 0xbd 0x1 0x0>, , <0x0 DSI_DCS_WRITE_1_PARAM 0xbd 0x2 0x0>, , <0x0 DSI_DCS_WRITE_1_PARAM 0xbd 0x0 0x0>, <0x0 DSI_DCS_WRITE_0_PARAM DSI_DCS_EXIT_SLEEP_MODE 0x0 0x0>, , //180ms + 20ms /* TODO, Do we need to find a way to set set_display_on after "operate DSI_A in video mode"? */ <0x0 DSI_DCS_WRITE_0_PARAM DSI_DCS_SET_DISPLAY_ON 0x0 0x0>; nvidia,dsi-n-init-cmd = <29>; nvidia,dsi-suspend-cmd = <0x0 DSI_DCS_WRITE_0_PARAM DSI_DCS_SET_DISPLAY_OFF 0x0 0x0>, , <0x0 DSI_DCS_WRITE_0_PARAM DSI_DCS_ENTER_SLEEP_MODE 0x0 0x0>, ; nvidia,dsi-n-suspend-cmd = <4>; disp-default-out { nvidia,out-type = ; /* TODO check real physical width and height in mm unit */ nvidia,out-width = <80>; nvidia,out-height = <142>; nvidia,out-flags = ; nvidia,out-xres = <720>; nvidia,out-yres = <1280>; }; display-timings { 720x1280-24 { clock-frequency = <76693500>; /* (720+121+134) x (1280+9+22) x 60 */ hactive = <720>; vactive = <1280>; hfront-porch = <121>; /* 90.75 Byte clk / 0.75 = 121 */ /* TODO, doc mentioned HS+HBP to 100 Byte clk (133.33...) * Once hsync_width and HBP are clear, need to set these again */ hback-porch = <67>; hsync-len = <67>; vfront-porch = <9>; /* TODO, doc mentioned VBP only to 22. * Once vsync_width is clear, need to set VBP and vsync_width again */ vback-porch = <21>; vsync-len = <1>; nvidia,h-ref-to-sync = <1>; nvidia,v-ref-to-sync = <1>; }; }; smartdimmer { status = "disabled"; }; }; }; }; backlight { panel_o_720p_6_0_bl: panel-o-720p-6-0-bl { status = "disabled"; compatible = "o,720-1280-6-0-bl"; pwms = <&tegra_pwm 1 50000>; max-brightness = <255>; default-brightness = <224>; }; }; };