Skip to contentSkip to conversation

ARM: tegra: enable PALMAS_PINCTRL config

PATCH In review Laxman Dewangan 2 participants 4 messages Sep 18, 2013 – Sep 19, 2013

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

PATCH 1/2 ARM: tegra: enable PALMAS_PINCTRL config

PALMAS PMIC is used on Dalmore platform. Enable the pincontrol driver for Palmas to configure pins of Palmas on desired state.

---
Reposting as the patch sent earlier was miss the merge date.

 arch/arm/configs/tegra_defconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/configs/tegra_defconfig +1 -0
index bb16a04..3be2122 100644
@@ -130,6 +130,7 @@ CONFIG_SPI=y
 CONFIG_SPI_TEGRA114=y
 CONFIG_SPI_TEGRA20_SFLASH=y
 CONFIG_SPI_TEGRA20_SLINK=y
+CONFIG_PINCTRL_PALMAS=y
 CONFIG_GPIO_PCA953X_IRQ=y
 CONFIG_GPIO_PALMAS=y
 CONFIG_GPIO_TPS6586X=y
Signature · 1 line
1.7.1.1
#1 lore raw

PATCH v2 2/2 ARM: tegra: add palmas pincontrol to Dalmore device tree

Add Palmas pincontrol to Dalmore device tree and make following configuration as default:
- Disable DVFS1 and DVFS2.
- Set GPIO6 to gpio mode.

---
changes from V1:
- Renames the node name to pinmux as suggested on patch V1.
- Not sure that this will create the issue with other node having same name as pinmux in top of the dts file.

 arch/arm/boot/dts/tegra114-dalmore.dts |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
arch/arm/boot/dts/tegra114-dalmore.dts +13 -0
index 6023028..dc5cdd7 100644
@@ -1011,6 +1011,19 @@
 				interrupt-parent = <&palmas>;
 				interrupts = <8 0>;
 			};
+
+			pinmux {
+				compatible = "ti,tps65913-pinctrl";
+				pinctrl-names = "default";
+				pinctrl-0 = <&palmas_default>;
+
+				palmas_default: pinmux {
+					pin_gpio6 {
+						pins = "gpio6";
+						function = "gpio";
+					};
+				};
+			};
 		};
 	};
 
Signature · 1 line
1.7.1.1
#2 lore raw

Re: [PATCH V2 2/2] ARM: tegra: add palmas pincontrol to Dalmore device tree

Quoted 7 lines · Laxman Dewangan

Add Palmas pincontrol to Dalmore device tree and make following configuration as default:
- Disable DVFS1 and DVFS2.
- Set GPIO6 to gpio mode.

- Not sure that this will create the issue with other node having same name as pinmux in top of the dts file.

This isn't an issue. Node names need to be unique within their parents, not globally.

#3 lore raw
In reply to Laxman Dewangan
Quoted 2 lines · Laxman Dewangan

PALMAS PMIC is used on Dalmore platform. Enable the pincontrol driver for Palmas to configure pins of Palmas on desired state.

I applied the series. Patch 1 (squash in)to Tegra's for-3.13/defconfig, patch 2 to Tegra's for-3.13/dt branch.