public inbox for linux-gpio@vger.kernel.org
 help / color / mirror / Atom feed
* pinctrl: Questions regarding pinconf_ops and bcm2835
@ 2024-01-03 12:12 Stefan Wahren
  2024-01-08  7:33 ` Stefan Wahren
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Wahren @ 2024-01-03 12:12 UTC (permalink / raw)
  To: linux-gpio

Hi,
i recently noticed that the BCM2711 (used on Raspberry Pi 4) doesn't
implement pin_config_get, but this SOC is able to read back the bias
settings of the pins. After looking deeper into the pinconf_ops i had
some questions:

1. Are there any other benefits from implementing pin_config_get except
of a proper debugfs output?

2. Since the pin direction of BCM2835/2711 (input/output) is already
handled by pinmux_ops via gpio_set_direction, how should pin_config_set
handle PIN_CONFIG_OUTPUT_ENABLE?

3. In case pin_config_get is implemented should the parameter
PIN_CONFIG_OUTPUT_ENABLE and PIN_CONFIG_OUTPUT be handled?

Best regards



^ permalink raw reply	[flat|nested] 4+ messages in thread
* pinctrl: Questions regarding pinconf_ops and bcm2835
@ 2024-01-20 11:34 Stefan Wahren
  2024-01-20 12:42 ` Kent Gibson
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Wahren @ 2024-01-20 11:34 UTC (permalink / raw)
  To: Kent Gibson, Bartosz Golaszewski; +Cc: linux-gpio

Hi,
i recently noticed that the BCM2711 (used on Raspberry Pi 4) doesn't
implement pin_config_get, but this SOC is able to read back the bias
settings of the pins. After looking deeper into the pinconf_ops i had
some questions:

1. Are there any other benefits from implementing pin_config_get except
of a proper debugfs output?

2. Since the pin direction of BCM2835/2711 (input/output) is already
handled by pinmux_ops via gpio_set_direction, how should pin_config_set
handle PIN_CONFIG_OUTPUT_ENABLE?

3. In case pin_config_get is implemented should the parameter
PIN_CONFIG_OUTPUT_ENABLE and PIN_CONFIG_OUTPUT be handled?

Best regards




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-20 12:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-03 12:12 pinctrl: Questions regarding pinconf_ops and bcm2835 Stefan Wahren
2024-01-08  7:33 ` Stefan Wahren
  -- strict thread matches above, loose matches on Subject: below --
2024-01-20 11:34 Stefan Wahren
2024-01-20 12:42 ` Kent Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox