Lines Matching full:boe
3 * BOE BF060Y8M-AJ0 5.99" MIPI-DSI OLED Panel on SW43404 DriverIC
45 static void boe_bf060y8m_aj0_reset(struct boe_bf060y8m_aj0 *boe) in boe_bf060y8m_aj0_reset() argument
47 gpiod_set_value_cansleep(boe->reset_gpio, 0); in boe_bf060y8m_aj0_reset()
49 gpiod_set_value_cansleep(boe->reset_gpio, 1); in boe_bf060y8m_aj0_reset()
51 gpiod_set_value_cansleep(boe->reset_gpio, 0); in boe_bf060y8m_aj0_reset()
55 static int boe_bf060y8m_aj0_on(struct boe_bf060y8m_aj0 *boe) in boe_bf060y8m_aj0_on() argument
57 struct mipi_dsi_device *dsi = boe->dsi; in boe_bf060y8m_aj0_on()
99 static int boe_bf060y8m_aj0_off(struct boe_bf060y8m_aj0 *boe) in boe_bf060y8m_aj0_off() argument
101 struct mipi_dsi_device *dsi = boe->dsi; in boe_bf060y8m_aj0_off()
127 struct boe_bf060y8m_aj0 *boe = to_boe_bf060y8m_aj0(panel); in boe_bf060y8m_aj0_prepare() local
128 struct device *dev = &boe->dsi->dev; in boe_bf060y8m_aj0_prepare()
136 ret = regulator_enable(boe->vregs[BF060Y8M_VREG_EL_VDD].consumer); in boe_bf060y8m_aj0_prepare()
139 ret = regulator_enable(boe->vregs[BF060Y8M_VREG_EL_VSS].consumer); in boe_bf060y8m_aj0_prepare()
143 ret = regulator_enable(boe->vregs[BF060Y8M_VREG_VCC].consumer); in boe_bf060y8m_aj0_prepare()
147 ret = regulator_enable(boe->vregs[BF060Y8M_VREG_VDDIO].consumer); in boe_bf060y8m_aj0_prepare()
151 ret = regulator_enable(boe->vregs[BF060Y8M_VREG_VCI].consumer); in boe_bf060y8m_aj0_prepare()
156 boe_bf060y8m_aj0_reset(boe); in boe_bf060y8m_aj0_prepare()
158 ret = boe_bf060y8m_aj0_on(boe); in boe_bf060y8m_aj0_prepare()
161 gpiod_set_value_cansleep(boe->reset_gpio, 1); in boe_bf060y8m_aj0_prepare()
168 regulator_disable(boe->vregs[BF060Y8M_VREG_VDDIO].consumer); in boe_bf060y8m_aj0_prepare()
170 regulator_disable(boe->vregs[BF060Y8M_VREG_VCC].consumer); in boe_bf060y8m_aj0_prepare()
172 regulator_disable(boe->vregs[BF060Y8M_VREG_EL_VSS].consumer); in boe_bf060y8m_aj0_prepare()
174 regulator_disable(boe->vregs[BF060Y8M_VREG_EL_VDD].consumer); in boe_bf060y8m_aj0_prepare()
180 struct boe_bf060y8m_aj0 *boe = to_boe_bf060y8m_aj0(panel); in boe_bf060y8m_aj0_unprepare() local
181 struct device *dev = &boe->dsi->dev; in boe_bf060y8m_aj0_unprepare()
184 ret = boe_bf060y8m_aj0_off(boe); in boe_bf060y8m_aj0_unprepare()
188 gpiod_set_value_cansleep(boe->reset_gpio, 1); in boe_bf060y8m_aj0_unprepare()
189 ret = regulator_bulk_disable(ARRAY_SIZE(boe->vregs), boe->vregs); in boe_bf060y8m_aj0_unprepare()
279 static int boe_bf060y8m_aj0_init_vregs(struct boe_bf060y8m_aj0 *boe, in boe_bf060y8m_aj0_init_vregs() argument
285 boe->vregs[BF060Y8M_VREG_VCC].supply = "vcc"; in boe_bf060y8m_aj0_init_vregs()
286 boe->vregs[BF060Y8M_VREG_VDDIO].supply = "vddio"; in boe_bf060y8m_aj0_init_vregs()
287 boe->vregs[BF060Y8M_VREG_VCI].supply = "vci"; in boe_bf060y8m_aj0_init_vregs()
288 boe->vregs[BF060Y8M_VREG_EL_VDD].supply = "elvdd"; in boe_bf060y8m_aj0_init_vregs()
289 boe->vregs[BF060Y8M_VREG_EL_VSS].supply = "elvss"; in boe_bf060y8m_aj0_init_vregs()
290 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(boe->vregs), in boe_bf060y8m_aj0_init_vregs()
291 boe->vregs); in boe_bf060y8m_aj0_init_vregs()
297 vreg = boe->vregs[BF060Y8M_VREG_VCC].consumer; in boe_bf060y8m_aj0_init_vregs()
302 vreg = boe->vregs[BF060Y8M_VREG_VDDIO].consumer; in boe_bf060y8m_aj0_init_vregs()
307 vreg = boe->vregs[BF060Y8M_VREG_VCI].consumer; in boe_bf060y8m_aj0_init_vregs()
312 vreg = boe->vregs[BF060Y8M_VREG_EL_VDD].consumer; in boe_bf060y8m_aj0_init_vregs()
318 vreg = boe->vregs[BF060Y8M_VREG_EL_VSS].consumer; in boe_bf060y8m_aj0_init_vregs()
332 vreg = boe->vregs[BF060Y8M_VREG_VDDIO].consumer; in boe_bf060y8m_aj0_init_vregs()
336 boe->vregs[1].supply, ret); in boe_bf060y8m_aj0_init_vregs()
338 vreg = boe->vregs[BF060Y8M_VREG_VCI].consumer; in boe_bf060y8m_aj0_init_vregs()
342 boe->vregs[2].supply, ret); in boe_bf060y8m_aj0_init_vregs()
350 struct boe_bf060y8m_aj0 *boe; in boe_bf060y8m_aj0_probe() local
353 boe = devm_kzalloc(dev, sizeof(*boe), GFP_KERNEL); in boe_bf060y8m_aj0_probe()
354 if (!boe) in boe_bf060y8m_aj0_probe()
357 ret = boe_bf060y8m_aj0_init_vregs(boe, dev); in boe_bf060y8m_aj0_probe()
362 boe->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_ASIS); in boe_bf060y8m_aj0_probe()
363 if (IS_ERR(boe->reset_gpio)) in boe_bf060y8m_aj0_probe()
364 return dev_err_probe(dev, PTR_ERR(boe->reset_gpio), in boe_bf060y8m_aj0_probe()
367 boe->dsi = dsi; in boe_bf060y8m_aj0_probe()
368 mipi_dsi_set_drvdata(dsi, boe); in boe_bf060y8m_aj0_probe()
377 drm_panel_init(&boe->panel, dev, &boe_bf060y8m_aj0_panel_funcs, in boe_bf060y8m_aj0_probe()
380 boe->panel.prepare_prev_first = true; in boe_bf060y8m_aj0_probe()
382 boe->panel.backlight = boe_bf060y8m_aj0_create_backlight(dsi); in boe_bf060y8m_aj0_probe()
383 if (IS_ERR(boe->panel.backlight)) in boe_bf060y8m_aj0_probe()
384 return dev_err_probe(dev, PTR_ERR(boe->panel.backlight), in boe_bf060y8m_aj0_probe()
387 drm_panel_add(&boe->panel); in boe_bf060y8m_aj0_probe()
400 struct boe_bf060y8m_aj0 *boe = mipi_dsi_get_drvdata(dsi); in boe_bf060y8m_aj0_remove() local
407 drm_panel_remove(&boe->panel); in boe_bf060y8m_aj0_remove()
411 { .compatible = "boe,bf060y8m-aj0" },
420 .name = "panel-sw43404-boe-fhd-amoled",
427 MODULE_DESCRIPTION("BOE BF060Y8M-AJ0 MIPI-DSI OLED panel");