Thread (25 messages) 25 messages, 7 authors, 2014-11-04

Re: [PATCH v3 6/6] ARM: dts: qcom: Add APQ8074 Dragonboard PMIC GPIO bindings

From: Ivan T. Ivanov <hidden>
Date: 2014-08-25 14:05:04
Also in: linux-arm-msm, lkml

On Wed, 2014-08-20 at 16:06 -0700, Bjorn Andersson wrote:
On Mon 11 Aug 08:40 PDT 2014, Ivan T. Ivanov wrote:
quoted
diff --git a/arch/arm/boot/dts/qcom-apq8074-dragonboard-pmics-pins.dtsi b/arch/arm/boot/dts/qcom-apq8074-dragonboard-pmics-pins.dtsi
[...]
quoted
+
+&pm8941_gpios {
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pm8941_gpios_default>;
+
+	pm8941_gpios_default: default {
+		group-1 {
+			pins = "gpio1", "gpio2", "gpio5", "gpio29";
+			function = PMIC_GPIO_FUNC_NORMAL;
This looks really strange, I can't get myself to stop thinking that you forgot
the <> around this (I know it's a string). I don't like these defines.
Same here, any suggestions? Except function tables in driver :-)
quoted
+			input-enable;
+			power-source = <PM8941_GPIO_S3>;
+			qcom,pull-up-strength = <PMIC_GPIO_PULL_UP_30>;
+		};
+		group-6 {	/* TUSB3_HUB-RESET */
Why not name the nodes something useful?
If you name it tusb3-hub-reset you can skip the comment.
Sure.
 
Regards,
Bjorn
Thanks, 
Ivan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help