]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: meson: a1: add ao secure node
authorAlexey Romanov <avromanov@sberdevices.ru>
Wed, 23 Aug 2023 21:36:28 +0000 (00:36 +0300)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 11 Sep 2023 09:42:52 +0000 (11:42 +0200)
Add node for board info registers, which allows getting SoC family and
board revision.

For example, with MESON_GX_SOCINFO config enabled we can get the
following information for board with Meson A1 SoC:
    soc soc0: Amlogic Meson A1 (A113L) Revision 2c:a (1:a) Detected

Signed-off-by: Alexey Romanov <avromanov@sberdevices.ru>
Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20230823213630.12936-14-ddrokosov@sberdevices.ru
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm64/boot/dts/amlogic/meson-a1.dtsi

index 9411acb84f9a11389b4a609c3aa5de6ee6b05aa0..5c6f93ddf7b4bf637a3bb5449aea79c13f9a397a 100644 (file)
                                power-domains = <&pwrc PWRC_OTP_ID>;
                        };
 
+                       sec_AO: ao-secure@5a20 {
+                               compatible = "amlogic,meson-gx-ao-secure", "syscon";
+                               reg = <0x0 0x5a20 0x0 0x140>;
+                               amlogic,has-chip-id;
+                       };
+
                        clkc_pll: pll-clock-controller@7c80 {
                                compatible = "amlogic,a1-pll-clkc";
                                reg = <0 0x7c80 0 0x18c>;