Rockchip Type-C DisplayPort driver
Subsystems (8)
v15 cover Rockchip Type-C DisplayPort driver
Hi all
This series patch is for rockchip Type-C DisplayPort controller driver.
The USB Type-C PHY is designed to support the USB3 and DP applications. The PHY basically has two main components: USB3 and DisplyPort. USB3 operates in SuperSpeed mode and the DP can operate at RBR, HBR and HBR2 data rates. The Type-C cable orientation detection and Power Delivery (PD) is accomplished using a PD PHY or a exernal PD chip.
The DP controller is compliant with DisplayPort Specification, Version 1.3, This IP is compatible with the rockchip type-c PHY IP. There is a uCPU in DP controller, it need a firmware to work, please put the firmware file[0] rockchip/dptx.bin to /lib/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu.
The DP contoller has register a notification with extcon API, to get the alt mode from PD, the PD driver need call the devm_extcon_dev_allocate to create a extcon device and use extcon_set_state to notify DP controller. And call extcon_set_cable_property to set orientation.
About the DP audio, cdn-dp registered 2 DAIs: 0 is I2S, 1 is SPDIF. We can reference them in rk3399-gru machine driver. It base on the hdmi-notify patches[1], they are both in reviewing.
This series is based on Mark Yao's branch[2], the extcon API backport from linux-next[3].
I test this patches on the rk3399-evb board, with a fusb302 driver, this branch has no rk3399.dtsi, so the patch about dts is not included in this series.
Quoted 1 line
From V9, the Type-C PHY is split into two PHYs: DP and USB3. The PHY
will be init, no matter which PHY be power_on. The DP module will enter A2 mode (standby mode) after phy_init, if DP PHY is powered on, the DP module will enter to A0 mode(running mode). Then if DP PHY is powered off, DP module will back to A2 mode. If everything is un-plugged, phy will be deinit.
[0]kernel/git/firmware/linux-firmware.git
[1]
https://patchwork.kernel.org/patch/8887261/
https://patchwork.kernel.org/patch/8887251/
[2]
https://github.com/markyzq/kernel-drm-rockchip/tree/drm-rockchip-next-2016-05-23
[3]git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
Changes in v15:
Chris Zhong's changes:
- fix disable phy unbalance
- support Apple Dock hot-plug in HDMI port
- retraining when Apple Dock hpd irq coming
Sean Paul's changes:
- Restructured the worker
- Synchronized between worker & drm hooks
- Properly implemented enable/disable
- Added error checking
- Use devm variant of extcon
- Use DRM_DEV_* logging
- Refactored code to (hopefully) be more clear
Changes in v14:
- Modify some grammatical errors
- remove the mutex around cdn_dp_audio_get_eld
- power on the power domain after clk_enable
- retry to read edid
- change super speed property name to EXTCON_PROP_USB_SS
- do a correct mode_valid check when bpc is 0
Changes in v13:
- add dptx and apb reset
- support suspend/resume
- switch power domain dynamically
- re-training when hpd signal is triggered
Changes in v12:
- use EXTCON_PROP_USB_SUPERSPEED to replace EXTCON_USB_HOST
Changes in v11:
- refer dp phy
- add best_encoder back, since it required by drm_atomic_helper_check
Changes in v10:
- add pclk_vio_grf clock
- remove best_encoder ops
- support read sink count from DPCD
- control the grf_clk in DP
Changes in v9:
- modify the reference phy = <&tcphy0 0>, <&tcphy1 0>;
- do not need reset the phy before power_on
- add a orientation information for set_capability
- retry to read dpcd in 10 seconds
Changes in v8:
- optimization the err log
Changes in v7:
- support firmware standby when no dptx connection
- optimization the calculation of tu size and valid symbol
Changes in v6:
- add assigned-clocks and assigned-clock-rates
- add power-domains
- add a port struct
- select SND_SOC_HDMI_CODEC
- force reset the phy when hpd detected
Changes in v5:
- alphabetical order
- do not use long, use u32 or u64
- return MODE_CLOCK_HIGH when requested > actual
- Optimized Coding Style
- add a formula to get better tu size and symbol value.
- modify according to Sean Paul's comments
- fixed the fw_wait always 0
Changes in v4:
- add a reset node
- support 2 phys
- use phy framework to control DP phy
- support 2 phys
Changes in v3:
- add SoC specific compatible string
- remove reg = <1>;
- use EXTCON_DISP_DP and EXTCON_DISP_DP_ALT cable to get dp port state.
- reset spdif before config it
- modify the firmware clk to 100Mhz
- retry load firmware if fw file is requested too early
- change spdif to i2s2
Changes in v2:
- Alphabetic order
- remove excess error message
- use define clk_rate
- check all return value
- remove dev_set_name(dp->dev, "cdn-dp");
- use schedule_delayed_work
- remove never-called functions
- remove some unnecessary ()
- correct the commit message
Changes in v1:
- add extcon node description
- add #sound-dai-cells description
- use extcon API
- use hdmi-codec for the DP Asoc
- do not initialize the "ret"
- printk a err log when drm_of_encoder_active_endpoint_id
- modify the dclk pin_pol to a single line
Chris Zhong (5):
extcon: Introduce EXTCON_PROP_DISP_HPD property
Documentation: bindings: add dt documentation for cdn DP controller drm/rockchip: cdn-dp: add cdn DP support for rk3399 drm/rockchip: cdn-dp: support audio hot-plug
ASoC: rockchip: Add DP dai-links to the rk3399-gru machine driver
.../bindings/display/rockchip/cdn-dp-rockchip.txt | 75 ++ .../bindings/sound/rockchip,rk3399-gru-sound.txt | 11 +- drivers/gpu/drm/rockchip/Kconfig | 10 + drivers/gpu/drm/rockchip/Makefile | 1 + drivers/gpu/drm/rockchip/cdn-dp-core.c | 1165 ++++++++++++++++++++ drivers/gpu/drm/rockchip/cdn-dp-core.h | 108 ++ drivers/gpu/drm/rockchip/cdn-dp-reg.c | 956 ++++++++++++++++ drivers/gpu/drm/rockchip/cdn-dp-reg.h | 482 ++++++++ drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 13 +- drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 9 + drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 2 + include/linux/extcon.h | 14 +- sound/soc/rockchip/rk3399_gru_sound.c | 93 ++ 13 files changed, 2930 insertions(+), 9 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/rockchip/cdn-dp-rockchip.txt create mode 100644 drivers/gpu/drm/rockchip/cdn-dp-core.c create mode 100644 drivers/gpu/drm/rockchip/cdn-dp-core.h create mode 100644 drivers/gpu/drm/rockchip/cdn-dp-reg.c create mode 100644 drivers/gpu/drm/rockchip/cdn-dp-reg.h
Signature · 6 lines
1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v15 1/5 extcon: Introduce EXTCON_PROP_DISP_HPD property
EXTCON_PROP_DISP_HPD is need by display port, if the system has no hpd interrupt, this property can be used.
---
Changes in v15: None
Changes in v14: None
Changes in v13: None
Changes in v12: None
Changes in v11: None
Changes in v10: None
Changes in v9: None
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
Changes in v1: None
include/linux/extcon.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
include/linux/extcon.h +13 -1
@@ -131,9 +131,21 @@#define EXTCON_PROP_JACK_MAX 100#define EXTCON_PROP_JACK_CNT (EXTCON_PROP_JACK_MAX - EXTCON_PROP_JACK_MIN + 1) +/* +* Properties of EXTCON_TYPE_DISP. +* +* - EXTCON_PROP_DISP_HPD +* @type: integer (intval) +* @value: 0 (no hpd) or 1 (hpd) +* @default: 0 (no hpd) +* +*/ + +#define EXTCON_PROP_DISP_HPD 150 +/* Properties of EXTCON_TYPE_DISP. */ #define EXTCON_PROP_DISP_MIN 150 -#define EXTCON_PROP_DISP_MAX 150 +#define EXTCON_PROP_DISP_MAX 151#define EXTCON_PROP_DISP_CNT (EXTCON_PROP_DISP_MAX - EXTCON_PROP_DISP_MIN + 1)/*
Signature · 1 line
1.9.1
Chanwoo Choi
maintainerRe: [PATCH v15 1/5] extcon: Introduce EXTCON_PROP_DISP_HPD property
Dear all,
Quoted 43 lines · Chris Zhong
EXTCON_PROP_DISP_HPDis need by display port, if the system has no hpd interrupt, this property can be used.Signed-off-by Chris Zhong <[email protected]>---
Changes in v15: None
Changes in v14: None
Changes in v13: None
Changes in v12: None
Changes in v11: None
Changes in v10: None
Changes in v9: None
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
Changes in v1: Noneinclude/linux/extcon.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)include/linux/extcon.h +9
-0@@ -131,9 +131,21 @@#define EXTCON_PROP_JACK_MAX 100#define EXTCON_PROP_JACK_CNT (EXTCON_PROP_JACK_MAX - EXTCON_PROP_JACK_MIN + 1) +/* +* Properties of EXTCON_TYPE_DISP. +* +* - EXTCON_PROP_DISP_HPD +* @type: integer (intval) +* @value: 0 (no hpd) or 1 (hpd) +* @default: 0 (no hpd) +* +*/
include/linux/extcon.h line 151
Quoted 10 lines
include/linux/extcon.h +4
-1+ +#define EXTCON_PROP_DISP_HPD 150 +/* Properties of EXTCON_TYPE_DISP. */ #define EXTCON_PROP_DISP_MIN 150 -#define EXTCON_PROP_DISP_MAX 150 +#define EXTCON_PROP_DISP_MAX 151#define EXTCON_PROP_DISP_CNT (EXTCON_PROP_DISP_MAX - EXTCON_PROP_DISP_MIN + 1)/*
This patch rely on the extcon git repository to support the extcon property. I created the immutable branch(ib-extcon-phy-4.9). I send this pull request to prevent the build error.
Best Regards,
Chanwoo Choi
The following changes since commit 29b4817d4018df78086157ea3a55c1d9424a7cfc:
Linux 4.8-rc1 (2016-08-07 18:18:00 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon.git ib-extcon-phy-4.9
for you to fetch changes up to c7914e8dfa4032d24ef7af4c86b9c841ec6b74e6:
extcon: Introduce EXTCON_PROP_DISP_HPD property (2016-09-13 10:08:47 +0900)
----------------------------------------------------------------
Chanwoo Choi (12):
extcon: arizona: Remove the usage of extcon_update_state()
extcon: adc-jack: Remove the usage of extcon_set_state()
extcon: gpio: Remove the usage of extcon_set_state()
extcon: Remove the state_store() to prevent the wrong access
extcon: Block the bit masking operation for cable state except for extcon core
extcon: Add the extcon_type to gather each connector into five category
extcon: Add the support for extcon property according to extcon type
extcon: Add the support for the capability of each property
extcon: Rename the extcon_set/get_state() to maintain the function naming pattern
extcon: Add the synchronization extcon APIs to support the notification
extcon: Add new EXTCON_DISP_HMD for Head-mounted Display device
extcon: Add new EXTCON_CHG_WPT for Wireless Power Transfer device
Charles Keepax (1):
extcon: arizona: Remove unneeded semi-colon
Chris Zhong (2):
extcon: Add EXTCON_DISP_DP and the property for USB Type-C
extcon: Introduce EXTCON_PROP_DISP_HPD property
Guenter Roeck (1):
extcon: Introduce EXTCON_PROP_USB_SS property for SuperSpeed mode
Maninder Singh (1):
extcon: Fix compile time warning
Stephen Boyd (1):
extcon: Move extcon_get_edev_by_phandle() errors to dbg level
Venkat Reddy Talla (1):
extcon: adc-jack: update cable state during boot
drivers/extcon/extcon-adc-jack.c | 27 +- drivers/extcon/extcon-arizona.c | 13 +- drivers/extcon/extcon-gpio.c | 2 +- drivers/extcon/extcon.c | 774 ++++++++++++++++++++++++++------- include/linux/extcon.h | 192 +++++++- include/linux/extcon/extcon-adc-jack.h | 4 +- 6 files changed, 820 insertions(+), 192 deletions(-)
PATCH v15 2/5 Documentation: bindings: add dt documentation for cdn DP controller
In reply to Chris ZhongThis patch adds a binding that describes the cdn DP controller for rk3399.
---
Changes in v15: None
Changes in v14: None
Changes in v13:
- add dptx and apb reset
Changes in v12: None
Changes in v11:
- refer dp phy
Changes in v10:
- add pclk_vio_grf clock
Changes in v9:
- modify the reference phy = <&tcphy0 0>, <&tcphy1 0>;
Changes in v8: None
Changes in v7: None
Changes in v6:
- add assigned-clocks and assigned-clock-rates
- add power-domains
Changes in v5: None
Changes in v4:
- add a reset node
- support 2 phys
Changes in v3:
- add SoC specific compatible string
- remove reg = <1>;
Changes in v2: None
Changes in v1:
- add extcon node description
- add #sound-dai-cells description
.../bindings/display/rockchip/cdn-dp-rockchip.txt | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/rockchip/cdn-dp-rockchip.txt
Documentation/devicetree/bindings/display/rockchip/cdn-dp-rockchip.txt new file +75 -0
@@ -0,0 +1,75 @@ +Rockchip RK3399 specific extensions to the cdn Display Port +================================ + +Required properties: +- compatible: must be "rockchip,rk3399-cdn-dp" + +- reg: physical base address of the controller and length + +- clocks: from common clock binding: handle to dp clock. + +- clock-names: from common clock binding: + Required elements: "core-clk" "pclk" "spdif" "grf" + +- resets : a list of phandle + reset specifier pairs +- reset-names : string reset name, must be: + "spdif", "dptx", "apb". +- power-domains : power-domain property defined with a phandle + to respective power domain. +- assigned-clocks: main clock, should be <&cru SCLK_DP_CORE> +- assigned-clock-rates : the DP core clk frequency, shall be: 100000000 + +- rockchip,grf: this soc should set GRF regs, so need get grf here. + +- ports: contain a port nodes with endpoint definitions as defined in + Documentation/devicetree/bindings/media/video-interfaces.txt. + contained 2 endpoints, connecting to the output of vop. + +- phys: from general PHY binding: the phandle for the PHY device. + +- extcon: extcon specifier for the Power Delivery + +- #sound-dai-cells = it must be 1 if your system is using 2 DAIs: I2S, SPDIF + +------------------------------------------------------------------------------- + +Example: + cdn_dp: dp at fec00000 { + compatible = "rockchip,rk3399-cdn-dp"; + reg = <0x0 0xfec00000 0x0 0x100000>; + interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cru SCLK_DP_CORE>, <&cru PCLK_DP_CTRL>, + <&cru SCLK_SPDIF_REC_DPTX>, <&cru PCLK_VIO_GRF>; + clock-names = "core-clk", "pclk", "spdif", "grf"; + assigned-clocks = <&cru SCLK_DP_CORE>; + assigned-clock-rates = <100000000>; + power-domains = <&power RK3399_PD_HDCP>; + phys = <&tcphy0_dp>, <&tcphy1_dp>; + resets = <&cru SRST_DPTX_SPDIF_REC>, <&cru SRST_P_UPHY0_DPTX>, + <&cru SRST_P_UPHY0_APB>; + reset-names = "spdif", "dptx", "apb"; + extcon = <&fusb0>, <&fusb1>; + rockchip,grf = <&grf>; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + dp_in: port { + #address-cells = <1>; + #size-cells = <0>; + dp_in_vopb: endpoint at 0 { + reg = <0>; + remote-endpoint = <&vopb_out_dp>; + }; + + dp_in_vopl: endpoint at 1 { + reg = <1>; + remote-endpoint = <&vopl_out_dp>; + }; + }; + }; + };
Signature · 1 line
1.9.1
Re: [PATCH v15 2/5] Documentation: bindings: add dt documentation for cdn DP controller
Hi all,
2016-09-10 4:15 GMT+02:00 Chris Zhong <[email protected]>:
Quoted 130 lines
This patch adds a binding that describes the cdn DP controller for rk3399.
Signed-off-by Chris Zhong <[email protected]>Acked-by Rob Herring <[email protected]>Reviewed-by Guenter Roeck <[email protected]>---
Changes in v15: None
Changes in v14: None
Changes in v13:
- add dptx and apb resetChanges in v12: None
Changes in v11:
- refer dp phyChanges in v10:
- addpclk_vio_grfclockChanges in v9:
- modify the reference phy = <&tcphy0 0>, <&tcphy1 0>;Changes in v8: None
Changes in v7: None
Changes in v6:
- add assigned-clocks and assigned-clock-rates
- add power-domainsChanges in v5: None
Changes in v4:
- add a reset node
- support 2 physChanges in v3:
- add SoC specific compatible string
- remove reg = <1>;Changes in v2: None
Changes in v1:
- add extcon node description
- add #sound-dai-cells description.../bindings/display/rockchip/cdn-dp-rockchip.txt | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/rockchip/cdn-dp-rockchip.txtDocumentation/devicetree/bindings/display/rockchip/cdn-dp-rockchip.txt new file +75
-1@@ -0,0 +1,75 @@ +Rockchip RK3399 specific extensions to the cdn Display Port +================================ + +Required properties: +- compatible: must be "rockchip,rk3399-cdn-dp" + +- reg: physical base address of the controller and length + +- clocks: from common clock binding: handle to dp clock. + +- clock-names: from common clock binding: + Required elements: "core-clk" "pclk" "spdif" "grf" + +- resets : a list of phandle + reset specifier pairs +- reset-names : string reset name, must be: + "spdif", "dptx", "apb". +- power-domains : power-domain property defined with a phandle + to respective power domain. +- assigned-clocks: main clock, should be <&cru SCLK_DP_CORE> +- assigned-clock-rates : the DP core clk frequency, shall be: 100000000 + +- rockchip,grf: this soc should set GRF regs, so need get grf here. + +- ports: contain a port nodes with endpoint definitions as defined in + Documentation/devicetree/bindings/media/video-interfaces.txt. + contained 2 endpoints, connecting to the output of vop. + +- phys: from general PHY binding: the phandle for the PHY device. + +- extcon: extcon specifier for the Power Delivery + +- #sound-dai-cells = it must be 1 if your system is using 2 DAIs: I2S, SPDIF + +------------------------------------------------------------------------------- + +Example: + cdn_dp: dp at fec00000 { + compatible = "rockchip,rk3399-cdn-dp"; + reg = <0x0 0xfec00000 0x0 0x100000>; + interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cru SCLK_DP_CORE>, <&cru PCLK_DP_CTRL>, + <&cru SCLK_SPDIF_REC_DPTX>, <&cru PCLK_VIO_GRF>; + clock-names = "core-clk", "pclk", "spdif", "grf"; + assigned-clocks = <&cru SCLK_DP_CORE>; + assigned-clock-rates = <100000000>; + power-domains = <&power RK3399_PD_HDCP>; + phys = <&tcphy0_dp>, <&tcphy1_dp>; + resets = <&cru SRST_DPTX_SPDIF_REC>, <&cru SRST_P_UPHY0_DPTX>, + <&cru SRST_P_UPHY0_APB>; + reset-names = "spdif", "dptx", "apb"; + extcon = <&fusb0>, <&fusb1>; + rockchip,grf = <&grf>; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + dp_in: port { + #address-cells = <1>; + #size-cells = <0>; + dp_in_vopb: endpoint at 0 { + reg = <0>; + remote-endpoint = <&vopb_out_dp>; + }; + + dp_in_vopl: endpoint at 1 { + reg = <1>; + remote-endpoint = <&vopl_out_dp>; + }; + }; + }; + }; --
Quoted 2 lines
1.9.1
CC'ing Mark Yao
I saw that the cdn-dp driver is merged but not the documentation binding. Maybe we forget to include this patch with the pull request? Or there is another reason?
Thanks,
Enric
PATCH v15 3/5 drm/rockchip: cdn-dp: add cdn DP support for rk3399
In reply to Chris ZhongAdd support for cdn DP controller which is embedded in the rk3399 SoCs. The DP is compliant with DisplayPort Specification, Version 1.3, This IP is compatible with the rockchip type-c PHY IP. There is a uCPU in DP controller, it need a firmware to work, please put the firmware file to /lib/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu.
The dclk pin_pol of vop must not be invert for DP.
---
Changes in v15:
Chris Zhong's changes:
- fix disable phy unbalance
- support Apple Dock hot-plug in HDMI port
- retraining when Apple Dock hpd irq coming
Sean Paul's changes:
- Restructured the worker
- Synchronized between worker & drm hooks
- Properly implemented enable/disable
- Added error checking
- Use devm variant of extcon
- Use DRM_DEV_* logging
- Refactored code to (hopefully) be more clear
Changes in v14:
- Modify some grammatical errors
- remove the mutex around cdn_dp_audio_get_eld
- power on the power domain after clk_enable
- retry to read edid
- change super speed property name to EXTCON_PROP_USB_SS
- do a correct mode_valid check when bpc is 0
Changes in v13:
- support suspend/resume
- switch power domain dynamically
- re-training when hpd signal is triggered
Changes in v12:
- use EXTCON_PROP_USB_SUPERSPEED to replace EXTCON_USB_HOST
Changes in v11:
- add best_encoder back, since it required by drm_atomic_helper_check
Changes in v10:
- remove best_encoder ops
- support read sink count from DPCD
- control the grf_clk in DP
Changes in v9:
- do not need reset the phy before power_on
- add a orientation information for set_capability
- retry to read dpcd in 10 seconds
Changes in v8:
- optimization the err log
Changes in v7:
- support firmware standby when no dptx connection
- optimization the calculation of tu size and valid symbol
Changes in v6:
- add a port struct
- select SND_SOC_HDMI_CODEC
- force reset the phy when hpd detected
Changes in v5:
- alphabetical order
- do not use long, use u32 or u64
- return MODE_CLOCK_HIGH when requested > actual
- Optimized Coding Style
- add a formula to get better tu size and symbol value.
- modify according to Sean Paul's comments
- fixed the fw_wait always 0
Changes in v4:
- use phy framework to control DP phy
- support 2 phys
Changes in v3:
- use EXTCON_DISP_DP and EXTCON_DISP_DP_ALT cable to get dp port state.
- reset spdif before config it
- modify the firmware clk to 100Mhz
- retry load firmware if fw file is requested too early
Changes in v2:
- Alphabetic order
- remove excess error message
- use define clk_rate
- check all return value
- remove dev_set_name(dp->dev, "cdn-dp");
- use schedule_delayed_work
- remove never-called functions
- remove some unnecessary ()
Changes in v1:
- use extcon API
- use hdmi-codec for the DP Asoc
- do not initialize the "ret"
- printk a err log when drm_of_encoder_active_endpoint_id
- modify the dclk pin_pol to a single line
drivers/gpu/drm/rockchip/Kconfig | 10 + drivers/gpu/drm/rockchip/Makefile | 1 + drivers/gpu/drm/rockchip/cdn-dp-core.c | 1161 +++++++++++++++++++++++++++ drivers/gpu/drm/rockchip/cdn-dp-core.h | 108 +++ drivers/gpu/drm/rockchip/cdn-dp-reg.c | 956 ++++++++++++++++++++++ drivers/gpu/drm/rockchip/cdn-dp-reg.h | 482 +++++++++++ drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 13 +- drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 9 + drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 2 + 9 files changed, 2739 insertions(+), 3 deletions(-) create mode 100644 drivers/gpu/drm/rockchip/cdn-dp-core.c create mode 100644 drivers/gpu/drm/rockchip/cdn-dp-core.h create mode 100644 drivers/gpu/drm/rockchip/cdn-dp-reg.c create mode 100644 drivers/gpu/drm/rockchip/cdn-dp-reg.h
drivers/gpu/drm/rockchip/Kconfig +10 -0
@@ -25,6 +25,16 @@ config ROCKCHIP_ANALOGIX_DP for the Analogix Core DP driver. If you want to enable DP on RK3288 based SoC, you should selet this option. +config ROCKCHIP_CDN_DP + tristate "Rockchip cdn DP" + depends on DRM_ROCKCHIP + select SND_SOC_HDMI_CODEC if SND_SOC + help + This selects support for Rockchip SoC specific extensions + for the cdn DP driver. If you want to enable Dp on + RK3399 based SoC, you should select this + option. + config ROCKCHIP_DW_HDMI tristate "Rockchip specific extensions for Synopsys DW HDMI" depends on DRM_ROCKCHIP
drivers/gpu/drm/rockchip/Makefile +1 -0
@@ -7,6 +7,7 @@ rockchipdrm-y := rockchip_drm_drv.o rockchip_drm_fb.o \ rockchipdrm-$(CONFIG_DRM_FBDEV_EMULATION) += rockchip_drm_fbdev.o obj-$(CONFIG_ROCKCHIP_ANALOGIX_DP) += analogix_dp-rockchip.o +obj-$(CONFIG_ROCKCHIP_CDN_DP) += cdn-dp-core.o cdn-dp-reg.o obj-$(CONFIG_ROCKCHIP_DW_HDMI) += dw_hdmi-rockchip.o obj-$(CONFIG_ROCKCHIP_DW_MIPI_DSI) += dw-mipi-dsi.o obj-$(CONFIG_ROCKCHIP_INNO_HDMI) += inno_hdmi.o
drivers/gpu/drm/rockchip/cdn-dp-core.c new file +1161 -0
1,161 lines not on this page · raw message
drivers/gpu/drm/rockchip/cdn-dp-core.h new file +108 -0
108 lines not on this page · raw message
drivers/gpu/drm/rockchip/cdn-dp-reg.c new file +956 -0
956 lines not on this page · raw message
drivers/gpu/drm/rockchip/cdn-dp-reg.h new file +482 -0
482 lines not on this page · raw message
drivers/gpu/drm/rockchip/rockchip_drm_vop.c +10 -3
@@ -1048,9 +1048,11 @@ static void vop_crtc_enable(struct drm_crtc *crtc)vop_dsp_hold_valid_irq_disable (vop); } - pin_pol =0x8 ; - pin_pol |= (adjusted_mode->flags &DRM_MODE_FLAG_NHSYNC ) ?0 :1 ; - pin_pol |= (adjusted_mode->flags &DRM_MODE_FLAG_NVSYNC ) ?0 : (1 <<1 ); + pin_pol =BIT (DCLK_INVERT ); + pin_pol |= (adjusted_mode->flags &DRM_MODE_FLAG_NHSYNC ) ? +0 :BIT (HSYNC_POSITIVE ); + pin_pol |= (adjusted_mode->flags &DRM_MODE_FLAG_NVSYNC ) ? +0 :BIT (VSYNC_POSITIVE );VOP_CTRL_SET (vop, pin_pol, pin_pol);switch (s->output_type) {
@@ -1070,6 +1072,11 @@ static void vop_crtc_enable(struct drm_crtc *crtc)VOP_CTRL_SET (vop, mipi_pin_pol, pin_pol);VOP_CTRL_SET (vop, mipi_en,1 );break ; +case DRM_MODE_CONNECTOR_DisplayPort: + pin_pol &= ~BIT (DCLK_INVERT ); +VOP_CTRL_SET (vop, dp_pin_pol, pin_pol); +VOP_CTRL_SET (vop, dp_en,1 ); +break ;default :DRM_DEV_ERROR (vop->dev,"unsupported connector_type [%d]\n" , s->output_type);
drivers/gpu/drm/rockchip/rockchip_drm_vop.h +9 -0
@@ -45,6 +45,7 @@ struct vop_ctrl {struct vop_reg edp_en;struct vop_reg hdmi_en;struct vop_reg mipi_en; +struct vop_reg dp_en;struct vop_reg out_mode;struct vop_reg dither_down;struct vop_reg dither_up;
@@ -53,6 +54,7 @@ struct vop_ctrl {struct vop_reg hdmi_pin_pol;struct vop_reg edp_pin_pol;struct vop_reg mipi_pin_pol; +struct vop_reg dp_pin_pol;struct vop_reg htotal_pw;struct vop_reg hact_st_end;
@@ -244,6 +246,13 @@ enum scale_down_mode { SCALE_DOWN_AVG = 0x1 }; +enum vop_pol { +HSYNC_POSITIVE =0 , +VSYNC_POSITIVE =1 , +DEN_NEGATIVE =2 , +DCLK_INVERT =3 +}; +#define FRAC_16_16 (mult, div) (((mult) << 16) / (div))#define SCL_FT_DEFAULT_FIXPOINT_SHIFT 12#define SCL_MAX_VSKIPLINES 4
drivers/gpu/drm/rockchip/rockchip_vop_reg.c +2 -0
@@ -283,6 +283,7 @@ static const struct vop_data rk3288_vop = {static const struct vop_ctrl rk3399_ctrl_data = { .standby =VOP_REG (RK3399_SYS_CTRL ,0x1 ,22 ), .gate_en =VOP_REG (RK3399_SYS_CTRL ,0x1 ,23 ), + .dp_en =VOP_REG (RK3399_SYS_CTRL ,0x1 ,11 ), .rgb_en =VOP_REG (RK3399_SYS_CTRL ,0x1 ,12 ), .hdmi_en =VOP_REG (RK3399_SYS_CTRL ,0x1 ,13 ), .edp_en =VOP_REG (RK3399_SYS_CTRL ,0x1 ,14 ),
@@ -292,6 +293,7 @@ static const struct vop_ctrl rk3399_ctrl_data = { .data_blank = VOP_REG(RK3399_DSP_CTRL0, 0x1, 19), .out_mode = VOP_REG(RK3399_DSP_CTRL0, 0xf, 0), .rgb_pin_pol = VOP_REG(RK3399_DSP_CTRL1, 0xf, 16), + .dp_pin_pol = VOP_REG(RK3399_DSP_CTRL1, 0xf, 16), .hdmi_pin_pol = VOP_REG(RK3399_DSP_CTRL1, 0xf, 20), .edp_pin_pol = VOP_REG(RK3399_DSP_CTRL1, 0xf, 24), .mipi_pin_pol = VOP_REG(RK3399_DSP_CTRL1, 0xf, 28),
Signature · 1 line
1.9.1
PATCH v15 3/5 drm/rockchip: cdn-dp: add cdn DP support for rk3399
Add support for cdn DP controller which is embedded in the rk3399 SoCs. The DP is compliant with DisplayPort Specification, Version 1.3, This IP is compatible with the rockchip type-c PHY IP. There is a uCPU in DP controller, it need a firmware to work, please put the firmware file to /lib/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu.
The dclk pin_pol of vop must not be invert for DP.
---
Changes in v15.1:
- do better for err case
Changes in v15:
Chris Zhong's changes:
- fix disable phy unbalance
- support Apple Dock hot-plug in HDMI port
- retraining when Apple Dock hpd irq coming
Sean Paul's changes:
- Restructured the worker
- Synchronized between worker & drm hooks
- Properly implemented enable/disable
- Added error checking
- Use devm variant of extcon
- Use DRM_DEV_* logging
- Refactored code to (hopefully) be more clear
Changes in v14:
- Modify some grammatical errors
- remove the mutex around cdn_dp_audio_get_eld
- power on the power domain after clk_enable
- retry to read edid
- change super speed property name to EXTCON_PROP_USB_SS
- do a correct mode_valid check when bpc is 0
Changes in v13:
- support suspend/resume
- switch power domain dynamically
- re-training when hpd signal is triggered
Changes in v12:
- use EXTCON_PROP_USB_SUPERSPEED to replace EXTCON_USB_HOST
Changes in v11:
- add best_encoder back, since it required by drm_atomic_helper_check
Changes in v10:
- remove best_encoder ops
- support read sink count from DPCD
- control the grf_clk in DP
Changes in v9:
- do not need reset the phy before power_on
- add a orientation information for set_capability
- retry to read dpcd in 10 seconds
Changes in v8:
- optimization the err log
Changes in v7:
- support firmware standby when no dptx connection
- optimization the calculation of tu size and valid symbol
Changes in v6:
- add a port struct
- select SND_SOC_HDMI_CODEC
- force reset the phy when hpd detected
Changes in v5:
- alphabetical order
- do not use long, use u32 or u64
- return MODE_CLOCK_HIGH when requested > actual
- Optimized Coding Style
- add a formula to get better tu size and symbol value.
- modify according to Sean Paul's comments
- fixed the fw_wait always 0
Changes in v4:
- use phy framework to control DP phy
- support 2 phys
Changes in v3:
- use EXTCON_DISP_DP and EXTCON_DISP_DP_ALT cable to get dp port state.
- reset spdif before config it
- modify the firmware clk to 100Mhz
- retry load firmware if fw file is requested too early
Changes in v2:
- Alphabetic order
- remove excess error message
- use define clk_rate
- check all return value
- remove dev_set_name(dp->dev, "cdn-dp");
- use schedule_delayed_work
- remove never-called functions
- remove some unnecessary ()
Changes in v1:
- use extcon API
- use hdmi-codec for the DP Asoc
- do not initialize the "ret"
- printk a err log when drm_of_encoder_active_endpoint_id
- modify the dclk pin_pol to a single line
drivers/gpu/drm/rockchip/Kconfig | 10 + drivers/gpu/drm/rockchip/Makefile | 1 + drivers/gpu/drm/rockchip/cdn-dp-core.c | 1163 +++++++++++++++++++++++++++ drivers/gpu/drm/rockchip/cdn-dp-core.h | 108 +++ drivers/gpu/drm/rockchip/cdn-dp-reg.c | 956 ++++++++++++++++++++++ drivers/gpu/drm/rockchip/cdn-dp-reg.h | 482 +++++++++++ drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 13 +- drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 9 + drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 2 + 9 files changed, 2741 insertions(+), 3 deletions(-) create mode 100644 drivers/gpu/drm/rockchip/cdn-dp-core.c create mode 100644 drivers/gpu/drm/rockchip/cdn-dp-core.h create mode 100644 drivers/gpu/drm/rockchip/cdn-dp-reg.c create mode 100644 drivers/gpu/drm/rockchip/cdn-dp-reg.h
drivers/gpu/drm/rockchip/Kconfig +10 -0
@@ -25,6 +25,16 @@ config ROCKCHIP_ANALOGIX_DP for the Analogix Core DP driver. If you want to enable DP on RK3288 based SoC, you should selet this option. +config ROCKCHIP_CDN_DP + tristate "Rockchip cdn DP" + depends on DRM_ROCKCHIP + select SND_SOC_HDMI_CODEC if SND_SOC + help + This selects support for Rockchip SoC specific extensions + for the cdn DP driver. If you want to enable Dp on + RK3399 based SoC, you should select this + option. + config ROCKCHIP_DW_HDMI tristate "Rockchip specific extensions for Synopsys DW HDMI" depends on DRM_ROCKCHIP
drivers/gpu/drm/rockchip/Makefile +1 -0
@@ -7,6 +7,7 @@ rockchipdrm-y := rockchip_drm_drv.o rockchip_drm_fb.o \ rockchipdrm-$(CONFIG_DRM_FBDEV_EMULATION) += rockchip_drm_fbdev.o obj-$(CONFIG_ROCKCHIP_ANALOGIX_DP) += analogix_dp-rockchip.o +obj-$(CONFIG_ROCKCHIP_CDN_DP) += cdn-dp-core.o cdn-dp-reg.o obj-$(CONFIG_ROCKCHIP_DW_HDMI) += dw_hdmi-rockchip.o obj-$(CONFIG_ROCKCHIP_DW_MIPI_DSI) += dw-mipi-dsi.o obj-$(CONFIG_ROCKCHIP_INNO_HDMI) += inno_hdmi.o
drivers/gpu/drm/rockchip/cdn-dp-core.c new file +1163 -0
1,163 lines not on this page · raw message
drivers/gpu/drm/rockchip/cdn-dp-core.h new file +108 -0
108 lines not on this page · raw message
drivers/gpu/drm/rockchip/cdn-dp-reg.c new file +956 -0
956 lines not on this page · raw message
drivers/gpu/drm/rockchip/cdn-dp-reg.h new file +482 -0
482 lines not on this page · raw message
drivers/gpu/drm/rockchip/rockchip_drm_vop.c +10 -3
@@ -1048,9 +1048,11 @@ static void vop_crtc_enable(struct drm_crtc *crtc)vop_dsp_hold_valid_irq_disable (vop); } - pin_pol =0x8 ; - pin_pol |= (adjusted_mode->flags &DRM_MODE_FLAG_NHSYNC ) ?0 :1 ; - pin_pol |= (adjusted_mode->flags &DRM_MODE_FLAG_NVSYNC ) ?0 : (1 <<1 ); + pin_pol =BIT (DCLK_INVERT ); + pin_pol |= (adjusted_mode->flags &DRM_MODE_FLAG_NHSYNC ) ? +0 :BIT (HSYNC_POSITIVE ); + pin_pol |= (adjusted_mode->flags &DRM_MODE_FLAG_NVSYNC ) ? +0 :BIT (VSYNC_POSITIVE );VOP_CTRL_SET (vop, pin_pol, pin_pol);switch (s->output_type) {
@@ -1070,6 +1072,11 @@ static void vop_crtc_enable(struct drm_crtc *crtc)VOP_CTRL_SET (vop, mipi_pin_pol, pin_pol);VOP_CTRL_SET (vop, mipi_en,1 );break ; +case DRM_MODE_CONNECTOR_DisplayPort: + pin_pol &= ~BIT (DCLK_INVERT ); +VOP_CTRL_SET (vop, dp_pin_pol, pin_pol); +VOP_CTRL_SET (vop, dp_en,1 ); +break ;default :DRM_DEV_ERROR (vop->dev,"unsupported connector_type [%d]\n" , s->output_type);
drivers/gpu/drm/rockchip/rockchip_drm_vop.h +9 -0
@@ -45,6 +45,7 @@ struct vop_ctrl {struct vop_reg edp_en;struct vop_reg hdmi_en;struct vop_reg mipi_en; +struct vop_reg dp_en;struct vop_reg out_mode;struct vop_reg dither_down;struct vop_reg dither_up;
@@ -53,6 +54,7 @@ struct vop_ctrl {struct vop_reg hdmi_pin_pol;struct vop_reg edp_pin_pol;struct vop_reg mipi_pin_pol; +struct vop_reg dp_pin_pol;struct vop_reg htotal_pw;struct vop_reg hact_st_end;
@@ -244,6 +246,13 @@ enum scale_down_mode { SCALE_DOWN_AVG = 0x1 }; +enum vop_pol { +HSYNC_POSITIVE =0 , +VSYNC_POSITIVE =1 , +DEN_NEGATIVE =2 , +DCLK_INVERT =3 +}; +#define FRAC_16_16 (mult, div) (((mult) << 16) / (div))#define SCL_FT_DEFAULT_FIXPOINT_SHIFT 12#define SCL_MAX_VSKIPLINES 4
drivers/gpu/drm/rockchip/rockchip_vop_reg.c +2 -0
@@ -283,6 +283,7 @@ static const struct vop_data rk3288_vop = {static const struct vop_ctrl rk3399_ctrl_data = { .standby =VOP_REG (RK3399_SYS_CTRL ,0x1 ,22 ), .gate_en =VOP_REG (RK3399_SYS_CTRL ,0x1 ,23 ), + .dp_en =VOP_REG (RK3399_SYS_CTRL ,0x1 ,11 ), .rgb_en =VOP_REG (RK3399_SYS_CTRL ,0x1 ,12 ), .hdmi_en =VOP_REG (RK3399_SYS_CTRL ,0x1 ,13 ), .edp_en =VOP_REG (RK3399_SYS_CTRL ,0x1 ,14 ),
@@ -292,6 +293,7 @@ static const struct vop_ctrl rk3399_ctrl_data = { .data_blank = VOP_REG(RK3399_DSP_CTRL0, 0x1, 19), .out_mode = VOP_REG(RK3399_DSP_CTRL0, 0xf, 0), .rgb_pin_pol = VOP_REG(RK3399_DSP_CTRL1, 0xf, 16), + .dp_pin_pol = VOP_REG(RK3399_DSP_CTRL1, 0xf, 16), .hdmi_pin_pol = VOP_REG(RK3399_DSP_CTRL1, 0xf, 20), .edp_pin_pol = VOP_REG(RK3399_DSP_CTRL1, 0xf, 24), .mipi_pin_pol = VOP_REG(RK3399_DSP_CTRL1, 0xf, 28),
Signature · 1 line
1.9.1
Mark Brown
maintainerRe: [PATCH v15.1 3/5] drm/rockchip: cdn-dp: add cdn DP support for rk3399
Quoted 2 lines · Chris Zhong
Add support for cdn DP controller which is embedded in the rk3399 SoCs. The DP is compliant with DisplayPort Specification,
Please don't new patches in reply to old serieses, especially not individual patches in the middle of the series - it just makes everything more confusing. It becomes difficult to tell what the version of the series that's actually expected is. Please send the whole series.
Re: [PATCH v15.1 3/5] drm/rockchip: cdn-dp: add cdn DP support for rk3399
Hi Mark
OK, thanks.
I will send the whole series next time, hope it will not bother anyone
Quoted 8 lines · Mark Brown
Quoted 2 lines · Chris Zhong
Add support for cdn DP controller which is embedded in the rk3399 SoCs. The DP is compliant with DisplayPort Specification,
Please don't new patches in reply to old serieses, especially not individual patches in the middle of the series - it just makes everything more confusing. It becomes difficult to tell what the version of the series that's actually expected is. Please send the whole series.
Re: [PATCH v15.1 3/5] drm/rockchip: cdn-dp: add cdn DP support for rk3399
Quoted 6 lines · Chris Zhong
Hi Mark
OK, thanks.
I will send the whole series next time, hope it will not bother anyone
I haven't reviewed your latest changes, so adding my r-b is a little premature.
Sean
Quoted 17 lines · Mark Brown
Quoted 11 lines · Chris Zhong
Quoted 3 lines
Add support for cdn DP controller which is embedded in the rk3399 SoCs. The DP is compliant with DisplayPort Specification,
Please don't new patches in reply to old serieses, especially not individual patches in the middle of the series - it just makes everything more confusing. It becomes difficult to tell what the version of the series that's actually expected is. Please send the whole series.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v15 4/5 drm/rockchip: cdn-dp: support audio hot-plug
In reply to Chris ZhongIssue hot-plug detection, EDID update, and ELD update notifications from DP drivers.
---
Changes in v15: None
Changes in v14: None
Changes in v13: None
Changes in v12: None
Changes in v11: None
Changes in v10: None
Changes in v9: None
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
Changes in v1: None
drivers/gpu/drm/rockchip/cdn-dp-core.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/rockchip/cdn-dp-core.c +4 -0
@@ -23,6 +23,7 @@#include <linux/component.h> #include <linux/extcon.h> #include <linux/firmware.h> +#include <linux/hdmi-notifier.h> #include <linux/regmap.h> #include <linux/reset.h> #include <linux/mfd/syscon.h>
@@ -233,6 +234,7 @@ static int cdn_dp_connector_get_modes(struct drm_connector *connector)drm_mode_connector_update_edid_property (connector, edid);drm_edid_to_eld (connector, edid); +hdmi_event_new_eld (dp->dev, connector->eld); }kfree (edid); }
@@ -631,6 +633,7 @@ static void cdn_dp_encoder_enable(struct drm_encoder *encoder) out:mutex_unlock (&dp->lock); +hdmi_event_connect (dp->dev); }static void cdn_dp_encoder_disable (struct drm_encoder *encoder)
@@ -647,6 +650,7 @@ static void cdn_dp_encoder_disable(struct drm_encoder *encoder) } }mutex_unlock (&dp->lock); +hdmi_event_disconnect (dp->dev); } static int cdn_dp_encoder_atomic_check(struct drm_encoder *encoder,
Signature · 1 line
1.9.1
PATCH v15 5/5 ASoC: rockchip: Add DP dai-links to the rk3399-gru machine driver
In reply to Chris ZhongThis patch adds DP audio output support to the rk3399-gru machine driver.
---
Changes in v15: None
Changes in v14: None
Changes in v13: None
Changes in v12: None
Changes in v11: None
Changes in v10: None
Changes in v9: None
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3:
- change spdif to i2s2
Changes in v2:
- correct the commit message
Changes in v1: None
.../bindings/sound/rockchip,rk3399-gru-sound.txt | 11 +-- sound/soc/rockchip/rk3399_gru_sound.c | 93 ++++++++++++++++++++++ 2 files changed, 99 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt +6 -5
@@ -1,15 +1,16 @@ -ROCKCHIP with MAX98357A/RT5514/DA7219 codecs on GRU boards +ROCKCHIP with MAX98357A/RT5514/DA7219 codecs and DP via spdif on GRU boards Required properties: - compatible: "rockchip,rk3399-gru-sound" -- rockchip,cpu: The phandle of the Rockchip I2S controller that's +- rockchip,cpu: The phandle of the Rockchip I2S controller controller that's connected to the codecs -- rockchip,codec: The phandle of the MAX98357A/RT5514/DA7219 codecs +- rockchip,codec: The phandle of the MAX98357A/RT5514/DA7219 codecs and of the + DP encoder node Example: sound { compatible = "rockchip,rk3399-gru-sound"; - rockchip,cpu = <&i2s0>; - rockchip,codec = <&max98357a &rt5514 &da7219>; + rockchip,cpu = <&i2s0 &i2s2>; + rockchip,codec = <&max98357a &rt5514 &da7219 &cdn_dp>; };
sound/soc/rockchip/rk3399_gru_sound.c +93 -0
127 lines not on this page · raw message
Signature · 1 line
1.9.1
Rob Herring
maintainerRe: [PATCH v15 5/5] ASoC: rockchip: Add DP dai-links to the rk3399-gru machine driver
Quoted 35 lines · Chris Zhong
This patch adds DP audio output support to the rk3399-gru machine driver.
Signed-off-by Chris Zhong <[email protected]>---
Changes in v15: None
Changes in v14: None
Changes in v13: None
Changes in v12: None
Changes in v11: None
Changes in v10: None
Changes in v9: None
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3:
- change spdif to i2s2Changes in v2:
- correct the commit messageChanges in v1: None
.../bindings/sound/rockchip,rk3399-gru-sound.txt | 11 +-- sound/soc/rockchip/rk3399_gru_sound.c | 93 ++++++++++++++++++++++ 2 files changed, 99 insertions(+), 5 deletions(-)Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt +0
-0
Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt line 5
Quoted 7 lines
Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt +2
-2@@ -1,15 +1,16 @@ -ROCKCHIP with MAX98357A/RT5514/DA7219 codecs on GRU boards +ROCKCHIP with MAX98357A/RT5514/DA7219 codecs and DP via spdif on GRU boards Required properties: - compatible: "rockchip,rk3399-gru-sound" -- rockchip,cpu: The phandle of the Rockchip I2S controller that's +- rockchip,cpu: The phandle of the Rockchip I2S controller controller that's
Huh?
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html