linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: uniphier: add fixed regulators for audio codec
@ 2018-02-28  9:32 Katsuhiro Suzuki
  2018-03-06  1:33 ` Masahiro Yamada
  0 siblings, 1 reply; 2+ messages in thread
From: Katsuhiro Suzuki @ 2018-02-28  9:32 UTC (permalink / raw)
  To: linux-arm-kernel, Masahiro Yamada, devicetree
  Cc: Masami Hiramatsu, Jassi Brar, linux-kernel, Katsuhiro Suzuki

This patch adds regulators that have fixed voltage for audio codec
on UniPhier LD11/20 Global boards. This patch fixes warnings about
TAS57xx audio codec such as "tas571x 0-001b: 0-001b supply AVDD
not found, using dummy regulator".

Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
---
 .../boot/dts/socionext/uniphier-ld11-global.dts     | 21 +++++++++++++++++++++
 .../boot/dts/socionext/uniphier-ld20-global.dts     | 21 +++++++++++++++++++++
 2 files changed, 42 insertions(+)

diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts b/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts
index 6bfd1ccd1f71..71eb46a5bd48 100644
--- a/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts
+++ b/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts
@@ -39,6 +39,20 @@
 		reg = <0 0x80000000 0 0x40000000>;
 	};
 
+	dvdd_reg: reg-fixed {
+		compatible = "regulator-fixed";
+		regulator-name = "DVDD";
+                regulator-min-microvolt = <3300000>;
+                regulator-max-microvolt = <3300000>;
+	};
+
+	amp_vcc_reg: reg-fixed {
+		compatible = "regulator-fixed";
+		regulator-name = "AMP_VCC";
+                regulator-min-microvolt = <24000000>;
+                regulator-max-microvolt = <24000000>;
+	};
+
 	sound {
 		compatible = "audio-graph-card";
 		label = "UniPhier LD11";
@@ -104,6 +118,13 @@
 		pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 5) GPIO_ACTIVE_LOW>;
 		#sound-dai-cells = <0>;
 
+		AVDD-supply = <&dvdd_reg>;
+		DVDD-supply = <&dvdd_reg>;
+		PVDD_A-supply = <&amp_vcc_reg>;
+		PVDD_B-supply = <&amp_vcc_reg>;
+		PVDD_C-supply = <&amp_vcc_reg>;
+		PVDD_D-supply = <&amp_vcc_reg>;
+
 		port@0 {
 			tas_speaker: endpoint {
 				remote-endpoint = <&i2s_hpcmout1>;
diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts b/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts
index 57b1e36b5eaf..eed6346497d2 100644
--- a/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts
+++ b/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts
@@ -39,6 +39,20 @@
 		reg = <0 0x80000000 0 0xc0000000>;
 	};
 
+	dvdd_reg: reg-fixed {
+		compatible = "regulator-fixed";
+		regulator-name = "DVDD";
+                regulator-min-microvolt = <3300000>;
+                regulator-max-microvolt = <3300000>;
+	};
+
+	amp_vcc_reg: reg-fixed {
+		compatible = "regulator-fixed";
+		regulator-name = "AMP_VCC";
+                regulator-min-microvolt = <12000000>;
+                regulator-max-microvolt = <12000000>;
+	};
+
 	sound {
 		compatible = "audio-graph-card";
 		label = "UniPhier LD20";
@@ -104,6 +118,13 @@
 		pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 1) GPIO_ACTIVE_LOW>;
 		#sound-dai-cells = <0>;
 
+		AVDD-supply = <&dvdd_reg>;
+		DVDD-supply = <&dvdd_reg>;
+		PVDD_A-supply = <&amp_vcc_reg>;
+		PVDD_B-supply = <&amp_vcc_reg>;
+		PVDD_C-supply = <&amp_vcc_reg>;
+		PVDD_D-supply = <&amp_vcc_reg>;
+
 		port@0 {
 			tas_speaker: endpoint {
 				remote-endpoint = <&i2s_hpcmout1>;
-- 
2.16.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] arm64: dts: uniphier: add fixed regulators for audio codec
  2018-02-28  9:32 [PATCH] arm64: dts: uniphier: add fixed regulators for audio codec Katsuhiro Suzuki
@ 2018-03-06  1:33 ` Masahiro Yamada
  0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2018-03-06  1:33 UTC (permalink / raw)
  To: Katsuhiro Suzuki
  Cc: linux-arm-kernel, devicetree, Masami Hiramatsu, Jassi Brar,
	Linux Kernel Mailing List

2018-02-28 18:32 GMT+09:00 Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>:
> This patch adds regulators that have fixed voltage for audio codec
> on UniPhier LD11/20 Global boards. This patch fixes warnings about
> TAS57xx audio codec such as "tas571x 0-001b: 0-001b supply AVDD
> not found, using dummy regulator".
>
> Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>

Applied to linux-uniphier.  Thanks!



-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-06  1:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-28  9:32 [PATCH] arm64: dts: uniphier: add fixed regulators for audio codec Katsuhiro Suzuki
2018-03-06  1:33 ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).