u-boot-brain/board/st
Patrice Chotard 28c064e66b board: stm32mp1: Update power supply check via USB TYPE-C
Add 2 new checks:
 - detect when USB TYPE-C cable is not plugged correctly.
   In this case, GND and VBUS pins are connected but not CC1
   and CC2 pins.

 - detect is an USB Type-C charger supplies more than 3 Amps
   which is not compliant with the USB Type-C specification

In these 2 situations, stop the boot process and let red led
blinks forever.

   V cc1      |   V cc2     | power supply | red led | console message
range (Volts) |range (Volts)|   (Amps)     | blinks  |
--------------|-------------|--------------|---------|-----------------------------------
    > 2.15    |   < 0.2     |     > 3      | for ever| USB TYPE-C charger not compliant with specification
[2.15 - 1.23[ |   < 0.2     |     3        |   NO    | NO
[1.23 - 0.66[ |   < 0.2     |     1.5      | 3 times | WARNING 1.5A power supply detected
[0.66 - 0]    |   < 0.2     |     0.5      | 2 times | WARNING 500mA power supply detected
    < 0.2     |   < 0.2     |              | for ever| ERROR USB TYPE-C connection in unattached mode
    > 0.2     |   > 0.2     |              | for ever| ERROR USB TYPE-C connection in unattached mode

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
2019-06-06 17:40:17 +02:00
..
stih410-b2260 CONFIG_SPL_SYS_[DI]CACHE_OFF: add 2019-05-18 08:15:35 -04:00
stm32f429-discovery board: stm32: use bi_dram[0].start instead of hardcoded value 2018-08-13 14:03:57 -04:00
stm32f429-evaluation board: stm32: use bi_dram[0].start instead of hardcoded value 2018-08-13 14:03:57 -04:00
stm32f469-discovery board: stm32: use bi_dram[0].start instead of hardcoded value 2018-08-13 14:03:57 -04:00
stm32f746-disco board: stm32f746-disco: Get MII/RMII phy_mode from DT 2019-04-23 15:31:48 +02:00
stm32h743-disco lib: fdtdec: Rename routine fdtdec_setup_memory_size() 2018-07-19 10:49:56 +02:00
stm32h743-eval lib: fdtdec: Rename routine fdtdec_setup_memory_size() 2018-07-19 10:49:56 +02:00
stm32mp1 board: stm32mp1: Update power supply check via USB TYPE-C 2019-06-06 17:40:17 +02:00
stv0991 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00