linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: meson: g12a: add secure monitor and efuse
@ 2019-03-15 13:42 Jerome Brunet
  2019-03-15 13:42 ` [PATCH 1/2] arm64: dts: meson: g12a: add secure monitor Jerome Brunet
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jerome Brunet @ 2019-03-15 13:42 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Jerome Brunet, devicetree, linux-arm-kernel, linux-amlogic, linux-kernel

This patchset adds the secure monitor and efuse to the g12a SoC family.
These are sent together because the secure monitor is required for the
efuse driver to work properly. This is probably something the bindings
should show but it was not designed that way when the secure monitor was
introduced ... something to look at someday.

Jerome Brunet (2):
  arm64: dts: meson: g12a: add secure monitor
  arm64: dts: meson: g12a: add efuse

 arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

-- 
2.20.1


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

* [PATCH 1/2] arm64: dts: meson: g12a: add secure monitor
  2019-03-15 13:42 [PATCH 0/2] arm64: dts: meson: g12a: add secure monitor and efuse Jerome Brunet
@ 2019-03-15 13:42 ` Jerome Brunet
  2019-03-15 13:42 ` [PATCH 2/2] arm64: dts: meson: g12a: add efuse Jerome Brunet
  2019-03-15 20:45 ` [PATCH 0/2] arm64: dts: meson: g12a: add secure monitor and efuse Kevin Hilman
  2 siblings, 0 replies; 4+ messages in thread
From: Jerome Brunet @ 2019-03-15 13:42 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Jerome Brunet, devicetree, linux-arm-kernel, linux-amlogic, linux-kernel

Add the interface to the secure monitor on g12a

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

diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
index 31ddf9444b3e..92ee8c895ba6 100644
--- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
@@ -72,6 +72,10 @@
 		};
 	};
 
+	sm: secure-monitor {
+		compatible = "amlogic,meson-gxbb-sm";
+	};
+
 	soc {
 		compatible = "simple-bus";
 		#address-cells = <2>;
-- 
2.20.1


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

* [PATCH 2/2] arm64: dts: meson: g12a: add efuse
  2019-03-15 13:42 [PATCH 0/2] arm64: dts: meson: g12a: add secure monitor and efuse Jerome Brunet
  2019-03-15 13:42 ` [PATCH 1/2] arm64: dts: meson: g12a: add secure monitor Jerome Brunet
@ 2019-03-15 13:42 ` Jerome Brunet
  2019-03-15 20:45 ` [PATCH 0/2] arm64: dts: meson: g12a: add secure monitor and efuse Kevin Hilman
  2 siblings, 0 replies; 4+ messages in thread
From: Jerome Brunet @ 2019-03-15 13:42 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Jerome Brunet, devicetree, linux-arm-kernel, linux-amlogic, linux-kernel

Add the g12a SoC efuse device

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

diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
index 92ee8c895ba6..dcc821cf35bb 100644
--- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
@@ -4,6 +4,7 @@
  */
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/clock/g12a-clkc.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 
@@ -55,6 +56,14 @@
 		};
 	};
 
+	efuse: efuse {
+		compatible = "amlogic,meson-gxbb-efuse";
+		clocks = <&clkc CLKID_EFUSE>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		read-only;
+	};
+
 	psci {
 		compatible = "arm,psci-1.0";
 		method = "smc";
-- 
2.20.1


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

* Re: [PATCH 0/2] arm64: dts: meson: g12a: add secure monitor and efuse
  2019-03-15 13:42 [PATCH 0/2] arm64: dts: meson: g12a: add secure monitor and efuse Jerome Brunet
  2019-03-15 13:42 ` [PATCH 1/2] arm64: dts: meson: g12a: add secure monitor Jerome Brunet
  2019-03-15 13:42 ` [PATCH 2/2] arm64: dts: meson: g12a: add efuse Jerome Brunet
@ 2019-03-15 20:45 ` Kevin Hilman
  2 siblings, 0 replies; 4+ messages in thread
From: Kevin Hilman @ 2019-03-15 20:45 UTC (permalink / raw)
  To: Jerome Brunet
  Cc: Jerome Brunet, devicetree, linux-arm-kernel, linux-amlogic, linux-kernel

Jerome Brunet <jbrunet@baylibre.com> writes:

> This patchset adds the secure monitor and efuse to the g12a SoC family.
> These are sent together because the secure monitor is required for the
> efuse driver to work properly. This is probably something the bindings
> should show but it was not designed that way when the secure monitor was
> introduced ... something to look at someday.

Queued for v5.2 (branch: v5.2/dt64)

Thanks,

Kevin

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

end of thread, other threads:[~2019-03-15 20:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-15 13:42 [PATCH 0/2] arm64: dts: meson: g12a: add secure monitor and efuse Jerome Brunet
2019-03-15 13:42 ` [PATCH 1/2] arm64: dts: meson: g12a: add secure monitor Jerome Brunet
2019-03-15 13:42 ` [PATCH 2/2] arm64: dts: meson: g12a: add efuse Jerome Brunet
2019-03-15 20:45 ` [PATCH 0/2] arm64: dts: meson: g12a: add secure monitor and efuse 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).