.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
---|
1 | 2 | /* |
---|
2 | 3 | * 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 |
---|
10 | 4 | */ |
---|
11 | 5 | |
---|
12 | 6 | /dts-v1/; |
---|
.. | .. |
---|
18 | 12 | compatible = "raspberrypi,model-zero-w", "brcm,bcm2835"; |
---|
19 | 13 | model = "Raspberry Pi Zero W"; |
---|
20 | 14 | |
---|
| 15 | + memory@0 { |
---|
| 16 | + device_type = "memory"; |
---|
| 17 | + reg = <0 0x20000000>; |
---|
| 18 | + }; |
---|
| 19 | + |
---|
21 | 20 | chosen { |
---|
22 | 21 | /* 8250 auxiliary UART instead of pl011 */ |
---|
23 | 22 | stdout-path = "serial1:115200n8"; |
---|
24 | 23 | }; |
---|
25 | 24 | |
---|
26 | 25 | leds { |
---|
27 | | - act { |
---|
| 26 | + led-act { |
---|
28 | 27 | gpios = <&gpio 47 GPIO_ACTIVE_LOW>; |
---|
29 | 28 | }; |
---|
30 | 29 | }; |
---|
31 | 30 | |
---|
32 | 31 | wifi_pwrseq: wifi-pwrseq { |
---|
33 | 32 | compatible = "mmc-pwrseq-simple"; |
---|
34 | | - pinctrl-names = "default"; |
---|
35 | | - pinctrl-0 = <&wl_on>; |
---|
36 | 33 | reset-gpios = <&gpio 41 GPIO_ACTIVE_LOW>; |
---|
37 | 34 | }; |
---|
38 | 35 | }; |
---|
.. | .. |
---|
46 | 43 | * "FOO" = GPIO line named "FOO" on the schematic |
---|
47 | 44 | * "FOO_N" = GPIO line named "FOO" on schematic, active low |
---|
48 | 45 | */ |
---|
49 | | - gpio-line-names = "GPIO0", |
---|
50 | | - "GPIO1", |
---|
| 46 | + gpio-line-names = "ID_SDA", |
---|
| 47 | + "ID_SCL", |
---|
51 | 48 | "SDA1", |
---|
52 | 49 | "SCL1", |
---|
53 | 50 | "GPIO_GCLK", |
---|
.. | .. |
---|
77 | 74 | "GPIO27", |
---|
78 | 75 | "SDA0", |
---|
79 | 76 | "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", |
---|
90 | 89 | "CAM_GPIO1", /* GPIO40 */ |
---|
91 | 90 | "WL_ON", /* GPIO41 */ |
---|
92 | 91 | "NC", /* GPIO42 */ |
---|
.. | .. |
---|
104 | 103 | "SD_DATA3_R"; |
---|
105 | 104 | |
---|
106 | 105 | pinctrl-0 = <&gpioout &alt0>; |
---|
107 | | - |
---|
108 | | - wl_on: wl-on { |
---|
109 | | - brcm,pins = <41>; |
---|
110 | | - brcm,function = <BCM2835_FSEL_GPIO_OUT>; |
---|
111 | | - }; |
---|
112 | 106 | }; |
---|
113 | 107 | |
---|
114 | 108 | &hdmi { |
---|
115 | 109 | hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; |
---|
| 110 | + power-domains = <&power RPI_POWER_DOMAIN_HDMI>; |
---|
| 111 | + status = "okay"; |
---|
116 | 112 | }; |
---|
117 | 113 | |
---|
118 | 114 | &sdhci { |
---|
.. | .. |
---|
120 | 116 | #size-cells = <0>; |
---|
121 | 117 | pinctrl-names = "default"; |
---|
122 | 118 | pinctrl-0 = <&emmc_gpio34 &gpclk2_gpio43>; |
---|
| 119 | + bus-width = <4>; |
---|
123 | 120 | mmc-pwrseq = <&wifi_pwrseq>; |
---|
124 | 121 | non-removable; |
---|
125 | 122 | status = "okay"; |
---|
.. | .. |
---|
130 | 127 | }; |
---|
131 | 128 | }; |
---|
132 | 129 | |
---|
| 130 | +&sdhost { |
---|
| 131 | + pinctrl-names = "default"; |
---|
| 132 | + pinctrl-0 = <&sdhost_gpio48>; |
---|
| 133 | + bus-width = <4>; |
---|
| 134 | + status = "okay"; |
---|
| 135 | +}; |
---|
| 136 | + |
---|
133 | 137 | &uart0 { |
---|
134 | 138 | pinctrl-names = "default"; |
---|
135 | 139 | pinctrl-0 = <&uart0_gpio32 &uart0_ctsrts_gpio30>; |
---|