Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: sunxi: a83t: Fix NAND function name for some pins

The other NAND pins on Port C use the "nand0" function name.
"nand0" also matches all of the other Allwinner SoCs.

Fixes: 4730f33f0d82 ("pinctrl: sunxi: add allwinner A83T PIO controller support")
Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20220526024956.49500-1-samuel@sholland.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Samuel Holland and committed by
Linus Walleij
aaefa292 84a85d3f

+5 -5
+5 -5
drivers/pinctrl/sunxi/pinctrl-sun8i-a83t.c
··· 158 158 SUNXI_PIN(SUNXI_PINCTRL_PIN(C, 14), 159 159 SUNXI_FUNCTION(0x0, "gpio_in"), 160 160 SUNXI_FUNCTION(0x1, "gpio_out"), 161 - SUNXI_FUNCTION(0x2, "nand"), /* DQ6 */ 161 + SUNXI_FUNCTION(0x2, "nand0"), /* DQ6 */ 162 162 SUNXI_FUNCTION(0x3, "mmc2")), /* D6 */ 163 163 SUNXI_PIN(SUNXI_PINCTRL_PIN(C, 15), 164 164 SUNXI_FUNCTION(0x0, "gpio_in"), 165 165 SUNXI_FUNCTION(0x1, "gpio_out"), 166 - SUNXI_FUNCTION(0x2, "nand"), /* DQ7 */ 166 + SUNXI_FUNCTION(0x2, "nand0"), /* DQ7 */ 167 167 SUNXI_FUNCTION(0x3, "mmc2")), /* D7 */ 168 168 SUNXI_PIN(SUNXI_PINCTRL_PIN(C, 16), 169 169 SUNXI_FUNCTION(0x0, "gpio_in"), 170 170 SUNXI_FUNCTION(0x1, "gpio_out"), 171 - SUNXI_FUNCTION(0x2, "nand"), /* DQS */ 171 + SUNXI_FUNCTION(0x2, "nand0"), /* DQS */ 172 172 SUNXI_FUNCTION(0x3, "mmc2")), /* RST */ 173 173 SUNXI_PIN(SUNXI_PINCTRL_PIN(C, 17), 174 174 SUNXI_FUNCTION(0x0, "gpio_in"), 175 175 SUNXI_FUNCTION(0x1, "gpio_out"), 176 - SUNXI_FUNCTION(0x2, "nand")), /* CE2 */ 176 + SUNXI_FUNCTION(0x2, "nand0")), /* CE2 */ 177 177 SUNXI_PIN(SUNXI_PINCTRL_PIN(C, 18), 178 178 SUNXI_FUNCTION(0x0, "gpio_in"), 179 179 SUNXI_FUNCTION(0x1, "gpio_out"), 180 - SUNXI_FUNCTION(0x2, "nand")), /* CE3 */ 180 + SUNXI_FUNCTION(0x2, "nand0")), /* CE3 */ 181 181 /* Hole */ 182 182 SUNXI_PIN(SUNXI_PINCTRL_PIN(D, 2), 183 183 SUNXI_FUNCTION(0x0, "gpio_in"),