ARM: dts: exynos: Enable HDMI in Arndale Octa board
Subsystems (5)
v3 cover ARM: dts: exynos: Enable HDMI in Arndale Octa board
This patch-set enables HDMI in Arndale Octa board and fixes HPD DT property. It also includes code refactoring on ddc and phy.
v3:
Add 'vdd-supply' property in dts.
Use generic 'ddc' property instead of legacy property. Clean up DDC and PHY logic in _probe().
Remove duplicate code of regulator consumer initialization.
v2:
Include DRM and Exynos maintainers and resend the patch-set. Add Rob's ack for the patch,
[PATCH 2/4] ARM: dts: exynos: Use 'hpd-gpios' instead of 'hpd-gpio'
Milo Kim (5):
ARM: dts: exynos: Enable HDMI for Arndale Octa board
ARM: dts: exynos: Use 'hpd-gpios' instead of 'hpd-gpio'
gpu: drm: exynos_hdmi: Move DDC logic into single function
gpu: drm: exynos_hdmi: Move PHY logic into single function
gpu: drm: exynos_hdmi: Remove duplicate initialization of regulator
bulk consumer
.../bindings/display/exynos/exynos_hdmi.txt | 4 +- arch/arm/boot/dts/exynos4210-universal_c210.dts | 2 +- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 2 +- arch/arm/boot/dts/exynos5250-arndale.dts | 2 +- arch/arm/boot/dts/exynos5250-smdk5250.dts | 2 +- arch/arm/boot/dts/exynos5250-snow-common.dtsi | 2 +- arch/arm/boot/dts/exynos5250-spring.dts | 2 +- arch/arm/boot/dts/exynos5420-arndale-octa.dts | 13 +++ arch/arm/boot/dts/exynos5420-peach-pit.dts | 2 +- arch/arm/boot/dts/exynos5420-smdk5420.dts | 2 +- arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 2 +- arch/arm/boot/dts/exynos5800-peach-pi.dts | 2 +- drivers/gpu/drm/exynos/exynos_hdmi.c | 112 +++++++++++---------- 13 files changed, 84 insertions(+), 65 deletions(-)
Signature · 1 line
1.9.1
PATCH v3 1/5 ARM: dts: exynos: Enable HDMI for Arndale Octa board
* GPIO for HDMI hot plug detect
GPX3_7 is used. The HPD awareness is done when the GPIO is active high and single ended.
* Enable HDMI block in Exynos5420
HDMI VDD and PLL consume 1.0V LDO6 (PVDD_ANAIP_1V0) and HDMI oscillator requires 1.8V LDO7 (PVDD_ANAIP_1V8).
* Support HDMI display data channel
I2C #2 is assigned for the HDMI DDC. It enables the EDID access.
--- arch/arm/boot/dts/exynos5420-arndale-octa.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+)
arch/arm/boot/dts/exynos5420-arndale-octa.dts +13 -0
@@ -70,6 +70,19 @@ status = "disabled"; }; +&hdmi { + hpd-gpios = <&gpx3 7 GPIO_OPEN_SOURCE>; + vdd_osc-supply = <&ldo7_reg>; + vdd_pll-supply = <&ldo6_reg>; + vdd-supply = <&ldo6_reg>; + ddc = <&i2c_2>; + status = "okay"; +}; + +&i2c_2 { + status = "okay"; +}; + &hsi2c_4 { status = "okay";
Signature · 1 line
1.9.1
PATCH v3 2/5 ARM: dts: exynos: Use 'hpd-gpios' instead of 'hpd-gpio'
In reply to Milo KimThis patch enables getting a HPD GPIO descriptor quickly. The exynos-hdmi driver uses "hpd" for HDMI hot plug detection.
static int hdmi_resources_init(struct hdmi_context *hdata)
{
...
hdata->hpd_gpio = devm_gpiod_get(dev, "hpd", GPIOD_IN);
...
}This calls 'of_find_gpio()' and it generates the GPIO consumer ID by referring GPIO suffix. So 'hpd-gpios' is preferred on getting a GPIO descriptor.
However, if the device tree uses 'hpd-gpio', then the exynos-hdmi driver always retries to get a GPIO descriptor because the first GPIO suffix is not 'gpio' but 'gpios'. So you always see the debug message below.
of_get_named_gpiod_flags: can't parse 'hpd-gpios' property of node '/soc/hdmi at 14530000[0]'
Use the preferred property, 'hpd-gpios' instead of 'hpd-gpio'.
--- Documentation/devicetree/bindings/display/exynos/exynos_hdmi.txt | 4 ++-- arch/arm/boot/dts/exynos4210-universal_c210.dts | 2 +- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 2 +- arch/arm/boot/dts/exynos5250-arndale.dts | 2 +- arch/arm/boot/dts/exynos5250-smdk5250.dts | 2 +- arch/arm/boot/dts/exynos5250-snow-common.dtsi | 2 +- arch/arm/boot/dts/exynos5250-spring.dts | 2 +- arch/arm/boot/dts/exynos5420-peach-pit.dts | 2 +- arch/arm/boot/dts/exynos5420-smdk5420.dts | 2 +- arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 2 +- arch/arm/boot/dts/exynos5800-peach-pi.dts | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-)
Documentation/devicetree/bindings/display/exynos/exynos_hdmi.txt +2 -2
@@ -9,7 +9,7 @@ Required properties: - reg: physical base address of the hdmi and length of memory mapped region. - interrupts: interrupt number to the cpu. -- hpd-gpio: following information about the hotplug gpio pin. +- hpd-gpios: following information about the hotplug gpio pin. a) phandle of the gpio controller node. b) pin number within the gpio controller. c) optional flags and pull up/down.
@@ -56,7 +56,7 @@ Example: compatible = "samsung,exynos4212-hdmi"; reg = <0x14530000 0x100000>; interrupts = <0 95 0>; - hpd-gpio = <&gpx3 7 1>; + hpd-gpios = <&gpx3 7 1>; ddc = <&hdmi_ddc_node>; phy = <&hdmi_phy_node>; samsung,syscon-phandle = <&pmu_system_controller>;
arch/arm/boot/dts/exynos4210-universal_c210.dts +1 -1
@@ -269,7 +269,7 @@ }; &hdmi { - hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>; + hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&hdmi_hpd>; hdmi-en-supply = <&hdmi_en>;
arch/arm/boot/dts/exynos4412-odroid-common.dtsi +1 -1
@@ -227,7 +227,7 @@ }; &hdmi { - hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>; + hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&hdmi_hpd>; vdd-supply = <&ldo8_reg>;
arch/arm/boot/dts/exynos5250-arndale.dts +1 -1
@@ -152,7 +152,7 @@ }; &hdmi { - hpd-gpio = <&gpx3 7 GPIO_ACTIVE_LOW>; + hpd-gpios = <&gpx3 7 GPIO_ACTIVE_LOW>; vdd_osc-supply = <&ldo10_reg>; vdd_pll-supply = <&ldo8_reg>; vdd-supply = <&ldo8_reg>;
arch/arm/boot/dts/exynos5250-smdk5250.dts +1 -1
@@ -116,7 +116,7 @@ }; &hdmi { - hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>; + hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>; }; &i2c_0 {
arch/arm/boot/dts/exynos5250-snow-common.dtsi +1 -1
@@ -260,7 +260,7 @@ }; &hdmi { - hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>; + hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&hdmi_hpd_irq>; phy = <&hdmiphy>;
arch/arm/boot/dts/exynos5250-spring.dts +1 -1
@@ -91,7 +91,7 @@ }; &hdmi { - hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>; + hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&hdmi_hpd_irq>; phy = <&hdmiphy>;
arch/arm/boot/dts/exynos5420-peach-pit.dts +1 -1
@@ -179,7 +179,7 @@ &hdmi { status = "okay"; - hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>; + hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&hdmi_hpd_irq>; ddc = <&i2c_2>;
arch/arm/boot/dts/exynos5420-smdk5420.dts +1 -1
@@ -130,7 +130,7 @@ &hdmi { status = "okay"; - hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>; + hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&hdmi_hpd_irq>; };
arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +1 -1
@@ -250,7 +250,7 @@ &hdmi { status = "okay"; - hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>; + hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&hdmi_hpd_irq>;
arch/arm/boot/dts/exynos5800-peach-pi.dts +1 -1
@@ -179,7 +179,7 @@ &hdmi { status = "okay"; - hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>; + hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&hdmi_hpd_irq>; ddc = <&i2c_2>;
Signature · 1 line
1.9.1
PATCH v3 3/5 gpu: drm: exynos_hdmi: Move DDC logic into single function
In reply to Milo KimParing DT properties and getting the I2C adapter in one function.
--- drivers/gpu/drm/exynos/exynos_hdmi.c | 46 ++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 21 deletions(-)
drivers/gpu/drm/exynos/exynos_hdmi.c +25 -21
@@ -1760,16 +1760,34 @@ static const struct component_ops hdmi_component_ops = { .unbind = hdmi_unbind, }; -static struct device_node *hdmi_legacy_ddc_dt_binding (struct device *dev) +static int hdmi_get_ddc_adapter (struct hdmi_context *hdata) {const char *compatible_str ="samsung,exynos4210-hdmiddc" ;struct device_node *np; +struct i2c_adapter *adpt; np =of_find_compatible_node (NULL ,NULL , compatible_str);if (np) -return of_get_next_parent (np); + np =of_get_next_parent (np); +else + np =of_parse_phandle (hdata->dev->of_node,"ddc" ,0 ); + +if (!np) { +DRM_ERROR ("Failed to find ddc node in device tree\n" ); +return -ENODEV ; + } -return NULL ; + adpt =of_find_i2c_adapter_by_node (np); +if (!adpt) { +DRM_ERROR ("Failed to get ddc i2c adapter by node\n" ); +of_node_put (np); +return -EPROBE_DEFER ; + } + + hdata->ddc_adpt = adpt; +of_node_put (np); + +return 0 ; }static struct device_node *hdmi_legacy_phy_dt_binding (struct device *dev)
@@ -1781,7 +1799,7 @@ static struct device_node *hdmi_legacy_phy_dt_binding(struct device *dev)static int hdmi_probe (struct platform_device *pdev) { -struct device_node *ddc_node, *phy_node; +struct device_node *phy_node;struct device *dev = &pdev->dev;struct hdmi_context *hdata;struct resource *res;
@@ -1811,23 +1829,9 @@ static int hdmi_probe(struct platform_device *pdev)return ret; } - ddc_node =hdmi_legacy_ddc_dt_binding (dev); -if (ddc_node) - goto out_get_ddc_adpt; - - ddc_node =of_parse_phandle (dev->of_node,"ddc" ,0 ); -if (!ddc_node) { -DRM_ERROR ("Failed to find ddc node in device tree\n" ); -return -ENODEV ; - } -of_node_put (dev->of_node); - -out_get_ddc_adpt: - hdata->ddc_adpt =of_find_i2c_adapter_by_node (ddc_node); -if (!hdata->ddc_adpt) { -DRM_ERROR ("Failed to get ddc i2c adapter by node\n" ); -return -EPROBE_DEFER ; - } + ret =hdmi_get_ddc_adapter (hdata); +if (ret) +return ret; phy_node =hdmi_legacy_phy_dt_binding (dev);if (phy_node)
Signature · 1 line
1.9.1
PATCH v3 4/5 gpu: drm: exynos_hdmi: Move PHY logic into single function
In reply to Milo KimParing DT properties and getting PHY IO (memory mapped or I2C) in one function.
--- drivers/gpu/drm/exynos/exynos_hdmi.c | 63 +++++++++++++++++++----------------- 1 file changed, 33 insertions(+), 30 deletions(-)
drivers/gpu/drm/exynos/exynos_hdmi.c +33 -30
@@ -1790,16 +1790,44 @@ static int hdmi_get_ddc_adapter(struct hdmi_context *hdata)return 0 ; } -static struct device_node *hdmi_legacy_phy_dt_binding (struct device *dev) +static int hdmi_get_phy_io (struct hdmi_context *hdata) {const char *compatible_str ="samsung,exynos4212-hdmiphy" ; +struct device_node *np; +int ret =0 ; + + np =of_find_compatible_node (NULL ,NULL , compatible_str); +if (!np) { + np =of_parse_phandle (hdata->dev->of_node,"phy" ,0 ); +if (!np) { +DRM_ERROR ("Failed to find hdmiphy node in device tree\n" ); +return -ENODEV ; + } + } + +if (hdata->drv_data->is_apb_phy) { + hdata->regs_hdmiphy =of_iomap (np,0 ); +if (!hdata->regs_hdmiphy) { +DRM_ERROR ("failed to ioremap hdmi phy\n" ); + ret = -ENOMEM ; + goto out; + } + }else { + hdata->hdmiphy_port =of_find_i2c_device_by_node (np); +if (!hdata->hdmiphy_port) { +DRM_ERROR ("Failed to get hdmi phy i2c client\n" ); + ret = -EPROBE_DEFER ; + goto out; + } + } -return of_find_compatible_node (NULL ,NULL , compatible_str); +out: +of_node_put (np); +return ret; }static int hdmi_probe (struct platform_device *pdev) { -struct device_node *phy_node;struct device *dev = &pdev->dev;struct hdmi_context *hdata;struct resource *res;
@@ -1833,34 +1861,9 @@ static int hdmi_probe(struct platform_device *pdev)if (ret)return ret; - phy_node =hdmi_legacy_phy_dt_binding (dev); -if (phy_node) - goto out_get_phy_port; - - phy_node =of_parse_phandle (dev->of_node,"phy" ,0 ); -if (!phy_node) { -DRM_ERROR ("Failed to find hdmiphy node in device tree\n" ); - ret = -ENODEV ; + ret =hdmi_get_phy_io (hdata); +if (ret) goto err_ddc; - } -of_node_put (dev->of_node); - -out_get_phy_port: -if (hdata->drv_data->is_apb_phy) { - hdata->regs_hdmiphy =of_iomap (phy_node,0 ); -if (!hdata->regs_hdmiphy) { -DRM_ERROR ("failed to ioremap hdmi phy\n" ); - ret = -ENOMEM ; - goto err_ddc; - } - }else { - hdata->hdmiphy_port =of_find_i2c_device_by_node (phy_node); -if (!hdata->hdmiphy_port) { -DRM_ERROR ("Failed to get hdmi phy i2c client\n" ); - ret = -EPROBE_DEFER ; - goto err_ddc; - } - }INIT_DELAYED_WORK (&hdata->hotplug_work, hdmi_hotplug_work_func);
Signature · 1 line
1.9.1
PATCH v3 5/5 gpu: drm: exynos_hdmi: Remove duplicate initialization of regulator bulk consumer
In reply to Milo KimThe helper, devm_regulator_bulk_get() initializes the consumer as NULL, so this code can be ignored.
--- drivers/gpu/drm/exynos/exynos_hdmi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/exynos/exynos_hdmi.c +2 -3
@@ -1669,10 +1669,9 @@ static int hdmi_resources_init(struct hdmi_context *hdata)if (ret)return ret; -for (i =0 ; i <ARRAY_SIZE (supply); ++i) { +for (i =0 ; i <ARRAY_SIZE (supply); ++i) hdata->regul_bulk[i].supply = supply[i]; - hdata->regul_bulk[i].consumer =NULL ; - } + ret =devm_regulator_bulk_get (dev,ARRAY_SIZE (supply), hdata->regul_bulk);if (ret) {if (ret != -EPROBE_DEFER )
Signature · 1 line
1.9.1
Krzysztof Kozlowski
maintainerRe: [PATCH v3 1/5] ARM: dts: exynos: Enable HDMI for Arndale Octa board
In reply to Milo KimQuoted 27 lines · Milo Kim
* GPIO for HDMI hot plug detect
GPX3_7is used. The HPD awareness is done when the GPIO is active high and single ended.* Enable HDMI block in Exynos5420
HDMI VDD and PLL consume 1.0V LDO6 (PVDD_ANAIP_1V0) and HDMI oscillator requires 1.8V LDO7 (PVDD_ANAIP_1V8).* Support HDMI display data channel
I2C #2 is assigned for the HDMI DDC. It enables the EDID access.Cc Kukjin Kim <[email protected]>Cc Krzysztof Kozlowski <[email protected]>Cc Rob Herring <[email protected]>Cc linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.orgSigned-off-by Milo Kim <[email protected]>--- arch/arm/boot/dts/exynos5420-arndale-octa.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+)arch/arm/boot/dts/exynos5420-arndale-octa.dts +0
-0
arch/arm/boot/dts/exynos5420-arndale-octa.dts line 72
Quoted 3 lines
arch/arm/boot/dts/exynos5420-arndale-octa.dts +0
-0@@ -70,6 +70,19 @@ status = "disabled"; };
First of all - it looks like these DTS patches do not depend on DRM part, do they?
arch/arm/boot/dts/exynos5420-arndale-octa.dts line 74
Quoted 2 lines
arch/arm/boot/dts/exynos5420-arndale-octa.dts +2
-0+&hdmi { + hpd-gpios = <&gpx3 7 GPIO_OPEN_SOURCE>;
Are you sure it is open-source type?
arch/arm/boot/dts/exynos5420-arndale-octa.dts line 83
Quoted 9 lines
arch/arm/boot/dts/exynos5420-arndale-octa.dts +9
-0+ vdd_osc-supply = <&ldo7_reg>; + vdd_pll-supply = <&ldo6_reg>; + vdd-supply = <&ldo6_reg>; + ddc = <&i2c_2>; + status = "okay"; +}; + +&i2c_2 { + status = "okay";
Hm, what is connected here? Please put it in alphabetical order (so after hsi2c_4).
Best regards,
Krzysztof
--
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
Krzysztof Kozlowski
maintainerRe: [PATCH v3 2/5] ARM: dts: exynos: Use 'hpd-gpios' instead of 'hpd-gpio'
In reply to Milo KimQuoted 10 lines · Milo Kim
This patch enables getting a HPD GPIO descriptor quickly. The exynos-hdmi driver uses "hpd" for HDMI hot plug detection.
static int hdmi_resources_init(struct hdmi_context *hdata) { ... hdata->hpd_gpio = devm_gpiod_get(dev, "hpd", GPIOD_IN); ... }
Quoted 9 lines
This calls '
of_find_gpio()' and it generates the GPIO consumer ID by referring GPIO suffix. So 'hpd-gpios' is preferred on getting a GPIO descriptor.However, if the device tree uses 'hpd-gpio', then the exynos-hdmi driver always retries to get a GPIO descriptor because the first GPIO suffix is not 'gpio' but 'gpios'. So you always see the debug message below.
of_get_named_gpiod_flags: can't parse 'hpd-gpios' property of node '/soc/hdmi@14530000[0]'
Thanks for fixing this, applied!
BR,
Krzysztof
--
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
Re: [PATCH v3 3/5] gpu: drm: exynos_hdmi: Move DDC logic into single function
In reply to Milo KimQuoted 39 lines · Milo Kim
Paring DT properties and getting the I2C adapter in one function.
Cc Kukjin Kim <[email protected]>Cc Krzysztof Kozlowski <[email protected]>Cc David Airlie <[email protected]>Cc Inki Dae <[email protected]>Cc Joonyoung Shim <[email protected]>Cc Seung-Woo Kim <[email protected]>Cc Kyungmin Park <[email protected]>Cc Rob Herring <[email protected]>Cc linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.orgSigned-off-by Milo Kim <[email protected]>--- drivers/gpu/drm/exynos/exynos_hdmi.c | 46 ++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 21 deletions(-)drivers/gpu/drm/exynos/exynos_hdmi.c +3
-2@@ -1760,16 +1760,34 @@ static const struct component_ops hdmi_component_ops = { .unbind = hdmi_unbind, }; -static struct device_node *hdmi_legacy_ddc_dt_binding (struct device *dev) +static int hdmi_get_ddc_adapter (struct hdmi_context *hdata) {const char *compatible_str ="samsung,exynos4210-hdmiddc" ;struct device_node *np; +struct i2c_adapter *adpt; np =of_find_compatible_node (NULL ,NULL , compatible_str);if (np) -return of_get_next_parent (np); + np =of_get_next_parent (np);
drivers/gpu/drm/exynos/exynos_hdmi.c static const struct component_ops hdmi_component_ops = { · line 1780
Quoted 10 lines
drivers/gpu/drm/exynos/exynos_hdmi.c +8
-1+else + np =of_parse_phandle (hdata->dev->of_node,"ddc" ,0 ); + +if (!np) { +DRM_ERROR ("Failed to find ddc node in device tree\n" ); +return -ENODEV ; + } -return NULL ; + adpt =of_find_i2c_adapter_by_node (np);
You can put of_node_put here, instead of duplicating it on both execution paths.
drivers/gpu/drm/exynos/exynos_hdmi.c static const struct component_ops hdmi_component_ops = { · line 1782
Quoted 2 lines
drivers/gpu/drm/exynos/exynos_hdmi.c +2
-0+if (!adpt) { +DRM_ERROR ("Failed to get ddc i2c adapter by node\n" );
In case of probe deferring DRM_INFO should be enough, or even DRM_DEBUG.
Quoted 37 lines
drivers/gpu/drm/exynos/exynos_hdmi.c +9
-14+of_node_put (np); +return -EPROBE_DEFER ; + } + + hdata->ddc_adpt = adpt; +of_node_put (np); + +return 0 ; }static struct device_node *hdmi_legacy_phy_dt_binding (struct device *dev)@@ -1781,7 +1799,7 @@ static struct device_node *hdmi_legacy_phy_dt_binding(struct device *dev)static int hdmi_probe (struct platform_device *pdev) { -struct device_node *ddc_node, *phy_node; +struct device_node *phy_node;struct device *dev = &pdev->dev;struct hdmi_context *hdata;struct resource *res;@@ -1811,23 +1829,9 @@ static int hdmi_probe(struct platform_device *pdev)return ret; } - ddc_node =hdmi_legacy_ddc_dt_binding (dev); -if (ddc_node) - goto out_get_ddc_adpt; - - ddc_node =of_parse_phandle (dev->of_node,"ddc" ,0 ); -if (!ddc_node) { -DRM_ERROR ("Failed to find ddc node in device tree\n" ); -return -ENODEV ; - } -of_node_put (dev->of_node); - -out_get_ddc_adpt: - hdata->ddc_adpt =of_find_i2c_adapter_by_node (ddc_node);
drivers/gpu/drm/exynos/exynos_hdmi.c static int hdmi_probe(struct platform_device *pdev) · line 1837
Quoted 10 lines
drivers/gpu/drm/exynos/exynos_hdmi.c +3
-4-if (!hdata->ddc_adpt) { -DRM_ERROR ("Failed to get ddc i2c adapter by node\n" ); -return -EPROBE_DEFER ; - } + ret =hdmi_get_ddc_adapter (hdata); +if (ret) +return ret; phy_node =hdmi_legacy_phy_dt_binding (dev);if (phy_node)
--
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
Re: [PATCH v3 5/5] gpu: drm: exynos_hdmi: Remove duplicate initialization of regulator bulk consumer
In reply to Milo KimQuoted 15 lines · Milo Kim
The helper,
devm_regulator_bulk_get()initializes the consumer as NULL, so this code can be ignored.Cc Kukjin Kim <[email protected]>Cc Krzysztof Kozlowski <[email protected]>Cc David Airlie <[email protected]>Cc Inki Dae <[email protected]>Cc Joonyoung Shim <[email protected]>Cc Seung-Woo Kim <[email protected]>Cc Kyungmin Park <[email protected]>Cc linux-arm-kernel at lists.infradead.orgCc linux-samsung-soc at vger.kernel.orgCc linux-kernel at vger.kernel.orgCc dri-devel at lists.freedesktop.orgSigned-off-by Milo Kim <[email protected]>
--
Regards
Andrzej
Quoted 21 lines
--- drivers/gpu/drm/exynos/exynos_hdmi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)drivers/gpu/drm/exynos/exynos_hdmi.c +2
-3@@ -1669,10 +1669,9 @@ static int hdmi_resources_init(struct hdmi_context *hdata)if (ret)return ret; -for (i =0 ; i <ARRAY_SIZE (supply); ++i) { +for (i =0 ; i <ARRAY_SIZE (supply); ++i) hdata->regul_bulk[i].supply = supply[i]; - hdata->regul_bulk[i].consumer =NULL ; - } + ret =devm_regulator_bulk_get (dev,ARRAY_SIZE (supply), hdata->regul_bulk);if (ret) {if (ret != -EPROBE_DEFER )
Re: [PATCH v3 1/5] ARM: dts: exynos: Enable HDMI for Arndale Octa board
In reply to Krzysztof KozlowskiHi Krzysztof,
Quoted 2 lines · Krzysztof Kozlowski
First of all - it looks like these DTS patches do not depend on DRM part, do they?
I just sent the v4 patch for DTS. DRM patch-set was sent separately. Thanks for your advise.
Best regards,
Milo