hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts
....@@ -1,12 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0+
12 /*
23 * Copyright (C) 2017 Stefan Wahren <stefan.wahren@i2se.com>
3
- *
4
- * The code contained herein is licensed under the GNU General Public
5
- * License. You may obtain a copy of the GNU General Public License
6
- * Version 2 or later at the following locations:
7
- *
8
- * http://www.opensource.org/licenses/gpl-license.html
9
- * http://www.gnu.org/copyleft/gpl.html
104 */
115
126 /dts-v1/;
....@@ -18,21 +12,24 @@
1812 compatible = "raspberrypi,model-zero-w", "brcm,bcm2835";
1913 model = "Raspberry Pi Zero W";
2014
15
+ memory@0 {
16
+ device_type = "memory";
17
+ reg = <0 0x20000000>;
18
+ };
19
+
2120 chosen {
2221 /* 8250 auxiliary UART instead of pl011 */
2322 stdout-path = "serial1:115200n8";
2423 };
2524
2625 leds {
27
- act {
26
+ led-act {
2827 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
2928 };
3029 };
3130
3231 wifi_pwrseq: wifi-pwrseq {
3332 compatible = "mmc-pwrseq-simple";
34
- pinctrl-names = "default";
35
- pinctrl-0 = <&wl_on>;
3633 reset-gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
3734 };
3835 };
....@@ -46,8 +43,8 @@
4643 * "FOO" = GPIO line named "FOO" on the schematic
4744 * "FOO_N" = GPIO line named "FOO" on schematic, active low
4845 */
49
- gpio-line-names = "GPIO0",
50
- "GPIO1",
46
+ gpio-line-names = "ID_SDA",
47
+ "ID_SCL",
5148 "SDA1",
5249 "SCL1",
5350 "GPIO_GCLK",
....@@ -77,16 +74,18 @@
7774 "GPIO27",
7875 "SDA0",
7976 "SCL0",
80
- "NC", /* GPIO30 */
81
- "NC", /* GPIO31 */
82
- "NC", /* GPIO32 */
83
- "NC", /* GPIO33 */
84
- "NC", /* GPIO34 */
85
- "NC", /* GPIO35 */
86
- "NC", /* GPIO36 */
87
- "NC", /* GPIO37 */
88
- "NC", /* GPIO38 */
89
- "NC", /* GPIO39 */
77
+ /* Used by BT module */
78
+ "CTS0",
79
+ "RTS0",
80
+ "TXD0",
81
+ "RXD0",
82
+ /* Used by Wifi */
83
+ "SD1_CLK",
84
+ "SD1_CMD",
85
+ "SD1_DATA0",
86
+ "SD1_DATA1",
87
+ "SD1_DATA2",
88
+ "SD1_DATA3",
9089 "CAM_GPIO1", /* GPIO40 */
9190 "WL_ON", /* GPIO41 */
9291 "NC", /* GPIO42 */
....@@ -104,15 +103,12 @@
104103 "SD_DATA3_R";
105104
106105 pinctrl-0 = <&gpioout &alt0>;
107
-
108
- wl_on: wl-on {
109
- brcm,pins = <41>;
110
- brcm,function = <BCM2835_FSEL_GPIO_OUT>;
111
- };
112106 };
113107
114108 &hdmi {
115109 hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
110
+ power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
111
+ status = "okay";
116112 };
117113
118114 &sdhci {
....@@ -120,6 +116,7 @@
120116 #size-cells = <0>;
121117 pinctrl-names = "default";
122118 pinctrl-0 = <&emmc_gpio34 &gpclk2_gpio43>;
119
+ bus-width = <4>;
123120 mmc-pwrseq = <&wifi_pwrseq>;
124121 non-removable;
125122 status = "okay";
....@@ -130,6 +127,13 @@
130127 };
131128 };
132129
130
+&sdhost {
131
+ pinctrl-names = "default";
132
+ pinctrl-0 = <&sdhost_gpio48>;
133
+ bus-width = <4>;
134
+ status = "okay";
135
+};
136
+
133137 &uart0 {
134138 pinctrl-names = "default";
135139 pinctrl-0 = <&uart0_gpio32 &uart0_ctsrts_gpio30>;