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