Lines Matching +full:4 +full:- +full:inch
1 // SPDX-License-Identifier: GPL-2.0
59 gpiod_set_value(pinfo->enable_gpio, 0); in disable_gpios()
60 gpiod_set_value(pinfo->pp33_gpio, 0); in disable_gpios()
61 gpiod_set_value(pinfo->pp18_gpio, 0); in disable_gpios()
70 for (i = 0; i < pinfo->desc->on_cmds_num; i++) { in send_mipi_cmds()
71 err = mipi_dsi_dcs_write_buffer(pinfo->link, &cmds[i], in send_mipi_cmds()
86 err = mipi_dsi_dcs_set_display_off(pinfo->link); in boe_panel_disable()
88 dev_err(panel->dev, "failed to set display off: %d\n", err); in boe_panel_disable()
100 err = mipi_dsi_dcs_set_display_off(pinfo->link); in boe_panel_unprepare()
102 dev_err(panel->dev, "failed to set display off: %d\n", err); in boe_panel_unprepare()
104 err = mipi_dsi_dcs_enter_sleep_mode(pinfo->link); in boe_panel_unprepare()
106 dev_err(panel->dev, "failed to enter sleep mode: %d\n", err); in boe_panel_unprepare()
108 /* sleep_mode_delay: 1ms - 2ms */ in boe_panel_unprepare()
121 gpiod_set_value(pinfo->pp18_gpio, 1); in boe_panel_prepare()
122 /* T1: 5ms - 6ms */ in boe_panel_prepare()
124 gpiod_set_value(pinfo->pp33_gpio, 1); in boe_panel_prepare()
127 /* T2: 14ms - 15ms */ in boe_panel_prepare()
129 gpiod_set_value(pinfo->enable_gpio, 1); in boe_panel_prepare()
131 /* T3: 1ms - 2ms */ in boe_panel_prepare()
133 gpiod_set_value(pinfo->enable_gpio, 0); in boe_panel_prepare()
135 /* T4: 1ms - 2ms */ in boe_panel_prepare()
137 gpiod_set_value(pinfo->enable_gpio, 1); in boe_panel_prepare()
139 /* T5: 5ms - 6ms */ in boe_panel_prepare()
143 err = send_mipi_cmds(panel, pinfo->desc->on_cmds); in boe_panel_prepare()
145 dev_err(panel->dev, "failed to send DCS Init Code: %d\n", err); in boe_panel_prepare()
149 err = mipi_dsi_dcs_exit_sleep_mode(pinfo->link); in boe_panel_prepare()
151 dev_err(panel->dev, "failed to exit sleep mode: %d\n", err); in boe_panel_prepare()
155 /* T6: 120ms - 121ms */ in boe_panel_prepare()
158 err = mipi_dsi_dcs_set_display_on(pinfo->link); in boe_panel_prepare()
160 dev_err(panel->dev, "failed to set display on: %d\n", err); in boe_panel_prepare()
164 /* T7: 20ms - 21ms */ in boe_panel_prepare()
181 ret = mipi_dsi_dcs_set_display_on(pinfo->link); in boe_panel_enable()
183 dev_err(panel->dev, "failed to set display on: %d\n", ret); in boe_panel_enable()
194 const struct drm_display_mode *m = pinfo->desc->display_mode; in boe_panel_get_modes()
197 mode = drm_mode_duplicate(connector->dev, m); in boe_panel_get_modes()
199 dev_err(pinfo->base.dev, "failed to add mode %ux%u@%u\n", in boe_panel_get_modes()
200 m->hdisplay, m->vdisplay, drm_mode_vrefresh(m)); in boe_panel_get_modes()
201 return -ENOMEM; in boe_panel_get_modes()
208 connector->display_info.width_mm = pinfo->desc->width_mm; in boe_panel_get_modes()
209 connector->display_info.height_mm = pinfo->desc->height_mm; in boe_panel_get_modes()
210 connector->display_info.bpc = pinfo->desc->bpc; in boe_panel_get_modes()
232 .vtotal = 1920 + 10 + 14 + 4,
235 /* 8 inch */
507 .lanes = 4,
512 /* 10 inch */
807 .lanes = 4,
829 struct device *dev = &pinfo->link->dev; in panel_add()
832 pinfo->pp18_gpio = devm_gpiod_get(dev, "pp18", GPIOD_OUT_HIGH); in panel_add()
833 if (IS_ERR(pinfo->pp18_gpio)) { in panel_add()
834 return dev_err_probe(dev, PTR_ERR(pinfo->pp18_gpio), in panel_add()
838 pinfo->pp33_gpio = devm_gpiod_get(dev, "pp33", GPIOD_OUT_HIGH); in panel_add()
839 if (IS_ERR(pinfo->pp33_gpio)) { in panel_add()
840 return dev_err_probe(dev, PTR_ERR(pinfo->pp33_gpio), in panel_add()
844 pinfo->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_HIGH); in panel_add()
845 if (IS_ERR(pinfo->enable_gpio)) { in panel_add()
846 return dev_err_probe(dev, PTR_ERR(pinfo->enable_gpio), in panel_add()
850 drm_panel_init(&pinfo->base, dev, &panel_funcs, in panel_add()
853 ret = drm_panel_of_backlight(&pinfo->base); in panel_add()
857 drm_panel_add(&pinfo->base); in panel_add()
868 pinfo = devm_kzalloc(&dsi->dev, sizeof(*pinfo), GFP_KERNEL); in panel_probe()
870 return -ENOMEM; in panel_probe()
872 desc = of_device_get_match_data(&dsi->dev); in panel_probe()
873 dsi->mode_flags = desc->mode_flags; in panel_probe()
874 dsi->format = desc->format; in panel_probe()
875 dsi->lanes = desc->lanes; in panel_probe()
876 pinfo->desc = desc; in panel_probe()
878 pinfo->link = dsi; in panel_probe()
887 drm_panel_remove(&pinfo->base); in panel_probe()
899 dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", err); in panel_remove()
901 drm_panel_remove(&pinfo->base); in panel_remove()
906 .name = "panel-boe-himax8279d",