From: Srinivas Kandagatla Date: Tue, 28 Jul 2015 12:54:36 +0000 (+0100) Subject: ARM: dts: ifc6410: add inforce LVDS panel support X-Git-Tag: KARO-TXSD-2017-03-24~88^2~46^2~24 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=132694f87b076a03eff78206a30bd3fa8702cf1f;p=karo-tx-linux.git ARM: dts: ifc6410: add inforce LVDS panel support This patch adds LVDS panel for IFC6410. Signed-off-by: Rob Clark [Rob Clark: WIP patch] Signed-off-by: Srinivas Kandagatla --- diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index fc1b33cb4635..710540cad7e4 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -102,6 +102,12 @@ qcom,switch-mode-frequency = <3200000>; }; + l2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + bias-pull-down; + }; + l3 { regulator-min-microvolt = <3050000>; regulator-max-microvolt = <3300000>; @@ -139,6 +145,10 @@ pm8921_lvs6: lvs6 { bias-pull-down; }; + + pm8921_lvs7: lvs7 { + bias-pull-down; + }; }; }; @@ -162,6 +172,51 @@ mdp: qcom,mdp@5100000 { status = "okay"; + lvds-vccs-3p3v-supply = <&ext_3p3v>; + lvds-pll-vdda-supply = <&pm8921_l2>; + lvds-vdda-supply = <&pm8921_lvs7>; + + port { + lvds_out: endpoint { + remote-endpoint = <&auo_in>; + }; + }; + }; + + panel_3p3v: panel_3p3v { + compatible = "regulator-fixed"; + pinctrl-0 = <&disp_en_gpios>; + pinctrl-names = "default"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "panel_en_3p3v"; + regulator-type = "voltage"; + startup-delay-us = <0>; + gpio = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-boot-on; + }; + + backlight: backlight{ + pinctrl-0 = <&pwm_bl_gpios>; + pinctrl-names = "default"; + compatible = "gpio-backlight"; + gpios = <&pm8921_gpio 26 GPIO_ACTIVE_HIGH>; + default-on; + }; + + panel: auo,b101xtn01 { + status = "okay"; + compatible = "auo,b101xtn01"; + + ddc-i2c-bus = <&i2c3>; + backlight = <&backlight>; + power-supply = <&panel_3p3v>; + port { + auo_in: endpoint { + remote-endpoint = <&lvds_out>; + }; + }; }; gsbi3: gsbi@16200000 { @@ -270,6 +325,29 @@ qcom,ssbi@500000 { pmic@0 { gpio@150 { + pinctrl-names = "default"; + pinctrl-0 = <&wlan_default_gpios>; + + pwm_bl_gpios: pwm-bl-gpios { + pios { + pins = "gpio26"; + bias-disable; + function = "normal"; + qcom,drive-strength = ; + power-source = ; + }; + }; + + disp_en_gpios: disp-en-gpios { + pios { + pins = "gpio36"; + bias-disable; + function = "normal"; + qcom,drive-strength = ; + power-source = ; + }; + }; + wlan_default_gpios: wlan-gpios { pios { pins = "gpio43";