ARM: dts: tegra: last minute fixes
Subsystems (4)
v2 cover ARM: dts: tegra: last minute fixes
This series comes with some last minutes fixes and further clean-up.
Changes in v2:
- Dropped "[PATCH v1 3/8] ARM: tegra: apalis/colibri_t30: fix hdmi regulator" as suggested by Russell et. al.
- Added 2 new patches improving/fixing audio on Apalis TK1.
Changes in v1:
- Remove simple-panel compatible as suggested by Rob.
Marcel Ziswiler (9):
ARM: tegra: fix simple-panel compatibles
ARM: tegra: apalis-tk1/colibri_t20/t30: eval/iris: fix regulator gpio
enable
ARM: tegra: colibri_t20: reorder pmic properties
ARM: tegra: apalis-tk1: further regulator clean-up
ARM: tegra: apalis_t30/tk1: annotate power I2C being on-module
ARM: tegra: colibri_t30: further regulator clean-up
ARM: tegra: apalis_t30: further regulator clean-up
ASoC: tegra_sgtl5000: fix device_node refcounting
ASoC: tegra_sgtl5000: fix platform name vs. of_node assignement
arch/arm/boot/dts/tegra114-dalmore.dts | 3 +- arch/arm/boot/dts/tegra124-apalis-eval.dts | 4 +- arch/arm/boot/dts/tegra124-apalis-v1.2-eval.dts | 4 +- arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi | 17 +++--- arch/arm/boot/dts/tegra124-apalis.dtsi | 17 +++--- arch/arm/boot/dts/tegra124-venice2.dts | 2 +- arch/arm/boot/dts/tegra20-colibri-eval-v3.dts | 4 +- arch/arm/boot/dts/tegra20-colibri-iris.dts | 4 +- arch/arm/boot/dts/tegra20-colibri.dtsi | 4 +- arch/arm/boot/dts/tegra20-harmony.dts | 2 +- arch/arm/boot/dts/tegra20-medcom-wide.dts | 2 +- arch/arm/boot/dts/tegra20-paz00.dts | 2 +- arch/arm/boot/dts/tegra20-seaboard.dts | 2 +- arch/arm/boot/dts/tegra20-ventana.dts | 2 +- arch/arm/boot/dts/tegra30-apalis-eval.dts | 2 +- arch/arm/boot/dts/tegra30-apalis-v1.1-eval.dts | 4 +- arch/arm/boot/dts/tegra30-apalis-v1.1.dtsi | 72 +++++++++++-------------- arch/arm/boot/dts/tegra30-apalis.dtsi | 70 ++++++++++-------------- arch/arm/boot/dts/tegra30-cardhu.dtsi | 2 +- arch/arm/boot/dts/tegra30-colibri-eval-v3.dts | 4 +- arch/arm/boot/dts/tegra30-colibri.dtsi | 45 ++++++++-------- sound/soc/tegra/tegra_sgtl5000.c | 22 +++++++- 22 files changed, 143 insertions(+), 147 deletions(-)
Signature · 1 line
2.14.4
PATCH v2 1/9 ARM: tegra: fix simple-panel compatibles
From: Marcel Ziswiler <[email protected]>
As there is no such thing as a generic simple-panel compatible remove them.
---
Changes in v2: None
Changes in v1:
- Remove simple-panel compatible as suggested by Rob.
arch/arm/boot/dts/tegra114-dalmore.dts | 3 +-- arch/arm/boot/dts/tegra124-venice2.dts | 2 +- arch/arm/boot/dts/tegra20-colibri-eval-v3.dts | 2 +- arch/arm/boot/dts/tegra20-colibri-iris.dts | 2 +- arch/arm/boot/dts/tegra20-harmony.dts | 2 +- arch/arm/boot/dts/tegra20-medcom-wide.dts | 2 +- arch/arm/boot/dts/tegra20-paz00.dts | 2 +- arch/arm/boot/dts/tegra20-seaboard.dts | 2 +- arch/arm/boot/dts/tegra20-ventana.dts | 2 +- arch/arm/boot/dts/tegra30-apalis-eval.dts | 2 +- arch/arm/boot/dts/tegra30-apalis-v1.1-eval.dts | 2 +- arch/arm/boot/dts/tegra30-cardhu.dtsi | 2 +- arch/arm/boot/dts/tegra30-colibri-eval-v3.dts | 2 +- 13 files changed, 13 insertions(+), 14 deletions(-)
arch/arm/boot/dts/tegra114-dalmore.dts +1 -2
@@ -46,8 +46,7 @@ avdd-dsi-csi-supply = <&avdd_1v2_reg>; panel@0 { - compatible = "panasonic,vvx10f004b00", - "simple-panel"; + compatible = "panasonic,vvx10f004b00"; reg = <0>; power-supply = <&avdd_lcd_reg>;
arch/arm/boot/dts/tegra124-venice2.dts +1 -1
@@ -1079,7 +1079,7 @@ }; panel: panel { - compatible = "lg,lp129qe", "simple-panel"; + compatible = "lg,lp129qe"; backlight = <&backlight>; ddc-i2c-bus = <&dpaux>;
arch/arm/boot/dts/tegra20-colibri-eval-v3.dts +1 -1
@@ -223,7 +223,7 @@ * edt,et057090dhu: EDT 5.7" LCD TFT * edt,et070080dh6: EDT 7.0" LCD TFT */ - compatible = "edt,et057090dhu", "simple-panel"; + compatible = "edt,et057090dhu"; backlight = <&backlight>; power-supply = <®_3v3>; };
arch/arm/boot/dts/tegra20-colibri-iris.dts +1 -1
@@ -205,7 +205,7 @@ * edt,et057090dhu: EDT 5.7" LCD TFT * edt,et070080dh6: EDT 7.0" LCD TFT */ - compatible = "edt,et057090dhu", "simple-panel"; + compatible = "edt,et057090dhu"; backlight = <&backlight>; power-supply = <®_3v3>; };
arch/arm/boot/dts/tegra20-harmony.dts +1 -1
@@ -665,7 +665,7 @@ }; panel: panel { - compatible = "auo,b101aw03", "simple-panel"; + compatible = "auo,b101aw03"; power-supply = <&vdd_pnl_reg>; enable-gpios = <&gpio TEGRA_GPIO(B, 2) GPIO_ACTIVE_HIGH>;
arch/arm/boot/dts/tegra20-medcom-wide.dts +1 -1
@@ -57,7 +57,7 @@ }; panel: panel { - compatible = "innolux,n156bge-l21", "simple-panel"; + compatible = "innolux,n156bge-l21"; power-supply = <&vdd_1v8_reg>, <&vdd_3v3_reg>; enable-gpios = <&gpio TEGRA_GPIO(B, 2) GPIO_ACTIVE_HIGH>;
arch/arm/boot/dts/tegra20-paz00.dts +1 -1
@@ -543,7 +543,7 @@ }; panel: panel { - compatible = "samsung,ltn101nt05", "simple-panel"; + compatible = "samsung,ltn101nt05"; ddc-i2c-bus = <&lvds_ddc>; power-supply = <&vdd_pnl_reg>;
arch/arm/boot/dts/tegra20-seaboard.dts +1 -1
@@ -826,7 +826,7 @@ }; panel: panel { - compatible = "chunghwa,claa101wa01a", "simple-panel"; + compatible = "chunghwa,claa101wa01a"; power-supply = <&vdd_pnl_reg>; enable-gpios = <&gpio TEGRA_GPIO(B, 2) GPIO_ACTIVE_HIGH>;
arch/arm/boot/dts/tegra20-ventana.dts +1 -1
@@ -611,7 +611,7 @@ }; panel: panel { - compatible = "chunghwa,claa101wa01a", "simple-panel"; + compatible = "chunghwa,claa101wa01a"; power-supply = <&vdd_pnl_reg>; enable-gpios = <&gpio TEGRA_GPIO(B, 2) GPIO_ACTIVE_HIGH>;
arch/arm/boot/dts/tegra30-apalis-eval.dts +1 -1
@@ -195,7 +195,7 @@ * edt,et057090dhu: EDT 5.7" LCD TFT * edt,et070080dh6: EDT 7.0" LCD TFT */ - compatible = "edt,et057090dhu", "simple-panel"; + compatible = "edt,et057090dhu"; backlight = <&backlight>; power-supply = <®_3v3>; };
arch/arm/boot/dts/tegra30-apalis-v1.1-eval.dts +1 -1
@@ -196,7 +196,7 @@ * edt,et057090dhu: EDT 5.7" LCD TFT * edt,et070080dh6: EDT 7.0" LCD TFT */ - compatible = "edt,et057090dhu", "simple-panel"; + compatible = "edt,et057090dhu"; backlight = <&backlight>; power-supply = <®_3v3>; };
arch/arm/boot/dts/tegra30-cardhu.dtsi +1 -1
@@ -432,7 +432,7 @@ }; panel: panel { - compatible = "chunghwa,claa101wb01", "simple-panel"; + compatible = "chunghwa,claa101wb01"; ddc-i2c-bus = <&panelddc>; power-supply = <&vdd_pnl1_reg>;
arch/arm/boot/dts/tegra30-colibri-eval-v3.dts +1 -1
@@ -159,7 +159,7 @@ * edt,et057090dhu: EDT 5.7" LCD TFT * edt,et070080dh6: EDT 7.0" LCD TFT */ - compatible = "edt,et057090dhu", "simple-panel"; + compatible = "edt,et057090dhu"; backlight = <&backlight>; power-supply = <®_3v3>; };
Signature · 1 line
2.14.4
PATCH v2 2/9 ARM: tegra: apalis-tk1/colibri_t20/t30: eval/iris: fix regulator gpio enable
In reply to Marcel ZiswilerFrom: Marcel Ziswiler <[email protected]>
Anything other than the default active-low would require the separate property enable-active-high to be set. This gets rid of the following warning during boot:
regulator-usbh-vbus GPIO handle specifies active low - ignored
resp.:
regulator-1v05-avdd-hdmi-pll GPIO handle specifies active low - ignored
---
Changes in v2: None
Changes in v1: None
arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi | 2 +- arch/arm/boot/dts/tegra124-apalis.dtsi | 2 +- arch/arm/boot/dts/tegra20-colibri-eval-v3.dts | 2 +- arch/arm/boot/dts/tegra20-colibri-iris.dts | 2 +- arch/arm/boot/dts/tegra30-colibri-eval-v3.dts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi +1 -1
@@ -1948,7 +1948,7 @@ regulator-name = "+V1.05_AVDD_HDMI_PLL"; regulator-min-microvolt = <1050000>; regulator-max-microvolt = <1050000>; - gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_LOW>; + gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_HIGH>; vin-supply = <®_1v05_vdd>; };
arch/arm/boot/dts/tegra124-apalis.dtsi +1 -1
@@ -1978,7 +1978,7 @@ regulator-name = "+V1.05_AVDD_HDMI_PLL"; regulator-min-microvolt = <1050000>; regulator-max-microvolt = <1050000>; - gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_LOW>; + gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_HIGH>; vin-supply = <®_1v05_vdd>; };
arch/arm/boot/dts/tegra20-colibri-eval-v3.dts +1 -1
@@ -256,7 +256,7 @@ regulator-name = "VCC_USB[1-4]"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; - gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>; + gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>; vin-supply = <®_5v0>; }; };
arch/arm/boot/dts/tegra20-colibri-iris.dts +1 -1
@@ -238,7 +238,7 @@ regulator-name = "VCC_USB1"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; - gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>; + gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>; vin-supply = <®_5v0>; }; };
arch/arm/boot/dts/tegra30-colibri-eval-v3.dts +1 -1
@@ -192,7 +192,7 @@ regulator-name = "VCC_USB[1-4]"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; - gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>; + gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>; vin-supply = <®_5v0>; }; };
Signature · 1 line
2.14.4
PATCH v2 3/9 ARM: tegra: colibri_t20: reorder pmic properties
In reply to Marcel ZiswilerFrom: Marcel Ziswiler <[email protected]>
Reorder PMIC properties to be more in-line with any of our other device trees.
---
Changes in v2: None
Changes in v1: None
arch/arm/boot/dts/tegra20-colibri.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/tegra20-colibri.dtsi +2 -2
@@ -475,11 +475,11 @@ pmic@34 { compatible = "ti,tps6586x"; reg = <0x34>; - interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; - ti,system-power-controller; #gpio-cells = <2>; gpio-controller; + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; sys-supply = <®_module_3v3>; + ti,system-power-controller; vin-sm0-supply = <®_3v3_vsys>; vin-sm1-supply = <®_3v3_vsys>; vin-sm2-supply = <®_3v3_vsys>;
Signature · 1 line
2.14.4
PATCH v2 4/9 ARM: tegra: apalis-tk1: further regulator clean-up
In reply to Marcel ZiswilerFrom: Marcel Ziswiler <[email protected]>
Add reg_ prefix to vddio_sdmmc1 and vddio_sdmmc3.
Reorder PMIC properties.
---
Changes in v2: None
Changes in v1: None
arch/arm/boot/dts/tegra124-apalis-eval.dts | 4 ++-- arch/arm/boot/dts/tegra124-apalis-v1.2-eval.dts | 4 ++-- arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi | 10 +++++----- arch/arm/boot/dts/tegra124-apalis.dtsi | 10 +++++----- 4 files changed, 14 insertions(+), 14 deletions(-)
arch/arm/boot/dts/tegra124-apalis-eval.dts +2 -2
@@ -171,7 +171,7 @@ bus-width = <4>; /* MMC1_CD# */ cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>; - vqmmc-supply = <&vddio_sdmmc1>; + vqmmc-supply = <®_vddio_sdmmc1>; }; /* Apalis SD1 */
@@ -180,7 +180,7 @@ bus-width = <4>; /* SD1_CD# */ cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>; - vqmmc-supply = <&vddio_sdmmc3>; + vqmmc-supply = <®_vddio_sdmmc3>; }; /* EHCI instance 0: USB1_DP/N -> USBO1_DP/N */
arch/arm/boot/dts/tegra124-apalis-v1.2-eval.dts +2 -2
@@ -137,7 +137,7 @@ bus-width = <4>; /* MMC1_CD# */ cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>; - vqmmc-supply = <&vddio_sdmmc1>; + vqmmc-supply = <®_vddio_sdmmc1>; }; /* Apalis SD1 */
@@ -146,7 +146,7 @@ bus-width = <4>; /* SD1_CD# */ cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>; - vqmmc-supply = <&vddio_sdmmc3>; + vqmmc-supply = <®_vddio_sdmmc3>; }; /* EHCI instance 0: USB1_DP/N -> USBO1_DP/N */
arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi +5 -5
@@ -1570,12 +1570,12 @@ pmic: pmic@40 { compatible = "ams,as3722"; reg = <0x40>; - interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>; ams,system-power-controller; + #gpio-cells = <2>; + gpio-controller; + interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>; #interrupt-cells = <2>; interrupt-controller; - gpio-controller; - #gpio-cells = <2>; pinctrl-names = "default"; pinctrl-0 = <&as3722_default>;
@@ -1679,7 +1679,7 @@ ams,ext-control = <1>; }; - vddio_sdmmc1: ldo1 { + reg_vddio_sdmmc1: ldo1 { regulator-name = "VDDIO_SDMMC1"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>;
@@ -1711,7 +1711,7 @@ /* LDO5 not used */ - vddio_sdmmc3: ldo6 { + reg_vddio_sdmmc3: ldo6 { regulator-name = "VDDIO_SDMMC3"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>;
arch/arm/boot/dts/tegra124-apalis.dtsi +5 -5
@@ -1600,12 +1600,12 @@ pmic: pmic@40 { compatible = "ams,as3722"; reg = <0x40>; - interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>; ams,system-power-controller; + #gpio-cells = <2>; + gpio-controller; + interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>; #interrupt-cells = <2>; interrupt-controller; - gpio-controller; - #gpio-cells = <2>; pinctrl-names = "default"; pinctrl-0 = <&as3722_default>;
@@ -1709,7 +1709,7 @@ ams,ext-control = <1>; }; - vddio_sdmmc1: ldo1 { + reg_vddio_sdmmc1: ldo1 { regulator-name = "VDDIO_SDMMC1"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>;
@@ -1741,7 +1741,7 @@ /* LDO5 not used */ - vddio_sdmmc3: ldo6 { + reg_vddio_sdmmc3: ldo6 { regulator-name = "VDDIO_SDMMC3"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>;
Signature · 1 line
2.14.4
PATCH v2 5/9 ARM: tegra: apalis_t30/tk1: annotate power I2C being on-module
In reply to Marcel ZiswilerFrom: Marcel Ziswiler <[email protected]>
The power I2C bus aka PWR_I2C which connects to the audio codec, PMIC, temperature sensor and touch screen controller is really on-module only.
---
Changes in v2: None
Changes in v1: None
arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi | 5 ++++- arch/arm/boot/dts/tegra124-apalis.dtsi | 5 ++++- arch/arm/boot/dts/tegra30-apalis-v1.1.dtsi | 2 +- arch/arm/boot/dts/tegra30-apalis.dtsi | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-)
arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi +4 -1
@@ -1552,7 +1552,10 @@ clock-frequency = <10000>; }; - /* PWR_I2C: power I2C to audio codec, PMIC and temperature sensor */ + /* + * PWR_I2C: power I2C to audio codec, PMIC and temperature sensor + * (On-module) + */ i2c@7000d000 { status = "okay"; clock-frequency = <400000>;
arch/arm/boot/dts/tegra124-apalis.dtsi +4 -1
@@ -1582,7 +1582,10 @@ clock-frequency = <10000>; }; - /* PWR_I2C: power I2C to audio codec, PMIC and temperature sensor */ + /* + * PWR_I2C: power I2C to audio codec, PMIC and temperature sensor + * (On-module) + */ i2c@7000d000 { status = "okay"; clock-frequency = <400000>;
arch/arm/boot/dts/tegra30-apalis-v1.1.dtsi +1 -1
@@ -845,7 +845,7 @@ /* * PWR_I2C: power I2C to audio codec, PMIC, temperature sensor and - * touch screen controller + * touch screen controller (On-module) */ i2c@7000d000 { status = "okay";
arch/arm/boot/dts/tegra30-apalis.dtsi +1 -1
@@ -836,7 +836,7 @@ /* * PWR_I2C: power I2C to audio codec, PMIC, temperature sensor and - * touch screen controller + * touch screen controller (On-module) */ i2c@7000d000 { status = "okay";
Signature · 1 line
2.14.4
PATCH v2 6/9 ARM: tegra: colibri_t30: further regulator clean-up
In reply to Marcel ZiswilerFrom: Marcel Ziswiler <[email protected]>
Drop unused labels.
Rename regulator tps62362-vout to +V1.2_VDD_CORE.
Reorder TPS65911 properties.
Rename +V1.05 to +V1.05_AVDD_PLLE.
Add ti,en-ck32k-xtal.
Specify TPS62362 vin-supply.
---
Changes in v2: None
Changes in v1: None
arch/arm/boot/dts/tegra30-colibri.dtsi | 45 ++++++++++++++++------------------ 1 file changed, 21 insertions(+), 24 deletions(-)
arch/arm/boot/dts/tegra30-colibri.dtsi +21 -24
@@ -732,16 +732,13 @@ pmic: pmic@2d { compatible = "ti,tps65911"; reg = <0x2d>; - + #gpio-cells = <2>; + gpio-controller; interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; #interrupt-cells = <2>; interrupt-controller; - + ti,en-ck32k-xtal; ti,system-power-controller; - - #gpio-cells = <2>; - gpio-controller; - vcc1-supply = <®_module_3v3>; vcc2-supply = <®_module_3v3>; vcc3-supply = <®_1v8_vio>;
@@ -752,29 +749,29 @@ vccio-supply = <®_module_3v3>; regulators { - vdd1_reg: vdd1 { + reg_1v8_vio: vio { + regulator-name = "+V1.8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + vdd1 { regulator-name = "+V1.35_VDDIO_DDR"; regulator-min-microvolt = <1350000>; regulator-max-microvolt = <1350000>; regulator-always-on; }; - /* SW2: unused */ + /* SW2 aka vdd2: unused */ - vddctrl_reg: vddctrl { + vddctrl { regulator-name = "+V1.0_VDD_CPU"; regulator-min-microvolt = <1150000>; regulator-max-microvolt = <1150000>; regulator-always-on; }; - reg_1v8_vio: vio { - regulator-name = "+V1.8"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - }; - /* LDO1: unused */ /*
@@ -782,7 +779,7 @@ * +V3.3_AUDIO_AVDD_S, +V3.3 and +V1.8_VDD_LAN * see also +V3.3 fixed supply */ - ldo2_reg: ldo2 { + ldo2 { regulator-name = "EN_+V3.3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
@@ -791,7 +788,7 @@ /* LDO3: unused */ - ldo4_reg: ldo4 { + ldo4 { regulator-name = "+V1.2_VDD_RTC"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>;
@@ -802,7 +799,7 @@ * +V2.8_AVDD_VDAC: * only required for (unsupported) analog RGB */ - ldo5_reg: ldo5 { + ldo5 { regulator-name = "+V2.8_AVDD_VDAC"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>;
@@ -814,20 +811,20 @@ * but LDO6 can't set voltage in 50mV * granularity */ - ldo6_reg: ldo6 { + ldo6 { regulator-name = "+V1.05_AVDD_PLLE"; regulator-min-microvolt = <1100000>; regulator-max-microvolt = <1100000>; }; - ldo7_reg: ldo7 { + ldo7 { regulator-name = "+V1.2_AVDD_PLL"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-always-on; }; - ldo8_reg: ldo8 { + ldo8 { regulator-name = "+V1.0_VDD_DDR_HS"; regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>;
@@ -885,8 +882,7 @@ regulator@60 { compatible = "ti,tps62362"; reg = <0x60>; - - regulator-name = "tps62362-vout"; + regulator-name = "+V1.2_VDD_CORE"; regulator-min-microvolt = <900000>; regulator-max-microvolt = <1400000>; regulator-boot-on;
@@ -894,6 +890,7 @@ ti,vsel0-state-low; /* VSEL1: EN_CORE_DVFS_N low for DVFS */ ti,vsel1-state-low; + vin-supply =<®_module_3v3>; }; };
Signature · 1 line
2.14.4
PATCH v2 7/9 ARM: tegra: apalis_t30: further regulator clean-up
In reply to Marcel ZiswilerFrom: Marcel Ziswiler <[email protected]>
Rename label vdd2_reg to reg_1v05.
Rename label ldo6_reg to reg_1v05_avdd_plle. Drop unused labels.
Rename regulator tps62362-vout to +V1.2_VDD_CORE. Reorder TPS65911 properties.
Rename +V1.05 to +V1.05_AVDD_PLLE.
Add ti,en-ck32k-xtal.
Specify TPS62362 vin-supply.
Drop spurious newline in TPS62362 properties. Rename vddio_sdmmc_1v8_reg to reg_1v8_vddio_sdmmc3. Rename +V1.05 to +V1.05_AVDD_PLLE.
---
Changes in v2:
- Dropped "[PATCH v1 3/8] ARM: tegra: apalis/colibri_t30: fix hdmi regulator" as suggested by Russell et. al.
- Added 2 new patches improving/fixing audio on Apalis TK1.
Changes in v1: None
arch/arm/boot/dts/tegra30-apalis-v1.1-eval.dts | 2 +- arch/arm/boot/dts/tegra30-apalis-v1.1.dtsi | 70 +++++++++++--------------- arch/arm/boot/dts/tegra30-apalis.dtsi | 68 +++++++++++-------------- 3 files changed, 58 insertions(+), 82 deletions(-)
arch/arm/boot/dts/tegra30-apalis-v1.1-eval.dts +1 -1
@@ -251,7 +251,7 @@ states = <1800000 0x0 3300000 0x1>; startup-delay-us = <100000>; - vin-supply = <&vddio_sdmmc_1v8_reg>; + vin-supply = <®_1v8_vddio_sdmmc3>; }; };
arch/arm/boot/dts/tegra30-apalis-v1.1.dtsi +29 -41
163 lines not on this page · raw message
arch/arm/boot/dts/tegra30-apalis.dtsi +28 -40
157 lines not on this page · raw message
Signature · 1 line
2.14.4
PATCH v2 8/9 ASoC: tegra_sgtl5000: fix device_node refcounting
In reply to Marcel ZiswilerFrom: Marcel Ziswiler <[email protected]>
Similar to the following:
commit 4321723648b0 ("ASoC: tegra_alc5632: fix device_node refcounting")
commit 7c5dfd549617 ("ASoC: tegra: fix device_node refcounting")
---
Changes in v2: New patch
sound/soc/tegra/tegra_sgtl5000.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-)
sound/soc/tegra/tegra_sgtl5000.c +15 -2
@@ -149,14 +149,14 @@ static int tegra_sgtl5000_driver_probe(struct platform_device *pdev)dev_err (&pdev->dev,"Property 'nvidia,i2s-controller' missing/invalid\n" ); ret = -EINVAL ; - goto err; + goto err_put_codec_of_node; } tegra_sgtl5000_dai.platform_of_node = tegra_sgtl5000_dai.cpu_of_node; ret =tegra_asoc_utils_init (&machine->util_data, &pdev->dev);if (ret) - goto err; + goto err_put_cpu_of_node; ret =snd_soc_register_card (card);if (ret) {
@@ -169,6 +169,13 @@ static int tegra_sgtl5000_driver_probe(struct platform_device *pdev) err_fini_utils:tegra_asoc_utils_fini (&machine->util_data); +err_put_cpu_of_node: +of_node_put (tegra_sgtl5000_dai.cpu_of_node); + tegra_sgtl5000_dai.cpu_of_node =NULL ; + tegra_sgtl5000_dai.platform_of_node =NULL ; +err_put_codec_of_node: +of_node_put (tegra_sgtl5000_dai.codec_of_node); + tegra_sgtl5000_dai.codec_of_node =NULL ; err:return ret; }
@@ -183,6 +190,12 @@ static int tegra_sgtl5000_driver_remove(struct platform_device *pdev)tegra_asoc_utils_fini (&machine->util_data); +of_node_put (tegra_sgtl5000_dai.cpu_of_node); + tegra_sgtl5000_dai.cpu_of_node =NULL ; + tegra_sgtl5000_dai.platform_of_node =NULL ; +of_node_put (tegra_sgtl5000_dai.codec_of_node); + tegra_sgtl5000_dai.codec_of_node =NULL ; +return ret; }
Signature · 1 line
2.14.4
Re: [PATCH v2 8/9] ASoC: tegra_sgtl5000: fix device_node refcounting
Quoted 55 lines · Marcel Ziswiler
From: Marcel Ziswiler <[email protected]>
Similar to the following:
commit
4321723648b0("ASoC:tegra_alc5632: fixdevice_noderefcounting")commit
7c5dfd549617("ASoC: tegra: fixdevice_noderefcounting")Signed-off-by Marcel Ziswiler <[email protected]>---
Changes in v2: New patch
sound/soc/tegra/tegra_sgtl5000.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-)sound/soc/tegra/tegra_sgtl5000.c +9
-2@@ -149,14 +149,14 @@ static int tegra_sgtl5000_driver_probe(struct platform_device *pdev)dev_err (&pdev->dev,"Property 'nvidia,i2s-controller' missing/invalid\n" ); ret = -EINVAL ; - goto err; + goto err_put_codec_of_node; } tegra_sgtl5000_dai.platform_of_node = tegra_sgtl5000_dai.cpu_of_node; ret =tegra_asoc_utils_init (&machine->util_data, &pdev->dev);if (ret) - goto err; + goto err_put_cpu_of_node; ret =snd_soc_register_card (card);if (ret) {@@ -169,6 +169,13 @@ static int tegra_sgtl5000_driver_probe(struct platform_device *pdev) err_fini_utils:tegra_asoc_utils_fini (&machine->util_data); +err_put_cpu_of_node: +of_node_put (tegra_sgtl5000_dai.cpu_of_node); + tegra_sgtl5000_dai.cpu_of_node =NULL ; + tegra_sgtl5000_dai.platform_of_node =NULL ; +err_put_codec_of_node: +of_node_put (tegra_sgtl5000_dai.codec_of_node); + tegra_sgtl5000_dai.codec_of_node =NULL ; err:return ret; }@@ -183,6 +190,12 @@ static int tegra_sgtl5000_driver_remove(struct platform_device *pdev)tegra_asoc_utils_fini (&machine->util_data);
sound/soc/tegra/tegra_sgtl5000.c static int tegra_sgtl5000_driver_remove(struct platform_device *pdev) · line 201
Quoted 10 lines
sound/soc/tegra/tegra_sgtl5000.c +6
-0+of_node_put (tegra_sgtl5000_dai.cpu_of_node); + tegra_sgtl5000_dai.cpu_of_node =NULL ; + tegra_sgtl5000_dai.platform_of_node =NULL ; +of_node_put (tegra_sgtl5000_dai.codec_of_node); + tegra_sgtl5000_dai.codec_of_node =NULL ; +return ret; }
Cheers
Jon
Signature · 1 line
nvpublic
PATCH v2 9/9 ASoC: tegra_sgtl5000: fix platform name vs. of_node assignement
In reply to Marcel ZiswilerFrom: Marcel Ziswiler <[email protected]>
This fixes the following error as seen post commit daecf46ee0e5 ("ASoC: soc-core: use snd_soc_dai_link_component for platform"):
tegra-snd-sgtl5000 sound: ASoC: Both platform name/of_node are set for
sgtl5000
tegra-snd-sgtl5000 sound: ASoC: failed to init link sgtl5000 tegra-snd-sgtl5000 sound: snd_soc_register_card failed (-22)
tegra-snd-sgtl5000: probe of sound failed with error -22
---
Changes in v2: New patch
sound/soc/tegra/tegra_sgtl5000.c | 5 +++++ 1 file changed, 5 insertions(+)
sound/soc/tegra/tegra_sgtl5000.c +5 -0
@@ -168,6 +168,11 @@ static int tegra_sgtl5000_driver_probe(struct platform_device *pdev)return 0 ; err_fini_utils: +if (tegra_sgtl5000_dai.platform) { +devm_kfree (&pdev->dev, tegra_sgtl5000_dai.platform); + tegra_sgtl5000_dai.platform =NULL ; + } +tegra_asoc_utils_fini (&machine->util_data); err_put_cpu_of_node:of_node_put (tegra_sgtl5000_dai.cpu_of_node);
Signature · 1 line
2.14.4
Jon Hunter
maintainerRe: [PATCH v2 9/9] ASoC: tegra_sgtl5000: fix platform name vs. of_node assignement
Quoted 27 lines · Marcel Ziswiler
From: Marcel Ziswiler <[email protected]>
This fixes the following error as seen post commit
daecf46ee0e5("ASoC: soc-core: usesnd_soc_dai_link_componentfor platform"):tegra-snd-sgtl5000 sound: ASoC: Both platform name/of_node are set for
sgtl5000
tegra-snd-sgtl5000 sound: ASoC: failed to init link sgtl5000 tegra-snd-sgtl5000 sound:snd_soc_register_cardfailed (-22)
tegra-snd-sgtl5000: probe of sound failed with error -22Signed-off-by Marcel Ziswiler <[email protected]>---
Changes in v2: New patch
sound/soc/tegra/tegra_sgtl5000.c | 5 +++++ 1 file changed, 5 insertions(+)sound/soc/tegra/tegra_sgtl5000.c +0
-0@@ -168,6 +168,11 @@ static int tegra_sgtl5000_driver_probe(struct platform_device *pdev)return 0 ;
sound/soc/tegra/tegra_sgtl5000.c static int tegra_sgtl5000_driver_probe(struct platform_device *pdev) · line 178
Quoted 10 lines
sound/soc/tegra/tegra_sgtl5000.c +5
-0err_fini_utils: +if (tegra_sgtl5000_dai.platform) { +devm_kfree (&pdev->dev, tegra_sgtl5000_dai.platform); + tegra_sgtl5000_dai.platform =NULL ; + } +tegra_asoc_utils_fini (&machine->util_data); err_put_cpu_of_node:of_node_put (tegra_sgtl5000_dai.cpu_of_node);
Where is the above allocated? I don't see it allocated in this driver AFAICT. If it is not then it does not seem right to free something that we have not allocated in this driver. I would have assumed it was allocated by snd_soc_init_platform() in which case it should not be necessary to free because that function uses devm_kzalloc(). What am I missing here?
Cheers
Jon
Signature · 1 line
nvpublic
Re: [PATCH v2 9/9] ASoC: tegra_sgtl5000: fix platform name vs. of_node assignement
Quoted 31 lines · Jon Hunter
Quoted 30 lines · Marcel Ziswiler
From: Marcel Ziswiler <[email protected]>
This fixes the following error as seen post commit
daecf46ee0e5("ASoC: soc-core: usesnd_soc_dai_link_componentfor platform"):tegra-snd-sgtl5000 sound: ASoC: Both platform name/of_node are set for
sgtl5000
tegra-snd-sgtl5000 sound: ASoC: failed to init link sgtl5000 tegra-snd-sgtl5000 sound:snd_soc_register_cardfailed (-22)
tegra-snd-sgtl5000: probe of sound failed with error -22Signed-off-by Marcel Ziswiler <[email protected]>---
Changes in v2: New patch
sound/soc/tegra/tegra_sgtl5000.c | 5 +++++ 1 file changed, 5 insertions(+)sound/soc/tegra/tegra_sgtl5000.c +0
-0@@ -168,6 +168,11 @@ static int tegra_sgtl5000_driver_probe(struct platform_device *pdev)return 0 ;
Quoted 13 lines
Quoted 11 lines
sound/soc/tegra/tegra_sgtl5000.c +5
-0err_fini_utils: +if (tegra_sgtl5000_dai.platform) { +devm_kfree (&pdev->dev, tegra_sgtl5000_dai.platform); + tegra_sgtl5000_dai.platform =NULL ; + } +tegra_asoc_utils_fini (&machine->util_data);
err_put_cpu_of_node:
of_node_put(tegra_sgtl5000_dai.cpu_of_node);Where is the above allocated?
snd_soc_init_platform() in sound/soc/soc-core.c
Quoted 6 lines
I don't see it allocated in this driver
AFAICT. If it is not then it does not seem right to free something that
we have not allocated in this driver. I would have assumed it was allocated bysnd_soc_init_platform()in which case it should not be necessary to free because that function usesdevm_kzalloc().
That is kind of what I assumed as well.
Quoted 1 line
What am I missing here?
That is actually a very very good question. Unfortunately, since above mentioned commit which is part of the bigger multi-platform (or whatever one may call it) rework done by folks on CC things start falling apart.
I should maybe rather have phrased this one as an RFC.
Some facts from my humble investigation so far:
- The issue does not exhibit itself on Apalis/Colibri T30 where probably the order of things being initialised is slightly different.
- Bisecting points to the above mentioned commit being to blame. However there is no way to just revert that commit as it is part of the bigger multi-platform rework.
- Somehow it has to do with probe deferral. Basically, platform gets allocated in snd_soc_init_platform() but due to GPIO/I2C whatever not being ready the SGTL5000 codec aka dai_link can not yet be found and therefore it probe defers as follows:
[ 2.166517] tegra30-i2s 70301200.i2s: DMA channels sourced from device 70300000.ahub [ 2.176043] tegra-snd-sgtl5000 sound: ASoC: CODEC DAI sgtl5000 not registered [ 2.183241] tegra-snd-sgtl5000 sound: snd_soc_register_card failed
(-517)
- Somewhere thereafter platform seems to get stumped onto (e.g. its name rather than being null now is bogus. Unfortunately, it is not just the name as clearing just that did not really help (sgtl5000 codec gets instantiated but trying to play audio always returned -EINVAL).
- The second time around snd_soc_init_platform() re-uses previously allocated platform now corrupt triggering a check in soc-core concerning platform name and of_node both being set (as noted in above commit message).
Some questions:
- How exactly are devm allocations supposed to work concerning probe deferrals?
- Does or should the platform get cleared during a probe deferral cycle?
- If so, why does that not work?
- Or is some special implicit probe deferral handling missing in soc- core?
I'm happy to try more things and/or provide more debugging output if needed. Just let me know.
Thanks Jon!
Quoted 2 lines
Cheers
Jon
Cheers
Marcel
Mark Brown
maintainerRe: [PATCH v2 9/9] ASoC: tegra_sgtl5000: fix platform name vs. of_node assignement
Quoted 4 lines · Marcel Ziswiler
Some questions:
- How exactly are devm allocations supposed to work concerning probe deferrals?
Probe deferrals are just normal probe errors, any devm_ allocated stuff gets unwound.
Quoted 4 lines
- Does or should the platform get cleared during a probe deferral cycle?
- If so, why does that not work?
Is something writing to static data when it should be writing to dynamically allocated data? That's what this sounds like, we shouldn't be modifying any static data and any data dynamically allocated during probe ought to be being discarded.
Quoted 2 lines
- Or is some special implicit probe deferral handling missing in soc- core?
Like I say a probe deferral is just a normal error.
Jon Hunter
maintainerRe: [PATCH v2 9/9] ASoC: tegra_sgtl5000: fix platform name vs. of_node assignement
Quoted 13 lines · Mark Brown
Quoted 4 lines · Marcel Ziswiler
Some questions:
- How exactly are devm allocations supposed to work concerning probe deferrals?
Probe deferrals are just normal probe errors, any
devm_allocated stuff gets unwound.Quoted 2 lines
- Does or should the platform get cleared during a probe deferral cycle?
Quoted 6 lines
Quoted 1 line
- If so, why does that not work?
Is something writing to static data when it should be writing to dynamically allocated data? That's what this sounds like, we shouldn't be modifying any static data and any data dynamically allocated during probe ought to be being discarded.
Marcel, it maybe worth looking at what happens in the 2nd call to snd_soc_init_platform() following the probe deferral. Also pay attention to the value of 'dai_link->platform_name' in snd_soc_init_platform() on both 1st and 2nd call. Seems that on the 2nd time the function is called the value is not NULL???
Cheers
Jon
Signature · 1 line
nvpublic
Re: [PATCH v2 9/9] ASoC: tegra_sgtl5000: fix platform name vs. of_node assignement
In reply to Mark BrownQuoted 10 lines · Mark Brown
Quoted 4 lines · Marcel Ziswiler
Some questions:
- How exactly are devm allocations supposed to work concerning probe
deferrals?Probe deferrals are just normal probe errors, any
devm_allocated stuff
gets unwound.
OK, that is where my understanding was weary. So you are saying anything should really get allocated again upon the second time.
Quoted 10 lines
Quoted 3 lines
- Does or should the platform get cleared during a probe deferral cycle?
- If so, why does that not work?Is something writing to static data when it should be writing to dynamically allocated data? That's what this sounds like, we shouldn't
be modifying any static data and any data dynamically allocated during
probe ought to be being discarded.
OK, I believe I start to see what you are saying. I guess the bug lays in soc-core then not properly discarding the platform and the second time around it is using a stale pointer to that which now of course points to whatever happens to be there! Let me try a few more things and I will cook up a proper patch to fix that...
Quoted 5 lines
Quoted 3 lines
- Or is some special implicit probe deferral handling missing in soc-
core?Like I say a probe deferral is just a normal error.
Yeah, right. Thanks!
Mark Brown
maintainerQuoted 11 lines · Marcel Ziswiler
Marcel Ziswiler (9):
ARM: tegra: fix simple-panel compatibles
ARM: tegra: apalis-tk1/colibri_t20/t30: eval/iris: fix regulator gpio
enable
ARM: tegra:colibri_t20: reorder pmic properties
ARM: tegra: apalis-tk1: further regulator clean-up
ARM: tegra: apalis_t30/tk1: annotate power I2C being on-module
ARM: tegra:colibri_t30: further regulator clean-up
ARM: tegra:apalis_t30: further regulator clean-up
ASoC:tegra_sgtl5000: fixdevice_noderefcounting
ASoC:tegra_sgtl5000: fix platform name vs.of_nodeassignement
These ASoC patches appear to have absolutely no relationship with the rest of the series. Is that the case or is there some dependency I'm missing?
Quoted 15 lines · Mark Brown
Quoted 4 lines · Marcel Ziswiler
Marcel Ziswiler (9):
ARM: tegra: fix simple-panel compatibles
ARM: tegra: apalis-tk1/colibri_t20/t30: eval/iris: fix regulator
gpioQuoted 8 lines
enable
ARM: tegra:colibri_t20: reorder pmic properties
ARM: tegra: apalis-tk1: further regulator clean-up
ARM: tegra: apalis_t30/tk1: annotate power I2C being on-module
ARM: tegra:colibri_t30: further regulator clean-up
ARM: tegra:apalis_t30: further regulator clean-up
ASoC:tegra_sgtl5000: fixdevice_noderefcounting
ASoC:tegra_sgtl5000: fix platform name vs.of_nodeassignement
Quoted 3 lines
These ASoC patches appear to have absolutely no relationship with the rest of the series. Is that the case or is there some dependency I'm missing?
Not outside of all being Tegra specific stuff, no. If you prefer I may send them as a separate series.
Quoted 15 lines · Mark Brown
Quoted 4 lines · Marcel Ziswiler
Marcel Ziswiler (9):
ARM: tegra: fix simple-panel compatibles
ARM: tegra: apalis-tk1/colibri_t20/t30: eval/iris: fix regulator
gpioQuoted 8 lines
enable
ARM: tegra:colibri_t20: reorder pmic properties
ARM: tegra: apalis-tk1: further regulator clean-up
ARM: tegra: apalis_t30/tk1: annotate power I2C being on-module
ARM: tegra:colibri_t30: further regulator clean-up
ARM: tegra:apalis_t30: further regulator clean-up
ASoC:tegra_sgtl5000: fixdevice_noderefcounting
ASoC:tegra_sgtl5000: fix platform name vs.of_nodeassignement
Quoted 3 lines
These ASoC patches appear to have absolutely no relationship with the rest of the series. Is that the case or is there some dependency I'm missing?
Not outside of all being Tegra specific stuff, no. If you prefer I may send them as a separate series.
Mark Brown
maintainerQuoted 8 lines · Marcel Ziswiler
Quoted 3 lines · Mark Brown
These ASoC patches appear to have absolutely no relationship with the rest of the series. Is that the case or is there some dependency I'm missing?
Not outside of all being Tegra specific stuff, no. If you prefer I may send them as a separate series.
It's fine this time but do try to avoid doing that please - if things aren't related just send them separately. Bundling them up into a series creates confusion about dependencis and can result in things getting held up due to problems in the unrelated bits of the series.