Skip to content

GPIO set questions #177

@MouchenHung-QUANTA

Description

@MouchenHung-QUANTA

Hi @rainlinWW,

We have two questions about gpio settings.

Q1. Open drain pin settings
There's a scenario that OPEN DRAIN pin would set to OUTPUT(Initial direction is INPUT ) while setting it to low. Is this a normal behavior?

p.s. Take GPIO_B6 (FM_S3M_CPU0_CD_INIT_ERROR) as example. In table plat_gpio_cfg[],
{ chip_gpio, 14, ENABLE, DISABLE, GPIO_INPUT, GPIO_LOW, OPEN_DRAIN, GPIO_INT_DISABLE, NULL },

Q2. GPIO initial settings
Why does gpio_set() need to do twice in gpio_init()? If we only keep the second one, would anything goes wrong?

Thanks,
Mouchen

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions