Lines Matching full:lt9611
35 struct lt9611 { struct
88 static struct lt9611 *bridge_to_lt9611(struct drm_bridge *bridge) in bridge_to_lt9611()
90 return container_of(bridge, struct lt9611, bridge); in bridge_to_lt9611()
93 static int lt9611_mipi_input_analog(struct lt9611 *lt9611) in lt9611_mipi_input_analog() argument
107 return regmap_multi_reg_write(lt9611->regmap, reg_cfg, ARRAY_SIZE(reg_cfg)); in lt9611_mipi_input_analog()
110 static int lt9611_mipi_input_digital(struct lt9611 *lt9611, in lt9611_mipi_input_digital() argument
122 if (lt9611->dsi1_node) in lt9611_mipi_input_digital()
125 return regmap_multi_reg_write(lt9611->regmap, reg_cfg, ARRAY_SIZE(reg_cfg)); in lt9611_mipi_input_digital()
128 static void lt9611_mipi_video_setup(struct lt9611 *lt9611, in lt9611_mipi_video_setup() argument
147 regmap_write(lt9611->regmap, 0x830d, (u8)(v_total / 256)); in lt9611_mipi_video_setup()
148 regmap_write(lt9611->regmap, 0x830e, (u8)(v_total % 256)); in lt9611_mipi_video_setup()
150 regmap_write(lt9611->regmap, 0x830f, (u8)(vactive / 256)); in lt9611_mipi_video_setup()
151 regmap_write(lt9611->regmap, 0x8310, (u8)(vactive % 256)); in lt9611_mipi_video_setup()
153 regmap_write(lt9611->regmap, 0x8311, (u8)(h_total / 256)); in lt9611_mipi_video_setup()
154 regmap_write(lt9611->regmap, 0x8312, (u8)(h_total % 256)); in lt9611_mipi_video_setup()
156 regmap_write(lt9611->regmap, 0x8313, (u8)(hactive / 256)); in lt9611_mipi_video_setup()
157 regmap_write(lt9611->regmap, 0x8314, (u8)(hactive % 256)); in lt9611_mipi_video_setup()
159 regmap_write(lt9611->regmap, 0x8315, (u8)(vsync_len % 256)); in lt9611_mipi_video_setup()
160 regmap_write(lt9611->regmap, 0x8316, (u8)(hsync_len % 256)); in lt9611_mipi_video_setup()
162 regmap_write(lt9611->regmap, 0x8317, (u8)(vfront_porch % 256)); in lt9611_mipi_video_setup()
164 regmap_write(lt9611->regmap, 0x8318, (u8)(vsync_porch % 256)); in lt9611_mipi_video_setup()
166 regmap_write(lt9611->regmap, 0x8319, (u8)(hfront_porch % 256)); in lt9611_mipi_video_setup()
168 regmap_write(lt9611->regmap, 0x831a, (u8)(hsync_porch / 256) | in lt9611_mipi_video_setup()
170 regmap_write(lt9611->regmap, 0x831b, (u8)(hsync_porch % 256)); in lt9611_mipi_video_setup()
173 static void lt9611_pcr_setup(struct lt9611 *lt9611, const struct drm_display_mode *mode, unsigned i… in lt9611_pcr_setup() argument
201 regmap_write(lt9611->regmap, 0x831d, pol); in lt9611_pcr_setup()
203 regmap_multi_reg_write(lt9611->regmap, reg_cfg, ARRAY_SIZE(reg_cfg)); in lt9611_pcr_setup()
204 if (lt9611->dsi1_node) { in lt9611_pcr_setup()
210 regmap_write(lt9611->regmap, 0x830b, hact / 256); in lt9611_pcr_setup()
211 regmap_write(lt9611->regmap, 0x830c, hact % 256); in lt9611_pcr_setup()
212 regmap_write(lt9611->regmap, 0x8348, hact / 256); in lt9611_pcr_setup()
213 regmap_write(lt9611->regmap, 0x8349, hact % 256); in lt9611_pcr_setup()
216 regmap_write(lt9611->regmap, 0x8326, pcr_m); in lt9611_pcr_setup()
219 regmap_write(lt9611->regmap, 0x8011, 0x5a); in lt9611_pcr_setup()
220 regmap_write(lt9611->regmap, 0x8011, 0xfa); in lt9611_pcr_setup()
223 static int lt9611_pll_setup(struct lt9611 *lt9611, const struct drm_display_mode *mode, unsigned in… in lt9611_pll_setup() argument
240 regmap_multi_reg_write(lt9611->regmap, reg_cfg, ARRAY_SIZE(reg_cfg)); in lt9611_pll_setup()
243 regmap_write(lt9611->regmap, 0x812d, 0x88); in lt9611_pll_setup()
246 regmap_write(lt9611->regmap, 0x812d, 0x99); in lt9611_pll_setup()
249 regmap_write(lt9611->regmap, 0x812d, 0xaa); in lt9611_pll_setup()
259 regmap_write(lt9611->regmap, 0x82e3, pclk >> 17); /* pclk[19:16] */ in lt9611_pll_setup()
260 regmap_write(lt9611->regmap, 0x82e4, pclk >> 9); /* pclk[15:8] */ in lt9611_pll_setup()
261 regmap_write(lt9611->regmap, 0x82e5, pclk >> 1); /* pclk[7:0] */ in lt9611_pll_setup()
263 regmap_write(lt9611->regmap, 0x82de, 0x20); in lt9611_pll_setup()
264 regmap_write(lt9611->regmap, 0x82de, 0xe0); in lt9611_pll_setup()
266 regmap_write(lt9611->regmap, 0x8016, 0xf1); in lt9611_pll_setup()
267 regmap_write(lt9611->regmap, 0x8016, 0xf3); in lt9611_pll_setup()
272 static int lt9611_read_video_check(struct lt9611 *lt9611, unsigned int reg) in lt9611_read_video_check() argument
277 ret = regmap_read(lt9611->regmap, reg, &temp); in lt9611_read_video_check()
281 ret = regmap_read(lt9611->regmap, reg + 1, &temp2); in lt9611_read_video_check()
288 static int lt9611_video_check(struct lt9611 *lt9611) in lt9611_video_check() argument
296 temp = lt9611_read_video_check(lt9611, 0x8282); in lt9611_video_check()
302 temp = lt9611_read_video_check(lt9611, 0x826c); in lt9611_video_check()
308 temp = lt9611_read_video_check(lt9611, 0x8286); in lt9611_video_check()
314 temp = lt9611_read_video_check(lt9611, 0x8382); in lt9611_video_check()
320 temp = lt9611_read_video_check(lt9611, 0x8386); in lt9611_video_check()
325 dev_info(lt9611->dev, in lt9611_video_check()
332 dev_err(lt9611->dev, "read video check error\n"); in lt9611_video_check()
336 static void lt9611_hdmi_set_infoframes(struct lt9611 *lt9611, in lt9611_hdmi_set_infoframes() argument
358 regmap_write(lt9611->regmap, 0x8440 + i, buf[i]); in lt9611_hdmi_set_infoframes()
371 regmap_write(lt9611->regmap, 0x8474 + i, buf[i]); in lt9611_hdmi_set_infoframes()
376 regmap_write(lt9611->regmap, 0x843d, iframes); /* UD1 infoframe */ in lt9611_hdmi_set_infoframes()
379 static void lt9611_hdmi_tx_digital(struct lt9611 *lt9611, bool is_hdmi) in lt9611_hdmi_tx_digital() argument
382 regmap_write(lt9611->regmap, 0x82d6, 0x8c); in lt9611_hdmi_tx_digital()
384 regmap_write(lt9611->regmap, 0x82d6, 0x0c); in lt9611_hdmi_tx_digital()
385 regmap_write(lt9611->regmap, 0x82d7, 0x04); in lt9611_hdmi_tx_digital()
388 static void lt9611_hdmi_tx_phy(struct lt9611 *lt9611) in lt9611_hdmi_tx_phy() argument
408 if (lt9611->ac_mode) in lt9611_hdmi_tx_phy()
411 regmap_multi_reg_write(lt9611->regmap, reg_cfg, ARRAY_SIZE(reg_cfg)); in lt9611_hdmi_tx_phy()
416 struct lt9611 *lt9611 = dev_id; in lt9611_irq_thread_handler() local
420 regmap_read(lt9611->regmap, 0x820f, &irq_flag3); in lt9611_irq_thread_handler()
421 regmap_read(lt9611->regmap, 0x820c, &irq_flag0); in lt9611_irq_thread_handler()
425 dev_info(lt9611->dev, "hdmi cable disconnected\n"); in lt9611_irq_thread_handler()
427 regmap_write(lt9611->regmap, 0x8207, 0xbf); in lt9611_irq_thread_handler()
428 regmap_write(lt9611->regmap, 0x8207, 0x3f); in lt9611_irq_thread_handler()
433 dev_info(lt9611->dev, "hdmi cable connected\n"); in lt9611_irq_thread_handler()
435 regmap_write(lt9611->regmap, 0x8207, 0x7f); in lt9611_irq_thread_handler()
436 regmap_write(lt9611->regmap, 0x8207, 0x3f); in lt9611_irq_thread_handler()
439 if (irq_flag3 & 0xc0 && lt9611->bridge.dev) in lt9611_irq_thread_handler()
440 drm_kms_helper_hotplug_event(lt9611->bridge.dev); in lt9611_irq_thread_handler()
444 dev_info(lt9611->dev, "video input changed\n"); in lt9611_irq_thread_handler()
445 regmap_write(lt9611->regmap, 0x829e, 0xff); in lt9611_irq_thread_handler()
446 regmap_write(lt9611->regmap, 0x829e, 0xf7); in lt9611_irq_thread_handler()
447 regmap_write(lt9611->regmap, 0x8204, 0xff); in lt9611_irq_thread_handler()
448 regmap_write(lt9611->regmap, 0x8204, 0xfe); in lt9611_irq_thread_handler()
454 static void lt9611_enable_hpd_interrupts(struct lt9611 *lt9611) in lt9611_enable_hpd_interrupts() argument
458 regmap_read(lt9611->regmap, 0x8203, &val); in lt9611_enable_hpd_interrupts()
461 regmap_write(lt9611->regmap, 0x8203, val); in lt9611_enable_hpd_interrupts()
462 regmap_write(lt9611->regmap, 0x8207, 0xff); /* clear */ in lt9611_enable_hpd_interrupts()
463 regmap_write(lt9611->regmap, 0x8207, 0x3f); in lt9611_enable_hpd_interrupts()
466 static void lt9611_sleep_setup(struct lt9611 *lt9611) in lt9611_sleep_setup() argument
480 regmap_multi_reg_write(lt9611->regmap, in lt9611_sleep_setup()
482 lt9611->sleep = true; in lt9611_sleep_setup()
485 static int lt9611_power_on(struct lt9611 *lt9611) in lt9611_power_on() argument
513 if (lt9611->power_on) in lt9611_power_on()
516 ret = regmap_multi_reg_write(lt9611->regmap, seq, ARRAY_SIZE(seq)); in lt9611_power_on()
518 lt9611->power_on = true; in lt9611_power_on()
523 static int lt9611_power_off(struct lt9611 *lt9611) in lt9611_power_off() argument
527 ret = regmap_write(lt9611->regmap, 0x8130, 0x6a); in lt9611_power_off()
529 lt9611->power_on = false; in lt9611_power_off()
534 static void lt9611_reset(struct lt9611 *lt9611) in lt9611_reset() argument
536 gpiod_set_value_cansleep(lt9611->reset_gpio, 1); in lt9611_reset()
539 gpiod_set_value_cansleep(lt9611->reset_gpio, 0); in lt9611_reset()
542 gpiod_set_value_cansleep(lt9611->reset_gpio, 1); in lt9611_reset()
546 static void lt9611_assert_5v(struct lt9611 *lt9611) in lt9611_assert_5v() argument
548 if (!lt9611->enable_gpio) in lt9611_assert_5v()
551 gpiod_set_value_cansleep(lt9611->enable_gpio, 1); in lt9611_assert_5v()
555 static int lt9611_regulator_init(struct lt9611 *lt9611) in lt9611_regulator_init() argument
559 lt9611->supplies[0].supply = "vdd"; in lt9611_regulator_init()
560 lt9611->supplies[1].supply = "vcc"; in lt9611_regulator_init()
562 ret = devm_regulator_bulk_get(lt9611->dev, 2, lt9611->supplies); in lt9611_regulator_init()
566 return regulator_set_load(lt9611->supplies[0].consumer, 300000); in lt9611_regulator_init()
569 static int lt9611_regulator_enable(struct lt9611 *lt9611) in lt9611_regulator_enable() argument
573 ret = regulator_enable(lt9611->supplies[0].consumer); in lt9611_regulator_enable()
579 ret = regulator_enable(lt9611->supplies[1].consumer); in lt9611_regulator_enable()
581 regulator_disable(lt9611->supplies[0].consumer); in lt9611_regulator_enable()
590 struct lt9611 *lt9611 = bridge_to_lt9611(bridge); in lt9611_bridge_detect() local
594 regmap_read(lt9611->regmap, 0x825e, ®_val); in lt9611_bridge_detect()
597 lt9611->status = connected ? connector_status_connected : in lt9611_bridge_detect()
600 return lt9611->status; in lt9611_bridge_detect()
603 static int lt9611_read_edid(struct lt9611 *lt9611) in lt9611_read_edid() argument
610 memset(lt9611->edid_buf, 0, sizeof(lt9611->edid_buf)); in lt9611_read_edid()
612 regmap_write(lt9611->regmap, 0x8503, 0xc9); in lt9611_read_edid()
615 regmap_write(lt9611->regmap, 0x8504, 0xa0); in lt9611_read_edid()
617 regmap_write(lt9611->regmap, 0x8505, 0x00); in lt9611_read_edid()
620 regmap_write(lt9611->regmap, 0x8506, EDID_LEN); in lt9611_read_edid()
621 regmap_write(lt9611->regmap, 0x8514, 0x7f); in lt9611_read_edid()
625 regmap_write(lt9611->regmap, 0x8505, i * EDID_LEN); in lt9611_read_edid()
626 regmap_write(lt9611->regmap, 0x8507, 0x36); in lt9611_read_edid()
627 regmap_write(lt9611->regmap, 0x8507, 0x31); in lt9611_read_edid()
628 regmap_write(lt9611->regmap, 0x8507, 0x37); in lt9611_read_edid()
631 regmap_read(lt9611->regmap, 0x8540, &temp); in lt9611_read_edid()
635 regmap_read(lt9611->regmap, 0x8583, &temp); in lt9611_read_edid()
636 lt9611->edid_buf[i * EDID_LEN + j] = temp; in lt9611_read_edid()
640 dev_err(lt9611->dev, "read edid failed: no ack\n"); in lt9611_read_edid()
645 dev_err(lt9611->dev, "read edid failed: access not done\n"); in lt9611_read_edid()
652 regmap_write(lt9611->regmap, 0x8507, 0x1f); in lt9611_read_edid()
659 struct lt9611 *lt9611 = data; in lt9611_get_edid_block() local
671 ret = lt9611_read_edid(lt9611); in lt9611_get_edid_block()
673 dev_err(lt9611->dev, "edid read failed\n"); in lt9611_get_edid_block()
679 memcpy(buf, lt9611->edid_buf + (block * 128), len); in lt9611_get_edid_block()
689 struct lt9611 *lt9611 = bridge_to_lt9611(bridge); in lt9611_bridge_atomic_enable() local
711 lt9611_mipi_input_digital(lt9611, mode); in lt9611_bridge_atomic_enable()
712 lt9611_pll_setup(lt9611, mode, &postdiv); in lt9611_bridge_atomic_enable()
713 lt9611_mipi_video_setup(lt9611, mode); in lt9611_bridge_atomic_enable()
714 lt9611_pcr_setup(lt9611, mode, postdiv); in lt9611_bridge_atomic_enable()
716 if (lt9611_power_on(lt9611)) { in lt9611_bridge_atomic_enable()
717 dev_err(lt9611->dev, "power on failed\n"); in lt9611_bridge_atomic_enable()
721 lt9611_mipi_input_analog(lt9611); in lt9611_bridge_atomic_enable()
722 lt9611_hdmi_set_infoframes(lt9611, connector, mode); in lt9611_bridge_atomic_enable()
723 lt9611_hdmi_tx_digital(lt9611, connector->display_info.is_hdmi); in lt9611_bridge_atomic_enable()
724 lt9611_hdmi_tx_phy(lt9611); in lt9611_bridge_atomic_enable()
728 lt9611_video_check(lt9611); in lt9611_bridge_atomic_enable()
731 regmap_write(lt9611->regmap, 0x8130, 0xea); in lt9611_bridge_atomic_enable()
738 struct lt9611 *lt9611 = bridge_to_lt9611(bridge); in lt9611_bridge_atomic_disable() local
742 ret = regmap_write(lt9611->regmap, 0x8130, 0x6a); in lt9611_bridge_atomic_disable()
744 dev_err(lt9611->dev, "video on failed\n"); in lt9611_bridge_atomic_disable()
748 if (lt9611_power_off(lt9611)) { in lt9611_bridge_atomic_disable()
749 dev_err(lt9611->dev, "power on failed\n"); in lt9611_bridge_atomic_disable()
754 static struct mipi_dsi_device *lt9611_attach_dsi(struct lt9611 *lt9611, in lt9611_attach_dsi() argument
757 const struct mipi_dsi_device_info info = { "lt9611", 0, lt9611->dev->of_node}; in lt9611_attach_dsi()
760 struct device *dev = lt9611->dev; in lt9611_attach_dsi()
765 return ERR_PTR(dev_err_probe(lt9611->dev, -EPROBE_DEFER, "failed to find dsi host\n")); in lt9611_attach_dsi()
769 dev_err(lt9611->dev, "failed to create dsi device\n"); in lt9611_attach_dsi()
790 struct lt9611 *lt9611 = bridge_to_lt9611(bridge); in lt9611_bridge_attach() local
792 return drm_bridge_attach(bridge->encoder, lt9611->next_bridge, in lt9611_bridge_attach()
800 struct lt9611 *lt9611 = bridge_to_lt9611(bridge); in lt9611_bridge_mode_valid() local
813 if (mode->hdisplay > 2000 && !lt9611->dsi1_node) in lt9611_bridge_mode_valid()
822 struct lt9611 *lt9611 = bridge_to_lt9611(bridge); in lt9611_bridge_atomic_pre_enable() local
830 if (!lt9611->sleep) in lt9611_bridge_atomic_pre_enable()
833 regmap_multi_reg_write(lt9611->regmap, in lt9611_bridge_atomic_pre_enable()
836 lt9611->sleep = false; in lt9611_bridge_atomic_pre_enable()
843 struct lt9611 *lt9611 = bridge_to_lt9611(bridge); in lt9611_bridge_atomic_post_disable() local
845 lt9611_sleep_setup(lt9611); in lt9611_bridge_atomic_post_disable()
851 struct lt9611 *lt9611 = bridge_to_lt9611(bridge); in lt9611_bridge_edid_read() local
853 lt9611_power_on(lt9611); in lt9611_bridge_edid_read()
854 return drm_edid_read_custom(connector, lt9611_get_edid_block, lt9611); in lt9611_bridge_edid_read()
859 struct lt9611 *lt9611 = bridge_to_lt9611(bridge); in lt9611_bridge_hpd_enable() local
861 lt9611_enable_hpd_interrupts(lt9611); in lt9611_bridge_hpd_enable()
908 struct lt9611 *lt9611) in lt9611_parse_dt() argument
910 lt9611->dsi0_node = of_graph_get_remote_node(dev->of_node, 0, -1); in lt9611_parse_dt()
911 if (!lt9611->dsi0_node) { in lt9611_parse_dt()
912 dev_err(lt9611->dev, "failed to get remote node for primary dsi\n"); in lt9611_parse_dt()
916 lt9611->dsi1_node = of_graph_get_remote_node(dev->of_node, 1, -1); in lt9611_parse_dt()
918 lt9611->ac_mode = of_property_read_bool(dev->of_node, "lt,ac-mode"); in lt9611_parse_dt()
920 return drm_of_find_panel_or_bridge(dev->of_node, 2, -1, NULL, <9611->next_bridge); in lt9611_parse_dt()
923 static int lt9611_gpio_init(struct lt9611 *lt9611) in lt9611_gpio_init() argument
925 struct device *dev = lt9611->dev; in lt9611_gpio_init()
927 lt9611->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in lt9611_gpio_init()
928 if (IS_ERR(lt9611->reset_gpio)) { in lt9611_gpio_init()
930 return PTR_ERR(lt9611->reset_gpio); in lt9611_gpio_init()
933 lt9611->enable_gpio = devm_gpiod_get_optional(dev, "enable", in lt9611_gpio_init()
935 if (IS_ERR(lt9611->enable_gpio)) { in lt9611_gpio_init()
937 return PTR_ERR(lt9611->enable_gpio); in lt9611_gpio_init()
943 static int lt9611_read_device_rev(struct lt9611 *lt9611) in lt9611_read_device_rev() argument
948 regmap_write(lt9611->regmap, 0x80ee, 0x01); in lt9611_read_device_rev()
949 ret = regmap_read(lt9611->regmap, 0x8002, &rev); in lt9611_read_device_rev()
951 dev_err(lt9611->dev, "failed to read revision: %d\n", ret); in lt9611_read_device_rev()
953 dev_info(lt9611->dev, "LT9611 revision: 0x%x\n", rev); in lt9611_read_device_rev()
962 struct lt9611 *lt9611 = data; in lt9611_hdmi_hw_params() local
965 regmap_write(lt9611->regmap, 0x840f, 0x2b); in lt9611_hdmi_hw_params()
967 regmap_write(lt9611->regmap, 0x840f, 0xab); in lt9611_hdmi_hw_params()
971 regmap_write(lt9611->regmap, 0x8435, 0x00); in lt9611_hdmi_hw_params()
972 regmap_write(lt9611->regmap, 0x8436, 0x18); in lt9611_hdmi_hw_params()
973 regmap_write(lt9611->regmap, 0x8437, 0x00); in lt9611_hdmi_hw_params()
980 struct lt9611 *lt9611 = data; in lt9611_audio_startup() local
982 regmap_write(lt9611->regmap, 0x82d6, 0x8c); in lt9611_audio_startup()
983 regmap_write(lt9611->regmap, 0x82d7, 0x04); in lt9611_audio_startup()
985 regmap_write(lt9611->regmap, 0x8406, 0x08); in lt9611_audio_startup()
986 regmap_write(lt9611->regmap, 0x8407, 0x10); in lt9611_audio_startup()
988 regmap_write(lt9611->regmap, 0x8434, 0xd5); in lt9611_audio_startup()
995 struct lt9611 *lt9611 = data; in lt9611_audio_shutdown() local
997 regmap_write(lt9611->regmap, 0x8406, 0x00); in lt9611_audio_shutdown()
998 regmap_write(lt9611->regmap, 0x8407, 0x00); in lt9611_audio_shutdown()
1034 static int lt9611_audio_init(struct device *dev, struct lt9611 *lt9611) in lt9611_audio_init() argument
1036 codec_data.data = lt9611; in lt9611_audio_init()
1037 lt9611->audio_pdev = in lt9611_audio_init()
1042 return PTR_ERR_OR_ZERO(lt9611->audio_pdev); in lt9611_audio_init()
1045 static void lt9611_audio_exit(struct lt9611 *lt9611) in lt9611_audio_exit() argument
1047 if (lt9611->audio_pdev) { in lt9611_audio_exit()
1048 platform_device_unregister(lt9611->audio_pdev); in lt9611_audio_exit()
1049 lt9611->audio_pdev = NULL; in lt9611_audio_exit()
1055 struct lt9611 *lt9611; in lt9611_probe() local
1064 lt9611 = devm_kzalloc(dev, sizeof(*lt9611), GFP_KERNEL); in lt9611_probe()
1065 if (!lt9611) in lt9611_probe()
1068 lt9611->dev = dev; in lt9611_probe()
1069 lt9611->client = client; in lt9611_probe()
1070 lt9611->sleep = false; in lt9611_probe()
1072 lt9611->regmap = devm_regmap_init_i2c(client, <9611_regmap_config); in lt9611_probe()
1073 if (IS_ERR(lt9611->regmap)) { in lt9611_probe()
1074 dev_err(lt9611->dev, "regmap i2c init failed\n"); in lt9611_probe()
1075 return PTR_ERR(lt9611->regmap); in lt9611_probe()
1078 ret = lt9611_parse_dt(dev, lt9611); in lt9611_probe()
1084 ret = lt9611_gpio_init(lt9611); in lt9611_probe()
1088 ret = lt9611_regulator_init(lt9611); in lt9611_probe()
1092 lt9611_assert_5v(lt9611); in lt9611_probe()
1094 ret = lt9611_regulator_enable(lt9611); in lt9611_probe()
1098 lt9611_reset(lt9611); in lt9611_probe()
1100 ret = lt9611_read_device_rev(lt9611); in lt9611_probe()
1108 IRQF_ONESHOT, "lt9611", lt9611); in lt9611_probe()
1114 i2c_set_clientdata(client, lt9611); in lt9611_probe()
1116 lt9611->bridge.funcs = <9611_bridge_funcs; in lt9611_probe()
1117 lt9611->bridge.of_node = client->dev.of_node; in lt9611_probe()
1118 lt9611->bridge.ops = DRM_BRIDGE_OP_DETECT | DRM_BRIDGE_OP_EDID | in lt9611_probe()
1120 lt9611->bridge.type = DRM_MODE_CONNECTOR_HDMIA; in lt9611_probe()
1122 drm_bridge_add(<9611->bridge); in lt9611_probe()
1125 lt9611->dsi0 = lt9611_attach_dsi(lt9611, lt9611->dsi0_node); in lt9611_probe()
1126 if (IS_ERR(lt9611->dsi0)) { in lt9611_probe()
1127 ret = PTR_ERR(lt9611->dsi0); in lt9611_probe()
1132 if (lt9611->dsi1_node) { in lt9611_probe()
1133 lt9611->dsi1 = lt9611_attach_dsi(lt9611, lt9611->dsi1_node); in lt9611_probe()
1134 if (IS_ERR(lt9611->dsi1)) { in lt9611_probe()
1135 ret = PTR_ERR(lt9611->dsi1); in lt9611_probe()
1140 lt9611_enable_hpd_interrupts(lt9611); in lt9611_probe()
1142 ret = lt9611_audio_init(dev, lt9611); in lt9611_probe()
1149 drm_bridge_remove(<9611->bridge); in lt9611_probe()
1152 regulator_bulk_disable(ARRAY_SIZE(lt9611->supplies), lt9611->supplies); in lt9611_probe()
1155 of_node_put(lt9611->dsi1_node); in lt9611_probe()
1156 of_node_put(lt9611->dsi0_node); in lt9611_probe()
1163 struct lt9611 *lt9611 = i2c_get_clientdata(client); in lt9611_remove() local
1166 lt9611_audio_exit(lt9611); in lt9611_remove()
1167 drm_bridge_remove(<9611->bridge); in lt9611_remove()
1169 regulator_bulk_disable(ARRAY_SIZE(lt9611->supplies), lt9611->supplies); in lt9611_remove()
1171 of_node_put(lt9611->dsi1_node); in lt9611_remove()
1172 of_node_put(lt9611->dsi0_node); in lt9611_remove()
1176 { "lontium,lt9611", 0 },
1182 { .compatible = "lontium,lt9611" },
1189 .name = "lt9611",
1198 MODULE_DESCRIPTION("Lontium LT9611 DSI/HDMI bridge driver");