xref: /linux/arch/arm/boot/dts/broadcom/bcm2835-rpi-zero.dts (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0+
2724ba675SRob Herring/*
3724ba675SRob Herring * Copyright (C) 2016 Stefan Wahren <stefan.wahren@i2se.com>
4724ba675SRob Herring */
5724ba675SRob Herring
6724ba675SRob Herring/dts-v1/;
7724ba675SRob Herring#include "bcm2835.dtsi"
8724ba675SRob Herring#include "bcm2835-rpi.dtsi"
9724ba675SRob Herring#include "bcm2835-rpi-common.dtsi"
10724ba675SRob Herring#include "bcm283x-rpi-led-deprecated.dtsi"
11724ba675SRob Herring#include "bcm283x-rpi-usb-otg.dtsi"
12724ba675SRob Herring
13724ba675SRob Herring/ {
14724ba675SRob Herring	compatible = "raspberrypi,model-zero", "brcm,bcm2835";
15724ba675SRob Herring	model = "Raspberry Pi Zero";
16724ba675SRob Herring
17724ba675SRob Herring	memory@0 {
18724ba675SRob Herring		device_type = "memory";
19724ba675SRob Herring		reg = <0 0x20000000>;
20724ba675SRob Herring	};
21724ba675SRob Herring};
22724ba675SRob Herring
23724ba675SRob Herring&gpio {
24724ba675SRob Herring	/*
25724ba675SRob Herring	 * This is based on the official GPU firmware DT blob.
26724ba675SRob Herring	 *
27724ba675SRob Herring	 * Legend:
28724ba675SRob Herring	 * "FOO" = GPIO line named "FOO" on the schematic
29724ba675SRob Herring	 * "FOO_N" = GPIO line named "FOO" on schematic, active low
30724ba675SRob Herring	 */
31724ba675SRob Herring	gpio-line-names = "ID_SDA",
32724ba675SRob Herring			  "ID_SCL",
33724ba675SRob Herring			  "SDA1",
34724ba675SRob Herring			  "SCL1",
35724ba675SRob Herring			  "GPIO_GCLK",
36724ba675SRob Herring			  "GPIO5",
37724ba675SRob Herring			  "GPIO6",
38724ba675SRob Herring			  "SPI_CE1_N",
39724ba675SRob Herring			  "SPI_CE0_N",
40724ba675SRob Herring			  "SPI_MISO",
41724ba675SRob Herring			  "SPI_MOSI",
42724ba675SRob Herring			  "SPI_SCLK",
43724ba675SRob Herring			  "GPIO12",
44724ba675SRob Herring			  "GPIO13",
45724ba675SRob Herring			  /* Serial port */
46724ba675SRob Herring			  "TXD0",
47724ba675SRob Herring			  "RXD0",
48724ba675SRob Herring			  "GPIO16",
49724ba675SRob Herring			  "GPIO17",
50724ba675SRob Herring			  "GPIO18",
51724ba675SRob Herring			  "GPIO19",
52724ba675SRob Herring			  "GPIO20",
53724ba675SRob Herring			  "GPIO21",
54724ba675SRob Herring			  "GPIO22",
55724ba675SRob Herring			  "GPIO23",
56724ba675SRob Herring			  "GPIO24",
57724ba675SRob Herring			  "GPIO25",
58724ba675SRob Herring			  "GPIO26",
59724ba675SRob Herring			  "GPIO27",
60724ba675SRob Herring			  "SDA0",
61724ba675SRob Herring			  "SCL0",
62724ba675SRob Herring			  "", /* GPIO30 */
63724ba675SRob Herring			  "", /* GPIO31 */
64724ba675SRob Herring			  "CAM_GPIO1", /* GPIO32 */
65724ba675SRob Herring			  "", /* GPIO33 */
66724ba675SRob Herring			  "", /* GPIO34 */
67724ba675SRob Herring			  "", /* GPIO35 */
68724ba675SRob Herring			  "", /* GPIO36 */
69724ba675SRob Herring			  "", /* GPIO37 */
70724ba675SRob Herring			  "", /* GPIO38 */
71724ba675SRob Herring			  "", /* GPIO39 */
72724ba675SRob Herring			  "", /* GPIO40 */
73724ba675SRob Herring			  "CAM_GPIO0", /* GPIO41 */
74724ba675SRob Herring			  "", /* GPIO42 */
75724ba675SRob Herring			  "", /* GPIO43 */
76724ba675SRob Herring			  "", /* GPIO44 */
77724ba675SRob Herring			  "", /* GPIO45 */
78724ba675SRob Herring			  "HDMI_HPD_N",
79724ba675SRob Herring			  "STATUS_LED_N",
80724ba675SRob Herring			  /* Used by SD Card */
81724ba675SRob Herring			  "SD_CLK_R",
82724ba675SRob Herring			  "SD_CMD_R",
83724ba675SRob Herring			  "SD_DATA0_R",
84724ba675SRob Herring			  "SD_DATA1_R",
85724ba675SRob Herring			  "SD_DATA2_R",
86724ba675SRob Herring			  "SD_DATA3_R";
87724ba675SRob Herring
88*2a28a5cdSStefan Wahren	pinctrl-names = "default";
89724ba675SRob Herring	pinctrl-0 = <&gpioout &alt0 &i2s_alt0>;
90724ba675SRob Herring
91724ba675SRob Herring	/* I2S interface */
92724ba675SRob Herring	i2s_alt0: i2s_alt0 {
93724ba675SRob Herring		brcm,pins = <18 19 20 21>;
94724ba675SRob Herring		brcm,function = <BCM2835_FSEL_ALT0>;
95724ba675SRob Herring	};
96724ba675SRob Herring};
97724ba675SRob Herring
98724ba675SRob Herring&hdmi {
99724ba675SRob Herring	hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
100724ba675SRob Herring	power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
101724ba675SRob Herring	status = "okay";
102724ba675SRob Herring};
103724ba675SRob Herring
104724ba675SRob Herring&led_act {
105724ba675SRob Herring	gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
106724ba675SRob Herring};
107724ba675SRob Herring
108724ba675SRob Herring&sdhost {
109724ba675SRob Herring	pinctrl-names = "default";
110724ba675SRob Herring	pinctrl-0 = <&sdhost_gpio48>;
111724ba675SRob Herring	bus-width = <4>;
112724ba675SRob Herring	status = "okay";
113724ba675SRob Herring};
114724ba675SRob Herring
115724ba675SRob Herring&uart0 {
116724ba675SRob Herring	pinctrl-names = "default";
117724ba675SRob Herring	pinctrl-0 = <&uart0_gpio14>;
118724ba675SRob Herring	status = "okay";
119724ba675SRob Herring};
120