2019-12-12 15:00:41

by Guillaume LA ROQUE

[permalink] [raw]
Subject: [PATCH 0/3] Add support of CEC wakeup on Amlogic G12 and SM1 SoCs

this patchset add support of CEC wakeup.
We need to set logical address and activate some options in registers before going in suspend.
Registers address and options values come from amlogic driver.

Guillaume La Roque (3):
media: dt-bindings: media: meson-ao-cec: Add support of ao-sysctrl
syscon
arm64: dts: meson-g12g12: add syscon phandle in cec node
media: platform: meson-ao-cec-g12a: add wakeup support

.../media/amlogic,meson-gx-ao-cec.yaml | 4 +++
.../boot/dts/amlogic/meson-g12-common.dtsi | 1 +
drivers/media/platform/meson/ao-cec-g12a.c | 33 +++++++++++++++++++
3 files changed, 38 insertions(+)

--
2.17.1


2019-12-12 15:01:30

by Guillaume LA ROQUE

[permalink] [raw]
Subject: [PATCH 2/3] arm64: dts: meson-g12g12: add syscon phandle in cec node

add syscon phandle in cec node to activate wakeup support

Signed-off-by: Guillaume La Roque <[email protected]>
---
arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
index 7fabc8d9654a..98c6a1d1d035 100644
--- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
@@ -1899,6 +1899,7 @@
interrupts = <GIC_SPI 203 IRQ_TYPE_EDGE_RISING>;
clocks = <&clkc_AO CLKID_AO_CTS_OSCIN>;
clock-names = "oscin";
+ amlogic,ao-sysctrl = <&rti>;
status = "disabled";
};

--
2.17.1

2019-12-12 19:40:30

by Kevin Hilman

[permalink] [raw]
Subject: Re: [PATCH 0/3] Add support of CEC wakeup on Amlogic G12 and SM1 SoCs

Guillaume La Roque <[email protected]> writes:

> this patchset add support of CEC wakeup.
> We need to set logical address and activate some options in registers before going in suspend.
> Registers address and options values come from amlogic driver.

Tested-by: Kevin Hilman <[email protected]>