[PATCH v7 3/4] drm/loongson: Add interrupt driver for LS7A.

2022-09-06 Thread
Add LS7A DC vsync interrupt enable and close function, and register irq_handler function interface. Add vbrank event processing flow. v4: - Replace drm_irq_install with devm_request_irq. - Delete the irq_ hooks in drm_driver. v3: - Improve code readability. - Use the to_pci_dev function to get

[PATCH v7 1/4] drm/loongson: Add DRM Driver for Loongson 7A1000 bridge chip

2022-09-06 Thread
This patch adds an initial DRM driver for the Loongson LS7A1000 bridge chip(LS7A). The Loongson 7A1000 bridge chip is Loongson’s first dedicated chipset product, providing north-south bridge functionality for Loongson processors. The bridge chip is connected to the Loongson Series 3 processor via

[PATCH v7 4/4] drm/loongson: Use acpi to get video bios.

2022-09-06 Thread
Add get video bios from the ACPI table. Define new acpi table "VIAT" for loongson video bios. Signed-off-by: Chenyang Li --- drivers/gpu/drm/loongson/Makefile | 3 +- drivers/gpu/drm/loongson/loongson_drv.c | 21 +++- drivers/gpu/drm/loongson/loongson_drv.h | 1 +

[PATCH v7 2/4] drm/loongson: Add GPIO and I2C driver for loongson drm.

2022-09-06 Thread
Implement use GPIO and I2C driver to detect connector and fetch EDID via DDC. v5: - Use braidge->ddc to get EDID and detect connector. v4: - Delete the gpio_chip subsystem call. - Delete some redundant prints. v3: - Change some driver log to the drm_ version. v2: - Optimize the error handling

Reply: Re: [PATCH v3 1/3] drm/loongson: Add DRM Driver for Loongson 7A1000 bridge chip

2021-07-28 Thread
Hi Daniel, I'm honored to have your attention,and thanks for your advice. I will finish the next version and submit it as soon as possible. + + lcrtc-ldev = ldev; + lcrtc-reg_offset = index * REG_OFFSET; + lcrtc-cfg_reg = CFG_RESET; + lcrtc-crtc_id = index; + +

Reply: Re: [PATCH v3 1/3] drm/loongson: Add DRM Driver for Loongson 7A1000 bridge chip

2021-07-27 Thread
Hi Sam, Thank you very much for your attention to our driver. I will consider your opinion, The next version is due in the near future. -Original Messages- From: "Sam Ravnborg" Sent Time: 2021-07-28 01:41:30 (Wednesday) To: "Daniel Vetter" Subject: Re: [PATCH v3 1/3] drm/loongson:

Reply: Re: [PATCH 3/3] drm/loongson: Add interrupt driver for LS7A

2021-07-07 Thread
-Original Messages- From: "Dan Carpenter" Sent Time: 2021-07-06 17:05:01 (Tuesday) To: lichenyang Cc: de...@linuxdriverproject.org Subject: Re: [PATCH 3/3] drm/loongson: Add interrupt driver for LS7A On Tue, Jul 06, 2021 at 02:36:31PM +0800, lichenyang wrote: int