Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50c72f9d authored by Ilia Lin's avatar Ilia Lin Committed by Siddharth Zaveri
Browse files

msm: adv7533: add DSI to HDMI bridge chip support



Add driver for ADV7533 to support DSI to HDMI output.
Configure the ADV7533 via I2C for audio/video setup.

Change-Id: Iec0b922e1257d6974ea1755b49a6087f85eb8499
Signed-off-by: default avatarIlia Lin <ilialin@codeaurora.org>
Signed-off-by: default avatarSiddharth Zaveri <szaveri@codeaurora.org>
parent ad972217
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
ADV7533 DSI to HDMI bridge


Required properties:
- compatible:				Must be "adv7533"
- reg:					Main I2C slave ID (for I2C host driver)
- adi,video-mode:			Excepted a number and possible inputs are 0 to 3, while:
					3 = 1080p
					2 = 720p
					1 = 480p
					0 = 1080p pattern
- adi,main-addr:			Main I2C slave ID
- adi,cec-dsi-addr:			CEC DSI I2C slave ID

Optional properties:
- adi,enable-audio:
- adi,disable-gpios:
- adi,irq-gpio:			Main IRQ gpio mapping
- adi,hpd-irq-gpio:			HPD IRQ gpio mapping
- adi,switch-gpio:			DSI switch gpio mapping

Example:
&soc {
	i2c@78b8000 {
		adv7533@39 {
			compatible = "adv7533";
			reg = <0x39>;
			adi,video-mode = <3>; /* 3 = 1080p */
			adi,main-addr = <0x39>;
			adi,cec-dsi-addr = <0x3C>;
			adi,enable-audio;
			pinctrl-names = "pmx_adv7533_active","pmx_adv7533_suspend";
			pinctrl-0 = <&adv7533_int_active &adv7533_hpd_int_active &adv7533_switch_active>;
			pinctrl-1 = <&adv7533_int_suspend &adv7533_hpd_int_suspend &adv7533_switch_suspend>;
			adi,irq-gpio = <&msm_gpio 31 0x2002>;
			adi,hpd-irq-gpio = <&msm_gpio 20 0x2003>;
			adi,switch-gpio = <&msm_gpio 32 0x0>;
		};
	};
};
+10 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@

config MSM_DBA
	bool "MSM Display Bridge Abstraction support"
	depends on ARM
	depends on ARM || ARM64
	---help---
	  Support for MSM display bridge abstraction interface. MSM display
	  drivers can use the same interface to interact with different third
@@ -13,3 +13,12 @@ config MSM_DBA
	  bridge chip. The MSM DBA driver maintains a list of devices supported
	  on the platform and allow clients to register and access these
	  devices.

config MSM_DBA_ADV7533
	bool "ADV7533 driver support through MSM DBA interface"
	depends on MSM_DBA
	default n
	---help---
	  Support for ADV7533 DSI to HDMI display bridge driver. The driver
	  controls the ADV7533 HW through the I2C interface and configures
	  the DSi input and HDMI output video format.
+1 −0
Original line number Diff line number Diff line
obj-$(CONFIG_MSM_DBA) += msm_dba.o msm_dba_init.o msm_dba_helpers.o msm_dba_debug.o
obj-$(CONFIG_MSM_DBA_ADV7533) += adv7533.o
clean:
	rm *.o
+808 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Contains only whitespace changes.