mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
net: phy: air_en8811h: select LED GPIO pins based on AN8811HB package variant
The AN8811HB comes in two package variants, AN8811HBCN and AN8811HBN, which use different GPIO pins to drive LED outputs. AN8811HBCN uses GPIOs 0, 1, and 15, while AN8811HBN uses GPIOs 3, 4, and 5. Using a fixed GPIO assignment causes incorrect LED behavior on one of the variants. Read the package variant from the read-only silicon identification bits in AN8811HB_HWTRAP2 at probe time and store it in priv->is_an8811hbcn. Add an8811hb_led_gpio_setup() to configure the correct GPIO output pins and select lines based on the detected variant, and call it from config_init. Signed-off-by: Weiting Lee <weiting.lee@airoha.com> Link: https://patch.msgid.link/20260907015638.2875763-1-weiting.lee@airoha.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
ae768e41c0
commit
10ca508878
1 changed files with 63 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue