linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ARM64: dts: meson-axg: first round of daughter card updates
@ 2018-06-28  9:50 Jerome Brunet
  2018-06-28  9:50 ` [PATCH 1/3] ARM64: dts: meson-axg: add s400 microphone card leds Jerome Brunet
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jerome Brunet @ 2018-06-28  9:50 UTC (permalink / raw)
  To: Kevin Hilman, Carlo Caione
  Cc: Jerome Brunet, devicetree, linux-arm-kernel, linux-amlogic, linux-kernel

This patchset adds a speaker amplifier and some leds present on daughter
cards which are connected to the s400 board.

Kevin, please note that the bindings documentation update for the tas5707
has been queued for next in Mark Brown's ASoC tree. Not having it won't
break anything but you may get checkpatch warning.

Jerome Brunet (3):
  ARM64: dts: meson-axg: add s400 microphone card leds
  ARM64: dts: meson-axg: add s400 main 12v supply
  ARM64: dts: meson-axg: add s400 speaker amplifier

 arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 62 ++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)

-- 
2.14.4


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

* [PATCH 1/3] ARM64: dts: meson-axg: add s400 microphone card leds
  2018-06-28  9:50 [PATCH 0/3] ARM64: dts: meson-axg: first round of daughter card updates Jerome Brunet
@ 2018-06-28  9:50 ` Jerome Brunet
  2018-06-28  9:50 ` [PATCH 2/3] ARM64: dts: meson-axg: add s400 main 12v supply Jerome Brunet
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Jerome Brunet @ 2018-06-28  9:50 UTC (permalink / raw)
  To: Kevin Hilman, Carlo Caione
  Cc: Jerome Brunet, devicetree, linux-arm-kernel, linux-amlogic, linux-kernel

The microphone card connected to the s400 has 6 leds controlled
through an additional i2c gpio controller.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
 arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 42 ++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
index dff9b15eb3c0..d926f8956db8 100644
--- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
@@ -62,6 +62,40 @@
 		clock-frequency = <32768>;
 		pwms = <&pwm_ab 0 30518 0>; /* PWM_A at 32.768KHz */
 	};
+
+	speaker-leds {
+		compatible = "gpio-leds";
+
+		aled1 {
+			label = "speaker:aled1";
+			gpios = <&gpio_speaker 7 0>;
+		};
+
+		aled2 {
+			label = "speaker:aled2";
+			gpios = <&gpio_speaker 6 0>;
+		};
+
+		aled3 {
+			label = "speaker:aled3";
+			gpios = <&gpio_speaker 5 0>;
+		};
+
+		aled4 {
+			label = "speaker:aled4";
+			gpios = <&gpio_speaker 4 0>;
+		};
+
+		aled5 {
+			label = "speaker:aled5";
+			gpios = <&gpio_speaker 3 0>;
+		};
+
+		aled6 {
+			label = "speaker:aled6";
+			gpios = <&gpio_speaker 2 0>;
+		};
+	};
 };
 
 &ethmac {
@@ -112,6 +146,14 @@
 	status = "okay";
 	pinctrl-0 = <&i2c_ao_sck_10_pins>, <&i2c_ao_sda_11_pins>;
 	pinctrl-names = "default";
+
+	gpio_speaker: gpio-controller@1f {
+		compatible = "nxp,pca9557";
+		reg = <0x1f>;
+		gpio-controller;
+		#gpio-cells = <2>;
+		vcc-supply = <&vddao_3v3>;
+	};
 };
 
 &pwm_ab {
-- 
2.14.4


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

* [PATCH 2/3] ARM64: dts: meson-axg: add s400 main 12v supply
  2018-06-28  9:50 [PATCH 0/3] ARM64: dts: meson-axg: first round of daughter card updates Jerome Brunet
  2018-06-28  9:50 ` [PATCH 1/3] ARM64: dts: meson-axg: add s400 microphone card leds Jerome Brunet
@ 2018-06-28  9:50 ` Jerome Brunet
  2018-06-28  9:50 ` [PATCH 3/3] ARM64: dts: meson-axg: add s400 speaker amplifier Jerome Brunet
  2018-07-09 21:46 ` [PATCH 0/3] ARM64: dts: meson-axg: first round of daughter card updates Kevin Hilman
  3 siblings, 0 replies; 5+ messages in thread
From: Jerome Brunet @ 2018-06-28  9:50 UTC (permalink / raw)
  To: Kevin Hilman, Carlo Caione
  Cc: Jerome Brunet, devicetree, linux-arm-kernel, linux-amlogic, linux-kernel

Add a fixed regulator for the main 12v which is the main power supply
of the board.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
 arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
index d926f8956db8..0b655570b7c2 100644
--- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
@@ -16,6 +16,13 @@
 		serial1 = &uart_A;
 	};
 
+	main_12v: regulator-main_12v {
+		compatible = "regulator-fixed";
+		regulator-name = "12V";
+		regulator-min-microvolt = <12000000>;
+		regulator-max-microvolt = <12000000>;
+	};
+
 	vddio_boot: regulator-vddio_boot {
 		compatible = "regulator-fixed";
 		regulator-name = "VDDIO_BOOT";
-- 
2.14.4


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

* [PATCH 3/3] ARM64: dts: meson-axg: add s400 speaker amplifier
  2018-06-28  9:50 [PATCH 0/3] ARM64: dts: meson-axg: first round of daughter card updates Jerome Brunet
  2018-06-28  9:50 ` [PATCH 1/3] ARM64: dts: meson-axg: add s400 microphone card leds Jerome Brunet
  2018-06-28  9:50 ` [PATCH 2/3] ARM64: dts: meson-axg: add s400 main 12v supply Jerome Brunet
@ 2018-06-28  9:50 ` Jerome Brunet
  2018-07-09 21:46 ` [PATCH 0/3] ARM64: dts: meson-axg: first round of daughter card updates Kevin Hilman
  3 siblings, 0 replies; 5+ messages in thread
From: Jerome Brunet @ 2018-06-28  9:50 UTC (permalink / raw)
  To: Kevin Hilman, Carlo Caione
  Cc: Jerome Brunet, devicetree, linux-arm-kernel, linux-amlogic, linux-kernel

Add the first of the two tas5707 power amplifier present on the
speaker daughter board.

According to the schematics of the S400 v3, only I2SB_DIN3 and
I2SC_DOUT2 will be available to the speaker board.

9R83, 9R84 and 9R18 are not connected so no audio signal will be
provided to the second amplifier. There is no point in enabling it
even if it is visible on the i2c bus.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
 arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
index 0b655570b7c2..1927282e8530 100644
--- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
@@ -147,6 +147,19 @@
 	status = "okay";
 	pinctrl-0 = <&i2c1_z_pins>;
 	pinctrl-names = "default";
+
+	speaker_amp1: audio-codec@1b {
+		compatible = "ti,tas5707";
+		reg = <0x1b>;
+		reset-gpios = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_LOW>;
+		#sound-dai-cells = <0>;
+		AVDD-supply = <&vcc_3v3>;
+		DVDD-supply = <&vcc_3v3>;
+		PVDD_A-supply = <&main_12v>;
+		PVDD_B-supply = <&main_12v>;
+		PVDD_C-supply = <&main_12v>;
+		PVDD_D-supply = <&main_12v>;
+	};
 };
 
 &i2c_AO {
-- 
2.14.4


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

* Re: [PATCH 0/3] ARM64: dts: meson-axg: first round of daughter card updates
  2018-06-28  9:50 [PATCH 0/3] ARM64: dts: meson-axg: first round of daughter card updates Jerome Brunet
                   ` (2 preceding siblings ...)
  2018-06-28  9:50 ` [PATCH 3/3] ARM64: dts: meson-axg: add s400 speaker amplifier Jerome Brunet
@ 2018-07-09 21:46 ` Kevin Hilman
  3 siblings, 0 replies; 5+ messages in thread
From: Kevin Hilman @ 2018-07-09 21:46 UTC (permalink / raw)
  To: Jerome Brunet
  Cc: Carlo Caione, devicetree, linux-arm-kernel, linux-amlogic, linux-kernel

Jerome Brunet <jbrunet@baylibre.com> writes:

> This patchset adds a speaker amplifier and some leds present on daughter
> cards which are connected to the s400 board.
>
> Kevin, please note that the bindings documentation update for the tas5707
> has been queued for next in Mark Brown's ASoC tree. Not having it won't
> break anything but you may get checkpatch warning.

Thanks for the warning.

Series applied to v4.19/dt64,

Kevin

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

end of thread, other threads:[~2018-07-09 21:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-28  9:50 [PATCH 0/3] ARM64: dts: meson-axg: first round of daughter card updates Jerome Brunet
2018-06-28  9:50 ` [PATCH 1/3] ARM64: dts: meson-axg: add s400 microphone card leds Jerome Brunet
2018-06-28  9:50 ` [PATCH 2/3] ARM64: dts: meson-axg: add s400 main 12v supply Jerome Brunet
2018-06-28  9:50 ` [PATCH 3/3] ARM64: dts: meson-axg: add s400 speaker amplifier Jerome Brunet
2018-07-09 21:46 ` [PATCH 0/3] ARM64: dts: meson-axg: first round of daughter card updates Kevin Hilman

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).