From: Marcel Ziswiler <marcel@ziswiler.com>
To: devicetree@vger.kernel.org, linux-tegra@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: Marcel Ziswiler <marcel.ziswiler@toradex.com>,
Thierry Reding <thierry.reding@gmail.com>,
Jonathan Hunter <jonathanh@nvidia.com>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>
Subject: [PATCH 06/15] ARM: tegra: apalis-tk1: add missing regulators
Date: Tue, 24 Jul 2018 12:43:00 +0200 [thread overview]
Message-ID: <20180724104309.21741-7-marcel@ziswiler.com> (raw)
In-Reply-To: <20180724104309.21741-1-marcel@ziswiler.com>
From: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Add missing regulators:
- reg_module_3v3_audio being VDDA supply of SGTL5000
- VDDD supply of SGTL5000 actually being reg_1v8_vio
- TMP451 temperature sensor vcc supply being reg_module_3v3
- usb3-0 vbus supply being reg_usbh_vbus
- usb3-1 vbus supply being reg_usbo1_vbus
- carrier board HDMI supply being reg_5v0
- carrier board sata target 5v supply being reg_5v0
- carrier board sata target 12v supply being reg_12v0
- carrier board reg_3v3 actually being backlight power supply
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
---
arch/arm/boot/dts/tegra124-apalis-eval.dts | 18 ++++++++++++++++++
arch/arm/boot/dts/tegra124-apalis-v1.2-eval.dts | 18 ++++++++++++++++++
arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi | 14 +++++++++++++-
arch/arm/boot/dts/tegra124-apalis.dtsi | 14 +++++++++++++-
4 files changed, 62 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/tegra124-apalis-eval.dts b/arch/arm/boot/dts/tegra124-apalis-eval.dts
index a6ad759dddb4..c2e918d345de 100644
--- a/arch/arm/boot/dts/tegra124-apalis-eval.dts
+++ b/arch/arm/boot/dts/tegra124-apalis-eval.dts
@@ -72,6 +72,7 @@
host1x@50000000 {
hdmi@54280000 {
status = "okay";
+ hdmi-supply = <®_5v0>;
};
};
@@ -164,6 +165,8 @@
/* Apalis Serial ATA */
sata@70020000 {
status = "okay";
+ target-5v-supply = <®_5v0>;
+ target-12v-supply = <®_12v0>;
};
hda@70030000 {
@@ -230,6 +233,7 @@
default-brightness-level = <6>;
/* BKL1_ON */
enable-gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_HIGH>;
+ power-supply = <®_3v3>;
};
gpio-keys {
@@ -244,6 +248,13 @@
};
};
+ reg_3v3: regulator-3v3 {
+ compatible = "regulator-fixed";
+ regulator-name = "3.3V_SW";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ };
+
reg_5v0: regulator-5v0 {
compatible = "regulator-fixed";
regulator-name = "5V_SW";
@@ -251,6 +262,13 @@
regulator-max-microvolt = <5000000>;
};
+ reg_12v0: regulator-12v0 {
+ compatible = "regulator-fixed";
+ regulator-name = "12V_SW";
+ regulator-min-microvolt = <12000000>;
+ regulator-max-microvolt = <12000000>;
+ };
+
/* USBO1_EN */
reg_usbo1_vbus: regulator-usbo1-vbus {
compatible = "regulator-fixed";
diff --git a/arch/arm/boot/dts/tegra124-apalis-v1.2-eval.dts b/arch/arm/boot/dts/tegra124-apalis-v1.2-eval.dts
index 8a8d5fa0ecd1..eebcc013771e 100644
--- a/arch/arm/boot/dts/tegra124-apalis-v1.2-eval.dts
+++ b/arch/arm/boot/dts/tegra124-apalis-v1.2-eval.dts
@@ -36,6 +36,7 @@
host1x@50000000 {
hdmi@54280000 {
status = "okay";
+ hdmi-supply = <®_5v0>;
};
};
@@ -129,6 +130,8 @@
/* Apalis Serial ATA */
sata@70020000 {
status = "okay";
+ target-5v-supply = <®_5v0>;
+ target-12v-supply = <®_12v0>;
};
hda@70030000 {
@@ -195,6 +198,7 @@
default-brightness-level = <6>;
/* BKL1_ON */
enable-gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_HIGH>;
+ power-supply = <®_3v3>;
};
gpio-keys {
@@ -209,6 +213,13 @@
};
};
+ reg_3v3: regulator-3v3 {
+ compatible = "regulator-fixed";
+ regulator-name = "3.3V_SW";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ };
+
reg_5v0: regulator-5v0 {
compatible = "regulator-fixed";
regulator-name = "5V_SW";
@@ -216,6 +227,13 @@
regulator-max-microvolt = <5000000>;
};
+ reg_12v0: regulator-12v0 {
+ compatible = "regulator-fixed";
+ regulator-name = "12V_SW";
+ regulator-min-microvolt = <12000000>;
+ regulator-max-microvolt = <12000000>;
+ };
+
/* USBO1_EN */
reg_usbo1_vbus: regulator-usbo1-vbus {
compatible = "regulator-fixed";
diff --git a/arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi b/arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi
index 8323fddceed8..a8dcf960e44f 100644
--- a/arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi
+++ b/arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi
@@ -1565,7 +1565,8 @@
sgtl5000: codec@a {
compatible = "fsl,sgtl5000";
reg = <0x0a>;
- VDDA-supply = <®_module_3v3>;
+ VDDA-supply = <®_module_3v3_audio>;
+ VDDD-supply = <®_1v8_vddio>;
VDDIO-supply = <®_1v8_vddio>;
clocks = <&tegra_car TEGRA124_CLK_EXTERN1>;
};
@@ -1754,6 +1755,7 @@
interrupt-parent = <&gpio>;
interrupts = <TEGRA_GPIO(I, 6) IRQ_TYPE_LEVEL_LOW>;
#thermal-sensor-cells = <1>;
+ vcc-supply = <®_module_3v3>;
};
};
@@ -1902,11 +1904,13 @@
usb3-0 {
status = "okay";
nvidia,usb2-companion = <2>;
+ vbus-supply = <®_usbh_vbus>;
};
usb3-1 {
status = "okay";
nvidia,usb2-companion = <0>;
+ vbus-supply = <®_usbo1_vbus>;
};
};
};
@@ -1989,6 +1993,14 @@
vin-supply = <®_3v3_mxm>;
};
+ reg_module_3v3_audio: regulator-module-3v3-audio {
+ compatible = "regulator-fixed";
+ regulator-name = "+V3.3_AUDIO_AVDD_S";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
+
sound {
compatible = "toradex,tegra-audio-sgtl5000-apalis_tk1",
"nvidia,tegra-audio-sgtl5000";
diff --git a/arch/arm/boot/dts/tegra124-apalis.dtsi b/arch/arm/boot/dts/tegra124-apalis.dtsi
index 4ad14c7a64db..b2aca71f96e7 100644
--- a/arch/arm/boot/dts/tegra124-apalis.dtsi
+++ b/arch/arm/boot/dts/tegra124-apalis.dtsi
@@ -1594,7 +1594,8 @@
sgtl5000: codec@a {
compatible = "fsl,sgtl5000";
reg = <0x0a>;
- VDDA-supply = <®_module_3v3>;
+ VDDA-supply = <®_module_3v3_audio>;
+ VDDD-supply = <®_1v8_vddio>;
VDDIO-supply = <®_1v8_vddio>;
clocks = <&tegra_car TEGRA124_CLK_EXTERN1>;
};
@@ -1783,6 +1784,7 @@
interrupt-parent = <&gpio>;
interrupts = <TEGRA_GPIO(I, 6) IRQ_TYPE_LEVEL_LOW>;
#thermal-sensor-cells = <1>;
+ vcc-supply = <®_module_3v3>;
};
};
@@ -1931,11 +1933,13 @@
usb3-0 {
status = "okay";
nvidia,usb2-companion = <2>;
+ vbus-supply = <®_usbh_vbus>;
};
usb3-1 {
status = "okay";
nvidia,usb2-companion = <0>;
+ vbus-supply = <®_usbo1_vbus>;
};
};
};
@@ -2018,6 +2022,14 @@
vin-supply = <®_3v3_mxm>;
};
+ reg_module_3v3_audio: regulator-module-3v3-audio {
+ compatible = "regulator-fixed";
+ regulator-name = "+V3.3_AUDIO_AVDD_S";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
+
sound {
compatible = "toradex,tegra-audio-sgtl5000-apalis_tk1",
"nvidia,tegra-audio-sgtl5000";
--
2.14.4
next prev parent reply other threads:[~2018-07-24 10:44 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-24 10:42 [PATCH 00/15] ARM: dts: tegra: apalis-tk1: major revamp Marcel Ziswiler
2018-07-24 10:42 ` [PATCH 01/15] ARM: tegra: apalis-tk1: add local-mac-address property Marcel Ziswiler
2018-07-24 10:42 ` [PATCH 02/15] ARM: tegra: apalis-tk1: reorder pcie properties Marcel Ziswiler
2018-07-26 7:19 ` Stefan Agner
2018-07-24 10:42 ` [PATCH 03/15] ARM: tegra: apalis-tk1: reorder host1x/hdmi properties Marcel Ziswiler
2018-07-24 10:42 ` [PATCH 04/15] ARM: tegra: apalis-tk1: reorder padctl properties Marcel Ziswiler
2018-07-24 10:42 ` [PATCH 05/15] ARM: tegra: apalis-tk1: regulator clean-up Marcel Ziswiler
2018-07-24 10:43 ` Marcel Ziswiler [this message]
2018-07-24 10:43 ` [PATCH 07/15] ARM: tegra: apalis-tk1: drop unused pinmux label Marcel Ziswiler
2018-07-24 10:43 ` [PATCH 08/15] ARM: tegra: apalis-tk1: white-space clean-up Marcel Ziswiler
2018-07-24 10:43 ` [PATCH 09/15] ARM: tegra: apalis-tk1: reorder backlight properties Marcel Ziswiler
2018-07-24 10:43 ` [PATCH 10/15] ARM: tegra: apalis-tk1: add proper emmc vmmc and vqmmc supplies Marcel Ziswiler
2018-07-24 10:43 ` [PATCH 11/15] ARM: tegra: apalis-tk1: enable emmc ddr52 mode Marcel Ziswiler
2018-07-24 10:43 ` [PATCH 12/15] ARM: tegra: apalis-tk1: add toradex,apalis-tk1-v1.2 compatible Marcel Ziswiler
2018-07-31 21:45 ` Rob Herring
2018-07-24 10:43 ` [PATCH 13/15] ARM: tegra: apalis-tk1: fix pcie switch vendor compatible Marcel Ziswiler
2018-07-26 7:34 ` Stefan Agner
2018-07-24 10:43 ` [PATCH 14/15] ARM: tegra: apalis-tk1: reorder cpu dfll clock properties Marcel Ziswiler
2018-07-24 10:43 ` [PATCH 15/15] ARM: tegra: apalis-tk1: reorder SD card properties Marcel Ziswiler
2018-07-24 12:24 ` [PATCH 00/15] ARM: dts: tegra: apalis-tk1: major revamp Marcel Ziswiler
2018-07-24 12:44 ` Dmitry Osipenko
2018-07-24 14:16 ` Marcel Ziswiler
2018-07-24 14:31 ` Dmitry Osipenko
2018-07-24 14:45 ` Marcel Ziswiler
2018-07-24 14:48 ` Dmitry Osipenko
2018-07-24 15:47 ` Peter Geis
2018-07-24 17:03 ` Dmitry Osipenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180724104309.21741-7-marcel@ziswiler.com \
--to=marcel@ziswiler.com \
--cc=devicetree@vger.kernel.org \
--cc=jonathanh@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=marcel.ziswiler@toradex.com \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=thierry.reding@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®