Lines Matching +full:lvds +full:- +full:4 +full:bits

1 // SPDX-License-Identifier: GPL-2.0+
3 * R-Car Display Unit DRM driver
5 * Copyright (C) 2013-2015 Renesas Electronics Corporation
11 #include <linux/dma-mapping.h>
32 /* -----------------------------------------------------------------------------
45 * R8A774[34] has one RGB output and one LVDS output
57 .num_rpf = 4,
80 .num_rpf = 4,
92 * R8A77470 has two RGB outputs, one LVDS output, and
108 .num_rpf = 4,
121 * R8A774A1 has one RGB output, one LVDS output and one HDMI
152 * R8A774B1 has one RGB output, one LVDS output and one HDMI
181 * R8A774C0 has one RGB output and two LVDS outputs
197 .num_rpf = 4,
211 * R8A774E1 has one RGB output, one LVDS output and one HDMI
263 * R8A7742 and R8A7790 each have one RGB output and two LVDS
281 .num_rpf = 4,
284 /* M2-W (r8a7791) and M2-N (r8a7793) are identical */
294 * R8A779[13] has one RGB output, one LVDS output and one
307 .num_rpf = 4,
328 .num_rpf = 4,
352 .num_rpf = 4,
366 * LVDS output.
400 * R8A7796 has one RGB output, one LVDS output and one HDMI
431 * R8A77965 has one RGB output, one LVDS output and one HDMI
462 * R8A77970 and R8A77980 have one RGB output and one LVDS
486 * R8A77990 and R8A77995 have one RGB output and two LVDS
508 .gen = 4,
529 .gen = 4,
550 .gen = 4,
567 { .compatible = "renesas,du-r8a7742", .data = &rcar_du_r8a7790_info },
568 { .compatible = "renesas,du-r8a7743", .data = &rzg1_du_r8a7743_info },
569 { .compatible = "renesas,du-r8a7744", .data = &rzg1_du_r8a7743_info },
570 { .compatible = "renesas,du-r8a7745", .data = &rzg1_du_r8a7745_info },
571 { .compatible = "renesas,du-r8a77470", .data = &rzg1_du_r8a77470_info },
572 { .compatible = "renesas,du-r8a774a1", .data = &rcar_du_r8a774a1_info },
573 { .compatible = "renesas,du-r8a774b1", .data = &rcar_du_r8a774b1_info },
574 { .compatible = "renesas,du-r8a774c0", .data = &rcar_du_r8a774c0_info },
575 { .compatible = "renesas,du-r8a774e1", .data = &rcar_du_r8a774e1_info },
576 { .compatible = "renesas,du-r8a7779", .data = &rcar_du_r8a7779_info },
577 { .compatible = "renesas,du-r8a7790", .data = &rcar_du_r8a7790_info },
578 { .compatible = "renesas,du-r8a7791", .data = &rcar_du_r8a7791_info },
579 { .compatible = "renesas,du-r8a7792", .data = &rcar_du_r8a7792_info },
580 { .compatible = "renesas,du-r8a7793", .data = &rcar_du_r8a7791_info },
581 { .compatible = "renesas,du-r8a7794", .data = &rcar_du_r8a7794_info },
582 { .compatible = "renesas,du-r8a7795", .data = &rcar_du_r8a7795_info },
583 { .compatible = "renesas,du-r8a7796", .data = &rcar_du_r8a7796_info },
584 { .compatible = "renesas,du-r8a77961", .data = &rcar_du_r8a7796_info },
585 { .compatible = "renesas,du-r8a77965", .data = &rcar_du_r8a77965_info },
586 { .compatible = "renesas,du-r8a77970", .data = &rcar_du_r8a77970_info },
587 { .compatible = "renesas,du-r8a77980", .data = &rcar_du_r8a77970_info },
588 { .compatible = "renesas,du-r8a77990", .data = &rcar_du_r8a7799x_info },
589 { .compatible = "renesas,du-r8a77995", .data = &rcar_du_r8a7799x_info },
590 { .compatible = "renesas,du-r8a779a0", .data = &rcar_du_r8a779a0_info },
591 { .compatible = "renesas,du-r8a779g0", .data = &rcar_du_r8a779g0_info },
592 { .compatible = "renesas,du-r8a779h0", .data = &rcar_du_r8a779h0_info },
618 /* -----------------------------------------------------------------------------
630 .name = "rcar-du",
631 .desc = "Renesas R-Car Display Unit",
636 /* -----------------------------------------------------------------------------
644 return drm_mode_config_helper_suspend(&rcdu->ddev); in rcar_du_pm_suspend()
651 return drm_mode_config_helper_resume(&rcdu->ddev); in rcar_du_pm_resume()
657 /* -----------------------------------------------------------------------------
664 struct drm_device *ddev = &rcdu->ddev; in rcar_du_remove()
676 drm_atomic_helper_shutdown(&rcdu->ddev); in rcar_du_shutdown()
686 return -ENODEV; in rcar_du_probe()
688 /* Allocate and initialize the R-Car device structure. */ in rcar_du_probe()
689 rcdu = devm_drm_dev_alloc(&pdev->dev, &rcar_du_driver, in rcar_du_probe()
694 rcdu->dev = &pdev->dev; in rcar_du_probe()
696 rcdu->info = of_device_get_match_data(rcdu->dev); in rcar_du_probe()
701 rcdu->mmio = devm_platform_ioremap_resource(pdev, 0); in rcar_du_probe()
702 if (IS_ERR(rcdu->mmio)) in rcar_du_probe()
703 return PTR_ERR(rcdu->mmio); in rcar_du_probe()
706 * Set the DMA coherent mask to reflect the DU 32-bit DMA address space in rcar_du_probe()
708 * any memory access so set the mask to 40 bits to accept all buffers. in rcar_du_probe()
711 ret = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(mask)); in rcar_du_probe()
722 if (ret != -EPROBE_DEFER) in rcar_du_probe()
723 dev_err(&pdev->dev, in rcar_du_probe()
732 ret = drm_dev_register(&rcdu->ddev, 0); in rcar_du_probe()
736 drm_info(&rcdu->ddev, "Device %s probed\n", dev_name(&pdev->dev)); in rcar_du_probe()
738 drm_client_setup(&rcdu->ddev, NULL); in rcar_du_probe()
743 drm_kms_helper_poll_fini(&rcdu->ddev); in rcar_du_probe()
752 .name = "rcar-du",
761 MODULE_DESCRIPTION("Renesas R-Car Display Unit DRM Driver");