Skip to content

Commit

Permalink
Merge tag 'qcom-dts-for-5.5' of git://git.kernel.org/pub/scm/linux/ke…
Browse files Browse the repository at this point in the history
…rnel/git/qcom/linux into arm/dt

Qualcomm Device Tree Changes for v5.5

* Add thermal zones and IRQ support for MSM8974
* Add 5vs2 regulator node for PM8941
* Add reboot-mode node, fix sdhci and card detect on MSM8974-FP2
* Add IPQ4019 SDHCI node

* tag 'qcom-dts-for-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux:
  ARM: dts: msm8974: thermal: Add thermal zones for each sensor
  ARM: dts: msm8974: thermal: Add interrupt support
  ARM: dts: qcom: pm8941: add 5vs2 regulator node
  ARM: dts: msm8974-FP2: add reboot-mode node
  ARM: dts: msm8974-FP2: Increase load on l20 for sdhci
  ARM: dts: msm8974-FP2: Drop unused card-detect pin
  ARM: dts: qcom: ipq4019: Add SDHCI controller node

Link: https://lore.kernel.org/r/1573068840-13098-5-git-send-email-agross@kernel.org
Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
olofj committed Nov 6, 2019
2 parents 1d16a91 + 140647f commit 86a56b2
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 9 deletions.
12 changes: 12 additions & 0 deletions arch/arm/boot/dts/qcom-ipq4019.dtsi
Expand Up @@ -206,6 +206,18 @@
interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
};

sdhci: sdhci@7824900 {
compatible = "qcom,sdhci-msm-v4";
reg = <0x7824900 0x11c>, <0x7824000 0x800>;
interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "hc_irq", "pwr_irq";
bus-width = <8>;
clocks = <&gcc GCC_SDCC1_APPS_CLK>, <&gcc GCC_SDCC1_AHB_CLK>,
<&gcc GCC_DCD_XO_CLK>;
clock-names = "core", "iface", "xo";
status = "disabled";
};

blsp_dma: dma@7884000 {
compatible = "qcom,bam-v1.7.0";
reg = <0x07884000 0x23000>;
Expand Down
22 changes: 13 additions & 9 deletions arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts
Expand Up @@ -221,6 +221,8 @@
regulator-max-microvolt = <2950000>;

regulator-boot-on;
regulator-system-load = <200000>;
regulator-allow-set-load;
};

l21 {
Expand Down Expand Up @@ -272,14 +274,6 @@
};
};

sdhc2_cd_pin_a: sdhc2-cd-pin-active {
pins = "gpio62";
function = "gpio";

drive-strength = <2>;
bias-disable;
};

sdhc2_pin_a: sdhc2-pin-active {
clk {
pins = "sdc2_clk";
Expand Down Expand Up @@ -317,7 +311,7 @@
bus-width = <4>;

pinctrl-names = "default";
pinctrl-0 = <&sdhc2_pin_a>, <&sdhc2_cd_pin_a>;
pinctrl-0 = <&sdhc2_pin_a>;
};

usb@f9a55000 {
Expand All @@ -344,6 +338,16 @@
};
};
};

imem@fe805000 {
status = "okay";

reboot-mode {
mode-normal = <0x77665501>;
mode-bootloader = <0x77665500>;
mode-recovery = <0x77665502>;
};
};
};

&spmi_bus {
Expand Down
103 changes: 103 additions & 0 deletions arch/arm/boot/dts/qcom-msm8974.dtsi
Expand Up @@ -217,6 +217,96 @@
};
};
};

q6-dsp-thermal {
polling-delay-passive = <250>;
polling-delay = <1000>;

thermal-sensors = <&tsens 1>;

trips {
q6_dsp_alert0: trip-point0 {
temperature = <90000>;
hysteresis = <2000>;
type = "hot";
};
};
};

modemtx-thermal {
polling-delay-passive = <250>;
polling-delay = <1000>;

thermal-sensors = <&tsens 2>;

trips {
modemtx_alert0: trip-point0 {
temperature = <90000>;
hysteresis = <2000>;
type = "hot";
};
};
};

video-thermal {
polling-delay-passive = <250>;
polling-delay = <1000>;

thermal-sensors = <&tsens 3>;

trips {
video_alert0: trip-point0 {
temperature = <95000>;
hysteresis = <2000>;
type = "hot";
};
};
};

wlan-thermal {
polling-delay-passive = <250>;
polling-delay = <1000>;

thermal-sensors = <&tsens 4>;

trips {
wlan_alert0: trip-point0 {
temperature = <105000>;
hysteresis = <2000>;
type = "hot";
};
};
};

gpu-thermal-top {
polling-delay-passive = <250>;
polling-delay = <1000>;

thermal-sensors = <&tsens 9>;

trips {
gpu1_alert0: trip-point0 {
temperature = <90000>;
hysteresis = <2000>;
type = "hot";
};
};
};

gpu-thermal-bottom {
polling-delay-passive = <250>;
polling-delay = <1000>;

thermal-sensors = <&tsens 10>;

trips {
gpu2_alert0: trip-point0 {
temperature = <90000>;
hysteresis = <2000>;
type = "hot";
};
};
};
};

cpu-pmu {
Expand Down Expand Up @@ -441,6 +531,8 @@
nvmem-cells = <&tsens_calib>, <&tsens_backup>;
nvmem-cell-names = "calib", "calib_backup";
#qcom,sensors = <11>;
interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "uplow";
#thermal-sensor-cells = <1>;
};

Expand Down Expand Up @@ -1217,6 +1309,17 @@
clock-names = "iface";
};
};

imem@fe805000 {
status = "disabled";
compatible = "syscon", "simple-mfd";
reg = <0xfe805000 0x1000>;

reboot-mode {
compatible = "syscon-reboot-mode";
offset = <0x65c>;
};
};
};

smd {
Expand Down
10 changes: 10 additions & 0 deletions arch/arm/boot/dts/qcom-pm8941.dtsi
Expand Up @@ -178,6 +178,16 @@
qcom,vs-soft-start-strength = <0>;
regulator-initial-mode = <1>;
};

pm8941_5vs2: 5vs2 {
regulator-enable-ramp-delay = <1000>;
regulator-pull-down;
regulator-over-current-protection;
qcom,ocp-max-retries = <10>;
qcom,ocp-retry-delay = <30>;
qcom,vs-soft-start-strength = <0>;
regulator-initial-mode = <1>;
};
};
};
};

0 comments on commit 86a56b2

Please sign in to comment.