* [PATCH 0/6] ARM64: dts: meson-axg: updates
@ 2018-07-16 10:11 Jerome Brunet
2018-07-16 10:11 ` [PATCH 1/6] ARM64: dts: meson-axg: remove vddio_ao18 from SoC dtsi Jerome Brunet
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Jerome Brunet @ 2018-07-16 10:11 UTC (permalink / raw)
To: Kevin Hilman, Carlo Caione
Cc: Jerome Brunet, linux-amlogic, linux-arm-kernel, linux-kernel, devicetree
This patchset groups several updates targeted on amlogic's AXG
device tree. Patch 1, 2 and 6 had been posted previously but I thought
it would be more convenient for Kevin to get them as a single series.
Jerome Brunet (6):
ARM64: dts: meson-axg: remove vddio_ao18 from SoC dtsi
ARM64: dts: meson-axg: add adc buttons the S400
ARM64: dts: meson-axg: remove spdif out from gpio a7
ARM64: dts: meson-axg: add spdif input pins
ARM64: dts: meson-axg: add pdm pins
ARM64: dts: meson-axg: add the audio clock controller
arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 44 +++++++++
arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 127 ++++++++++++++++++++++---
2 files changed, 157 insertions(+), 14 deletions(-)
--
2.14.4
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/6] ARM64: dts: meson-axg: remove vddio_ao18 from SoC dtsi
2018-07-16 10:11 [PATCH 0/6] ARM64: dts: meson-axg: updates Jerome Brunet
@ 2018-07-16 10:11 ` Jerome Brunet
2018-07-16 10:11 ` [PATCH 2/6] ARM64: dts: meson-axg: add adc buttons the S400 Jerome Brunet
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Jerome Brunet @ 2018-07-16 10:11 UTC (permalink / raw)
To: Kevin Hilman, Carlo Caione
Cc: Jerome Brunet, linux-amlogic, linux-arm-kernel, linux-kernel, devicetree
Regulator should not be defined inside the SoC dtsi file.
vddio_ao18 is already defined in the S400 board dts anyway.
Fixes: e1969df34357 ("ARM64: dts: meson-axg: add saradc support")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 7 -------
1 file changed, 7 deletions(-)
diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
index c87bafc4b101..08e5f431c025 100644
--- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
@@ -91,13 +91,6 @@
method = "smc";
};
- vddio_ao18: regulator-vddio_ao18 {
- compatible = "regulator-fixed";
- regulator-name = "VDDIO_AO18";
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- };
-
timer {
compatible = "arm,armv8-timer";
interrupts = <GIC_PPI 13
--
2.14.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/6] ARM64: dts: meson-axg: add adc buttons the S400
2018-07-16 10:11 [PATCH 0/6] ARM64: dts: meson-axg: updates Jerome Brunet
2018-07-16 10:11 ` [PATCH 1/6] ARM64: dts: meson-axg: remove vddio_ao18 from SoC dtsi Jerome Brunet
@ 2018-07-16 10:11 ` Jerome Brunet
2018-07-16 10:11 ` [PATCH 3/6] ARM64: dts: meson-axg: remove spdif out from gpio a7 Jerome Brunet
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Jerome Brunet @ 2018-07-16 10:11 UTC (permalink / raw)
To: Kevin Hilman, Carlo Caione
Cc: Jerome Brunet, linux-amlogic, linux-arm-kernel, linux-kernel, devicetree
Add the 6 adc buttons of the amlogic S400
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 44 ++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
index f389f84be2e2..fd90fa4a282c 100644
--- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
@@ -6,11 +6,55 @@
/dts-v1/;
#include "meson-axg.dtsi"
+#include <dt-bindings/input/input.h>
/ {
compatible = "amlogic,s400", "amlogic,a113d", "amlogic,meson-axg";
model = "Amlogic Meson AXG S400 Development Board";
+ adc_keys {
+ compatible = "adc-keys";
+ io-channels = <&saradc 0>;
+ io-channel-names = "buttons";
+ keyup-threshold-microvolt = <1800000>;
+
+ button-next {
+ label = "Next";
+ linux,code = <KEY_NEXT>;
+ press-threshold-microvolt = <1116000>; /* 62% */
+ };
+
+ button-prev {
+ label = "Previous";
+ linux,code = <KEY_PREVIOUS>;
+ press-threshold-microvolt = <900000>; /* 50% */
+ };
+
+ button-wifi {
+ label = "Wifi";
+ linux,code = <KEY_WLAN>;
+ press-threshold-microvolt = <684000>; /* 38% */
+ };
+
+ button-up {
+ label = "Volume Up";
+ linux,code = <KEY_VOLUMEUP>;
+ press-threshold-microvolt = <468000>; /* 26% */
+ };
+
+ button-down {
+ label = "Volume Down";
+ linux,code = <KEY_VOLUMEDOWN>;
+ press-threshold-microvolt = <252000>; /* 14% */
+ };
+
+ button-voice {
+ label = "Voice";
+ linux,code = <KEY_VOICECOMMAND>;
+ press-threshold-microvolt = <0>; /* 0% */
+ };
+ };
+
aliases {
serial0 = &uart_AO;
serial1 = &uart_A;
--
2.14.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/6] ARM64: dts: meson-axg: remove spdif out from gpio a7
2018-07-16 10:11 [PATCH 0/6] ARM64: dts: meson-axg: updates Jerome Brunet
2018-07-16 10:11 ` [PATCH 1/6] ARM64: dts: meson-axg: remove vddio_ao18 from SoC dtsi Jerome Brunet
2018-07-16 10:11 ` [PATCH 2/6] ARM64: dts: meson-axg: add adc buttons the S400 Jerome Brunet
@ 2018-07-16 10:11 ` Jerome Brunet
2018-07-16 10:11 ` [PATCH 4/6] ARM64: dts: meson-axg: add spdif input pins Jerome Brunet
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Jerome Brunet @ 2018-07-16 10:11 UTC (permalink / raw)
To: Kevin Hilman, Carlo Caione
Cc: Jerome Brunet, linux-amlogic, linux-arm-kernel, linux-kernel, devicetree
Spdif out in not multiplexed on gpio A7 (spdif in is)
Remove this entry to fix the problem.
Fixes: 53c03b0aff36 ("ARM64: dts: meson-axg: add spdif output pins")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 7 -------
1 file changed, 7 deletions(-)
diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
index 08e5f431c025..cc908c9b5306 100644
--- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
@@ -575,13 +575,6 @@
};
};
- spdif_out_a7_pins: spdif_out_a7 {
- mux {
- groups = "spdif_out_a7";
- function = "spdif_out";
- };
- };
-
spdif_out_a11_pins: spdif_out_a11 {
mux {
groups = "spdif_out_a11";
--
2.14.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 4/6] ARM64: dts: meson-axg: add spdif input pins
2018-07-16 10:11 [PATCH 0/6] ARM64: dts: meson-axg: updates Jerome Brunet
` (2 preceding siblings ...)
2018-07-16 10:11 ` [PATCH 3/6] ARM64: dts: meson-axg: remove spdif out from gpio a7 Jerome Brunet
@ 2018-07-16 10:11 ` Jerome Brunet
2018-07-16 10:11 ` [PATCH 5/6] ARM64: dts: meson-axg: add pdm pins Jerome Brunet
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Jerome Brunet @ 2018-07-16 10:11 UTC (permalink / raw)
To: Kevin Hilman, Carlo Caione
Cc: Jerome Brunet, linux-amlogic, linux-arm-kernel, linux-kernel, devicetree
Add spdif input pin definitions to meson AXG
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 35 ++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
index cc908c9b5306..277958ff516a 100644
--- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
@@ -561,6 +561,41 @@
};
};
+ spdif_in_z_pins: spdif_in_z {
+ mux {
+ groups = "spdif_in_z";
+ function = "spdif_in";
+ };
+ };
+
+ spdif_in_a1_pins: spdif_in_a1 {
+ mux {
+ groups = "spdif_in_a1";
+ function = "spdif_in";
+ };
+ };
+
+ spdif_in_a7_pins: spdif_in_a7 {
+ mux {
+ groups = "spdif_in_a7";
+ function = "spdif_in";
+ };
+ };
+
+ spdif_in_a19_pins: spdif_in_a19 {
+ mux {
+ groups = "spdif_in_a19";
+ function = "spdif_in";
+ };
+ };
+
+ spdif_in_a20_pins: spdif_in_a20 {
+ mux {
+ groups = "spdif_in_a20";
+ function = "spdif_in";
+ };
+ };
+
spdif_out_z_pins: spdif_out_z {
mux {
groups = "spdif_out_z";
--
2.14.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 5/6] ARM64: dts: meson-axg: add pdm pins
2018-07-16 10:11 [PATCH 0/6] ARM64: dts: meson-axg: updates Jerome Brunet
` (3 preceding siblings ...)
2018-07-16 10:11 ` [PATCH 4/6] ARM64: dts: meson-axg: add spdif input pins Jerome Brunet
@ 2018-07-16 10:11 ` Jerome Brunet
2018-07-16 10:11 ` [PATCH 6/6] ARM64: dts: meson-axg: add the audio clock controller Jerome Brunet
2018-07-17 15:41 ` [PATCH 0/6] ARM64: dts: meson-axg: updates Kevin Hilman
6 siblings, 0 replies; 8+ messages in thread
From: Jerome Brunet @ 2018-07-16 10:11 UTC (permalink / raw)
To: Kevin Hilman, Carlo Caione
Cc: Jerome Brunet, linux-amlogic, linux-arm-kernel, linux-kernel, devicetree
Add pdm input pin definitions to meson AXG
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 42 ++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
index 277958ff516a..461be4a35f92 100644
--- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
@@ -477,6 +477,48 @@
};
};
+ pdm_dclk_a14_pins: pdm_dclk_a14 {
+ mux {
+ groups = "pdm_dclk_a14";
+ function = "pdm";
+ };
+ };
+
+ pdm_dclk_a19_pins: pdm_dclk_a19 {
+ mux {
+ groups = "pdm_dclk_a19";
+ function = "pdm";
+ };
+ };
+
+ pdm_din0_pins: pdm_din0 {
+ mux {
+ groups = "pdm_din0";
+ function = "pdm";
+ };
+ };
+
+ pdm_din1_pins: pdm_din1 {
+ mux {
+ groups = "pdm_din1";
+ function = "pdm";
+ };
+ };
+
+ pdm_din2_pins: pdm_din2 {
+ mux {
+ groups = "pdm_din2";
+ function = "pdm";
+ };
+ };
+
+ pdm_din3_pins: pdm_din3 {
+ mux {
+ groups = "pdm_din3";
+ function = "pdm";
+ };
+ };
+
pwm_a_a_pins: pwm_a_a {
mux {
groups = "pwm_a_a";
--
2.14.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 6/6] ARM64: dts: meson-axg: add the audio clock controller
2018-07-16 10:11 [PATCH 0/6] ARM64: dts: meson-axg: updates Jerome Brunet
` (4 preceding siblings ...)
2018-07-16 10:11 ` [PATCH 5/6] ARM64: dts: meson-axg: add pdm pins Jerome Brunet
@ 2018-07-16 10:11 ` Jerome Brunet
2018-07-17 15:41 ` [PATCH 0/6] ARM64: dts: meson-axg: updates Kevin Hilman
6 siblings, 0 replies; 8+ messages in thread
From: Jerome Brunet @ 2018-07-16 10:11 UTC (permalink / raw)
To: Kevin Hilman, Carlo Caione
Cc: Jerome Brunet, linux-amlogic, linux-arm-kernel, linux-kernel, devicetree
Add the audio clock controller which is part of the audio bus
This controller takes 8 input plls, and the usual clock gate, from the
main clock controller. It provides the clocs for the all the devices of
the audio subsystem, such as tdms, spdif, pdm, etc.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 36 ++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
index 461be4a35f92..6adc8d3dbf0a 100644
--- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
@@ -6,6 +6,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/clock/axg-audio-clkc.h>
#include <dt-bindings/clock/axg-clkc.h>
#include <dt-bindings/clock/axg-aoclkc.h>
#include <dt-bindings/gpio/meson-axg-gpio.h>
@@ -155,6 +156,41 @@
};
};
+ audio: bus@ff642000 {
+ compatible = "simple-bus";
+ reg = <0x0 0xff642000 0x0 0x2000>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges = <0x0 0x0 0x0 0xff642000 0x0 0x2000>;
+
+ clkc_audio: clock-controller@0 {
+ compatible = "amlogic,axg-audio-clkc";
+ reg = <0x0 0x0 0x0 0xb4>;
+ #clock-cells = <1>;
+
+ clocks = <&clkc CLKID_AUDIO>,
+ <&clkc CLKID_MPLL0>,
+ <&clkc CLKID_MPLL1>,
+ <&clkc CLKID_MPLL2>,
+ <&clkc CLKID_MPLL3>,
+ <&clkc CLKID_HIFI_PLL>,
+ <&clkc CLKID_FCLK_DIV3>,
+ <&clkc CLKID_FCLK_DIV4>,
+ <&clkc CLKID_GP0_PLL>;
+ clock-names = "pclk",
+ "mst_in0",
+ "mst_in1",
+ "mst_in2",
+ "mst_in3",
+ "mst_in4",
+ "mst_in5",
+ "mst_in6",
+ "mst_in7";
+
+ resets = <&reset RESET_AUDIO>;
+ };
+ };
+
cbus: bus@ffd00000 {
compatible = "simple-bus";
reg = <0x0 0xffd00000 0x0 0x25000>;
--
2.14.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 0/6] ARM64: dts: meson-axg: updates
2018-07-16 10:11 [PATCH 0/6] ARM64: dts: meson-axg: updates Jerome Brunet
` (5 preceding siblings ...)
2018-07-16 10:11 ` [PATCH 6/6] ARM64: dts: meson-axg: add the audio clock controller Jerome Brunet
@ 2018-07-17 15:41 ` Kevin Hilman
6 siblings, 0 replies; 8+ messages in thread
From: Kevin Hilman @ 2018-07-17 15:41 UTC (permalink / raw)
To: Jerome Brunet
Cc: Carlo Caione, linux-amlogic, linux-arm-kernel, linux-kernel, devicetree
Jerome Brunet <jbrunet@baylibre.com> writes:
> This patchset groups several updates targeted on amlogic's AXG
> device tree. Patch 1, 2 and 6 had been posted previously but I thought
> it would be more convenient for Kevin to get them as a single series.
>
> Jerome Brunet (6):
> ARM64: dts: meson-axg: remove vddio_ao18 from SoC dtsi
> ARM64: dts: meson-axg: add adc buttons the S400
> ARM64: dts: meson-axg: remove spdif out from gpio a7
> ARM64: dts: meson-axg: add spdif input pins
> ARM64: dts: meson-axg: add pdm pins
Applied to v4.19/dt64, queued for the first DT64 pull to arm-soc.
> ARM64: dts: meson-axg: add the audio clock controller
I'll queue this for a follow-up pull with the dependency tag from the
clock tree.
Kevin
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2018-07-17 15:41 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-16 10:11 [PATCH 0/6] ARM64: dts: meson-axg: updates Jerome Brunet
2018-07-16 10:11 ` [PATCH 1/6] ARM64: dts: meson-axg: remove vddio_ao18 from SoC dtsi Jerome Brunet
2018-07-16 10:11 ` [PATCH 2/6] ARM64: dts: meson-axg: add adc buttons the S400 Jerome Brunet
2018-07-16 10:11 ` [PATCH 3/6] ARM64: dts: meson-axg: remove spdif out from gpio a7 Jerome Brunet
2018-07-16 10:11 ` [PATCH 4/6] ARM64: dts: meson-axg: add spdif input pins Jerome Brunet
2018-07-16 10:11 ` [PATCH 5/6] ARM64: dts: meson-axg: add pdm pins Jerome Brunet
2018-07-16 10:11 ` [PATCH 6/6] ARM64: dts: meson-axg: add the audio clock controller Jerome Brunet
2018-07-17 15:41 ` [PATCH 0/6] ARM64: dts: meson-axg: 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).