1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/mmc/mmc-pwr 4 $id: http://devicetree.org/schemas/mmc/mmc-pwrseq-emmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Simple eMMC hardware reset provider 7 title: Simple eMMC hardware reset provider 8 8 9 maintainers: 9 maintainers: 10 - Ulf Hansson <ulf.hansson@linaro.org> 10 - Ulf Hansson <ulf.hansson@linaro.org> 11 11 12 description: 12 description: 13 The purpose of this driver is to perform sta 13 The purpose of this driver is to perform standard eMMC hw reset 14 procedure, as described by Jedec 4.4 specifi 14 procedure, as described by Jedec 4.4 specification. This procedure is 15 performed just after MMC core enabled power 15 performed just after MMC core enabled power to the given mmc host (to 16 fix possible issues if bootloader has left e 16 fix possible issues if bootloader has left eMMC card in initialized or 17 unknown state), and before performing comple 17 unknown state), and before performing complete system reboot (also in 18 case of emergency reboot call). The latter i 18 case of emergency reboot call). The latter is needed on boards, which 19 doesn't have hardware reset logic connected 19 doesn't have hardware reset logic connected to emmc card and (limited or 20 broken) ROM bootloaders are unable to read s 20 broken) ROM bootloaders are unable to read second stage from the emmc 21 card if the card is left in unknown or alrea 21 card if the card is left in unknown or already initialized state. 22 22 23 properties: 23 properties: 24 compatible: 24 compatible: 25 const: mmc-pwrseq-emmc 25 const: mmc-pwrseq-emmc 26 26 27 reset-gpios: 27 reset-gpios: 28 minItems: 1 28 minItems: 1 29 description: 29 description: 30 contains a GPIO specifier. The reset GPI 30 contains a GPIO specifier. The reset GPIO is asserted 31 and then deasserted to perform eMMC card 31 and then deasserted to perform eMMC card reset. To perform 32 reset procedure as described in Jedec 4. 32 reset procedure as described in Jedec 4.4 specification, the 33 gpio line should be defined as GPIO_ACTI 33 gpio line should be defined as GPIO_ACTIVE_LOW. 34 34 35 required: 35 required: 36 - compatible 36 - compatible 37 - reset-gpios 37 - reset-gpios 38 38 39 additionalProperties: false 39 additionalProperties: false 40 40 41 examples: 41 examples: 42 - | 42 - | 43 #include <dt-bindings/gpio/gpio.h> 43 #include <dt-bindings/gpio/gpio.h> 44 pwrseq { 44 pwrseq { 45 compatible = "mmc-pwrseq-emmc"; 45 compatible = "mmc-pwrseq-emmc"; 46 reset-gpios = <&gpio1 12 GPIO_ACTIVE_LOW 46 reset-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; 47 }; 47 }; 48 ... 48 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.