xref: /freebsd-src/sys/contrib/device-tree/src/arm/broadcom/bcm2835-rpi-a-plus.dts (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2f126890aSEmmanuel Vadot/dts-v1/;
3f126890aSEmmanuel Vadot#include "bcm2835.dtsi"
4f126890aSEmmanuel Vadot#include "bcm2835-rpi.dtsi"
5f126890aSEmmanuel Vadot#include "bcm2835-rpi-common.dtsi"
6f126890aSEmmanuel Vadot#include "bcm283x-rpi-led-deprecated.dtsi"
7f126890aSEmmanuel Vadot#include "bcm283x-rpi-usb-host.dtsi"
8f126890aSEmmanuel Vadot
9f126890aSEmmanuel Vadot/ {
10f126890aSEmmanuel Vadot	compatible = "raspberrypi,model-a-plus", "brcm,bcm2835";
11f126890aSEmmanuel Vadot	model = "Raspberry Pi Model A+";
12f126890aSEmmanuel Vadot
13f126890aSEmmanuel Vadot	memory@0 {
14f126890aSEmmanuel Vadot		device_type = "memory";
15f126890aSEmmanuel Vadot		reg = <0 0x10000000>;
16f126890aSEmmanuel Vadot	};
17f126890aSEmmanuel Vadot};
18f126890aSEmmanuel Vadot
19f126890aSEmmanuel Vadot&gpio {
20f126890aSEmmanuel Vadot	/*
21f126890aSEmmanuel Vadot	 * This is based on the unreleased schematic for the Model A+.
22f126890aSEmmanuel Vadot	 *
23f126890aSEmmanuel Vadot	 * Legend:
24f126890aSEmmanuel Vadot	 * "FOO" = GPIO line named "FOO" on the schematic
25f126890aSEmmanuel Vadot	 * "FOO_N" = GPIO line named "FOO" on schematic, active low
26f126890aSEmmanuel Vadot	 */
27f126890aSEmmanuel Vadot	gpio-line-names = "ID_SDA",
28f126890aSEmmanuel Vadot			  "ID_SCL",
29f126890aSEmmanuel Vadot			  "SDA1",
30f126890aSEmmanuel Vadot			  "SCL1",
31f126890aSEmmanuel Vadot			  "GPIO_GCLK",
32f126890aSEmmanuel Vadot			  "GPIO5",
33f126890aSEmmanuel Vadot			  "GPIO6",
34f126890aSEmmanuel Vadot			  "SPI_CE1_N",
35f126890aSEmmanuel Vadot			  "SPI_CE0_N",
36f126890aSEmmanuel Vadot			  "SPI_MISO",
37f126890aSEmmanuel Vadot			  "SPI_MOSI",
38f126890aSEmmanuel Vadot			  "SPI_SCLK",
39f126890aSEmmanuel Vadot			  "GPIO12",
40f126890aSEmmanuel Vadot			  "GPIO13",
41f126890aSEmmanuel Vadot			  /* Serial port */
42f126890aSEmmanuel Vadot			  "TXD0",
43f126890aSEmmanuel Vadot			  "RXD0",
44f126890aSEmmanuel Vadot			  "GPIO16",
45f126890aSEmmanuel Vadot			  "GPIO17",
46f126890aSEmmanuel Vadot			  "GPIO18",
47f126890aSEmmanuel Vadot			  "GPIO19",
48f126890aSEmmanuel Vadot			  "GPIO20",
49f126890aSEmmanuel Vadot			  "GPIO21",
50f126890aSEmmanuel Vadot			  "GPIO22",
51f126890aSEmmanuel Vadot			  "GPIO23",
52f126890aSEmmanuel Vadot			  "GPIO24",
53f126890aSEmmanuel Vadot			  "GPIO25",
54f126890aSEmmanuel Vadot			  "GPIO26",
55f126890aSEmmanuel Vadot			  "GPIO27",
56f126890aSEmmanuel Vadot			  "SDA0",
57f126890aSEmmanuel Vadot			  "SCL0",
58f126890aSEmmanuel Vadot			  "", /* GPIO30 */
59f126890aSEmmanuel Vadot			  "", /* GPIO31 */
60f126890aSEmmanuel Vadot			  "CAM_GPIO1", /* GPIO32 */
61f126890aSEmmanuel Vadot			  "", /* GPIO33 */
62f126890aSEmmanuel Vadot			  "", /* GPIO34 */
63f126890aSEmmanuel Vadot			  "PWR_LOW_N", /* GPIO35 */
64f126890aSEmmanuel Vadot			  "", /* GPIO36 */
65f126890aSEmmanuel Vadot			  "", /* GPIO37 */
66f126890aSEmmanuel Vadot			  "USB_LIMIT", /* GPIO38 */
67f126890aSEmmanuel Vadot			  "", /* GPIO39 */
68f126890aSEmmanuel Vadot			  "PWM0_OUT", /* GPIO40 */
69f126890aSEmmanuel Vadot			  "CAM_GPIO0", /* GPIO41 */
70f126890aSEmmanuel Vadot			  "", /* GPIO42 */
71f126890aSEmmanuel Vadot			  "", /* GPIO43 */
72f126890aSEmmanuel Vadot			  "", /* GPIO44 */
73f126890aSEmmanuel Vadot			  "PWM1_OUT", /* GPIO45 */
74f126890aSEmmanuel Vadot			  "HDMI_HPD_N",
75f126890aSEmmanuel Vadot			  "STATUS_LED",
76f126890aSEmmanuel Vadot			  /* Used by SD Card */
77f126890aSEmmanuel Vadot			  "SD_CLK_R",
78f126890aSEmmanuel Vadot			  "SD_CMD_R",
79f126890aSEmmanuel Vadot			  "SD_DATA0_R",
80f126890aSEmmanuel Vadot			  "SD_DATA1_R",
81f126890aSEmmanuel Vadot			  "SD_DATA2_R",
82f126890aSEmmanuel Vadot			  "SD_DATA3_R";
83f126890aSEmmanuel Vadot
84*aa1a8ff2SEmmanuel Vadot	pinctrl-names = "default";
85f126890aSEmmanuel Vadot	pinctrl-0 = <&gpioout &alt0 &i2s_alt0>;
86f126890aSEmmanuel Vadot
87f126890aSEmmanuel Vadot	/* I2S interface */
88f126890aSEmmanuel Vadot	i2s_alt0: i2s_alt0 {
89f126890aSEmmanuel Vadot		brcm,pins = <18 19 20 21>;
90f126890aSEmmanuel Vadot		brcm,function = <BCM2835_FSEL_ALT0>;
91f126890aSEmmanuel Vadot	};
92f126890aSEmmanuel Vadot};
93f126890aSEmmanuel Vadot
94f126890aSEmmanuel Vadot&hdmi {
95f126890aSEmmanuel Vadot	hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
96f126890aSEmmanuel Vadot	power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
97f126890aSEmmanuel Vadot	status = "okay";
98f126890aSEmmanuel Vadot};
99f126890aSEmmanuel Vadot
100f126890aSEmmanuel Vadot&led_act {
101f126890aSEmmanuel Vadot	gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
102f126890aSEmmanuel Vadot};
103f126890aSEmmanuel Vadot
104f126890aSEmmanuel Vadot&leds {
105f126890aSEmmanuel Vadot	led-pwr {
106f126890aSEmmanuel Vadot		label = "PWR";
107f126890aSEmmanuel Vadot		gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
108f126890aSEmmanuel Vadot		default-state = "keep";
109f126890aSEmmanuel Vadot		linux,default-trigger = "default-on";
110f126890aSEmmanuel Vadot	};
111f126890aSEmmanuel Vadot};
112f126890aSEmmanuel Vadot
113f126890aSEmmanuel Vadot&pwm {
114f126890aSEmmanuel Vadot	pinctrl-names = "default";
115f126890aSEmmanuel Vadot	pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
116f126890aSEmmanuel Vadot	status = "okay";
117f126890aSEmmanuel Vadot};
118f126890aSEmmanuel Vadot
119f126890aSEmmanuel Vadot&sdhost {
120f126890aSEmmanuel Vadot	pinctrl-names = "default";
121f126890aSEmmanuel Vadot	pinctrl-0 = <&sdhost_gpio48>;
122f126890aSEmmanuel Vadot	bus-width = <4>;
123f126890aSEmmanuel Vadot	status = "okay";
124f126890aSEmmanuel Vadot};
125f126890aSEmmanuel Vadot
126f126890aSEmmanuel Vadot&uart0 {
127f126890aSEmmanuel Vadot	pinctrl-names = "default";
128f126890aSEmmanuel Vadot	pinctrl-0 = <&uart0_gpio14>;
129f126890aSEmmanuel Vadot	status = "okay";
130f126890aSEmmanuel Vadot};
131