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