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
79 changes: 78 additions & 1 deletion arch/arm64/boot/dts/qcom/pm4125.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
};

pm4125_vbus: usb-vbus-regulator@1100 {
compatible = "qcom,pm4125-vbus-reg", "qcom,pm8150b-vbus-reg";
compatible = "qcom,pm4125-vbus-reg";
reg = <0x1100>;
status = "disabled";
};
Expand Down Expand Up @@ -66,6 +66,83 @@
status = "disabled";
};

pm4125_tz: temp-alarm@2400 {
compatible = "qcom,spmi-temp-alarm";
reg = <0x2400>;
interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
io-channels = <&pm4125_adc ADC5_DIE_TEMP>;
io-channel-names = "thermal";
#thermal-sensor-cells = <0>;
status = "disabled";
};

pm4125_adc: adc@3100 {
compatible = "qcom,spmi-adc5";
reg = <0x3100>;
#address-cells = <1>;
#size-cells = <0>;
#io-channel-cells = <1>;
interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
status = "disabled";

/* Channel nodes */
channel@0 {
reg = <ADC5_REF_GND>;
label = "ref_gnd";
qcom,pre-scaling = <1 1>;
};

channel@1 {
reg = <ADC5_1P25VREF>;
label = "vref_1p25";
qcom,pre-scaling = <1 1>;
};

channel@6 {
reg = <ADC5_DIE_TEMP>;
label = "die_temp";
qcom,pre-scaling = <1 1>;
};

channel@7 {
reg = <ADC5_USB_IN_I>;
label = "usb_in_i_uv";
qcom,pre-scaling = <1 1>;
};

channel@8 {
reg = <ADC5_USB_IN_V_16>;
label = "usb_in_v_div_16";
qcom,pre-scaling = <1 16>;
};

channel@9 {
reg = <ADC5_CHG_TEMP>;
label = "chg_temp";
qcom,pre-scaling = <1 1>;
};

channel@4b {
reg = <ADC5_BAT_ID_100K_PU>;
label = "bat_id";
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,pre-scaling = <1 1>;
};

channel@83 {
reg = <ADC5_VPH_PWR>;
label = "vph_pwr";
qcom,pre-scaling = <1 3>;
};

channel@84 {
reg = <ADC5_VBAT_SNS>;
label = "vbat_sns";
qcom,pre-scaling = <1 3>;
};
};

rtc@6000 {
compatible = "qcom,pm8941-rtc";
reg = <0x6000>, <0x6100>;
Expand Down
7 changes: 7 additions & 0 deletions arch/arm64/boot/dts/qcom/pm8005.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
#address-cells = <1>;
#size-cells = <0>;

pm8005_tz: temp-alarm@2400 {
compatible = "qcom,spmi-temp-alarm";
reg = <0x2400>;
interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
#thermal-sensor-cells = <0>;
};

pm8005_gpios: gpio@c000 {
compatible = "qcom,pm8005-gpio", "qcom,spmi-gpio";
reg = <0xc000>;
Expand Down
35 changes: 34 additions & 1 deletion arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,16 @@
};
};

&pm4125_hs_in {
remote-endpoint = <&usb_1_dwc3_hs>;
};

&pm4125_ss_in {
remote-endpoint = <&usb_qmpphy_out>;
};

&remoteproc_cdsp {
firmware-name = "qcom/shikra/cdsp.mbn";

status = "okay";
};

Expand Down Expand Up @@ -55,7 +62,22 @@
supports-cqe;
no-sdio;
no-sd;
status = "okay";
};

&usb_1 {
dr_mode = "otg";
status = "okay";
};

&usb_1_dwc3_hs {
remote-endpoint = <&pm4125_hs_in>;
};

&usb_1_hsphy {
vdd-supply = <&pm4125_l12>;
vdda-pll-supply = <&pm4125_l13>;
vdda-phy-dpdm-supply = <&pm4125_l21>;
status = "okay";
};

Expand All @@ -80,3 +102,14 @@

status = "okay";
};

&usb_qmpphy_out {
remote-endpoint = <&pm4125_ss_in>;
};

&usb_qmpphy {
vdda-phy-supply = <&pm4125_l8>;
vdda-pll-supply = <&pm4125_l13>;

status = "okay";
};
Loading