11b753fcfSXianwei Zhao// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 21b753fcfSXianwei Zhao/* 31b753fcfSXianwei Zhao * Copyright (c) 2025 Amlogic, Inc. All rights reserved. 41b753fcfSXianwei Zhao */ 51b753fcfSXianwei Zhao 61b753fcfSXianwei Zhao#include <dt-bindings/interrupt-controller/irq.h> 71b753fcfSXianwei Zhao#include <dt-bindings/interrupt-controller/arm-gic.h> 81b753fcfSXianwei Zhao#include <dt-bindings/gpio/gpio.h> 9*92912077SXianwei Zhao#include <dt-bindings/pinctrl/amlogic,pinctrl.h> 101b753fcfSXianwei Zhao 111b753fcfSXianwei Zhao/ { 121b753fcfSXianwei Zhao cpus { 131b753fcfSXianwei Zhao #address-cells = <2>; 141b753fcfSXianwei Zhao #size-cells = <0>; 151b753fcfSXianwei Zhao 161b753fcfSXianwei Zhao cpu0: cpu@0 { 171b753fcfSXianwei Zhao device_type = "cpu"; 181b753fcfSXianwei Zhao compatible = "arm,cortex-a55"; 191b753fcfSXianwei Zhao reg = <0x0 0x0>; 201b753fcfSXianwei Zhao enable-method = "psci"; 211b753fcfSXianwei Zhao }; 221b753fcfSXianwei Zhao 231b753fcfSXianwei Zhao cpu1: cpu@100 { 241b753fcfSXianwei Zhao device_type = "cpu"; 251b753fcfSXianwei Zhao compatible = "arm,cortex-a55"; 261b753fcfSXianwei Zhao reg = <0x0 0x100>; 271b753fcfSXianwei Zhao enable-method = "psci"; 281b753fcfSXianwei Zhao }; 291b753fcfSXianwei Zhao 301b753fcfSXianwei Zhao cpu2: cpu@200 { 311b753fcfSXianwei Zhao device_type = "cpu"; 321b753fcfSXianwei Zhao compatible = "arm,cortex-a55"; 331b753fcfSXianwei Zhao reg = <0x0 0x200>; 341b753fcfSXianwei Zhao enable-method = "psci"; 351b753fcfSXianwei Zhao }; 361b753fcfSXianwei Zhao 371b753fcfSXianwei Zhao cpu3: cpu@300 { 381b753fcfSXianwei Zhao device_type = "cpu"; 391b753fcfSXianwei Zhao compatible = "arm,cortex-a55"; 401b753fcfSXianwei Zhao reg = <0x0 0x300>; 411b753fcfSXianwei Zhao enable-method = "psci"; 421b753fcfSXianwei Zhao }; 431b753fcfSXianwei Zhao 441b753fcfSXianwei Zhao }; 451b753fcfSXianwei Zhao 461b753fcfSXianwei Zhao timer { 471b753fcfSXianwei Zhao compatible = "arm,armv8-timer"; 481b753fcfSXianwei Zhao interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, 491b753fcfSXianwei Zhao <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, 501b753fcfSXianwei Zhao <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, 511b753fcfSXianwei Zhao <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; 521b753fcfSXianwei Zhao }; 531b753fcfSXianwei Zhao 541b753fcfSXianwei Zhao psci { 551b753fcfSXianwei Zhao compatible = "arm,psci-1.0"; 561b753fcfSXianwei Zhao method = "smc"; 571b753fcfSXianwei Zhao }; 581b753fcfSXianwei Zhao 591b753fcfSXianwei Zhao xtal: xtal-clk { 601b753fcfSXianwei Zhao compatible = "fixed-clock"; 611b753fcfSXianwei Zhao clock-frequency = <24000000>; 621b753fcfSXianwei Zhao clock-output-names = "xtal"; 631b753fcfSXianwei Zhao #clock-cells = <0>; 641b753fcfSXianwei Zhao }; 651b753fcfSXianwei Zhao 661b753fcfSXianwei Zhao soc { 671b753fcfSXianwei Zhao compatible = "simple-bus"; 681b753fcfSXianwei Zhao #address-cells = <2>; 691b753fcfSXianwei Zhao #size-cells = <2>; 701b753fcfSXianwei Zhao ranges; 711b753fcfSXianwei Zhao 721b753fcfSXianwei Zhao gic: interrupt-controller@fff01000 { 731b753fcfSXianwei Zhao compatible = "arm,gic-400"; 741b753fcfSXianwei Zhao #interrupt-cells = <3>; 751b753fcfSXianwei Zhao #address-cells = <0>; 761b753fcfSXianwei Zhao interrupt-controller; 771b753fcfSXianwei Zhao reg = <0x0 0xfff01000 0 0x1000>, 781b753fcfSXianwei Zhao <0x0 0xfff02000 0 0x0100>; 791b753fcfSXianwei Zhao interrupts = <GIC_PPI 9 0xf04>; 801b753fcfSXianwei Zhao }; 811b753fcfSXianwei Zhao 821b753fcfSXianwei Zhao apb: bus@fe000000 { 831b753fcfSXianwei Zhao compatible = "simple-bus"; 841b753fcfSXianwei Zhao reg = <0x0 0xfe000000 0x0 0x480000>; 851b753fcfSXianwei Zhao #address-cells = <2>; 861b753fcfSXianwei Zhao #size-cells = <2>; 871b753fcfSXianwei Zhao ranges = <0x0 0x0 0x0 0xfe000000 0x0 0x480000>; 881b753fcfSXianwei Zhao 891b753fcfSXianwei Zhao uart_b: serial@7a000 { 901b753fcfSXianwei Zhao compatible = "amlogic,s7-uart", 911b753fcfSXianwei Zhao "amlogic,meson-s4-uart"; 921b753fcfSXianwei Zhao reg = <0x0 0x7a000 0x0 0x18>; 931b753fcfSXianwei Zhao interrupts = <GIC_SPI 169 IRQ_TYPE_EDGE_RISING>; 941b753fcfSXianwei Zhao clocks = <&xtal>, <&xtal>, <&xtal>; 951b753fcfSXianwei Zhao clock-names = "xtal", "pclk", "baud"; 961b753fcfSXianwei Zhao status = "disabled"; 971b753fcfSXianwei Zhao }; 98*92912077SXianwei Zhao 99*92912077SXianwei Zhao periphs_pinctrl: pinctrl@4000 { 100*92912077SXianwei Zhao compatible = "amlogic,pinctrl-s7"; 101*92912077SXianwei Zhao #address-cells = <2>; 102*92912077SXianwei Zhao #size-cells = <2>; 103*92912077SXianwei Zhao ranges = <0x0 0x0 0x0 0x4000 0x0 0x340>; 104*92912077SXianwei Zhao 105*92912077SXianwei Zhao gpioz: gpio@c0 { 106*92912077SXianwei Zhao reg = <0 0xc0 0 0x20>, <0 0x18 0 0x8>; 107*92912077SXianwei Zhao reg-names = "gpio", "mux"; 108*92912077SXianwei Zhao gpio-controller; 109*92912077SXianwei Zhao #gpio-cells = <2>; 110*92912077SXianwei Zhao gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_Z<<8) 13>; 111*92912077SXianwei Zhao }; 112*92912077SXianwei Zhao 113*92912077SXianwei Zhao gpiox: gpio@100 { 114*92912077SXianwei Zhao reg = <0 0x100 0 0x30>, <0 0xc 0 0x8>; 115*92912077SXianwei Zhao reg-names = "gpio", "mux"; 116*92912077SXianwei Zhao gpio-controller; 117*92912077SXianwei Zhao #gpio-cells = <2>; 118*92912077SXianwei Zhao gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_X<<8) 20>; 119*92912077SXianwei Zhao }; 120*92912077SXianwei Zhao 121*92912077SXianwei Zhao gpioh: gpio@140 { 122*92912077SXianwei Zhao reg = <0 0x140 0 0x20>, <0 0x2c 0 0x8>; 123*92912077SXianwei Zhao reg-names = "gpio", "mux"; 124*92912077SXianwei Zhao gpio-controller; 125*92912077SXianwei Zhao #gpio-cells = <2>; 126*92912077SXianwei Zhao gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_H<<8) 12>; 127*92912077SXianwei Zhao }; 128*92912077SXianwei Zhao 129*92912077SXianwei Zhao gpiod: gpio@180 { 130*92912077SXianwei Zhao reg = <0 0x180 0 0x20>, <0 0x40 0 0x8>; 131*92912077SXianwei Zhao reg-names = "gpio", "mux"; 132*92912077SXianwei Zhao gpio-controller; 133*92912077SXianwei Zhao #gpio-cells = <2>; 134*92912077SXianwei Zhao gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_D<<8) 12>; 135*92912077SXianwei Zhao }; 136*92912077SXianwei Zhao 137*92912077SXianwei Zhao gpioe: gpio@1c0 { 138*92912077SXianwei Zhao reg = <0 0x1c0 0 0x20>, <0 0x48 0 0x4>; 139*92912077SXianwei Zhao reg-names = "gpio", "mux"; 140*92912077SXianwei Zhao gpio-controller; 141*92912077SXianwei Zhao #gpio-cells = <2>; 142*92912077SXianwei Zhao gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_E<<8) 2>; 143*92912077SXianwei Zhao }; 144*92912077SXianwei Zhao 145*92912077SXianwei Zhao gpioc: gpio@200 { 146*92912077SXianwei Zhao reg = <0 0x200 0 0x20>, <0 0x24 0 0x4>; 147*92912077SXianwei Zhao reg-names = "gpio", "mux"; 148*92912077SXianwei Zhao gpio-controller; 149*92912077SXianwei Zhao #gpio-cells = <2>; 150*92912077SXianwei Zhao gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_C<<8) 8>; 151*92912077SXianwei Zhao }; 152*92912077SXianwei Zhao 153*92912077SXianwei Zhao gpiob: gpio@240 { 154*92912077SXianwei Zhao reg = <0 0x240 0 0x20>, <0 0x0 0 0x8>; 155*92912077SXianwei Zhao reg-names = "gpio", "mux"; 156*92912077SXianwei Zhao gpio-controller; 157*92912077SXianwei Zhao #gpio-cells = <2>; 158*92912077SXianwei Zhao gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_B<<8) 14>; 159*92912077SXianwei Zhao }; 160*92912077SXianwei Zhao 161*92912077SXianwei Zhao test_n: gpio@2c0 { 162*92912077SXianwei Zhao reg = <0 0x2c0 0 0x20>; 163*92912077SXianwei Zhao reg-names = "gpio"; 164*92912077SXianwei Zhao gpio-controller; 165*92912077SXianwei Zhao #gpio-cells = <2>; 166*92912077SXianwei Zhao gpio-ranges = 167*92912077SXianwei Zhao <&periphs_pinctrl 0 (AMLOGIC_GPIO_TEST_N<<8) 1>; 168*92912077SXianwei Zhao }; 169*92912077SXianwei Zhao 170*92912077SXianwei Zhao gpiocc: gpio@300 { 171*92912077SXianwei Zhao reg = <0 0x300 0 0x20>, <0 0x14 0 0x4>; 172*92912077SXianwei Zhao reg-names = "gpio", "mux"; 173*92912077SXianwei Zhao gpio-controller; 174*92912077SXianwei Zhao #gpio-cells = <2>; 175*92912077SXianwei Zhao gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_CC<<8) 2>; 176*92912077SXianwei Zhao }; 177*92912077SXianwei Zhao }; 1781b753fcfSXianwei Zhao }; 1791b753fcfSXianwei Zhao }; 1801b753fcfSXianwei Zhao}; 181