Lines Matching full:boe
3 * BOE BF060Y8M-AJ0 5.99" MIPI-DSI OLED Panel on SW43404 DriverIC
46 static void boe_bf060y8m_aj0_reset(struct boe_bf060y8m_aj0 *boe) in boe_bf060y8m_aj0_reset() argument
48 gpiod_set_value_cansleep(boe->reset_gpio, 0); in boe_bf060y8m_aj0_reset()
50 gpiod_set_value_cansleep(boe->reset_gpio, 1); in boe_bf060y8m_aj0_reset()
52 gpiod_set_value_cansleep(boe->reset_gpio, 0); in boe_bf060y8m_aj0_reset()
56 static int boe_bf060y8m_aj0_on(struct boe_bf060y8m_aj0 *boe) in boe_bf060y8m_aj0_on() argument
58 struct mipi_dsi_device *dsi = boe->dsi; in boe_bf060y8m_aj0_on()
100 static int boe_bf060y8m_aj0_off(struct boe_bf060y8m_aj0 *boe) in boe_bf060y8m_aj0_off() argument
102 struct mipi_dsi_device *dsi = boe->dsi; in boe_bf060y8m_aj0_off()
128 struct boe_bf060y8m_aj0 *boe = to_boe_bf060y8m_aj0(panel); in boe_bf060y8m_aj0_prepare() local
129 struct device *dev = &boe->dsi->dev; in boe_bf060y8m_aj0_prepare()
132 if (boe->prepared) in boe_bf060y8m_aj0_prepare()
140 ret = regulator_enable(boe->vregs[BF060Y8M_VREG_EL_VDD].consumer); in boe_bf060y8m_aj0_prepare()
143 ret = regulator_enable(boe->vregs[BF060Y8M_VREG_EL_VSS].consumer); in boe_bf060y8m_aj0_prepare()
147 ret = regulator_enable(boe->vregs[BF060Y8M_VREG_VCC].consumer); in boe_bf060y8m_aj0_prepare()
151 ret = regulator_enable(boe->vregs[BF060Y8M_VREG_VDDIO].consumer); in boe_bf060y8m_aj0_prepare()
155 ret = regulator_enable(boe->vregs[BF060Y8M_VREG_VCI].consumer); in boe_bf060y8m_aj0_prepare()
160 boe_bf060y8m_aj0_reset(boe); in boe_bf060y8m_aj0_prepare()
162 ret = boe_bf060y8m_aj0_on(boe); in boe_bf060y8m_aj0_prepare()
165 gpiod_set_value_cansleep(boe->reset_gpio, 1); in boe_bf060y8m_aj0_prepare()
169 boe->prepared = true; in boe_bf060y8m_aj0_prepare()
173 regulator_disable(boe->vregs[BF060Y8M_VREG_VDDIO].consumer); in boe_bf060y8m_aj0_prepare()
175 regulator_disable(boe->vregs[BF060Y8M_VREG_VCC].consumer); in boe_bf060y8m_aj0_prepare()
177 regulator_disable(boe->vregs[BF060Y8M_VREG_EL_VSS].consumer); in boe_bf060y8m_aj0_prepare()
179 regulator_disable(boe->vregs[BF060Y8M_VREG_EL_VDD].consumer); in boe_bf060y8m_aj0_prepare()
185 struct boe_bf060y8m_aj0 *boe = to_boe_bf060y8m_aj0(panel); in boe_bf060y8m_aj0_unprepare() local
186 struct device *dev = &boe->dsi->dev; in boe_bf060y8m_aj0_unprepare()
189 if (!boe->prepared) in boe_bf060y8m_aj0_unprepare()
192 ret = boe_bf060y8m_aj0_off(boe); in boe_bf060y8m_aj0_unprepare()
196 gpiod_set_value_cansleep(boe->reset_gpio, 1); in boe_bf060y8m_aj0_unprepare()
197 ret = regulator_bulk_disable(ARRAY_SIZE(boe->vregs), boe->vregs); in boe_bf060y8m_aj0_unprepare()
199 boe->prepared = false; in boe_bf060y8m_aj0_unprepare()
288 static int boe_bf060y8m_aj0_init_vregs(struct boe_bf060y8m_aj0 *boe, in boe_bf060y8m_aj0_init_vregs() argument
294 boe->vregs[BF060Y8M_VREG_VCC].supply = "vcc"; in boe_bf060y8m_aj0_init_vregs()
295 boe->vregs[BF060Y8M_VREG_VDDIO].supply = "vddio"; in boe_bf060y8m_aj0_init_vregs()
296 boe->vregs[BF060Y8M_VREG_VCI].supply = "vci"; in boe_bf060y8m_aj0_init_vregs()
297 boe->vregs[BF060Y8M_VREG_EL_VDD].supply = "elvdd"; in boe_bf060y8m_aj0_init_vregs()
298 boe->vregs[BF060Y8M_VREG_EL_VSS].supply = "elvss"; in boe_bf060y8m_aj0_init_vregs()
299 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(boe->vregs), in boe_bf060y8m_aj0_init_vregs()
300 boe->vregs); in boe_bf060y8m_aj0_init_vregs()
306 vreg = boe->vregs[BF060Y8M_VREG_VCC].consumer; in boe_bf060y8m_aj0_init_vregs()
311 vreg = boe->vregs[BF060Y8M_VREG_VDDIO].consumer; in boe_bf060y8m_aj0_init_vregs()
316 vreg = boe->vregs[BF060Y8M_VREG_VCI].consumer; in boe_bf060y8m_aj0_init_vregs()
321 vreg = boe->vregs[BF060Y8M_VREG_EL_VDD].consumer; in boe_bf060y8m_aj0_init_vregs()
327 vreg = boe->vregs[BF060Y8M_VREG_EL_VSS].consumer; in boe_bf060y8m_aj0_init_vregs()
341 vreg = boe->vregs[BF060Y8M_VREG_VDDIO].consumer; in boe_bf060y8m_aj0_init_vregs()
345 boe->vregs[1].supply, ret); in boe_bf060y8m_aj0_init_vregs()
347 vreg = boe->vregs[BF060Y8M_VREG_VCI].consumer; in boe_bf060y8m_aj0_init_vregs()
351 boe->vregs[2].supply, ret); in boe_bf060y8m_aj0_init_vregs()
359 struct boe_bf060y8m_aj0 *boe; in boe_bf060y8m_aj0_probe() local
362 boe = devm_kzalloc(dev, sizeof(*boe), GFP_KERNEL); in boe_bf060y8m_aj0_probe()
363 if (!boe) in boe_bf060y8m_aj0_probe()
366 ret = boe_bf060y8m_aj0_init_vregs(boe, dev); in boe_bf060y8m_aj0_probe()
371 boe->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_ASIS); in boe_bf060y8m_aj0_probe()
372 if (IS_ERR(boe->reset_gpio)) in boe_bf060y8m_aj0_probe()
373 return dev_err_probe(dev, PTR_ERR(boe->reset_gpio), in boe_bf060y8m_aj0_probe()
376 boe->dsi = dsi; in boe_bf060y8m_aj0_probe()
377 mipi_dsi_set_drvdata(dsi, boe); in boe_bf060y8m_aj0_probe()
386 drm_panel_init(&boe->panel, dev, &boe_bf060y8m_aj0_panel_funcs, in boe_bf060y8m_aj0_probe()
389 boe->panel.backlight = boe_bf060y8m_aj0_create_backlight(dsi); in boe_bf060y8m_aj0_probe()
390 if (IS_ERR(boe->panel.backlight)) in boe_bf060y8m_aj0_probe()
391 return dev_err_probe(dev, PTR_ERR(boe->panel.backlight), in boe_bf060y8m_aj0_probe()
394 drm_panel_add(&boe->panel); in boe_bf060y8m_aj0_probe()
407 struct boe_bf060y8m_aj0 *boe = mipi_dsi_get_drvdata(dsi); in boe_bf060y8m_aj0_remove() local
414 drm_panel_remove(&boe->panel); in boe_bf060y8m_aj0_remove()
418 { .compatible = "boe,bf060y8m-aj0" },
427 .name = "panel-sw43404-boe-fhd-amoled",
434 MODULE_DESCRIPTION("BOE BF060Y8M-AJ0 MIPI-DSI OLED panel");