Tom Rini | 2467224 | 2018-06-01 21:10:18 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Marek Vasut | 2a46a0b | 2018-04-26 13:31:39 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Device Tree Source extras for U-Boot for the Ebisu board |
| 4 | * |
| 5 | * Copyright (C) 2018 Marek Vasut <marek.vasut@gmail.com> |
Marek Vasut | 2a46a0b | 2018-04-26 13:31:39 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include "r8a77990-ebisu.dts" |
| 9 | #include "r8a77990-u-boot.dtsi" |
Marek Vasut | ee5b69f | 2018-12-03 22:12:47 +0100 | [diff] [blame^] | 10 | |
| 11 | / { |
| 12 | reg_1p8v: regulator0 { |
| 13 | compatible = "regulator-fixed"; |
| 14 | regulator-name = "fixed-1.8V"; |
| 15 | regulator-min-microvolt = <1800000>; |
| 16 | regulator-max-microvolt = <1800000>; |
| 17 | regulator-boot-on; |
| 18 | regulator-always-on; |
| 19 | }; |
| 20 | |
| 21 | reg_3p3v: regulator1 { |
| 22 | compatible = "regulator-fixed"; |
| 23 | regulator-name = "fixed-3.3V"; |
| 24 | regulator-min-microvolt = <3300000>; |
| 25 | regulator-max-microvolt = <3300000>; |
| 26 | regulator-boot-on; |
| 27 | regulator-always-on; |
| 28 | }; |
| 29 | |
| 30 | vcc_sdhi0: regulator-vcc-sdhi0 { |
| 31 | compatible = "regulator-fixed"; |
| 32 | |
| 33 | regulator-name = "SDHI0 Vcc"; |
| 34 | regulator-min-microvolt = <3300000>; |
| 35 | regulator-max-microvolt = <3300000>; |
| 36 | |
| 37 | gpio = <&gpio5 17 GPIO_ACTIVE_HIGH>; |
| 38 | enable-active-high; |
| 39 | }; |
| 40 | |
| 41 | vccq_sdhi0: regulator-vccq-sdhi0 { |
| 42 | compatible = "regulator-gpio"; |
| 43 | |
| 44 | regulator-name = "SDHI0 VccQ"; |
| 45 | regulator-min-microvolt = <1800000>; |
| 46 | regulator-max-microvolt = <3300000>; |
| 47 | |
| 48 | gpios = <&gpio5 18 GPIO_ACTIVE_HIGH>; |
| 49 | gpios-states = <1>; |
| 50 | states = <3300000 1 |
| 51 | 1800000 0>; |
| 52 | }; |
| 53 | |
| 54 | vcc_sdhi1: regulator-vcc-sdhi1 { |
| 55 | compatible = "regulator-fixed"; |
| 56 | |
| 57 | regulator-name = "SDHI1 Vcc"; |
| 58 | regulator-min-microvolt = <3300000>; |
| 59 | regulator-max-microvolt = <3300000>; |
| 60 | |
| 61 | gpio = <&gpio0 4 GPIO_ACTIVE_HIGH>; |
| 62 | enable-active-high; |
| 63 | }; |
| 64 | |
| 65 | vccq_sdhi1: regulator-vccq-sdhi1 { |
| 66 | compatible = "regulator-gpio"; |
| 67 | |
| 68 | regulator-name = "SDHI1 VccQ"; |
| 69 | regulator-min-microvolt = <1800000>; |
| 70 | regulator-max-microvolt = <3300000>; |
| 71 | |
| 72 | gpios = <&gpio3 15 GPIO_ACTIVE_HIGH>; |
| 73 | gpios-states = <1>; |
| 74 | states = <3300000 1 |
| 75 | 1800000 0>; |
| 76 | }; |
| 77 | }; |
| 78 | |
| 79 | &pfc { |
| 80 | sdhi0_pins: sd0 { |
| 81 | groups = "sdhi0_data4", "sdhi0_ctrl"; |
| 82 | function = "sdhi0"; |
| 83 | power-source = <3300>; |
| 84 | }; |
| 85 | |
| 86 | sdhi0_pins_uhs: sd0_uhs { |
| 87 | groups = "sdhi0_data4", "sdhi0_ctrl"; |
| 88 | function = "sdhi0"; |
| 89 | power-source = <1800>; |
| 90 | }; |
| 91 | |
| 92 | sdhi1_pins: sd1 { |
| 93 | groups = "sdhi1_data4", "sdhi1_ctrl"; |
| 94 | function = "sdhi1"; |
| 95 | power-source = <3300>; |
| 96 | }; |
| 97 | |
| 98 | sdhi1_pins_uhs: sd1_uhs { |
| 99 | groups = "sdhi1_data4", "sdhi1_ctrl"; |
| 100 | function = "sdhi1"; |
| 101 | power-source = <1800>; |
| 102 | }; |
| 103 | |
| 104 | sdhi3_pins: sd2 { |
| 105 | groups = "sdhi3_data8", "sdhi3_ctrl", "sdhi3_ds"; |
| 106 | function = "sdhi3"; |
| 107 | power-source = <1800>; |
| 108 | }; |
| 109 | |
| 110 | sdhi3_pins_uhs: sd2_uhs { |
| 111 | groups = "sdhi3_data8", "sdhi3_ctrl", "sdhi3_ds"; |
| 112 | function = "sdhi3"; |
| 113 | power-source = <1800>; |
| 114 | }; |
| 115 | }; |
| 116 | |
| 117 | &sdhi0 { |
| 118 | /* full size SD */ |
| 119 | pinctrl-0 = <&sdhi0_pins>; |
| 120 | pinctrl-1 = <&sdhi0_pins_uhs>; |
| 121 | pinctrl-names = "default", "state_uhs"; |
| 122 | |
| 123 | vmmc-supply = <&vcc_sdhi0>; |
| 124 | vqmmc-supply = <&vccq_sdhi0>; |
| 125 | cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>; |
| 126 | wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>; |
| 127 | bus-width = <4>; |
| 128 | sd-uhs-sdr12; |
| 129 | sd-uhs-sdr25; |
| 130 | sd-uhs-sdr50; |
| 131 | sd-uhs-sdr104; |
| 132 | status = "okay"; |
| 133 | max-frequency = <208000000>; |
| 134 | }; |
| 135 | |
| 136 | &sdhi1 { |
| 137 | /* microSD */ |
| 138 | pinctrl-0 = <&sdhi1_pins>; |
| 139 | pinctrl-1 = <&sdhi1_pins_uhs>; |
| 140 | pinctrl-names = "default", "state_uhs"; |
| 141 | |
| 142 | vmmc-supply = <&vcc_sdhi1>; |
| 143 | vqmmc-supply = <&vccq_sdhi1>; |
| 144 | cd-gpios = <&gpio3 14 GPIO_ACTIVE_LOW>; |
| 145 | bus-width = <4>; |
| 146 | sd-uhs-sdr12; |
| 147 | sd-uhs-sdr25; |
| 148 | sd-uhs-sdr50; |
| 149 | sd-uhs-sdr104; |
| 150 | status = "okay"; |
| 151 | max-frequency = <208000000>; |
| 152 | }; |
| 153 | |
| 154 | &sdhi3 { |
| 155 | /* used for on-board 8bit eMMC */ |
| 156 | pinctrl-0 = <&sdhi3_pins>; |
| 157 | pinctrl-1 = <&sdhi3_pins_uhs>; |
| 158 | pinctrl-names = "default", "state_uhs"; |
| 159 | |
| 160 | vmmc-supply = <®_3p3v>; |
| 161 | vqmmc-supply = <®_1p8v>; |
| 162 | bus-width = <8>; |
| 163 | mmc-hs200-1_8v; |
| 164 | mmc-hs400-1_8v; |
| 165 | non-removable; |
| 166 | status = "okay"; |
| 167 | }; |