Skip to content

Commit 8bd360f

Browse files
galaknashif
authored andcommitted
boards: galileo: Fix I2C device name defaults
Fix setting of the I2C bus master device name for the GPIO_PCAL9535A device and PWM_PCA9685. We need to extract them from the dts otherwise they will just get set to "". Fixes #13458 Signed-off-by: Kumar Gala <[email protected]>
1 parent 6de4578 commit 8bd360f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

boards/x86/galileo/Kconfig.defconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ config GPIO_PCAL9535A_0_DEV_NAME
4242
config GPIO_PCAL9535A_0_I2C_ADDR
4343
default 0x25
4444
config GPIO_PCAL9535A_0_I2C_MASTER_DEV_NAME
45-
default I2C_0_NAME
45+
default "$(dt_str_val,DT_SNPS_DESIGNWARE_I2C_90007000_LABEL)"
4646

4747
endif # GPIO_PCAL9535A_0
4848

@@ -56,7 +56,7 @@ config GPIO_PCAL9535A_1_DEV_NAME
5656
config GPIO_PCAL9535A_1_I2C_ADDR
5757
default 0x26
5858
config GPIO_PCAL9535A_1_I2C_MASTER_DEV_NAME
59-
default I2C_0_NAME
59+
default "$(dt_str_val,DT_SNPS_DESIGNWARE_I2C_90007000_LABEL)"
6060

6161
endif # GPIO_PCAL9535A_1
6262

@@ -70,7 +70,7 @@ config GPIO_PCAL9535A_2_DEV_NAME
7070
config GPIO_PCAL9535A_2_I2C_ADDR
7171
default 0x27
7272
config GPIO_PCAL9535A_2_I2C_MASTER_DEV_NAME
73-
default I2C_0_NAME
73+
default "$(dt_str_val,DT_SNPS_DESIGNWARE_I2C_90007000_LABEL)"
7474

7575
endif # GPIO_PCAL9535A_2
7676

@@ -95,7 +95,7 @@ config PWM_PCA9685_0_DEV_NAME
9595
config PWM_PCA9685_0_I2C_ADDR
9696
default 0x47
9797
config PWM_PCA9685_0_I2C_MASTER_DEV_NAME
98-
default I2C_0_NAME
98+
default "$(dt_str_val,DT_SNPS_DESIGNWARE_I2C_90007000_LABEL)"
9999

100100
endif # PWM_PCA9685_0
101101
endif # PWM_PCA9685

0 commit comments

Comments
 (0)