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> 7965c827aSJerome Brunet#include <dt-bindings/clock/g12a-clkc.h> 89c8c52f7SJianxin Pan#include <dt-bindings/interrupt-controller/irq.h> 99c8c52f7SJianxin Pan#include <dt-bindings/interrupt-controller/arm-gic.h> 109c8c52f7SJianxin Pan 119c8c52f7SJianxin Pan/ { 129c8c52f7SJianxin Pan compatible = "amlogic,g12a"; 139c8c52f7SJianxin Pan 149c8c52f7SJianxin Pan interrupt-parent = <&gic>; 159c8c52f7SJianxin Pan #address-cells = <2>; 169c8c52f7SJianxin Pan #size-cells = <2>; 179c8c52f7SJianxin Pan 189c8c52f7SJianxin Pan cpus { 199c8c52f7SJianxin Pan #address-cells = <0x2>; 209c8c52f7SJianxin Pan #size-cells = <0x0>; 219c8c52f7SJianxin Pan 229c8c52f7SJianxin Pan cpu0: cpu@0 { 239c8c52f7SJianxin Pan device_type = "cpu"; 2431af04cdSRob Herring compatible = "arm,cortex-a53"; 259c8c52f7SJianxin Pan reg = <0x0 0x0>; 269c8c52f7SJianxin Pan enable-method = "psci"; 279c8c52f7SJianxin Pan next-level-cache = <&l2>; 289c8c52f7SJianxin Pan }; 299c8c52f7SJianxin Pan 309c8c52f7SJianxin Pan cpu1: cpu@1 { 319c8c52f7SJianxin Pan device_type = "cpu"; 3231af04cdSRob Herring compatible = "arm,cortex-a53"; 339c8c52f7SJianxin Pan reg = <0x0 0x1>; 349c8c52f7SJianxin Pan enable-method = "psci"; 359c8c52f7SJianxin Pan next-level-cache = <&l2>; 369c8c52f7SJianxin Pan }; 379c8c52f7SJianxin Pan 389c8c52f7SJianxin Pan cpu2: cpu@2 { 399c8c52f7SJianxin Pan device_type = "cpu"; 4031af04cdSRob Herring compatible = "arm,cortex-a53"; 419c8c52f7SJianxin Pan reg = <0x0 0x2>; 429c8c52f7SJianxin Pan enable-method = "psci"; 439c8c52f7SJianxin Pan next-level-cache = <&l2>; 449c8c52f7SJianxin Pan }; 459c8c52f7SJianxin Pan 469c8c52f7SJianxin Pan cpu3: cpu@3 { 479c8c52f7SJianxin Pan device_type = "cpu"; 4831af04cdSRob Herring compatible = "arm,cortex-a53"; 499c8c52f7SJianxin Pan reg = <0x0 0x3>; 509c8c52f7SJianxin Pan enable-method = "psci"; 519c8c52f7SJianxin Pan next-level-cache = <&l2>; 529c8c52f7SJianxin Pan }; 539c8c52f7SJianxin Pan 549c8c52f7SJianxin Pan l2: l2-cache0 { 559c8c52f7SJianxin Pan compatible = "cache"; 569c8c52f7SJianxin Pan }; 579c8c52f7SJianxin Pan }; 589c8c52f7SJianxin Pan 59965c827aSJerome Brunet efuse: efuse { 60965c827aSJerome Brunet compatible = "amlogic,meson-gxbb-efuse"; 61965c827aSJerome Brunet clocks = <&clkc CLKID_EFUSE>; 62965c827aSJerome Brunet #address-cells = <1>; 63965c827aSJerome Brunet #size-cells = <1>; 64965c827aSJerome Brunet read-only; 65965c827aSJerome Brunet }; 66965c827aSJerome Brunet 679c8c52f7SJianxin Pan psci { 689c8c52f7SJianxin Pan compatible = "arm,psci-1.0"; 699c8c52f7SJianxin Pan method = "smc"; 709c8c52f7SJianxin Pan }; 719c8c52f7SJianxin Pan 729c8c52f7SJianxin Pan reserved-memory { 739c8c52f7SJianxin Pan #address-cells = <2>; 749c8c52f7SJianxin Pan #size-cells = <2>; 759c8c52f7SJianxin Pan ranges; 769c8c52f7SJianxin Pan 779c8c52f7SJianxin Pan /* 3 MiB reserved for ARM Trusted Firmware (BL31) */ 789c8c52f7SJianxin Pan secmon_reserved: secmon@5000000 { 799c8c52f7SJianxin Pan reg = <0x0 0x05000000 0x0 0x300000>; 809c8c52f7SJianxin Pan no-map; 819c8c52f7SJianxin Pan }; 829c8c52f7SJianxin Pan }; 839c8c52f7SJianxin Pan 84bd395152SJerome Brunet sm: secure-monitor { 85bd395152SJerome Brunet compatible = "amlogic,meson-gxbb-sm"; 86bd395152SJerome Brunet }; 87bd395152SJerome Brunet 889c8c52f7SJianxin Pan soc { 899c8c52f7SJianxin Pan compatible = "simple-bus"; 909c8c52f7SJianxin Pan #address-cells = <2>; 919c8c52f7SJianxin Pan #size-cells = <2>; 929c8c52f7SJianxin Pan ranges; 939c8c52f7SJianxin Pan 94503f5fedSJerome Brunet apb: bus@ff600000 { 959c8c52f7SJianxin Pan compatible = "simple-bus"; 96503f5fedSJerome Brunet reg = <0x0 0xff600000 0x0 0x200000>; 979c8c52f7SJianxin Pan #address-cells = <2>; 989c8c52f7SJianxin Pan #size-cells = <2>; 99503f5fedSJerome Brunet ranges = <0x0 0x0 0x0 0xff600000 0x0 0x200000>; 100503f5fedSJerome Brunet 101503f5fedSJerome Brunet periphs: bus@34400 { 102503f5fedSJerome Brunet compatible = "simple-bus"; 103503f5fedSJerome Brunet reg = <0x0 0x34400 0x0 0x400>; 104503f5fedSJerome Brunet #address-cells = <2>; 105503f5fedSJerome Brunet #size-cells = <2>; 106503f5fedSJerome Brunet ranges = <0x0 0x0 0x0 0x34400 0x0 0x400>; 10711a7bea1SJerome Brunet 10811a7bea1SJerome Brunet periphs_pinctrl: pinctrl@40 { 10911a7bea1SJerome Brunet compatible = "amlogic,meson-g12a-periphs-pinctrl"; 11011a7bea1SJerome Brunet #address-cells = <2>; 11111a7bea1SJerome Brunet #size-cells = <2>; 11211a7bea1SJerome Brunet ranges; 11311a7bea1SJerome Brunet 11411a7bea1SJerome Brunet gpio: bank@40 { 11511a7bea1SJerome Brunet reg = <0x0 0x40 0x0 0x4c>, 11611a7bea1SJerome Brunet <0x0 0xe8 0x0 0x18>, 11711a7bea1SJerome Brunet <0x0 0x120 0x0 0x18>, 11811a7bea1SJerome Brunet <0x0 0x2c0 0x0 0x40>, 11911a7bea1SJerome Brunet <0x0 0x340 0x0 0x1c>; 12011a7bea1SJerome Brunet reg-names = "gpio", 12111a7bea1SJerome Brunet "pull", 12211a7bea1SJerome Brunet "pull-enable", 12311a7bea1SJerome Brunet "mux", 12411a7bea1SJerome Brunet "ds"; 12511a7bea1SJerome Brunet gpio-controller; 12611a7bea1SJerome Brunet #gpio-cells = <2>; 12711a7bea1SJerome Brunet gpio-ranges = <&periphs_pinctrl 0 0 86>; 12811a7bea1SJerome Brunet }; 12911a7bea1SJerome Brunet }; 1309c8c52f7SJianxin Pan }; 1319c8c52f7SJianxin Pan 132503f5fedSJerome Brunet hiu: bus@3c000 { 1339c8c52f7SJianxin Pan compatible = "simple-bus"; 134503f5fedSJerome Brunet reg = <0x0 0x3c000 0x0 0x1400>; 1359c8c52f7SJianxin Pan #address-cells = <2>; 1369c8c52f7SJianxin Pan #size-cells = <2>; 137503f5fedSJerome Brunet ranges = <0x0 0x0 0x0 0x3c000 0x0 0x1400>; 138785fb434SJerome Brunet 139785fb434SJerome Brunet hhi: system-controller@0 { 140785fb434SJerome Brunet compatible = "amlogic,meson-gx-hhi-sysctrl", 141785fb434SJerome Brunet "simple-mfd", "syscon"; 142785fb434SJerome Brunet reg = <0 0 0 0x400>; 143785fb434SJerome Brunet 144785fb434SJerome Brunet clkc: clock-controller { 145785fb434SJerome Brunet compatible = "amlogic,g12a-clkc"; 146785fb434SJerome Brunet #clock-cells = <1>; 147785fb434SJerome Brunet clocks = <&xtal>; 148785fb434SJerome Brunet clock-names = "xtal"; 149785fb434SJerome Brunet }; 150785fb434SJerome Brunet }; 151503f5fedSJerome Brunet }; 1529c8c52f7SJianxin Pan }; 1539c8c52f7SJianxin Pan 1549c8c52f7SJianxin Pan aobus: bus@ff800000 { 1559c8c52f7SJianxin Pan compatible = "simple-bus"; 1569c8c52f7SJianxin Pan reg = <0x0 0xff800000 0x0 0x100000>; 1579c8c52f7SJianxin Pan #address-cells = <2>; 1589c8c52f7SJianxin Pan #size-cells = <2>; 1599c8c52f7SJianxin Pan ranges = <0x0 0x0 0x0 0xff800000 0x0 0x100000>; 1609c8c52f7SJianxin Pan 161b019f4a4SNeil Armstrong rti: sys-ctrl@0 { 162b019f4a4SNeil Armstrong compatible = "amlogic,meson-gx-ao-sysctrl", 163b019f4a4SNeil Armstrong "simple-mfd", "syscon"; 164b019f4a4SNeil Armstrong reg = <0x0 0x0 0x0 0x100>; 165b019f4a4SNeil Armstrong #address-cells = <2>; 166b019f4a4SNeil Armstrong #size-cells = <2>; 167b019f4a4SNeil Armstrong ranges = <0x0 0x0 0x0 0x0 0x0 0x100>; 168b019f4a4SNeil Armstrong 169b019f4a4SNeil Armstrong clkc_AO: clock-controller { 170b019f4a4SNeil Armstrong compatible = "amlogic,meson-g12a-aoclkc"; 171b019f4a4SNeil Armstrong #clock-cells = <1>; 172b019f4a4SNeil Armstrong #reset-cells = <1>; 173b019f4a4SNeil Armstrong clocks = <&xtal>, <&clkc CLKID_CLK81>; 174b019f4a4SNeil Armstrong clock-names = "xtal", "mpeg-clk"; 175b019f4a4SNeil Armstrong }; 17611a7bea1SJerome Brunet 17711a7bea1SJerome Brunet ao_pinctrl: pinctrl@14 { 17811a7bea1SJerome Brunet compatible = "amlogic,meson-g12a-aobus-pinctrl"; 17911a7bea1SJerome Brunet #address-cells = <2>; 18011a7bea1SJerome Brunet #size-cells = <2>; 18111a7bea1SJerome Brunet ranges; 18211a7bea1SJerome Brunet 18311a7bea1SJerome Brunet gpio_ao: bank@14 { 18411a7bea1SJerome Brunet reg = <0x0 0x14 0x0 0x8>, 18511a7bea1SJerome Brunet <0x0 0x1c 0x0 0x8>, 18611a7bea1SJerome Brunet <0x0 0x24 0x0 0x14>; 18711a7bea1SJerome Brunet reg-names = "mux", 18811a7bea1SJerome Brunet "ds", 18911a7bea1SJerome Brunet "gpio"; 19011a7bea1SJerome Brunet gpio-controller; 19111a7bea1SJerome Brunet #gpio-cells = <2>; 19211a7bea1SJerome Brunet gpio-ranges = <&ao_pinctrl 0 0 15>; 19311a7bea1SJerome Brunet }; 194e92546c2SJerome Brunet 195e92546c2SJerome Brunet uart_ao_a_pins: uart-a-ao { 196e92546c2SJerome Brunet mux { 197e92546c2SJerome Brunet groups = "uart_ao_a_tx", 198e92546c2SJerome Brunet "uart_ao_a_rx"; 199e92546c2SJerome Brunet function = "uart_ao_a"; 200e92546c2SJerome Brunet bias-disable; 201e92546c2SJerome Brunet }; 202e92546c2SJerome Brunet }; 203e92546c2SJerome Brunet 204e92546c2SJerome Brunet uart_ao_a_cts_rts_pins: uart-ao-a-cts-rts { 205e92546c2SJerome Brunet mux { 206e92546c2SJerome Brunet groups = "uart_ao_a_cts", 207e92546c2SJerome Brunet "uart_ao_a_rts"; 208e92546c2SJerome Brunet function = "uart_ao_a"; 209e92546c2SJerome Brunet bias-disable; 210e92546c2SJerome Brunet }; 211e92546c2SJerome Brunet }; 21211a7bea1SJerome Brunet }; 213b019f4a4SNeil Armstrong }; 214b019f4a4SNeil Armstrong 2150fa724c5SNeil Armstrong sec_AO: ao-secure@140 { 2160fa724c5SNeil Armstrong compatible = "amlogic,meson-gx-ao-secure", "syscon"; 2170fa724c5SNeil Armstrong reg = <0x0 0x140 0x0 0x140>; 2180fa724c5SNeil Armstrong amlogic,has-chip-id; 2190fa724c5SNeil Armstrong }; 2200fa724c5SNeil Armstrong 2219c8c52f7SJianxin Pan uart_AO: serial@3000 { 222503f5fedSJerome Brunet compatible = "amlogic,meson-gx-uart", 223503f5fedSJerome Brunet "amlogic,meson-ao-uart"; 2249c8c52f7SJianxin Pan reg = <0x0 0x3000 0x0 0x18>; 2259c8c52f7SJianxin Pan interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>; 2269c8c52f7SJianxin Pan clocks = <&xtal>, <&xtal>, <&xtal>; 2279c8c52f7SJianxin Pan clock-names = "xtal", "pclk", "baud"; 2289c8c52f7SJianxin Pan status = "disabled"; 2299c8c52f7SJianxin Pan }; 2309c8c52f7SJianxin Pan 2319c8c52f7SJianxin Pan uart_AO_B: serial@4000 { 232503f5fedSJerome Brunet compatible = "amlogic,meson-gx-uart", 233503f5fedSJerome Brunet "amlogic,meson-ao-uart"; 2349c8c52f7SJianxin Pan reg = <0x0 0x4000 0x0 0x18>; 2359c8c52f7SJianxin Pan interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>; 2369c8c52f7SJianxin Pan clocks = <&xtal>, <&xtal>, <&xtal>; 2379c8c52f7SJianxin Pan clock-names = "xtal", "pclk", "baud"; 2389c8c52f7SJianxin Pan status = "disabled"; 2399c8c52f7SJianxin Pan }; 2409c8c52f7SJianxin Pan }; 2419c8c52f7SJianxin Pan 2429c8c52f7SJianxin Pan gic: interrupt-controller@ffc01000 { 2439c8c52f7SJianxin Pan compatible = "arm,gic-400"; 2449c8c52f7SJianxin Pan reg = <0x0 0xffc01000 0 0x1000>, 2459c8c52f7SJianxin Pan <0x0 0xffc02000 0 0x2000>, 2469c8c52f7SJianxin Pan <0x0 0xffc04000 0 0x2000>, 2479c8c52f7SJianxin Pan <0x0 0xffc06000 0 0x2000>; 2489c8c52f7SJianxin Pan interrupt-controller; 2499c8c52f7SJianxin Pan interrupts = <GIC_PPI 9 2509c8c52f7SJianxin Pan (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>; 2519c8c52f7SJianxin Pan #interrupt-cells = <3>; 2529c8c52f7SJianxin Pan #address-cells = <0>; 2539c8c52f7SJianxin Pan }; 2549c8c52f7SJianxin Pan 2559c8c52f7SJianxin Pan cbus: bus@ffd00000 { 2569c8c52f7SJianxin Pan compatible = "simple-bus"; 257503f5fedSJerome Brunet reg = <0x0 0xffd00000 0x0 0x100000>; 2589c8c52f7SJianxin Pan #address-cells = <2>; 2599c8c52f7SJianxin Pan #size-cells = <2>; 260503f5fedSJerome Brunet ranges = <0x0 0x0 0x0 0xffd00000 0x0 0x100000>; 2619c8c52f7SJianxin Pan 2627ab41c47SJerome Brunet reset: reset-controller@1004 { 2637ab41c47SJerome Brunet compatible = "amlogic,meson-g12a-reset", 2647ab41c47SJerome Brunet "amlogic,meson-axg-reset"; 2657ab41c47SJerome Brunet reg = <0x0 0x1004 0x0 0x9c>; 2667ab41c47SJerome Brunet #reset-cells = <1>; 2677ab41c47SJerome Brunet }; 2687ab41c47SJerome Brunet 26960d4fdb8SJerome Brunet clk_msr: clock-measure@18000 { 27060d4fdb8SJerome Brunet compatible = "amlogic,meson-g12a-clk-measure"; 27160d4fdb8SJerome Brunet reg = <0x0 0x18000 0x0 0x10>; 27260d4fdb8SJerome Brunet }; 2739c8c52f7SJianxin Pan }; 2749c8c52f7SJianxin Pan }; 2759c8c52f7SJianxin Pan 2769c8c52f7SJianxin Pan timer { 2779c8c52f7SJianxin Pan compatible = "arm,armv8-timer"; 2789c8c52f7SJianxin Pan interrupts = <GIC_PPI 13 2799c8c52f7SJianxin Pan (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, 2809c8c52f7SJianxin Pan <GIC_PPI 14 2819c8c52f7SJianxin Pan (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, 2829c8c52f7SJianxin Pan <GIC_PPI 11 2839c8c52f7SJianxin Pan (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, 2849c8c52f7SJianxin Pan <GIC_PPI 10 2859c8c52f7SJianxin Pan (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>; 2869c8c52f7SJianxin Pan }; 2879c8c52f7SJianxin Pan 2889c8c52f7SJianxin Pan xtal: xtal-clk { 2899c8c52f7SJianxin Pan compatible = "fixed-clock"; 2909c8c52f7SJianxin Pan clock-frequency = <24000000>; 2919c8c52f7SJianxin Pan clock-output-names = "xtal"; 2929c8c52f7SJianxin Pan #clock-cells = <0>; 2939c8c52f7SJianxin Pan }; 2949c8c52f7SJianxin Pan 2959c8c52f7SJianxin Pan}; 296