Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions arch/arm64/boot/dts/qcom/lemans-evk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,25 @@
};
};

connector-2 {
compatible = "gpio-usb-b-connector", "usb-b-connector";
label = "micro-USB";
type = "micro";

id-gpios = <&pmm8654au_2_gpios 11 GPIO_ACTIVE_HIGH>;
vbus-gpios = <&expander3 3 GPIO_ACTIVE_HIGH>;
vbus-supply = <&vbus_supply_regulator_2>;

pinctrl-names = "default";
pinctrl-0 = <&usb2_id>;

port {
usb2_con_hs_ep: endpoint {
remote-endpoint = <&usb_2_dwc3_hs>;
};
};
};

edp0-connector {
compatible = "dp-connector";
label = "EDP0";
Expand Down Expand Up @@ -192,6 +211,15 @@
enable-active-high;
};

vbus_supply_regulator_2: vbus-supply-regulator-2 {
compatible = "regulator-fixed";
regulator-name = "vbus_supply_2";
gpio = <&pmm8654au_1_gpios 9 GPIO_ACTIVE_HIGH>;
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
enable-active-high;
};

vmmc_sdc: regulator-vmmc-sdc {
compatible = "regulator-fixed";

Expand Down Expand Up @@ -647,27 +675,47 @@
reg = <0x38>;
#gpio-cells = <2>;
gpio-controller;
#interrupt-cells = <2>;
interrupt-controller;
interrupts-extended = <&tlmm 138 IRQ_TYPE_LEVEL_LOW>;
pinctrl-0 = <&expander0_int>;
pinctrl-names = "default";
};

expander1: gpio@39 {
compatible = "ti,tca9538";
reg = <0x39>;
#gpio-cells = <2>;
gpio-controller;
#interrupt-cells = <2>;
interrupt-controller;
interrupts-extended = <&tlmm 19 IRQ_TYPE_LEVEL_LOW>;
pinctrl-0 = <&expander1_int>;
pinctrl-names = "default";
};

expander2: gpio@3a {
compatible = "ti,tca9538";
reg = <0x3a>;
#gpio-cells = <2>;
gpio-controller;
#interrupt-cells = <2>;
interrupt-controller;
interrupts-extended = <&tlmm 139 IRQ_TYPE_LEVEL_LOW>;
pinctrl-0 = <&expander2_int>;
pinctrl-names = "default";
};

expander3: gpio@3b {
compatible = "ti,tca9538";
reg = <0x3b>;
#gpio-cells = <2>;
gpio-controller;
#interrupt-cells = <2>;
interrupt-controller;
interrupts-extended = <&tlmm 39 IRQ_TYPE_LEVEL_LOW>;
pinctrl-0 = <&expander3_int>;
pinctrl-names = "default";
};

eeprom@50 {
Expand Down Expand Up @@ -808,6 +856,14 @@
bias-pull-up;
power-source = <0>;
};

usb2_id: usb2-id-state {
pins = "gpio11";
function = "normal";
input-enable;
bias-pull-up;
power-source = <0>;
};
};

&qup_i2c19_default {
Expand Down Expand Up @@ -914,6 +970,30 @@
};
};

expander0_int: expander0-int-state {
pins = "gpio138";
function = "gpio";
bias-pull-up;
};

expander1_int: expander1-int-state {
pins = "gpio19";
function = "gpio";
bias-pull-up;
};

expander2_int: expander2-int-state {
pins = "gpio139";
function = "gpio";
bias-pull-up;
};

expander3_int: expander3-int-state {
pins = "gpio39";
function = "gpio";
bias-pull-up;
};

pcie0_default_state: pcie0-default-state {
clkreq-pins {
pins = "gpio1";
Expand Down Expand Up @@ -1122,6 +1202,22 @@
status = "okay";
};

&usb_2 {
status = "okay";
};

&usb_2_dwc3_hs {
remote-endpoint = <&usb2_con_hs_ep>;
};

&usb_2_hsphy {
vdda-pll-supply = <&vreg_l7a>;
vdda18-supply = <&vreg_l6c>;
vdda33-supply = <&vreg_l9a>;

status = "okay";
};

&xo_board_clk {
clock-frequency = <38400000>;
};
7 changes: 7 additions & 0 deletions arch/arm64/boot/dts/qcom/lemans.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -4179,7 +4179,14 @@
snps,dis-u1-entry-quirk;
snps,dis-u2-entry-quirk;

usb-role-switch;

status = "disabled";

port {
usb_2_dwc3_hs: endpoint {
};
};
};

tcsr_mutex: hwlock@1f40000 {
Expand Down