Neil Armstrong | d3c9e9d | 2019-05-28 10:50:38 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * Copyright (c) 2019 BayLibre, SAS. |
| 4 | * Author: Neil Armstrong <narmstrong@baylibre.com> |
| 5 | */ |
| 6 | |
| 7 | #include "meson-g12a-u-boot.dtsi" |
| 8 | |
| 9 | / { |
| 10 | aliases { |
| 11 | ethernet0 = ðmac; |
| 12 | }; |
| 13 | |
| 14 | emmc_pwrseq: emmc-pwrseq { |
| 15 | compatible = "mmc-pwrseq-emmc"; |
| 16 | reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>; |
| 17 | }; |
| 18 | }; |
| 19 | |
| 20 | ðmac { |
| 21 | status = "okay"; |
| 22 | pinctrl-0 = <ð_leds_pins>; |
| 23 | pinctrl-names = "default"; |
| 24 | phy-handle = <&internal_ephy>; |
| 25 | phy-mode = "rmii"; |
| 26 | }; |
| 27 | |
| 28 | |
| 29 | /* SD card */ |
| 30 | &sd_emmc_b { |
| 31 | status = "okay"; |
| 32 | pinctrl-0 = <&sdcard_c_pins>; |
| 33 | pinctrl-1 = <&sdcard_clk_gate_c_pins>; |
| 34 | pinctrl-names = "default", "clk-gate"; |
| 35 | |
| 36 | bus-width = <4>; |
| 37 | cap-sd-highspeed; |
| 38 | max-frequency = <50000000>; |
| 39 | disable-wp; |
| 40 | |
| 41 | cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>; |
| 42 | vmmc-supply = <&vddao_3v3>; |
| 43 | vqmmc-supply = <&vddao_3v3>; |
| 44 | }; |
| 45 | |
| 46 | /* eMMC */ |
| 47 | &sd_emmc_c { |
| 48 | status = "okay"; |
| 49 | pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>; |
| 50 | pinctrl-1 = <&emmc_clk_gate_pins>; |
| 51 | pinctrl-names = "default", "clk-gate"; |
| 52 | |
| 53 | bus-width = <8>; |
| 54 | cap-mmc-highspeed; |
| 55 | mmc-ddr-1_8v; |
| 56 | mmc-hs200-1_8v; |
| 57 | max-frequency = <200000000>; |
| 58 | disable-wp; |
| 59 | |
| 60 | mmc-pwrseq = <&emmc_pwrseq>; |
| 61 | vmmc-supply = <&vcc_3v3>; |
| 62 | vqmmc-supply = <&flash_1v8>; |
| 63 | }; |