]> Git Repo - linux.git/commitdiff
ARM: dts: am33xx: modify AM33XX_IOPAD for #pinctrl-cells = 2
authorDrew Fustini <[email protected]>
Mon, 21 Sep 2020 22:50:55 +0000 (00:50 +0200)
committerTony Lindgren <[email protected]>
Wed, 23 Sep 2020 07:39:26 +0000 (10:39 +0300)
Modify the AM33XX_IOPAD macro so that it works now that #pinctrl-cells =
<2>. The third parameter is just a zero and the pinctrl-single driver
will just OR this with the second parameter so it has no actual effect.

There are no longer any dts files using this macro (following my patch
to am335x-guardian.dts), but this will keep dts files not in mainline
from breaking.

Fixes: 27c90e5e48d0 ("ARM: dts: am33xx-l4: change #pinctrl-cells from 1 to 2")
Suggested-by: Tony Lindgren <[email protected]>
Reported-by: Trent Piepho <[email protected]>
Link: https://lore.kernel.org/linux-devicetree/[email protected]/
Signed-off-by: Drew Fustini <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
include/dt-bindings/pinctrl/omap.h

index 2d2a8c7378222165d2e111181cb8648165bdbfe3..f48245ff87e5f189611e4c72bbce9ad84b704e12 100644 (file)
@@ -64,7 +64,7 @@
 #define OMAP3_WKUP_IOPAD(pa, val)      OMAP_IOPAD_OFFSET((pa), 0x2a00) (val)
 #define DM814X_IOPAD(pa, val)          OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
 #define DM816X_IOPAD(pa, val)          OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
-#define AM33XX_IOPAD(pa, val)          OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
+#define AM33XX_IOPAD(pa, val)          OMAP_IOPAD_OFFSET((pa), 0x0800) (val) (0)
 #define AM33XX_PADCONF(pa, conf, mux)  OMAP_IOPAD_OFFSET((pa), 0x0800) (conf) (mux)
 
 /*
This page took 0.061068 seconds and 4 git commands to generate.