Skip to content

Commit

Permalink
Merge tag 'tegra-for-5.14-arm-dt' of git://git.kernel.org/pub/scm/lin…
Browse files Browse the repository at this point in the history
…ux/kernel/git/tegra/linux into arm/dt

ARM: tegra: Device tree changes for v5.14-rc1

This contains various improvements (such as microphone detection and
thermal zones) for some older Tegra devices (such as the Nexus 7 or
the Acer A500).

* tag 'tegra-for-5.14-arm-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux:
  ARM: tegra: ouya: Enable memory frequency thermal throttling using ACTMON
  ARM: tegra: nexus7: Enable memory frequency thermal throttling using ACTMON
  ARM: tegra: Add cooling cells to ACTMON device-tree node
  ARM: tegra: nexus7: Correct 3v3 regulator GPIO of PM269 variant
  ARM: tegra: nexus7: Remove monitored-battery property
  ARM: tegra: nexus7: Improve thermal zones
  ARM: tegra: nexus7: Add i2c-thermtrip node
  ARM: tegra: paz00: Add CPU thermal zone
  ARM: tegra: wm8903: Fix polarity of headphones-detection GPIO in device-trees
  ARM: tegra: Add reg property to Tegra20 EMC table device-tree nodes
  ARM: tegra: acer-a500: Bump thermal trips by 10C
  ARM: tegra: acer-a500: Specify proper voltage for WiFi SDIO bus
  ARM: tegra: acer-a500: Improve microphone detection

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Olof Johansson <[email protected]>
  • Loading branch information
olofj committed Jun 15, 2021
2 parents 479011d + 4c101a4 commit 8fb202c
Show file tree
Hide file tree
Showing 15 changed files with 93 additions and 31 deletions.
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/tegra124.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
reg = <0x0 0x60007000 0x0 0x1000>;
};

actmon@6000c800 {
actmon: actmon@6000c800 {
compatible = "nvidia,tegra124-actmon";
reg = <0x0 0x6000c800 0x0 0x400>;
interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
Expand All @@ -295,6 +295,7 @@
operating-points-v2 = <&emc_bw_dfs_opp_table>;
interconnects = <&mc TEGRA124_MC_MPCORER &emc>;
interconnect-names = "cpu-read";
#cooling-cells = <2>;
};

gpio: gpio@6000d000 {
Expand Down
21 changes: 14 additions & 7 deletions arch/arm/boot/dts/tegra20-acer-a500-picasso.dts
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,14 @@
reg = <0x1a>;

interrupt-parent = <&gpio>;
interrupts = <TEGRA_GPIO(X, 3) IRQ_TYPE_LEVEL_HIGH>;
interrupts = <TEGRA_GPIO(X, 3) IRQ_TYPE_EDGE_BOTH>;

gpio-controller;
#gpio-cells = <2>;

micdet-cfg = <0>;
micdet-delay = <100>;

gpio-cfg = <
0x0000 /* MIC_LR_OUT# GPIO, output, low */
0x0000 /* FM2018-enable GPIO, output, low */
Expand Down Expand Up @@ -759,7 +762,7 @@

mmc-pwrseq = <&brcm_wifi_pwrseq>;
vmmc-supply = <&vdd_3v3_sys>;
vqmmc-supply = <&vdd_3v3_sys>;
vqmmc-supply = <&vdd_1v8_sys>;

/* Azurewave AW-NH611 BCM4329 */
wifi@1 {
Expand Down Expand Up @@ -1030,7 +1033,7 @@
nvidia,audio-codec = <&wm8903>;

nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>;
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>;
nvidia,int-mic-en-gpios = <&wm8903 1 GPIO_ACTIVE_HIGH>;
nvidia,headset;

Expand All @@ -1056,15 +1059,15 @@

trips {
trip0: cpu-alert0 {
/* start throttling at 50C */
temperature = <50000>;
/* start throttling at 60C */
temperature = <60000>;
hysteresis = <200>;
type = "passive";
};

trip1: cpu-crit {
/* shut down at 60C */
temperature = <60000>;
/* shut down at 70C */
temperature = <70000>;
hysteresis = <2000>;
type = "critical";
};
Expand All @@ -1085,6 +1088,7 @@

emc-tables@0 {
nvidia,ram-code = <0>; /* elpida-8gb */
reg = <0>;

#address-cells = <1>;
#size-cells = <0>;
Expand Down Expand Up @@ -1182,6 +1186,7 @@

emc-tables@1 {
nvidia,ram-code = <1>; /* elpida-4gb */
reg = <1>;

#address-cells = <1>;
#size-cells = <0>;
Expand Down Expand Up @@ -1279,6 +1284,7 @@

emc-tables@2 {
nvidia,ram-code = <2>; /* hynix-8gb */
reg = <2>;

#address-cells = <1>;
#size-cells = <0>;
Expand Down Expand Up @@ -1376,6 +1382,7 @@

emc-tables@3 {
nvidia,ram-code = <3>; /* hynix-4gb */
reg = <3>;

#address-cells = <1>;
#size-cells = <0>;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra20-harmony.dts
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@

nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2)
GPIO_ACTIVE_HIGH>;
GPIO_ACTIVE_LOW>;
nvidia,int-mic-en-gpios = <&gpio TEGRA_GPIO(X, 0)
GPIO_ACTIVE_HIGH>;
nvidia,ext-mic-en-gpios = <&gpio TEGRA_GPIO(X, 1)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra20-medcom-wide.dts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
nvidia,audio-codec = <&wm8903>;

nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>;
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>;

clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
<&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
Expand Down
43 changes: 41 additions & 2 deletions arch/arm/boot/dts/tegra20-paz00.dts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/dts-v1/;

#include <dt-bindings/input/input.h>
#include <dt-bindings/thermal/thermal.h>

#include "tegra20.dtsi"
#include "tegra20-cpu-opp.dtsi"
#include "tegra20-cpu-opp-microvolt.dtsi"
Expand Down Expand Up @@ -318,6 +320,7 @@
nvidia,ram-code = <0x0>;
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;

emc-table@166500 {
reg = <166500>;
Expand Down Expand Up @@ -497,9 +500,10 @@
};
};

adt7461@4c {
adt7461: temperature-sensor@4c {
compatible = "adi,adt7461";
reg = <0x4c>;
#thermal-sensor-cells = <1>;
};
};

Expand Down Expand Up @@ -654,11 +658,46 @@
cpu0: cpu@0 {
cpu-supply = <&cpu_vdd_reg>;
operating-points-v2 = <&cpu0_opp_table>;
#cooling-cells = <2>;
};

cpu@1 {
cpu1: cpu@1 {
cpu-supply = <&cpu_vdd_reg>;
operating-points-v2 = <&cpu0_opp_table>;
#cooling-cells = <2>;
};
};

thermal-zones {
cpu-thermal {
polling-delay-passive = <500>; /* milliseconds */
polling-delay = <1500>; /* milliseconds */

thermal-sensors = <&adt7461 1>;

trips {
trip0: cpu-alert0 {
/* start throttling at 80C */
temperature = <80000>;
hysteresis = <200>;
type = "passive";
};

trip1: cpu-crit {
/* shut down at 85C */
temperature = <85000>;
hysteresis = <2000>;
type = "critical";
};
};

cooling-maps {
map0 {
trip = <&trip0>;
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
};
};
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra20-plutux.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
nvidia,audio-codec = <&wm8903>;

nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>;
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>;

clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
<&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra20-seaboard.dts
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@
nvidia,audio-codec = <&wm8903>;

nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(X, 1) GPIO_ACTIVE_HIGH>;
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(X, 1) GPIO_ACTIVE_LOW>;

clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
<&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra20-tec.dts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2)
GPIO_ACTIVE_HIGH>;
GPIO_ACTIVE_LOW>;

clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
<&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra20-ventana.dts
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@
nvidia,audio-codec = <&wm8903>;

nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>;
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>;
nvidia,int-mic-en-gpios = <&gpio TEGRA_GPIO(X, 0)
GPIO_ACTIVE_HIGH>;
nvidia,ext-mic-en-gpios = <&gpio TEGRA_GPIO(X, 1)
Expand Down
16 changes: 5 additions & 11 deletions arch/arm/boot/dts/tegra30-asus-nexus7-grouper-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,6 @@
compatible = "ti,bq27541";
reg = <0x55>;
power-supplies = <&power_supply>;
monitored-battery = <&battery_cell>;
};

power_supply: charger@6a {
Expand Down Expand Up @@ -1252,13 +1251,6 @@
};

thermal-zones {
skin-thermal {
polling-delay-passive = <1000>; /* milliseconds */
polling-delay = <0>; /* milliseconds */

thermal-sensors = <&nct72 0>;
};

cpu-thermal {
polling-delay-passive = <1000>; /* milliseconds */
polling-delay = <5000>; /* milliseconds */
Expand All @@ -1274,8 +1266,8 @@
};

trip1: cpu-crit {
/* shut down at 60C */
temperature = <60000>;
/* shut down at 65C */
temperature = <65000>;
hysteresis = <2000>;
type = "critical";
};
Expand All @@ -1287,7 +1279,9 @@
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&actmon THERMAL_NO_LIMIT
THERMAL_NO_LIMIT>;
};
};
};
Expand Down
9 changes: 9 additions & 0 deletions arch/arm/boot/dts/tegra30-asus-nexus7-grouper-maxim-pmic.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,13 @@
enable-active-high;
vin-supply = <&vdd_3v3_sys>;
};

pmc@7000e400 {
i2c-thermtrip {
nvidia,i2c-controller-id = <4>;
nvidia,bus-addr = <0x3c>;
nvidia,reg-addr = <0x41>;
nvidia,reg-data = <0xe0>;
};
};
};
11 changes: 10 additions & 1 deletion arch/arm/boot/dts/tegra30-asus-nexus7-grouper-ti-pmic.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,16 @@
};

vdd_3v3_sys: regulator@1 {
gpio = <&pmic 7 GPIO_ACTIVE_HIGH>;
gpio = <&pmic 6 GPIO_ACTIVE_HIGH>;
enable-active-high;
};

pmc@7000e400 {
i2c-thermtrip {
nvidia,i2c-controller-id = <4>;
nvidia,bus-addr = <0x2d>;
nvidia,reg-addr = <0x3f>;
nvidia,reg-data = <0x80>;
};
};
};
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra30-cardhu.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@

nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2)
GPIO_ACTIVE_HIGH>;
GPIO_ACTIVE_LOW>;

clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
<&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
Expand Down
4 changes: 3 additions & 1 deletion arch/arm/boot/dts/tegra30-ouya.dts
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,9 @@
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&actmon THERMAL_NO_LIMIT
THERMAL_NO_LIMIT>;
};
};
};
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/tegra30.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@
reg = <0x6000c000 0x150>; /* AHB Arbitration + Gizmo Controller */
};

actmon@6000c800 {
actmon: actmon@6000c800 {
compatible = "nvidia,tegra30-actmon";
reg = <0x6000c800 0x400>;
interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
Expand All @@ -422,6 +422,7 @@
operating-points-v2 = <&emc_bw_dfs_opp_table>;
interconnects = <&mc TEGRA30_MC_MPCORER &emc>;
interconnect-names = "cpu-read";
#cooling-cells = <2>;
};

gpio: gpio@6000d000 {
Expand Down

0 comments on commit 8fb202c

Please sign in to comment.