Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  * Sharp LS037V7DW01 LCD Panel Driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  * Copyright (C) 2019 Texas Instruments Incorporated
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  * Based on the omapdrm-specific panel-sharp-ls037v7dw01 driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9)  * Copyright (C) 2013 Texas Instruments Incorporated
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10)  * Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) #include <linux/delay.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) #include <linux/gpio/consumer.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #include <linux/of.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #include <linux/platform_device.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) #include <linux/regulator/consumer.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) #include <drm/drm_connector.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) #include <drm/drm_modes.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) #include <drm/drm_panel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) struct ls037v7dw01_panel {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) 	struct drm_panel panel;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) 	struct platform_device *pdev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) 	struct regulator *vdd;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) 	struct gpio_desc *resb_gpio;	/* low = reset active min 20 us */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) 	struct gpio_desc *ini_gpio;	/* high = power on */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) 	struct gpio_desc *mo_gpio;	/* low = 480x640, high = 240x320 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) 	struct gpio_desc *lr_gpio;	/* high = conventional horizontal scanning */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 	struct gpio_desc *ud_gpio;	/* high = conventional vertical scanning */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) #define to_ls037v7dw01_device(p) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 	container_of(p, struct ls037v7dw01_panel, panel)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) static int ls037v7dw01_disable(struct drm_panel *panel)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) 	struct ls037v7dw01_panel *lcd = to_ls037v7dw01_device(panel);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 	gpiod_set_value_cansleep(lcd->ini_gpio, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 	gpiod_set_value_cansleep(lcd->resb_gpio, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 	/* Wait at least 5 vsyncs after disabling the LCD. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) 	msleep(100);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) static int ls037v7dw01_unprepare(struct drm_panel *panel)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	struct ls037v7dw01_panel *lcd = to_ls037v7dw01_device(panel);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 	regulator_disable(lcd->vdd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) static int ls037v7dw01_prepare(struct drm_panel *panel)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 	struct ls037v7dw01_panel *lcd = to_ls037v7dw01_device(panel);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 	int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 	ret = regulator_enable(lcd->vdd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 	if (ret < 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 		dev_err(&lcd->pdev->dev, "%s: failed to enable regulator\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 			__func__);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 	return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) static int ls037v7dw01_enable(struct drm_panel *panel)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 	struct ls037v7dw01_panel *lcd = to_ls037v7dw01_device(panel);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 	/* Wait couple of vsyncs before enabling the LCD. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 	msleep(50);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	gpiod_set_value_cansleep(lcd->resb_gpio, 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 	gpiod_set_value_cansleep(lcd->ini_gpio, 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) static const struct drm_display_mode ls037v7dw01_mode = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 	.clock = 19200,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 	.hdisplay = 480,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 	.hsync_start = 480 + 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 	.hsync_end = 480 + 1 + 2,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 	.htotal = 480 + 1 + 2 + 28,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 	.vdisplay = 640,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 	.vsync_start = 640 + 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 	.vsync_end = 640 + 1 + 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 	.vtotal = 640 + 1 + 1 + 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 	.type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 	.flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 	.width_mm = 56,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 	.height_mm = 75,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) static int ls037v7dw01_get_modes(struct drm_panel *panel,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 				 struct drm_connector *connector)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 	struct drm_display_mode *mode;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 	mode = drm_mode_duplicate(connector->dev, &ls037v7dw01_mode);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 	if (!mode)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 		return -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 	drm_mode_set_name(mode);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 	drm_mode_probed_add(connector, mode);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 	connector->display_info.width_mm = ls037v7dw01_mode.width_mm;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 	connector->display_info.height_mm = ls037v7dw01_mode.height_mm;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 	/*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 	 * FIXME: According to the datasheet pixel data is sampled on the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 	 * rising edge of the clock, but the code running on the SDP3430
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 	 * indicates sampling on the negative edge. This should be tested on a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 	 * real device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 	 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 	connector->display_info.bus_flags = DRM_BUS_FLAG_DE_HIGH
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 					  | DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 					  | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 	return 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) static const struct drm_panel_funcs ls037v7dw01_funcs = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 	.disable = ls037v7dw01_disable,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 	.unprepare = ls037v7dw01_unprepare,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 	.prepare = ls037v7dw01_prepare,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 	.enable = ls037v7dw01_enable,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 	.get_modes = ls037v7dw01_get_modes,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) static int ls037v7dw01_probe(struct platform_device *pdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 	struct ls037v7dw01_panel *lcd;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 	lcd = devm_kzalloc(&pdev->dev, sizeof(*lcd), GFP_KERNEL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 	if (!lcd)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 		return -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 	platform_set_drvdata(pdev, lcd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 	lcd->pdev = pdev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 	lcd->vdd = devm_regulator_get(&pdev->dev, "envdd");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 	if (IS_ERR(lcd->vdd)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 		dev_err(&pdev->dev, "failed to get regulator\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 		return PTR_ERR(lcd->vdd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 	lcd->ini_gpio = devm_gpiod_get(&pdev->dev, "enable", GPIOD_OUT_LOW);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 	if (IS_ERR(lcd->ini_gpio)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 		dev_err(&pdev->dev, "failed to get enable gpio\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 		return PTR_ERR(lcd->ini_gpio);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 	lcd->resb_gpio = devm_gpiod_get(&pdev->dev, "reset", GPIOD_OUT_LOW);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 	if (IS_ERR(lcd->resb_gpio)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 		dev_err(&pdev->dev, "failed to get reset gpio\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 		return PTR_ERR(lcd->resb_gpio);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 	lcd->mo_gpio = devm_gpiod_get_index(&pdev->dev, "mode", 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 					    GPIOD_OUT_LOW);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 	if (IS_ERR(lcd->mo_gpio)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 		dev_err(&pdev->dev, "failed to get mode[0] gpio\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 		return PTR_ERR(lcd->mo_gpio);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 	lcd->lr_gpio = devm_gpiod_get_index(&pdev->dev, "mode", 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 					    GPIOD_OUT_LOW);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 	if (IS_ERR(lcd->lr_gpio)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 		dev_err(&pdev->dev, "failed to get mode[1] gpio\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 		return PTR_ERR(lcd->lr_gpio);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 	lcd->ud_gpio = devm_gpiod_get_index(&pdev->dev, "mode", 2,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 					    GPIOD_OUT_LOW);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 	if (IS_ERR(lcd->ud_gpio)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 		dev_err(&pdev->dev, "failed to get mode[2] gpio\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 		return PTR_ERR(lcd->ud_gpio);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 	drm_panel_init(&lcd->panel, &pdev->dev, &ls037v7dw01_funcs,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 		       DRM_MODE_CONNECTOR_DPI);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 	drm_panel_add(&lcd->panel);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) static int ls037v7dw01_remove(struct platform_device *pdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 	struct ls037v7dw01_panel *lcd = platform_get_drvdata(pdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 	drm_panel_remove(&lcd->panel);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 	drm_panel_disable(&lcd->panel);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 	drm_panel_unprepare(&lcd->panel);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) static const struct of_device_id ls037v7dw01_of_match[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 	{ .compatible = "sharp,ls037v7dw01", },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 	{ /* sentinel */ },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) MODULE_DEVICE_TABLE(of, ls037v7dw01_of_match);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) static struct platform_driver ls037v7dw01_driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 	.probe		= ls037v7dw01_probe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 	.remove		= ls037v7dw01_remove,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 	.driver		= {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 		.name = "panel-sharp-ls037v7dw01",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 		.of_match_table = ls037v7dw01_of_match,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) module_platform_driver(ls037v7dw01_driver);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) MODULE_AUTHOR("Tomi Valkeinen <tomi.valkeinen@ti.com>");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) MODULE_DESCRIPTION("Sharp LS037V7DW01 Panel Driver");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) MODULE_LICENSE("GPL");