xref: /freebsd-src/sys/contrib/device-tree/src/arm/broadcom/bcm2835-rpi.dtsi (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1f126890aSEmmanuel Vadot#include <dt-bindings/power/raspberrypi-power.h>
2f126890aSEmmanuel Vadot
3f126890aSEmmanuel Vadot/ {
4f126890aSEmmanuel Vadot	soc {
5f126890aSEmmanuel Vadot		firmware: firmware {
6f126890aSEmmanuel Vadot			compatible = "raspberrypi,bcm2835-firmware", "simple-mfd";
7f126890aSEmmanuel Vadot			mboxes = <&mailbox>;
8*7d0873ebSEmmanuel Vadot
9*7d0873ebSEmmanuel Vadot			firmware_clocks: clocks {
10*7d0873ebSEmmanuel Vadot				compatible = "raspberrypi,firmware-clocks";
11*7d0873ebSEmmanuel Vadot				#clock-cells = <1>;
12*7d0873ebSEmmanuel Vadot			};
13f126890aSEmmanuel Vadot		};
14f126890aSEmmanuel Vadot
15f126890aSEmmanuel Vadot		power: power {
16f126890aSEmmanuel Vadot			compatible = "raspberrypi,bcm2835-power";
17f126890aSEmmanuel Vadot			firmware = <&firmware>;
18f126890aSEmmanuel Vadot			#power-domain-cells = <1>;
19f126890aSEmmanuel Vadot		};
20f126890aSEmmanuel Vadot
21f126890aSEmmanuel Vadot		vchiq: mailbox@7e00b840 {
22f126890aSEmmanuel Vadot			compatible = "brcm,bcm2835-vchiq";
23f126890aSEmmanuel Vadot			reg = <0x7e00b840 0x3c>;
24f126890aSEmmanuel Vadot			interrupts = <0 2>;
25f126890aSEmmanuel Vadot		};
26f126890aSEmmanuel Vadot	};
27f126890aSEmmanuel Vadot};
28f126890aSEmmanuel Vadot
29*7d0873ebSEmmanuel Vadot&csi0 {
30*7d0873ebSEmmanuel Vadot	clocks = <&clocks BCM2835_CLOCK_CAM0>,
31*7d0873ebSEmmanuel Vadot		 <&firmware_clocks 4>;
32*7d0873ebSEmmanuel Vadot	clock-names = "lp", "vpu";
33*7d0873ebSEmmanuel Vadot	power-domains = <&power RPI_POWER_DOMAIN_UNICAM0>;
34*7d0873ebSEmmanuel Vadot};
35*7d0873ebSEmmanuel Vadot
36*7d0873ebSEmmanuel Vadot&csi1 {
37*7d0873ebSEmmanuel Vadot	clocks = <&clocks BCM2835_CLOCK_CAM1>,
38*7d0873ebSEmmanuel Vadot		 <&firmware_clocks 4>;
39*7d0873ebSEmmanuel Vadot	clock-names = "lp", "vpu";
40*7d0873ebSEmmanuel Vadot	power-domains = <&power RPI_POWER_DOMAIN_UNICAM1>;
41*7d0873ebSEmmanuel Vadot};
42*7d0873ebSEmmanuel Vadot
43f126890aSEmmanuel Vadot&gpio {
44f126890aSEmmanuel Vadot	gpioout: gpioout {
45f126890aSEmmanuel Vadot		brcm,pins = <6>;
46f126890aSEmmanuel Vadot		brcm,function = <BCM2835_FSEL_GPIO_OUT>;
47f126890aSEmmanuel Vadot	};
48f126890aSEmmanuel Vadot
49f126890aSEmmanuel Vadot	alt0: alt0 {
50f126890aSEmmanuel Vadot		brcm,pins = <4 5 7 8 9 10 11>;
51f126890aSEmmanuel Vadot		brcm,function = <BCM2835_FSEL_ALT0>;
52f126890aSEmmanuel Vadot	};
53f126890aSEmmanuel Vadot};
54f126890aSEmmanuel Vadot
55f126890aSEmmanuel Vadot&i2c0 {
56f126890aSEmmanuel Vadot	pinctrl-names = "default";
57f126890aSEmmanuel Vadot	pinctrl-0 = <&i2c0_gpio0>;
58f126890aSEmmanuel Vadot	status = "okay";
59f126890aSEmmanuel Vadot	clock-frequency = <100000>;
60f126890aSEmmanuel Vadot};
61f126890aSEmmanuel Vadot
62f126890aSEmmanuel Vadot&i2c1 {
63f126890aSEmmanuel Vadot	pinctrl-names = "default";
64f126890aSEmmanuel Vadot	pinctrl-0 = <&i2c1_gpio2>;
65f126890aSEmmanuel Vadot	status = "okay";
66f126890aSEmmanuel Vadot	clock-frequency = <100000>;
67f126890aSEmmanuel Vadot};
68f126890aSEmmanuel Vadot
69f126890aSEmmanuel Vadot&usb {
70f126890aSEmmanuel Vadot	power-domains = <&power RPI_POWER_DOMAIN_USB>;
71f126890aSEmmanuel Vadot};
72f126890aSEmmanuel Vadot
73f126890aSEmmanuel Vadot&vec {
74f126890aSEmmanuel Vadot	power-domains = <&power RPI_POWER_DOMAIN_VEC>;
75f126890aSEmmanuel Vadot	status = "okay";
76f126890aSEmmanuel Vadot};
77f126890aSEmmanuel Vadot
78f126890aSEmmanuel Vadot&dsi0 {
79f126890aSEmmanuel Vadot	power-domains = <&power RPI_POWER_DOMAIN_DSI0>;
80f126890aSEmmanuel Vadot};
81f126890aSEmmanuel Vadot
82f126890aSEmmanuel Vadot&dsi1 {
83f126890aSEmmanuel Vadot	power-domains = <&power RPI_POWER_DOMAIN_DSI1>;
84f126890aSEmmanuel Vadot};
85