Linux Audio

Check our new training course

Loading...
Note: File does not exist in v4.6.
  1// SPDX-License-Identifier: GPL-2.0
  2/dts-v1/;
  3#include "bcm2837.dtsi"
  4#include "bcm2836-rpi.dtsi"
  5#include "bcm283x-rpi-usb-host.dtsi"
  6
  7/ {
  8	compatible = "raspberrypi,3-model-a-plus", "brcm,bcm2837";
  9	model = "Raspberry Pi 3 Model A+";
 10
 11	chosen {
 12		/* 8250 auxiliary UART instead of pl011 */
 13		stdout-path = "serial1:115200n8";
 14	};
 15
 16	memory@0 {
 17		device_type = "memory";
 18		reg = <0 0x20000000>;
 19	};
 20
 21	leds {
 22		act {
 23			gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
 24		};
 25
 26		pwr {
 27			label = "PWR";
 28			gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
 29		};
 30	};
 31};
 32
 33&firmware {
 34	expgpio: gpio {
 35		compatible = "raspberrypi,firmware-gpio";
 36		gpio-controller;
 37		#gpio-cells = <2>;
 38		gpio-line-names = "",
 39				  "BT_WL_ON",
 40				  "STATUS_LED_R",
 41				  "",
 42				  "",
 43				  "CAM_GPIO0",
 44				  "CAM_GPIO1",
 45				  "";
 46		status = "okay";
 47	};
 48};
 49
 50&gpio {
 51	/*
 52	 * This is mostly based on the official GPU firmware DT blob.
 53	 *
 54	 * Legend:
 55	 * "NC" = not connected (no rail from the SoC)
 56	 * "FOO" = GPIO line named "FOO" on the schematic
 57	 * "FOO_N" = GPIO line named "FOO" on schematic, active low
 58	 */
 59	gpio-line-names = "ID_SDA",
 60			  "ID_SCL",
 61			  "SDA1",
 62			  "SCL1",
 63			  "GPIO_GCLK",
 64			  "GPIO5",
 65			  "GPIO6",
 66			  "SPI_CE1_N",
 67			  "SPI_CE0_N",
 68			  "SPI_MISO",
 69			  "SPI_MOSI",
 70			  "SPI_SCLK",
 71			  "GPIO12",
 72			  "GPIO13",
 73			  /* Serial port */
 74			  "TXD1",
 75			  "RXD1",
 76			  "GPIO16",
 77			  "GPIO17",
 78			  "GPIO18",
 79			  "GPIO19",
 80			  "GPIO20",
 81			  "GPIO21",
 82			  "GPIO22",
 83			  "GPIO23",
 84			  "GPIO24",
 85			  "GPIO25",
 86			  "GPIO26",
 87			  "GPIO27",
 88			  "HDMI_HPD_N",
 89			  "STATUS_LED_G",
 90			  /* Used by BT module */
 91			  "CTS0",
 92			  "RTS0",
 93			  "TXD0",
 94			  "RXD0",
 95			  /* Used by Wifi */
 96			  "SD1_CLK",
 97			  "SD1_CMD",
 98			  "SD1_DATA0",
 99			  "SD1_DATA1",
100			  "SD1_DATA2",
101			  "SD1_DATA3",
102			  "PWM0_OUT",
103			  "PWM1_OUT",
104			  "", /* GPIO42 */
105			  "WIFI_CLK",
106			  "SDA0",
107			  "SCL0",
108			  "SMPS_SCL",
109			  "SMPS_SDA",
110			  /* Used by SD Card */
111			  "SD_CLK_R",
112			  "SD_CMD_R",
113			  "SD_DATA0_R",
114			  "SD_DATA1_R",
115			  "SD_DATA2_R",
116			  "SD_DATA3_R";
117};
118
119&hdmi {
120	hpd-gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
121	power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
122	status = "okay";
123};
124
125&pwm {
126	pinctrl-names = "default";
127	pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio41>;
128	status = "okay";
129};
130
131/*
132 * SDHCI is used to control the SDIO for wireless
133 *
134 * WL_REG_ON and BT_REG_ON of the CYW43455 Wifi/BT module are driven
135 * by a single GPIO. We can't give GPIO control to one of the drivers,
136 * otherwise the other part would get unexpectedly disturbed.
137 */
138&sdhci {
139	#address-cells = <1>;
140	#size-cells = <0>;
141	pinctrl-names = "default";
142	pinctrl-0 = <&emmc_gpio34>;
143	status = "okay";
144	bus-width = <4>;
145	non-removable;
146
147	brcmf: wifi@1 {
148		reg = <1>;
149		compatible = "brcm,bcm4329-fmac";
150	};
151};
152
153/* SDHOST is used to drive the SD card */
154&sdhost {
155	pinctrl-names = "default";
156	pinctrl-0 = <&sdhost_gpio48>;
157	status = "okay";
158	bus-width = <4>;
159};
160
161/* uart0 communicates with the BT module */
162&uart0 {
163	pinctrl-names = "default";
164	pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32 &gpclk2_gpio43>;
165	status = "okay";
166
167	bluetooth {
168		compatible = "brcm,bcm43438-bt";
169		max-speed = <2000000>;
170	};
171};
172
173/* uart1 is mapped to the pin header */
174&uart1 {
175	pinctrl-names = "default";
176	pinctrl-0 = <&uart1_gpio14>;
177	status = "okay";
178};