Linux Audio

Check our new training course

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