]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
arm64: sb8016: Add ADV7533 bridge in sbc8016 dtsi
authorArchit Taneja <architt@codeaurora.org>
Thu, 16 Apr 2015 10:23:07 +0000 (15:53 +0530)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 20 Sep 2017 08:07:47 +0000 (10:07 +0200)
- Add adv7533 bridge child to mdss_dsi
- Add pinmux configs required gpios connected to ADV7533

Signed-off-by: Archit Taneja <architt@codeaurora.org>
arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi

index fad3066070826be0e35b046fafb9912b768cb97f..cf6f9c4a4d899dde3b39683532e5d545c6e3a715 100644 (file)
                        bias-pull-up;
                };
        };
+
+       adv7533_int_active: adv533_int_active {
+               pinmux {
+                       function = "gpio";
+                       pins = "gpio31";
+               };
+               pinconf {
+                       pins = "gpio31";
+                       drive-strength = <16>;
+                       bias-disable;
+               };
+       };
+
+       adv7533_int_suspend: adv7533_int_suspend {
+               pinmux {
+                       function = "gpio";
+                       pins = "gpio31";
+               };
+               pinconf {
+                       pins = "gpio31";
+                       drive-strength = <2>;
+                       bias-disable;
+               };
+       };
+
+       adv7533_switch_active: adv7533_switch_active {
+               pinmux {
+                       function = "gpio";
+                       pins = "gpio32";
+               };
+               pinconf {
+                       pins = "gpio32";
+                       drive-strength = <16>;
+                       bias-disable;
+               };
+       };
+
+       adv7533_switch_suspend: adv7533_switch_suspend {
+               pinmux {
+                       function = "gpio";
+                       pins = "gpio32";
+               };
+               pinconf {
+                       pins = "gpio32";
+                       drive-strength = <2>;
+                       bias-disable;
+               };
+       };
 };
index ff2c10eaa3b9fadea81a1c6ab616d5c87d370b1e..37e563e10ce52a0e45fdc99029d0c81c89e2c60c 100644 (file)
@@ -16,7 +16,7 @@
 #include "pm8916.dtsi"
 #include "apq8016-sbc-soc-pins.dtsi"
 #include "apq8016-sbc-pmic-pins.dtsi"
-
+#include "msm8916-mdss.dtsi"
 / {
        aliases {
                serial0 = &blsp1_uart2;
        status = "okay";
 };
 
+&blsp_i2c4 {
+       status = "ok";
+
+       bridge@39 {
+               status = "ok";
+               compatible = "adi,adv7533";
+               reg = <0x39>;
+               interrupt-parent = <&msmgpio>;
+               //interrupts = <31 2>;
+               adi,dsi-lanes = <4>;
+               pd-gpios = <&msmgpio 32 0>;
+               pinctrl-names = "default","sleep";
+               pinctrl-0 = <&adv7533_int_active &adv7533_switch_active>;
+               pinctrl-1 = <&adv7533_int_suspend &adv7533_switch_suspend>;
+
+               port {
+                       adv_in: endpoint {
+                               remote-endpoint = <&dsi_out>;
+                       };
+               };
+
+       };
+};
+
+&mdss_dsi0 {
+       status = "ok";
+
+       port {
+               dsi_out: endpoint {
+                       remote-endpoint = <&adv_in>;
+               };
+       };
+};
\ No newline at end of file