arm64: dts: qcom: sm8250-xiaomi-elish: Fix typos
PATCH v2 1/3 arm64: dts: qcom: sm8250-xiaomi-elish: Fix typos
There are two typos in this dtsi, so fix it.
classis -> chassis.
80700000 -> 80600000
---
No changes in v2.
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +2 -2
@@ -23,7 +23,7 @@ /delete-node/ &xbl_aop_mem; / { - classis-type = "tablet"; + chassis-type = "tablet"; /* required for bootloader to select correct board */ qcom,msm-id = <QCOM_ID_SM8250 0x20001>; /* SM8250 v2.1 */
@@ -114,7 +114,7 @@ vreg_s6c_0p88: smpc6-regulator { }; reserved-memory { - xbl_aop_mem: xbl-aop@80700000 { + xbl_aop_mem: xbl-aop@80600000 { reg = <0x0 0x80600000 0x0 0x260000>; no-map; };
Signature · 1 line
2.41.0
PATCH v2 2/3 arm64: dts: qcom: sm8250-xiaomi-elish: Add pm8150b type-c node
Add type-c node to feature otg function.
---
No changes in v2.
.../dts/qcom/sm8250-xiaomi-elish-common.dtsi | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+)
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +36 -0
@@ -6,6 +6,7 @@ #include <dt-bindings/arm/qcom,ids.h> #include <dt-bindings/phy/phy.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h> +#include <dt-bindings/usb/pd.h> #include "sm8250.dtsi" #include "pm8150.dtsi" #include "pm8150b.dtsi"
@@ -627,6 +628,37 @@ vol_up_n: vol-up-n-state { }; }; +&pm8150b_typec { + vdd-pdphy-supply = <&vreg_l2a_3p1>; + status = "okay"; + + connector { + compatible = "usb-c-connector"; + + power-role = "source"; + data-role = "dual"; + self-powered; + + source-pdos = <PDO_FIXED(5000, 3000, + PDO_FIXED_DUAL_ROLE | + PDO_FIXED_USB_COMM | + PDO_FIXED_DATA_SWAP)>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + pm8150b_role_switch_in: endpoint { + remote-endpoint = <&usb_1_role_switch_out>; + }; + }; + }; + }; +}; + &pon_pwrkey { status = "okay"; };
@@ -678,6 +710,10 @@ &usb_1_hsphy { status = "okay"; }; +&usb_1_role_switch_out { + remote-endpoint = <&pm8150b_role_switch_in>; +}; + &ufs_mem_hc { vcc-supply = <&vreg_l17a_3p0>; vcc-max-microamp = <800000>;
Signature · 1 line
2.41.0
Re: [PATCH v2 2/3] arm64: dts: qcom: sm8250-xiaomi-elish: Add pm8150b type-c node
Quoted 4 lines · Jianhua Lu
Add type-c node to feature otg function.
Signed-off-by Jianhua Lu <[email protected]>---
Konrad
PATCH v2 3/3 arm64: dts: qcom: sm8250-xiaomi-elish: Enable usb_1 otg
In reply to Jianhua LuChange dr_mode to otg and set usb_role_swith property to enable usb otg.
---
Changes in v2:
1. a new patch that I missed to generate.
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +2 -1
@@ -696,11 +696,12 @@ &usb_1 { }; &usb_1_dwc3 { - dr_mode = "peripheral"; + dr_mode = "otg"; maximum-speed = "high-speed"; /* Remove USB3 phy */ phys = <&usb_1_hsphy>; phy-names = "usb2-phy"; + usb-role-switch; }; &usb_1_hsphy {
Signature · 1 line
2.41.0
Re: [PATCH v2 3/3] arm64: dts: qcom: sm8250-xiaomi-elish: Enable usb_1 otg
Quoted 1 line · Jianhua Lu
Change
dr_modeto otg and setusb_role_swithproperty to enable
switch
Quoted 4 lines
usb otg.
Signed-off-by Jianhua Lu <[email protected]>---
Guess this should be squashed with p1 but okay..
Konrad
Quoted 6 lines · Jianhua Lu
There are two typos in this dtsi, so fix it.
classis -> chassis.
80700000 -> 80600000Signed-off-by Jianhua Lu <[email protected]>---
Konrad