aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Boyd <stephen.boyd at linaro.org>2018-02-26 19:43:06 +0530
committerAmit Pundir <amit.pundir@linaro.org>2018-10-08 14:28:04 +0530
commit9e3d998fd0c2c8e6fb6d67fd5358752819d1c368 (patch)
treeba8114d5dd84065ee2492443291be543eddf8273
parent8085a51c113b86e17de10856cbf88a994c11fedd (diff)
downloadlinaro-android-test/db410c-amt.tar.gz
RFC: db410c: arm64: dts: qcom: Collapse usb support into one nodetest/db410c-amt
We currently have three device nodes for the same USB hardware block, as evident by the reuse of the same reg address multiple times. Now that the chipidea driver fully supports OTG with the MSM wrapper we can collapse all these nodes into one USB device node, reflecting the true nature of the hardware. Signed-off-by: Stephen Boyd <stephen.boyd at linaro.org> Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r--arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi17
1 files changed, 12 insertions, 5 deletions
diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
index ae09d00370db..6bb9301c09db 100644
--- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
@@ -18,6 +18,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/sound/apq8016-lpass.h>
+#include <dt-bindings/mux/mux.h>
/*
* GPIO name legend: proper name = the GPIO line is used as GPIO
@@ -231,6 +232,7 @@
adv_bridge: bridge@39 {
status = "okay";
+
compatible = "adi,adv7533";
reg = <0x39>;
@@ -371,14 +373,13 @@
adp-disable;
hnp-disable;
srp-disable;
- dr_mode = "host";
- pinctrl-names = "default";
- pinctrl-0 = <&usb_sw_sel_pm>;
+ mux-controls = <&usb_switch>;
+ mux-control-names = "usb_switch";
+
ulpi {
phy {
v1p8-supply = <&pm8916_l7>;
v3p3-supply = <&pm8916_l13>;
- extcon = <&usb_id>;
};
};
};
@@ -512,11 +513,17 @@
usb_id: usb-id {
compatible = "linux,extcon-usb-gpio";
- vbus-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>;
+ id-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&usb_id_default>;
};
+ usb_switch: usb-switch {
+ compatible = "gpio-mux";
+ mux-gpios = <&pm8916_gpios 4 GPIO_ACTIVE_HIGH>;
+ #mux-control-cells = <0>;
+ };
+
hdmi-out {
compatible = "hdmi-connector";
type = "a";