mediatek: rtl8367s: modernize gpio API
authorRosen Penev <[email protected]>
Thu, 18 Sep 2025 23:15:02 +0000 (16:15 -0700)
committerHauke Mehrtens <[email protected]>
Sat, 29 Nov 2025 20:08:39 +0000 (21:08 +0100)
commitf614322d2822c16d985ef9994d5f6798c8756501
tree8ea63c389f26eeefe93c76d221bd335b4000665d
parent23a070dfb1fd3ed7659fad4934a6a38d8693326f
mediatek: rtl8367s: modernize gpio API

Upstream is strongly considering removing of_gpio.h. As of this commit,
3 upstream drivers remain with actual usage.

Get ahead of upstream and use the GPIOD API before the OF one goes away.

Rework to remove mediatek,reset-pin in favor of the standard
reset-gpios.

Fix wrong high GPIO.

Signed-off-by: Rosen Penev <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20088
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts
target/linux/mediatek/dts/mt7622-elecom-wrc-2533gent.dts
target/linux/mediatek/dts/mt7622-totolink-a8000ru.dts
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367s_mdio.c