Add pinctrl support to AM33XX family of devices
cover Add pinctrl support to AM33XX family of devices
Adds pinctrl support to AM33XX family of devices. This patch is based on the pinctrl-simple driver submitted by Tony L
here: http://lwn.net/Articles/496075/
These patches were tested on AM335x-Bone and AM335x-EVM
AnilKumar Ch (2):
arm/dts: Add AM33XX basic pinctrl support arm/dts: Configure pinmuxs for user leds control on Bone
arch/arm/boot/dts/am335x-bone.dts | 24 ++++++++++++++++++++++++ arch/arm/boot/dts/am33xx.dtsi | 12 ++++++++++++ 2 files changed, 36 insertions(+)
Signature · 1 line
1.7.9.5
PATCH 1/2 arm/dts: Add AM33XX basic pinctrl support
Adds basic pinctrl support for AM33XX family of devices. This patch is based on the pinctrl-simple driver submitted by Tony Lindgren's
here: http://lwn.net/Articles/496075/
--- arch/arm/boot/dts/am33xx.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/am33xx.dtsi +12 -0
@@ -40,6 +40,18 @@ }; }; + am3358_pinmux: pinmux at 44E10800 { + compatible = "ti,omap4-padconf"; + reg = <0x44E10800 0x0338>; + #address-cells = <1>; + #size-cells = <0>; + #pinctrl-cells = <2>; + pinctrl-simple,register-width = <32>; + pinctrl-simple,function-mask = <0x7>; + pinctrl-simple,function-off = <0xffffffff>; + pinctrl-simple,pinconf-mask = <0x78>; + }; + /* * XXX: Use a flat representation of the AM33XX interconnect. * The real AM33XX interconnect network is quite complex.Since
Signature · 1 line
1.7.9.5
PATCH 2/2 arm/dts: Configure pinmuxs for user leds control on Bone
In reply to AnilKumar ChAdds GPIO pinctrl nodes to am3358_pinmux master node to control user leds (USR0, USR1, USR2 and USR3) present on BeagleBone.
--- arch/arm/boot/dts/am335x-bone.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm/boot/dts/am335x-bone.dts +24 -0
@@ -18,3 +18,27 @@ reg = <0x80000000 0x10000000>; /* 256 MB */ }; }; + +&am3358_pinmux { + + pinctrl-names = "default"; + pinctrl-0 = <&userled_pins>; + + userled_pins: pinmux_userled_pins { + gpmc_a5.gpio1_21 { + pinctrl-simple,cells = <0x54 0x7>; /* OMAP_PIN_OUTPUT | OMAP_MUX_MODE7 */ + }; + + gpmc_a6.gpio1_22 { + pinctrl-simple,cells = <0x58 0x17>; /* OMAP_PIN_OUTPUT_PULLUP | OMAP_MUX_MODE7 */ + }; + + gpmc_a7.gpio1_23 { + pinctrl-simple,cells = <0x5C 0x7>; /* OMAP_PIN_OUTPUT | OMAP_MUX_MODE7 */ + }; + + gpmc_a8.gpio1_24 { + pinctrl-simple,cells = <0x60 0x17>; /* OMAP_PIN_OUTPUT_PULLUP | OMAP_MUX_MODE7 */ + }; + }; +};
Signature · 1 line
1.7.9.5
PATCH 1/2 arm/dts: Add AM33XX basic pinctrl support
In reply to AnilKumar ChQuoted 19 lines · AnilKumar Ch
Adds basic pinctrl support for AM33XX family of devices. This patch is based on the pinctrl-simple driver submitted by Tony Lindgren's
here: http://lwn.net/Articles/496075/Signed-off-by AnilKumar Ch <[email protected]>--- arch/arm/boot/dts/am33xx.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm/boot/dts/am33xx.dtsi +2
-0@@ -40,6 +40,18 @@ }; }; + am3358_pinmux: pinmux at 44E10800 { + compatible = "ti,omap4-padconf";
arch/arm/boot/dts/am33xx.dtsi line 54
Quoted 10 lines
arch/arm/boot/dts/am33xx.dtsi +10
-0+ reg = <0x44E10800 0x0338>; + #address-cells = <1>; + #size-cells = <0>; + #pinctrl-cells = <2>; + pinctrl-simple,register-width = <32>; + pinctrl-simple,function-mask = <0x7>; + pinctrl-simple,function-off = <0xffffffff>; + pinctrl-simple,pinconf-mask = <0x78>; + }; +
You might want to update to the latest version, which is now called pinctrl-single instead of pinctrl-simple. Should be easy to update, note that we're still waiting on people to comment on the binding, so you might want to wait a bit before reposting so we have the driver merged.
Regards,
Tony
PATCH 1/2 arm/dts: Add AM33XX basic pinctrl support
Hi Tony,
Thanks for reviewing.
Quoted 28 lines · Tony Lindgren
Quoted 27 lines · AnilKumar Ch
Adds basic pinctrl support for AM33XX family of devices. This patch is based on the pinctrl-simple driver submitted by Tony Lindgren's
here: http://lwn.net/Articles/496075/Signed-off-by AnilKumar Ch <[email protected]>--- arch/arm/boot/dts/am33xx.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm/boot/dts/am33xx.dtsi +10
-0@@ -40,6 +40,18 @@ }; }; + am3358_pinmux: pinmux at 44E10800 { + compatible = "ti,omap4-padconf"; + reg = <0x44E10800 0x0338>; + #address-cells = <1>; + #size-cells = <0>; + #pinctrl-cells = <2>; + pinctrl-simple,register-width = <32>; + pinctrl-simple,function-mask = <0x7>; + pinctrl-simple,function-off = <0xffffffff>; + pinctrl-simple,pinconf-mask = <0x78>;
Quoted 8 lines
arch/arm/boot/dts/am33xx.dtsi line 54
Quoted 2 lines
arch/arm/boot/dts/am33xx.dtsi +2
-0+ }; +You might want to update to the latest version, which is now called pinctrl-single instead of pinctrl-simple. Should be easy to update, note that we're still waiting on people to comment on the binding, so you might want to wait a bit before reposting so we have the driver merged.
In that case, I will submit the patches with respect to pinctrl-single after it is available in linux-next tree.
Thanks
AnilKumar