xref: /freebsd/sys/contrib/device-tree/src/arm64/amlogic/amlogic-a4-common.dtsi (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
17d0873ebSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
27d0873ebSEmmanuel Vadot/*
37d0873ebSEmmanuel Vadot * Copyright (c) 2024 Amlogic, Inc. All rights reserved.
47d0873ebSEmmanuel Vadot */
57d0873ebSEmmanuel Vadot
67d0873ebSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
77d0873ebSEmmanuel Vadot#include <dt-bindings/interrupt-controller/arm-gic.h>
87d0873ebSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
97d0873ebSEmmanuel Vadot/ {
107d0873ebSEmmanuel Vadot	timer {
117d0873ebSEmmanuel Vadot		compatible = "arm,armv8-timer";
127d0873ebSEmmanuel Vadot		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
137d0873ebSEmmanuel Vadot			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
147d0873ebSEmmanuel Vadot			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
157d0873ebSEmmanuel Vadot			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
167d0873ebSEmmanuel Vadot	};
177d0873ebSEmmanuel Vadot
187d0873ebSEmmanuel Vadot	psci {
197d0873ebSEmmanuel Vadot		compatible = "arm,psci-1.0";
207d0873ebSEmmanuel Vadot		method = "smc";
217d0873ebSEmmanuel Vadot	};
227d0873ebSEmmanuel Vadot
237d0873ebSEmmanuel Vadot	xtal: xtal-clk {
247d0873ebSEmmanuel Vadot		compatible = "fixed-clock";
257d0873ebSEmmanuel Vadot		clock-frequency = <24000000>;
267d0873ebSEmmanuel Vadot		clock-output-names = "xtal";
277d0873ebSEmmanuel Vadot		#clock-cells = <0>;
287d0873ebSEmmanuel Vadot	};
297d0873ebSEmmanuel Vadot
307d0873ebSEmmanuel Vadot	soc {
317d0873ebSEmmanuel Vadot		compatible = "simple-bus";
327d0873ebSEmmanuel Vadot		#address-cells = <2>;
337d0873ebSEmmanuel Vadot		#size-cells = <2>;
347d0873ebSEmmanuel Vadot		ranges;
357d0873ebSEmmanuel Vadot
367d0873ebSEmmanuel Vadot		gic: interrupt-controller@fff01000 {
377d0873ebSEmmanuel Vadot			compatible = "arm,gic-400";
387d0873ebSEmmanuel Vadot			reg = <0x0 0xfff01000 0 0x1000>,
397d0873ebSEmmanuel Vadot			      <0x0 0xfff02000 0 0x2000>,
407d0873ebSEmmanuel Vadot			      <0x0 0xfff04000 0 0x2000>,
417d0873ebSEmmanuel Vadot			      <0x0 0xfff06000 0 0x2000>;
427d0873ebSEmmanuel Vadot			#interrupt-cells = <3>;
437d0873ebSEmmanuel Vadot			#address-cells = <0>;
447d0873ebSEmmanuel Vadot			interrupt-controller;
457d0873ebSEmmanuel Vadot			interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
467d0873ebSEmmanuel Vadot		};
477d0873ebSEmmanuel Vadot
487d0873ebSEmmanuel Vadot		apb: bus@fe000000 {
497d0873ebSEmmanuel Vadot			compatible = "simple-bus";
507d0873ebSEmmanuel Vadot			reg = <0x0 0xfe000000 0x0 0x480000>;
517d0873ebSEmmanuel Vadot			#address-cells = <2>;
527d0873ebSEmmanuel Vadot			#size-cells = <2>;
537d0873ebSEmmanuel Vadot			ranges = <0x0 0x0 0x0 0xfe000000 0x0 0x480000>;
547d0873ebSEmmanuel Vadot
55*b2d2a78aSEmmanuel Vadot			watchdog@2100 {
56*b2d2a78aSEmmanuel Vadot				compatible = "amlogic,a4-wdt", "amlogic,t7-wdt";
57*b2d2a78aSEmmanuel Vadot				reg = <0x0 0x2100 0x0 0x10>;
58*b2d2a78aSEmmanuel Vadot				clocks = <&xtal>;
59*b2d2a78aSEmmanuel Vadot			};
60*b2d2a78aSEmmanuel Vadot
617d0873ebSEmmanuel Vadot			uart_b: serial@7a000 {
627d0873ebSEmmanuel Vadot				compatible = "amlogic,a4-uart",
637d0873ebSEmmanuel Vadot					     "amlogic,meson-s4-uart";
647d0873ebSEmmanuel Vadot				reg = <0x0 0x7a000 0x0 0x18>;
657d0873ebSEmmanuel Vadot				interrupts = <GIC_SPI 169 IRQ_TYPE_EDGE_RISING>;
667d0873ebSEmmanuel Vadot				clocks = <&xtal>, <&xtal>, <&xtal>;
677d0873ebSEmmanuel Vadot				clock-names = "xtal", "pclk", "baud";
687d0873ebSEmmanuel Vadot				status = "disabled";
697d0873ebSEmmanuel Vadot			};
70*b2d2a78aSEmmanuel Vadot
71*b2d2a78aSEmmanuel Vadot			sec_ao: ao-secure@10220 {
72*b2d2a78aSEmmanuel Vadot				compatible = "amlogic,a4-ao-secure",
73*b2d2a78aSEmmanuel Vadot					     "amlogic,meson-gx-ao-secure",
74*b2d2a78aSEmmanuel Vadot					     "syscon";
75*b2d2a78aSEmmanuel Vadot				reg = <0x0 0x10220 0x0 0x140>;
76*b2d2a78aSEmmanuel Vadot				amlogic,has-chip-id;
77*b2d2a78aSEmmanuel Vadot			};
787d0873ebSEmmanuel Vadot		};
797d0873ebSEmmanuel Vadot	};
807d0873ebSEmmanuel Vadot};
81