// SPDX-License-Identifier: GPL-2.0-only /* * JDI LPM062M326A 720x1280 MIPI-DSI panel, as used on the Nintendo Switch. * * Ported from switchroot's mainline patch 0010: * reference/switchroot-mainline/0010-v0-drm-panel-add-driver-for-jdi-lpm062m326a.patch * The display timings, the panel-ID check and the init sequence are theirs. * Original author: SwtcR . * * Changes for the current DRM panel API: devm_drm_panel_alloc() replaces the * manual drm_panel_init()/funcs/dev assignment, get_modes() takes the connector * as an argument, drm_panel_attach/detach are gone, and devm_of_find_backlight() * replaces of_find_backlight_by_node(). drmP.h no longer exists. */ #include #include #include #include #include #include #include #include #include #include