Skip to contentSkip to conversation

gpio: sunxi: Add compatible string for H5 PIO

PATCH New Chris Blake 2 participants 6 messages Jan 15, 2018 – Jan 24, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: sunxi: Add compatible string for H5 PIO

Due to the changes in https://github.com/linux-sunxi/u-boot-sunxi/commit/8faac0941cd409c6ff3738fbf658de2296f48e9a, allwinner,sun50i-h5-pinctrl needs to be defined otherwise PIO does not work on H5 based boards.

---
 drivers/gpio/sunxi_gpio.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/sunxi_gpio.c +1 -0
index b47cc66..856b7ef 100644
@@ -345,6 +345,7 @@ static const struct udevice_id sunxi_gpio_ids[] = {
 	ID("allwinner,sun4i-a10-pinctrl",	a_all),
 	ID("allwinner,sun5i-a10s-pinctrl",	a_all),
 	ID("allwinner,sun5i-a13-pinctrl",	a_all),
+	ID("allwinner,sun50i-h5-pinctrl",	a_all),
 	ID("allwinner,sun6i-a31-pinctrl",	a_all),
 	ID("allwinner,sun6i-a31s-pinctrl",	a_all),
 	ID("allwinner,sun7i-a20-pinctrl",	a_all),

--
2.7.4

#2 lore raw

PATCH 1/1 gpio: sunxi: Add compatible string for H5 PIO

Quoted 4 lines · Jagan Teki
Quoted 1 line · Chris Blake

Due to the changes in https://github.com/linux-sunxi/u-boot-sunxi/commit/8faac0941cd409c6ff3738fbf658de2296f48e9a, allwinner,sun50i-h5-pinctrl needs to be defined otherwise PIO does not work on H5 based boards.

What is the issue observed w/o this?

Without this, H5 boards that rely on CONFIG_MACPWR for Ethernet do not support networking in u-boot. This also breaks access to GPIOs via the gpio cmd.

#3 lore raw

PATCH 1/1 gpio: sunxi: Add compatible string for H5 PIO

Quoted 9 lines · Chris Blake
Quoted 4 lines · Jagan Teki
Quoted 1 line · Chris Blake

Due to the changes in https://github.com/linux-sunxi/u-boot-sunxi/commit/8faac0941cd409c6ff3738fbf658de2296f48e9a, allwinner,sun50i-h5-pinctrl needs to be defined otherwise PIO does not work on H5 based boards.

What is the issue observed w/o this?

Without this, H5 boards that rely on CONFIG_MACPWR for Ethernet do not support networking in u-boot. This also breaks access to GPIOs via the gpio cmd.

Ok, did you verify it on opi-pc2?

#4 lore raw

PATCH 1/1 gpio: sunxi: Add compatible string for H5 PIO

Quoted 5 lines · Jagan Teki
Quoted 4 lines · Chris Blake
Quoted 3 lines · Jagan Teki
Quoted 1 line · Chris Blake

Due to the changes in https://github.com/linux-sunxi/u-boot-sunxi/commit/8faac0941cd409c6ff3738fbf658de2296f48e9a, allwinner,sun50i-h5-pinctrl needs to be defined otherwise PIO does not work on H5 based boards.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

What is the issue observed w/o this?

Without this, H5 boards that rely on CONFIG_MACPWR for Ethernet do not support networking in u-boot. This also breaks access to GPIOs via the gpio cmd.

Ok, did you verify it on opi-pc2?

This was verified on a FriendlyARM NanoPi Neo2 and FriendlyARM NanoPi Neo Core2.

#5 lore raw

PATCH 1/1 gpio: sunxi: Add compatible string for H5 PIO

In reply to Chris Blake
Quoted 12 lines · Chris Blake

Due to the changes in https://github.com/linux-sunxi/u-boot-sunxi/commit/8faac0941cd409c6ff3738fbf658de2296f48e9a, allwinner,sun50i-h5-pinctrl needs to be defined otherwise PIO does not work on H5 based boards.

---
 drivers/gpio/sunxi_gpio.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/sunxi_gpio.c +0 -0
index b47cc66..856b7ef 100644

drivers/gpio/sunxi_gpio.c static const struct udevice_id sunxi_gpio_ids[] = { · line 348

Quoted 4 lines
drivers/gpio/sunxi_gpio.c +1 -0
@@ -345,6 +345,7 @@ static const struct udevice_id sunxi_gpio_ids[] = {
        ID("allwinner,sun4i-a10-pinctrl",       a_all),
        ID("allwinner,sun5i-a10s-pinctrl",      a_all),
        ID("allwinner,sun5i-a13-pinctrl",       a_all),
+       ID("allwinner,sun50i-h5-pinctrl",       a_all),