Skip to content

Commit a11c5fd

Browse files
authored
ESP32: fix the issue when setting target esp32h2 (#22865)
1 parent 5f29159 commit a11c5fd

File tree

1 file changed

+9
-3
lines changed
  • config/esp32/components/chip

1 file changed

+9
-3
lines changed

config/esp32/components/chip/Kconfig

+9-3
Original file line numberDiff line numberDiff line change
@@ -520,32 +520,38 @@ menu "CHIP Device Layer"
520520
visible if ENABLE_ETHERNET_TELEMETRY
521521

522522
config GPIO_RANGE_MIN
523-
int
523+
int
524+
depends on ENABLE_ETHERNET_TELEMETRY
524525
default 0
525526

526527
config GPIO_RANGE_MAX
527-
int
528+
int
529+
depends on ENABLE_ETHERNET_TELEMETRY
528530
default 33 if IDF_TARGET_ESP32
529531
default 46 if IDF_TARGET_ESP32S2
530532
default 19 if IDF_TARGET_ESP32C3
531533
default 48 if IDF_TARGET_ESP32S3
534+
default 26 if IDF_TARGET_ESP32H2
532535

533536
config ETH_MDC_GPIO
534537
int "SMI MDC GPIO number"
538+
depends on ENABLE_ETHERNET_TELEMETRY
535539
range GPIO_RANGE_MIN GPIO_RANGE_MAX
536-
default 23 if ENABLE_ETHERNET_TELEMETRY
540+
default 23 if ENABLE_ETHERNET_TELEMETRY
537541
help
538542
Set the GPIO number used by SMI MDC.
539543

540544
config ETH_MDIO_GPIO
541545
int "SMI MDIO GPIO number"
546+
depends on ENABLE_ETHERNET_TELEMETRY
542547
range GPIO_RANGE_MIN GPIO_RANGE_MAX
543548
default 18 if ENABLE_ETHERNET_TELEMETRY
544549
help
545550
Set the GPIO number used by SMI MDIO.
546551

547552
config ETH_PHY_RST_GPIO
548553
int "PHY Reset GPIO number"
554+
depends on ENABLE_ETHERNET_TELEMETRY
549555
range -1 GPIO_RANGE_MAX
550556
default 5 if ENABLE_ETHERNET_TELEMETRY
551557
help

0 commit comments

Comments
 (0)