This is the file I started with to build the mipi dsi driver. no backlight stuff in it.
tbuckley@tbuckley-Latitude-3440:~/tmp/seattle_tx2_kernel/sources/hardware/nvidia/platform$ ls
total 16K
drwxrwxr-x 4 tbuckley tbuckley 4.0K Jul 24 18:43 ./
drwxrwxr-x 4 tbuckley tbuckley 4.0K Jul 24 18:43 …/
drwxrwxr-x 4 tbuckley tbuckley 4.0K Jul 24 18:43 t18x/
drwxrwxr-x 3 tbuckley tbuckley 4.0K Jul 24 18:43 tegra/
cat ./tegra/common/kernel-dts/panels/panel-s-wuxga-8-0.dtsi
/*
- arch/arm/boot/dts/panel-s-wuxga-8-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 <dt-bindings/display/tegra-dc.h>
#include <dt-bindings/display/tegra-panel.h>
/ {
host1x {
dsi {
panel_s_wuxga_8_0: panel-s-wuxga-8-0 {
compatible = “s,wuxga-8-0”;
nvidia,dsi-instance = <DSI_INSTANCE_0>;
nvidia,dsi-pixel-format = <TEGRA_DSI_PIXEL_FORMAT_24BIT_P>;
nvidia,dsi-refresh-rate = <60>;
nvidia,dsi-video-data-type = <TEGRA_DSI_VIDEO_TYPE_VIDEO_MODE>;
nvidia,dsi-video-clock-mode = <TEGRA_DSI_VIDEO_CLOCK_CONTINUOUS>;
nvidia,dsi-controller-vs = <DSI_VS_1>;
nvidia,dsi-virtual-channel = <TEGRA_DSI_VIRTUAL_CHANNEL_0>;
nvidia,dsi-panel-reset = <TEGRA_DSI_ENABLE>;
nvidia,dsi-suspend-stop-stream-late = <TEGRA_DSI_ENABLE>;
nvidia,dsi-power-saving-suspend = <TEGRA_DSI_ENABLE>;
nvidia,dsi-ulpm-not-support = <TEGRA_DSI_DISABLE>;
nvidia,dsi-ganged-type = <TEGRA_DSI_DISABLE>;
nvidia,dsi-n-data-lanes = <2>;
nvidia,default_color_space = <1>; /default color profile:adobeRGB/
nvidia,dsi-suspend-cmd =
<TEGRA_DSI_PACKET_CMD DSI_DCS_WRITE_0_PARAM DSI_DCS_SET_DISPLAY_OFF 0x0 0x0>,
<TEGRA_DSI_SEND_FRAME 3>,
<TEGRA_DSI_PACKET_CMD DSI_DCS_WRITE_0_PARAM DSI_DCS_ENTER_SLEEP_MODE 0x0 0x0>,
<TEGRA_DSI_SEND_FRAME 10>;
nvidia,dsi-n-suspend-cmd = <4>;
disp-default-out {
nvidia,out-parent-clk = "pll_d";
nvidia,out-type = <TEGRA_DC_OUT_DSI>;
nvidia,out-width = <480>;
nvidia,out-height = <800>;
nvidia,out-flags = <TEGRA_DC_OUT_CONTINUOUS_MODE>;
nvidia,out-xres = <480>;
nvidia,out-yres = <800>;
};
display-timings {
480x800-24-60Hz {
clock-frequency = <32256000>;
hactive = <480>;
vactive = <800>;
hfront-porch = <100>;
hback-porch = <50>;
vfront-porch = <20>;
vback-porch = <16>;
hsync-len = <10>;
vsync-len = <4>;
/* nvidia,h-ref-to-sync = <1>; /
/ nvidia.v-ref-to-sync = <1>; */
};
};
};
};
};
};