19c8c52f7SJianxin Pan// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 29c8c52f7SJianxin Pan/* 39c8c52f7SJianxin Pan * Copyright (c) 2018 Amlogic, Inc. All rights reserved. 49c8c52f7SJianxin Pan */ 59c8c52f7SJianxin Pan 69c8c52f7SJianxin Pan#include <dt-bindings/gpio/gpio.h> 79c8c52f7SJianxin Pan#include <dt-bindings/interrupt-controller/irq.h> 89c8c52f7SJianxin Pan#include <dt-bindings/interrupt-controller/arm-gic.h> 99c8c52f7SJianxin Pan 109c8c52f7SJianxin Pan/ { 119c8c52f7SJianxin Pan compatible = "amlogic,g12a"; 129c8c52f7SJianxin Pan 139c8c52f7SJianxin Pan interrupt-parent = <&gic>; 149c8c52f7SJianxin Pan #address-cells = <2>; 159c8c52f7SJianxin Pan #size-cells = <2>; 169c8c52f7SJianxin Pan 179c8c52f7SJianxin Pan cpus { 189c8c52f7SJianxin Pan #address-cells = <0x2>; 199c8c52f7SJianxin Pan #size-cells = <0x0>; 209c8c52f7SJianxin Pan 219c8c52f7SJianxin Pan cpu0: cpu@0 { 229c8c52f7SJianxin Pan device_type = "cpu"; 2331af04cdSRob Herring compatible = "arm,cortex-a53"; 249c8c52f7SJianxin Pan reg = <0x0 0x0>; 259c8c52f7SJianxin Pan enable-method = "psci"; 269c8c52f7SJianxin Pan next-level-cache = <&l2>; 279c8c52f7SJianxin Pan }; 289c8c52f7SJianxin Pan 299c8c52f7SJianxin Pan cpu1: cpu@1 { 309c8c52f7SJianxin Pan device_type = "cpu"; 3131af04cdSRob Herring compatible = "arm,cortex-a53"; 329c8c52f7SJianxin Pan reg = <0x0 0x1>; 339c8c52f7SJianxin Pan enable-method = "psci"; 349c8c52f7SJianxin Pan next-level-cache = <&l2>; 359c8c52f7SJianxin Pan }; 369c8c52f7SJianxin Pan 379c8c52f7SJianxin Pan cpu2: cpu@2 { 389c8c52f7SJianxin Pan device_type = "cpu"; 3931af04cdSRob Herring compatible = "arm,cortex-a53"; 409c8c52f7SJianxin Pan reg = <0x0 0x2>; 419c8c52f7SJianxin Pan enable-method = "psci"; 429c8c52f7SJianxin Pan next-level-cache = <&l2>; 439c8c52f7SJianxin Pan }; 449c8c52f7SJianxin Pan 459c8c52f7SJianxin Pan cpu3: cpu@3 { 469c8c52f7SJianxin Pan device_type = "cpu"; 4731af04cdSRob Herring compatible = "arm,cortex-a53"; 489c8c52f7SJianxin Pan reg = <0x0 0x3>; 499c8c52f7SJianxin Pan enable-method = "psci"; 509c8c52f7SJianxin Pan next-level-cache = <&l2>; 519c8c52f7SJianxin Pan }; 529c8c52f7SJianxin Pan 539c8c52f7SJianxin Pan l2: l2-cache0 { 549c8c52f7SJianxin Pan compatible = "cache"; 559c8c52f7SJianxin Pan }; 569c8c52f7SJianxin Pan }; 579c8c52f7SJianxin Pan 589c8c52f7SJianxin Pan psci { 599c8c52f7SJianxin Pan compatible = "arm,psci-1.0"; 609c8c52f7SJianxin Pan method = "smc"; 619c8c52f7SJianxin Pan }; 629c8c52f7SJianxin Pan 639c8c52f7SJianxin Pan reserved-memory { 649c8c52f7SJianxin Pan #address-cells = <2>; 659c8c52f7SJianxin Pan #size-cells = <2>; 669c8c52f7SJianxin Pan ranges; 679c8c52f7SJianxin Pan 689c8c52f7SJianxin Pan /* 3 MiB reserved for ARM Trusted Firmware (BL31) */ 699c8c52f7SJianxin Pan secmon_reserved: secmon@5000000 { 709c8c52f7SJianxin Pan reg = <0x0 0x05000000 0x0 0x300000>; 719c8c52f7SJianxin Pan no-map; 729c8c52f7SJianxin Pan }; 739c8c52f7SJianxin Pan }; 749c8c52f7SJianxin Pan 75bd395152SJerome Brunet sm: secure-monitor { 76bd395152SJerome Brunet compatible = "amlogic,meson-gxbb-sm"; 77bd395152SJerome Brunet }; 78bd395152SJerome Brunet 799c8c52f7SJianxin Pan soc { 809c8c52f7SJianxin Pan compatible = "simple-bus"; 819c8c52f7SJianxin Pan #address-cells = <2>; 829c8c52f7SJianxin Pan #size-cells = <2>; 839c8c52f7SJianxin Pan ranges; 849c8c52f7SJianxin Pan 85503f5fedSJerome Brunet apb: bus@ff600000 { 869c8c52f7SJianxin Pan compatible = "simple-bus"; 87503f5fedSJerome Brunet reg = <0x0 0xff600000 0x0 0x200000>; 889c8c52f7SJianxin Pan #address-cells = <2>; 899c8c52f7SJianxin Pan #size-cells = <2>; 90503f5fedSJerome Brunet ranges = <0x0 0x0 0x0 0xff600000 0x0 0x200000>; 91503f5fedSJerome Brunet 92503f5fedSJerome Brunet periphs: bus@34400 { 93503f5fedSJerome Brunet compatible = "simple-bus"; 94503f5fedSJerome Brunet reg = <0x0 0x34400 0x0 0x400>; 95503f5fedSJerome Brunet #address-cells = <2>; 96503f5fedSJerome Brunet #size-cells = <2>; 97503f5fedSJerome Brunet ranges = <0x0 0x0 0x0 0x34400 0x0 0x400>; 989c8c52f7SJianxin Pan }; 999c8c52f7SJianxin Pan 100503f5fedSJerome Brunet hiu: bus@3c000 { 1019c8c52f7SJianxin Pan compatible = "simple-bus"; 102503f5fedSJerome Brunet reg = <0x0 0x3c000 0x0 0x1400>; 1039c8c52f7SJianxin Pan #address-cells = <2>; 1049c8c52f7SJianxin Pan #size-cells = <2>; 105503f5fedSJerome Brunet ranges = <0x0 0x0 0x0 0x3c000 0x0 0x1400>; 106785fb434SJerome Brunet 107785fb434SJerome Brunet hhi: system-controller@0 { 108785fb434SJerome Brunet compatible = "amlogic,meson-gx-hhi-sysctrl", 109785fb434SJerome Brunet "simple-mfd", "syscon"; 110785fb434SJerome Brunet reg = <0 0 0 0x400>; 111785fb434SJerome Brunet 112785fb434SJerome Brunet clkc: clock-controller { 113785fb434SJerome Brunet compatible = "amlogic,g12a-clkc"; 114785fb434SJerome Brunet #clock-cells = <1>; 115785fb434SJerome Brunet clocks = <&xtal>; 116785fb434SJerome Brunet clock-names = "xtal"; 117785fb434SJerome Brunet }; 118785fb434SJerome Brunet }; 119503f5fedSJerome Brunet }; 1209c8c52f7SJianxin Pan }; 1219c8c52f7SJianxin Pan 1229c8c52f7SJianxin Pan aobus: bus@ff800000 { 1239c8c52f7SJianxin Pan compatible = "simple-bus"; 1249c8c52f7SJianxin Pan reg = <0x0 0xff800000 0x0 0x100000>; 1259c8c52f7SJianxin Pan #address-cells = <2>; 1269c8c52f7SJianxin Pan #size-cells = <2>; 1279c8c52f7SJianxin Pan ranges = <0x0 0x0 0x0 0xff800000 0x0 0x100000>; 1289c8c52f7SJianxin Pan 1290fa724c5SNeil Armstrong sec_AO: ao-secure@140 { 1300fa724c5SNeil Armstrong compatible = "amlogic,meson-gx-ao-secure", "syscon"; 1310fa724c5SNeil Armstrong reg = <0x0 0x140 0x0 0x140>; 1320fa724c5SNeil Armstrong amlogic,has-chip-id; 1330fa724c5SNeil Armstrong }; 1340fa724c5SNeil Armstrong 1359c8c52f7SJianxin Pan uart_AO: serial@3000 { 136503f5fedSJerome Brunet compatible = "amlogic,meson-gx-uart", 137503f5fedSJerome Brunet "amlogic,meson-ao-uart"; 1389c8c52f7SJianxin Pan reg = <0x0 0x3000 0x0 0x18>; 1399c8c52f7SJianxin Pan interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>; 1409c8c52f7SJianxin Pan clocks = <&xtal>, <&xtal>, <&xtal>; 1419c8c52f7SJianxin Pan clock-names = "xtal", "pclk", "baud"; 1429c8c52f7SJianxin Pan status = "disabled"; 1439c8c52f7SJianxin Pan }; 1449c8c52f7SJianxin Pan 1459c8c52f7SJianxin Pan uart_AO_B: serial@4000 { 146503f5fedSJerome Brunet compatible = "amlogic,meson-gx-uart", 147503f5fedSJerome Brunet "amlogic,meson-ao-uart"; 1489c8c52f7SJianxin Pan reg = <0x0 0x4000 0x0 0x18>; 1499c8c52f7SJianxin Pan interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>; 1509c8c52f7SJianxin Pan clocks = <&xtal>, <&xtal>, <&xtal>; 1519c8c52f7SJianxin Pan clock-names = "xtal", "pclk", "baud"; 1529c8c52f7SJianxin Pan status = "disabled"; 1539c8c52f7SJianxin Pan }; 1549c8c52f7SJianxin Pan }; 1559c8c52f7SJianxin Pan 1569c8c52f7SJianxin Pan gic: interrupt-controller@ffc01000 { 1579c8c52f7SJianxin Pan compatible = "arm,gic-400"; 1589c8c52f7SJianxin Pan reg = <0x0 0xffc01000 0 0x1000>, 1599c8c52f7SJianxin Pan <0x0 0xffc02000 0 0x2000>, 1609c8c52f7SJianxin Pan <0x0 0xffc04000 0 0x2000>, 1619c8c52f7SJianxin Pan <0x0 0xffc06000 0 0x2000>; 1629c8c52f7SJianxin Pan interrupt-controller; 1639c8c52f7SJianxin Pan interrupts = <GIC_PPI 9 1649c8c52f7SJianxin Pan (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>; 1659c8c52f7SJianxin Pan #interrupt-cells = <3>; 1669c8c52f7SJianxin Pan #address-cells = <0>; 1679c8c52f7SJianxin Pan }; 1689c8c52f7SJianxin Pan 1699c8c52f7SJianxin Pan cbus: bus@ffd00000 { 1709c8c52f7SJianxin Pan compatible = "simple-bus"; 171503f5fedSJerome Brunet reg = <0x0 0xffd00000 0x0 0x100000>; 1729c8c52f7SJianxin Pan #address-cells = <2>; 1739c8c52f7SJianxin Pan #size-cells = <2>; 174503f5fedSJerome Brunet ranges = <0x0 0x0 0x0 0xffd00000 0x0 0x100000>; 1759c8c52f7SJianxin Pan 17660d4fdb8SJerome Brunet clk_msr: clock-measure@18000 { 17760d4fdb8SJerome Brunet compatible = "amlogic,meson-g12a-clk-measure"; 17860d4fdb8SJerome Brunet reg = <0x0 0x18000 0x0 0x10>; 17960d4fdb8SJerome Brunet }; 1809c8c52f7SJianxin Pan }; 1819c8c52f7SJianxin Pan }; 1829c8c52f7SJianxin Pan 1839c8c52f7SJianxin Pan timer { 1849c8c52f7SJianxin Pan compatible = "arm,armv8-timer"; 1859c8c52f7SJianxin Pan interrupts = <GIC_PPI 13 1869c8c52f7SJianxin Pan (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, 1879c8c52f7SJianxin Pan <GIC_PPI 14 1889c8c52f7SJianxin Pan (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, 1899c8c52f7SJianxin Pan <GIC_PPI 11 1909c8c52f7SJianxin Pan (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, 1919c8c52f7SJianxin Pan <GIC_PPI 10 1929c8c52f7SJianxin Pan (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>; 1939c8c52f7SJianxin Pan }; 1949c8c52f7SJianxin Pan 1959c8c52f7SJianxin Pan xtal: xtal-clk { 1969c8c52f7SJianxin Pan compatible = "fixed-clock"; 1979c8c52f7SJianxin Pan clock-frequency = <24000000>; 1989c8c52f7SJianxin Pan clock-output-names = "xtal"; 1999c8c52f7SJianxin Pan #clock-cells = <0>; 2009c8c52f7SJianxin Pan }; 2019c8c52f7SJianxin Pan 2029c8c52f7SJianxin Pan}; 203