Linux Audio

Check our new training course

Yocto / OpenEmbedded training

Feb 10-13, 2025
Register
Loading...
v6.2
  1// SPDX-License-Identifier: GPL-2.0+
  2/*
  3 * Copyright (C) 2017 Stefan Wahren <stefan.wahren@i2se.com>
  4 */
  5
  6/dts-v1/;
  7#include "bcm2835.dtsi"
  8#include "bcm2835-rpi.dtsi"
  9#include "bcm2835-rpi-common.dtsi"
 10#include "bcm283x-rpi-led-deprecated.dtsi"
 11#include "bcm283x-rpi-usb-otg.dtsi"
 12#include "bcm283x-rpi-wifi-bt.dtsi"
 13
 14/ {
 15	compatible = "raspberrypi,model-zero-w", "brcm,bcm2835";
 16	model = "Raspberry Pi Zero W";
 17
 18	memory@0 {
 19		device_type = "memory";
 20		reg = <0 0x20000000>;
 21	};
 22
 23	chosen {
 24		/* 8250 auxiliary UART instead of pl011 */
 25		stdout-path = "serial1:115200n8";
 26	};
 27};
 28
 29&bt {
 30	shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
 
 
 
 
 
 
 
 
 31};
 32
 33&gpio {
 34	/*
 35	 * This is based on the official GPU firmware DT blob.
 36	 *
 37	 * Legend:
 
 38	 * "FOO" = GPIO line named "FOO" on the schematic
 39	 * "FOO_N" = GPIO line named "FOO" on schematic, active low
 40	 */
 41	gpio-line-names = "ID_SDA",
 42			  "ID_SCL",
 43			  "SDA1",
 44			  "SCL1",
 45			  "GPIO_GCLK",
 46			  "GPIO5",
 47			  "GPIO6",
 48			  "SPI_CE1_N",
 49			  "SPI_CE0_N",
 50			  "SPI_MISO",
 51			  "SPI_MOSI",
 52			  "SPI_SCLK",
 53			  "GPIO12",
 54			  "GPIO13",
 55			  /* Serial port */
 56			  "TXD0",
 57			  "RXD0",
 58			  "GPIO16",
 59			  "GPIO17",
 60			  "GPIO18",
 61			  "GPIO19",
 62			  "GPIO20",
 63			  "GPIO21",
 64			  "GPIO22",
 65			  "GPIO23",
 66			  "GPIO24",
 67			  "GPIO25",
 68			  "GPIO26",
 69			  "GPIO27",
 70			  "SDA0",
 71			  "SCL0",
 72			  /* Used by BT module */
 73			  "CTS0",
 74			  "RTS0",
 75			  "TXD0",
 76			  "RXD0",
 77			  /* Used by Wifi */
 78			  "SD1_CLK",
 79			  "SD1_CMD",
 80			  "SD1_DATA0",
 81			  "SD1_DATA1",
 82			  "SD1_DATA2",
 83			  "SD1_DATA3",
 84			  "CAM_GPIO1", /* GPIO40 */
 85			  "WL_ON", /* GPIO41 */
 86			  "", /* GPIO42 */
 87			  "WIFI_CLK", /* GPIO43 */
 88			  "CAM_GPIO0", /* GPIO44 */
 89			  "BT_ON", /* GPIO45 */
 90			  "HDMI_HPD_N",
 91			  "STATUS_LED_N",
 92			  /* Used by SD Card */
 93			  "SD_CLK_R",
 94			  "SD_CMD_R",
 95			  "SD_DATA0_R",
 96			  "SD_DATA1_R",
 97			  "SD_DATA2_R",
 98			  "SD_DATA3_R";
 99
100	pinctrl-0 = <&gpioout &alt0>;
101};
102
103&hdmi {
104	hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
105	power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
106	status = "okay";
107};
108
109&led_act {
110	gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
111};
112
113&sdhci {
 
 
 
114	pinctrl-0 = <&emmc_gpio34 &gpclk2_gpio43>;
 
 
 
 
 
 
 
 
 
115};
116
117&sdhost {
118	pinctrl-names = "default";
119	pinctrl-0 = <&sdhost_gpio48>;
120	bus-width = <4>;
121	status = "okay";
122};
123
124&uart0 {
125	pinctrl-names = "default";
126	pinctrl-0 = <&uart0_gpio32 &uart0_ctsrts_gpio30>;
 
 
 
 
 
 
 
127};
128
129&uart1 {
130	pinctrl-names = "default";
131	pinctrl-0 = <&uart1_gpio14>;
132	status = "okay";
133};
134
135&wifi_pwrseq {
136	reset-gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
137};
v5.14.15
  1// SPDX-License-Identifier: GPL-2.0+
  2/*
  3 * Copyright (C) 2017 Stefan Wahren <stefan.wahren@i2se.com>
  4 */
  5
  6/dts-v1/;
  7#include "bcm2835.dtsi"
  8#include "bcm2835-rpi.dtsi"
 
 
  9#include "bcm283x-rpi-usb-otg.dtsi"
 
 10
 11/ {
 12	compatible = "raspberrypi,model-zero-w", "brcm,bcm2835";
 13	model = "Raspberry Pi Zero W";
 14
 15	memory@0 {
 16		device_type = "memory";
 17		reg = <0 0x20000000>;
 18	};
 19
 20	chosen {
 21		/* 8250 auxiliary UART instead of pl011 */
 22		stdout-path = "serial1:115200n8";
 23	};
 
 24
 25	leds {
 26		led-act {
 27			gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
 28		};
 29	};
 30
 31	wifi_pwrseq: wifi-pwrseq {
 32		compatible = "mmc-pwrseq-simple";
 33		reset-gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
 34	};
 35};
 36
 37&gpio {
 38	/*
 39	 * This is based on the official GPU firmware DT blob.
 40	 *
 41	 * Legend:
 42	 * "NC" = not connected (no rail from the SoC)
 43	 * "FOO" = GPIO line named "FOO" on the schematic
 44	 * "FOO_N" = GPIO line named "FOO" on schematic, active low
 45	 */
 46	gpio-line-names = "ID_SDA",
 47			  "ID_SCL",
 48			  "SDA1",
 49			  "SCL1",
 50			  "GPIO_GCLK",
 51			  "GPIO5",
 52			  "GPIO6",
 53			  "SPI_CE1_N",
 54			  "SPI_CE0_N",
 55			  "SPI_MISO",
 56			  "SPI_MOSI",
 57			  "SPI_SCLK",
 58			  "GPIO12",
 59			  "GPIO13",
 60			  /* Serial port */
 61			  "TXD0",
 62			  "RXD0",
 63			  "GPIO16",
 64			  "GPIO17",
 65			  "GPIO18",
 66			  "GPIO19",
 67			  "GPIO20",
 68			  "GPIO21",
 69			  "GPIO22",
 70			  "GPIO23",
 71			  "GPIO24",
 72			  "GPIO25",
 73			  "GPIO26",
 74			  "GPIO27",
 75			  "SDA0",
 76			  "SCL0",
 77			  "NC", /* GPIO30 */
 78			  "NC", /* GPIO31 */
 79			  "NC", /* GPIO32 */
 80			  "NC", /* GPIO33 */
 81			  "NC", /* GPIO34 */
 82			  "NC", /* GPIO35 */
 83			  "NC", /* GPIO36 */
 84			  "NC", /* GPIO37 */
 85			  "NC", /* GPIO38 */
 86			  "NC", /* GPIO39 */
 
 
 87			  "CAM_GPIO1", /* GPIO40 */
 88			  "WL_ON", /* GPIO41 */
 89			  "NC", /* GPIO42 */
 90			  "WIFI_CLK", /* GPIO43 */
 91			  "CAM_GPIO0", /* GPIO44 */
 92			  "BT_ON", /* GPIO45 */
 93			  "HDMI_HPD_N",
 94			  "STATUS_LED_N",
 95			  /* Used by SD Card */
 96			  "SD_CLK_R",
 97			  "SD_CMD_R",
 98			  "SD_DATA0_R",
 99			  "SD_DATA1_R",
100			  "SD_DATA2_R",
101			  "SD_DATA3_R";
102
103	pinctrl-0 = <&gpioout &alt0>;
104};
105
106&hdmi {
107	hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
108	power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
109	status = "okay";
110};
111
 
 
 
 
112&sdhci {
113	#address-cells = <1>;
114	#size-cells = <0>;
115	pinctrl-names = "default";
116	pinctrl-0 = <&emmc_gpio34 &gpclk2_gpio43>;
117	bus-width = <4>;
118	mmc-pwrseq = <&wifi_pwrseq>;
119	non-removable;
120	status = "okay";
121
122	brcmf: wifi@1 {
123		reg = <1>;
124		compatible = "brcm,bcm4329-fmac";
125	};
126};
127
128&sdhost {
129	pinctrl-names = "default";
130	pinctrl-0 = <&sdhost_gpio48>;
131	bus-width = <4>;
132	status = "okay";
133};
134
135&uart0 {
136	pinctrl-names = "default";
137	pinctrl-0 = <&uart0_gpio32 &uart0_ctsrts_gpio30>;
138	status = "okay";
139
140	bluetooth {
141		compatible = "brcm,bcm43438-bt";
142		max-speed = <2000000>;
143		shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
144	};
145};
146
147&uart1 {
148	pinctrl-names = "default";
149	pinctrl-0 = <&uart1_gpio14>;
150	status = "okay";
 
 
 
 
151};