xref: /linux/arch/arm64/boot/dts/broadcom/rp1-common.dtsi (revision 115e74a29b530d121891238e9551c4bcdf7b04b5)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2
3#include <dt-bindings/gpio/gpio.h>
4#include <dt-bindings/interrupt-controller/irq.h>
5#include <dt-bindings/clock/raspberrypi,rp1-clocks.h>
6
7pci_ep_bus: pci-ep-bus@1 {
8	compatible = "simple-bus";
9	ranges = <0x00 0x40000000  0x01 0x00 0x00000000  0x00 0x00400000>;
10	dma-ranges = <0x10 0x00000000  0x43000000 0x10 0x00000000  0x10 0x00000000>;
11	#address-cells = <2>;
12	#size-cells = <2>;
13
14	rp1_clocks: clocks@40018000 {
15		compatible = "raspberrypi,rp1-clocks";
16		reg = <0x00 0x40018000 0x0 0x10038>;
17		#clock-cells = <1>;
18		clocks = <&clk_rp1_xosc>;
19		assigned-clocks = <&rp1_clocks RP1_PLL_SYS_CORE>,
20				  <&rp1_clocks RP1_PLL_SYS>,
21				  <&rp1_clocks RP1_PLL_SYS_SEC>,
22				  <&rp1_clocks RP1_CLK_SYS>;
23		assigned-clock-rates = <1000000000>, // RP1_PLL_SYS_CORE
24				       <200000000>,  // RP1_PLL_SYS
25				       <125000000>,  // RP1_PLL_SYS_SEC
26				       <200000000>;  // RP1_CLK_SYS
27	};
28
29	rp1_gpio: pinctrl@400d0000 {
30		compatible = "raspberrypi,rp1-gpio";
31		reg = <0x00 0x400d0000  0x0 0xc000>,
32		      <0x00 0x400e0000  0x0 0xc000>,
33		      <0x00 0x400f0000  0x0 0xc000>;
34		gpio-controller;
35		#gpio-cells = <2>;
36		interrupt-controller;
37		#interrupt-cells = <2>;
38		interrupts = <0 IRQ_TYPE_LEVEL_HIGH>,
39			     <1 IRQ_TYPE_LEVEL_HIGH>,
40			     <2 IRQ_TYPE_LEVEL_HIGH>;
41	};
42};
43