| .. | .. |
|---|
| 26 | 26 | leds { |
|---|
| 27 | 27 | compatible = "gpio-leds"; |
|---|
| 28 | 28 | |
|---|
| 29 | | - system { |
|---|
| 29 | + led-system { |
|---|
| 30 | 30 | label = "wetek-play:system-status"; |
|---|
| 31 | 31 | gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_HIGH>; |
|---|
| 32 | 32 | default-state = "on"; |
|---|
| .. | .. |
|---|
| 58 | 58 | regulator-name = "VDDAO_3V3"; |
|---|
| 59 | 59 | regulator-min-microvolt = <3300000>; |
|---|
| 60 | 60 | regulator-max-microvolt = <3300000>; |
|---|
| 61 | + }; |
|---|
| 62 | + |
|---|
| 63 | + vddio_ao18: regulator-vddio_ao18 { |
|---|
| 64 | + compatible = "regulator-fixed"; |
|---|
| 65 | + regulator-name = "VDDIO_AO18"; |
|---|
| 66 | + regulator-min-microvolt = <1800000>; |
|---|
| 67 | + regulator-max-microvolt = <1800000>; |
|---|
| 68 | + regulator-always-on; |
|---|
| 61 | 69 | }; |
|---|
| 62 | 70 | |
|---|
| 63 | 71 | vcc_3v3: regulator-vcc_3v3 { |
|---|
| .. | .. |
|---|
| 131 | 139 | |
|---|
| 132 | 140 | amlogic,tx-delay-ns = <2>; |
|---|
| 133 | 141 | |
|---|
| 134 | | - snps,reset-gpio = <&gpio GPIOZ_14 0>; |
|---|
| 135 | | - snps,reset-delays-us = <0 10000 1000000>; |
|---|
| 136 | | - snps,reset-active-low; |
|---|
| 137 | | - |
|---|
| 138 | 142 | mdio { |
|---|
| 139 | 143 | compatible = "snps,dwmac-mdio"; |
|---|
| 140 | 144 | #address-cells = <1>; |
|---|
| .. | .. |
|---|
| 143 | 147 | eth_phy0: ethernet-phy@0 { |
|---|
| 144 | 148 | /* Realtek RTL8211F (0x001cc916) */ |
|---|
| 145 | 149 | reg = <0>; |
|---|
| 146 | | - eee-broken-1000t; |
|---|
| 150 | + |
|---|
| 151 | + reset-assert-us = <10000>; |
|---|
| 152 | + reset-deassert-us = <80000>; |
|---|
| 153 | + reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>; |
|---|
| 154 | + |
|---|
| 155 | + interrupt-parent = <&gpio_intc>; |
|---|
| 156 | + /* MAC_INTR on GPIOZ_15 */ |
|---|
| 157 | + interrupts = <29 IRQ_TYPE_LEVEL_LOW>; |
|---|
| 147 | 158 | }; |
|---|
| 148 | 159 | }; |
|---|
| 149 | 160 | }; |
|---|
| .. | .. |
|---|
| 152 | 163 | status = "okay"; |
|---|
| 153 | 164 | pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; |
|---|
| 154 | 165 | pinctrl-names = "default"; |
|---|
| 166 | + hdmi-supply = <&vddio_ao18>; |
|---|
| 155 | 167 | }; |
|---|
| 156 | 168 | |
|---|
| 157 | 169 | &hdmi_tx_tmds_port { |
|---|
| .. | .. |
|---|
| 174 | 186 | clock-names = "clkin0"; |
|---|
| 175 | 187 | }; |
|---|
| 176 | 188 | |
|---|
| 189 | +&saradc { |
|---|
| 190 | + status = "okay"; |
|---|
| 191 | + vref-supply = <&vddio_ao18>; |
|---|
| 192 | +}; |
|---|
| 193 | + |
|---|
| 177 | 194 | /* Wireless SDIO Module */ |
|---|
| 178 | 195 | &sd_emmc_a { |
|---|
| 179 | 196 | status = "okay"; |
|---|
| .. | .. |
|---|
| 185 | 202 | |
|---|
| 186 | 203 | bus-width = <4>; |
|---|
| 187 | 204 | cap-sd-highspeed; |
|---|
| 188 | | - max-frequency = <100000000>; |
|---|
| 205 | + max-frequency = <50000000>; |
|---|
| 189 | 206 | |
|---|
| 190 | 207 | non-removable; |
|---|
| 191 | 208 | disable-wp; |
|---|
| 209 | + |
|---|
| 210 | + /* WiFi firmware requires power to be kept while in suspend */ |
|---|
| 211 | + keep-power-in-suspend; |
|---|
| 192 | 212 | |
|---|
| 193 | 213 | mmc-pwrseq = <&sdio_pwrseq>; |
|---|
| 194 | 214 | |
|---|
| .. | .. |
|---|
| 210 | 230 | |
|---|
| 211 | 231 | bus-width = <4>; |
|---|
| 212 | 232 | cap-sd-highspeed; |
|---|
| 213 | | - max-frequency = <100000000>; |
|---|
| 233 | + max-frequency = <50000000>; |
|---|
| 214 | 234 | disable-wp; |
|---|
| 215 | 235 | |
|---|
| 216 | | - cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>; |
|---|
| 217 | | - cd-inverted; |
|---|
| 236 | + cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; |
|---|
| 218 | 237 | |
|---|
| 219 | 238 | vmmc-supply = <&vddao_3v3>; |
|---|
| 220 | 239 | vqmmc-supply = <&vcc_3v3>; |
|---|
| .. | .. |
|---|
| 240 | 259 | vqmmc-supply = <&vddio_boot>; |
|---|
| 241 | 260 | }; |
|---|
| 242 | 261 | |
|---|
| 262 | +/* This is connected to the Bluetooth module: */ |
|---|
| 263 | +&uart_A { |
|---|
| 264 | + status = "okay"; |
|---|
| 265 | + pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; |
|---|
| 266 | + pinctrl-names = "default"; |
|---|
| 267 | + uart-has-rtscts; |
|---|
| 268 | + |
|---|
| 269 | + bluetooth { |
|---|
| 270 | + compatible = "brcm,bcm43438-bt"; |
|---|
| 271 | + shutdown-gpios = <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>; |
|---|
| 272 | + }; |
|---|
| 273 | +}; |
|---|
| 274 | + |
|---|
| 243 | 275 | /* This UART is brought out to the DB9 connector */ |
|---|
| 244 | 276 | &uart_AO { |
|---|
| 245 | 277 | status = "okay"; |
|---|