Lines Matching refs:jadard

22 struct jadard;
28 int (*init)(struct jadard *jadard);
38 struct jadard { struct
61 static inline struct jadard *panel_to_jadard(struct drm_panel *panel) in panel_to_jadard() argument
63 return container_of(panel, struct jadard, panel); in panel_to_jadard()
68 struct jadard *jadard = panel_to_jadard(panel); in jadard_disable() local
69 struct mipi_dsi_multi_context dsi_ctx = { .dsi = jadard->dsi }; in jadard_disable()
71 if (jadard->desc->backlight_off_to_display_off_delay_ms) in jadard_disable()
72 mipi_dsi_msleep(&dsi_ctx, jadard->desc->backlight_off_to_display_off_delay_ms); in jadard_disable()
76 if (jadard->desc->display_off_to_enter_sleep_delay_ms) in jadard_disable()
77 mipi_dsi_msleep(&dsi_ctx, jadard->desc->display_off_to_enter_sleep_delay_ms); in jadard_disable()
81 if (jadard->desc->enter_sleep_to_reset_down_delay_ms) in jadard_disable()
82 mipi_dsi_msleep(&dsi_ctx, jadard->desc->enter_sleep_to_reset_down_delay_ms); in jadard_disable()
89 struct jadard *jadard = panel_to_jadard(panel); in jadard_prepare() local
92 ret = regulator_enable(jadard->vccio); in jadard_prepare()
96 ret = regulator_enable(jadard->vdd); in jadard_prepare()
100 if (jadard->desc->vcioo_to_lp11_delay_ms) in jadard_prepare()
101 msleep(jadard->desc->vcioo_to_lp11_delay_ms); in jadard_prepare()
103 if (jadard->desc->lp11_before_reset) { in jadard_prepare()
104 ret = mipi_dsi_dcs_nop(jadard->dsi); in jadard_prepare()
109 if (jadard->desc->lp11_to_reset_delay_ms) in jadard_prepare()
110 msleep(jadard->desc->lp11_to_reset_delay_ms); in jadard_prepare()
112 gpiod_set_value(jadard->reset, 1); in jadard_prepare()
115 gpiod_set_value(jadard->reset, 0); in jadard_prepare()
118 gpiod_set_value(jadard->reset, 1); in jadard_prepare()
121 ret = jadard->desc->init(jadard); in jadard_prepare()
130 struct jadard *jadard = panel_to_jadard(panel); in jadard_unprepare() local
132 gpiod_set_value(jadard->reset, 1); in jadard_unprepare()
135 if (jadard->desc->reset_before_power_off_vcioo) { in jadard_unprepare()
136 gpiod_set_value(jadard->reset, 0); in jadard_unprepare()
141 regulator_disable(jadard->vdd); in jadard_unprepare()
142 regulator_disable(jadard->vccio); in jadard_unprepare()
150 struct jadard *jadard = panel_to_jadard(panel); in jadard_get_modes() local
151 const struct drm_display_mode *desc_mode = &jadard->desc->mode; in jadard_get_modes()
156 DRM_DEV_ERROR(&jadard->dsi->dev, "failed to add mode %ux%ux@%u\n", in jadard_get_modes()
173 struct jadard *jadard = panel_to_jadard(panel); in jadard_panel_get_orientation() local
175 return jadard->orientation; in jadard_panel_get_orientation()
186 static int radxa_display_8hd_ad002_init_cmds(struct jadard *jadard) in radxa_display_8hd_ad002_init_cmds() argument
188 struct mipi_dsi_multi_context dsi_ctx = { .dsi = jadard->dsi }; in radxa_display_8hd_ad002_init_cmds()
393 static int cz101b4001_init_cmds(struct jadard *jadard) in cz101b4001_init_cmds() argument
395 struct mipi_dsi_multi_context dsi_ctx = { .dsi = jadard->dsi }; in cz101b4001_init_cmds()
625 static int kingdisplay_kd101ne3_init_cmds(struct jadard *jadard) in kingdisplay_kd101ne3_init_cmds() argument
627 struct mipi_dsi_multi_context dsi_ctx = { .dsi = jadard->dsi }; in kingdisplay_kd101ne3_init_cmds()
865 static int melfas_lmfbx101117480_init_cmds(struct jadard *jadard) in melfas_lmfbx101117480_init_cmds() argument
867 struct mipi_dsi_multi_context dsi_ctx = { .dsi = jadard->dsi }; in melfas_lmfbx101117480_init_cmds()
1120 struct jadard *jadard; in jadard_dsi_probe() local
1123 jadard = devm_kzalloc(&dsi->dev, sizeof(*jadard), GFP_KERNEL); in jadard_dsi_probe()
1124 if (!jadard) in jadard_dsi_probe()
1133 jadard->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in jadard_dsi_probe()
1134 if (IS_ERR(jadard->reset)) { in jadard_dsi_probe()
1136 return PTR_ERR(jadard->reset); in jadard_dsi_probe()
1139 jadard->vdd = devm_regulator_get(dev, "vdd"); in jadard_dsi_probe()
1140 if (IS_ERR(jadard->vdd)) { in jadard_dsi_probe()
1142 return PTR_ERR(jadard->vdd); in jadard_dsi_probe()
1145 jadard->vccio = devm_regulator_get(dev, "vccio"); in jadard_dsi_probe()
1146 if (IS_ERR(jadard->vccio)) { in jadard_dsi_probe()
1148 return PTR_ERR(jadard->vccio); in jadard_dsi_probe()
1151 drm_panel_init(&jadard->panel, dev, &jadard_funcs, in jadard_dsi_probe()
1154 ret = of_drm_get_panel_orientation(dev->of_node, &jadard->orientation); in jadard_dsi_probe()
1158 ret = drm_panel_of_backlight(&jadard->panel); in jadard_dsi_probe()
1162 drm_panel_add(&jadard->panel); in jadard_dsi_probe()
1164 mipi_dsi_set_drvdata(dsi, jadard); in jadard_dsi_probe()
1165 jadard->dsi = dsi; in jadard_dsi_probe()
1166 jadard->desc = desc; in jadard_dsi_probe()
1170 drm_panel_remove(&jadard->panel); in jadard_dsi_probe()
1177 struct jadard *jadard = mipi_dsi_get_drvdata(dsi); in jadard_dsi_remove() local
1180 drm_panel_remove(&jadard->panel); in jadard_dsi_remove()