forked from Minki/linux
ARM: dts: Add sleep mode pin configuration for exynos4412-trats2
This patch adds sleep mode pin configuration using pin control hog mechanism to configure states of GPIO pins in sleep mode. This is required to reduce leakage current in sleep mode and prevent glitching of components on the board. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
This commit is contained in:
parent
7f41e1cab7
commit
09918a98b7
@ -778,3 +778,319 @@
|
||||
io-channels = <&adc 2>; /* Battery temperature */
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl_0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&sleep0>;
|
||||
|
||||
sleep0: sleep-states {
|
||||
PIN_SLP(gpa0-0, INPUT, NONE);
|
||||
PIN_SLP(gpa0-1, OUT0, NONE);
|
||||
PIN_SLP(gpa0-2, INPUT, NONE);
|
||||
PIN_SLP(gpa0-3, INPUT, UP);
|
||||
PIN_SLP(gpa0-4, INPUT, NONE);
|
||||
PIN_SLP(gpa0-5, INPUT, DOWN);
|
||||
PIN_SLP(gpa0-6, INPUT, DOWN);
|
||||
PIN_SLP(gpa0-7, INPUT, UP);
|
||||
|
||||
PIN_SLP(gpa1-0, INPUT, DOWN);
|
||||
PIN_SLP(gpa1-1, INPUT, DOWN);
|
||||
PIN_SLP(gpa1-2, INPUT, DOWN);
|
||||
PIN_SLP(gpa1-3, INPUT, DOWN);
|
||||
PIN_SLP(gpa1-4, INPUT, DOWN);
|
||||
PIN_SLP(gpa1-5, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpb-0, INPUT, NONE);
|
||||
PIN_SLP(gpb-1, INPUT, NONE);
|
||||
PIN_SLP(gpb-2, INPUT, NONE);
|
||||
PIN_SLP(gpb-3, INPUT, NONE);
|
||||
PIN_SLP(gpb-4, INPUT, DOWN);
|
||||
PIN_SLP(gpb-5, INPUT, UP);
|
||||
PIN_SLP(gpb-6, INPUT, DOWN);
|
||||
PIN_SLP(gpb-7, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpc0-0, INPUT, DOWN);
|
||||
PIN_SLP(gpc0-1, INPUT, DOWN);
|
||||
PIN_SLP(gpc0-2, INPUT, DOWN);
|
||||
PIN_SLP(gpc0-3, INPUT, DOWN);
|
||||
PIN_SLP(gpc0-4, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpc1-0, INPUT, NONE);
|
||||
PIN_SLP(gpc1-1, PREV, NONE);
|
||||
PIN_SLP(gpc1-2, INPUT, NONE);
|
||||
PIN_SLP(gpc1-3, INPUT, NONE);
|
||||
PIN_SLP(gpc1-4, INPUT, NONE);
|
||||
|
||||
PIN_SLP(gpd0-0, INPUT, DOWN);
|
||||
PIN_SLP(gpd0-1, INPUT, DOWN);
|
||||
PIN_SLP(gpd0-2, INPUT, NONE);
|
||||
PIN_SLP(gpd0-3, INPUT, NONE);
|
||||
|
||||
PIN_SLP(gpd1-0, INPUT, DOWN);
|
||||
PIN_SLP(gpd1-1, INPUT, DOWN);
|
||||
PIN_SLP(gpd1-2, INPUT, NONE);
|
||||
PIN_SLP(gpd1-3, INPUT, NONE);
|
||||
|
||||
PIN_SLP(gpf0-0, INPUT, NONE);
|
||||
PIN_SLP(gpf0-1, INPUT, NONE);
|
||||
PIN_SLP(gpf0-2, INPUT, DOWN);
|
||||
PIN_SLP(gpf0-3, INPUT, DOWN);
|
||||
PIN_SLP(gpf0-4, INPUT, NONE);
|
||||
PIN_SLP(gpf0-5, INPUT, DOWN);
|
||||
PIN_SLP(gpf0-6, INPUT, NONE);
|
||||
PIN_SLP(gpf0-7, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpf1-0, INPUT, DOWN);
|
||||
PIN_SLP(gpf1-1, INPUT, DOWN);
|
||||
PIN_SLP(gpf1-2, INPUT, DOWN);
|
||||
PIN_SLP(gpf1-3, INPUT, DOWN);
|
||||
PIN_SLP(gpf1-4, INPUT, NONE);
|
||||
PIN_SLP(gpf1-5, INPUT, NONE);
|
||||
PIN_SLP(gpf1-6, INPUT, DOWN);
|
||||
PIN_SLP(gpf1-7, PREV, NONE);
|
||||
|
||||
PIN_SLP(gpf2-0, PREV, NONE);
|
||||
PIN_SLP(gpf2-1, INPUT, DOWN);
|
||||
PIN_SLP(gpf2-2, INPUT, DOWN);
|
||||
PIN_SLP(gpf2-3, INPUT, DOWN);
|
||||
PIN_SLP(gpf2-4, INPUT, DOWN);
|
||||
PIN_SLP(gpf2-5, INPUT, DOWN);
|
||||
PIN_SLP(gpf2-6, INPUT, NONE);
|
||||
PIN_SLP(gpf2-7, INPUT, NONE);
|
||||
|
||||
PIN_SLP(gpf3-0, INPUT, NONE);
|
||||
PIN_SLP(gpf3-1, PREV, NONE);
|
||||
PIN_SLP(gpf3-2, PREV, NONE);
|
||||
PIN_SLP(gpf3-3, PREV, NONE);
|
||||
PIN_SLP(gpf3-4, OUT1, NONE);
|
||||
PIN_SLP(gpf3-5, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpj0-0, PREV, NONE);
|
||||
PIN_SLP(gpj0-1, PREV, NONE);
|
||||
PIN_SLP(gpj0-2, PREV, NONE);
|
||||
PIN_SLP(gpj0-3, INPUT, DOWN);
|
||||
PIN_SLP(gpj0-4, PREV, NONE);
|
||||
PIN_SLP(gpj0-5, PREV, NONE);
|
||||
PIN_SLP(gpj0-6, INPUT, DOWN);
|
||||
PIN_SLP(gpj0-7, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpj1-0, INPUT, DOWN);
|
||||
PIN_SLP(gpj1-1, PREV, NONE);
|
||||
PIN_SLP(gpj1-2, PREV, NONE);
|
||||
PIN_SLP(gpj1-3, INPUT, DOWN);
|
||||
PIN_SLP(gpj1-4, INPUT, DOWN);
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl_1 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&sleep1>;
|
||||
|
||||
sleep1: sleep-states {
|
||||
PIN_SLP(gpk0-0, PREV, NONE);
|
||||
PIN_SLP(gpk0-1, PREV, NONE);
|
||||
PIN_SLP(gpk0-2, OUT0, NONE);
|
||||
PIN_SLP(gpk0-3, PREV, NONE);
|
||||
PIN_SLP(gpk0-4, PREV, NONE);
|
||||
PIN_SLP(gpk0-5, PREV, NONE);
|
||||
PIN_SLP(gpk0-6, PREV, NONE);
|
||||
|
||||
PIN_SLP(gpk1-0, INPUT, DOWN);
|
||||
PIN_SLP(gpk1-1, INPUT, DOWN);
|
||||
PIN_SLP(gpk1-2, INPUT, DOWN);
|
||||
PIN_SLP(gpk1-3, PREV, NONE);
|
||||
PIN_SLP(gpk1-4, PREV, NONE);
|
||||
PIN_SLP(gpk1-5, PREV, NONE);
|
||||
PIN_SLP(gpk1-6, PREV, NONE);
|
||||
|
||||
PIN_SLP(gpk2-0, INPUT, DOWN);
|
||||
PIN_SLP(gpk2-1, INPUT, DOWN);
|
||||
PIN_SLP(gpk2-2, INPUT, DOWN);
|
||||
PIN_SLP(gpk2-3, INPUT, DOWN);
|
||||
PIN_SLP(gpk2-4, INPUT, DOWN);
|
||||
PIN_SLP(gpk2-5, INPUT, DOWN);
|
||||
PIN_SLP(gpk2-6, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpk3-0, OUT0, NONE);
|
||||
PIN_SLP(gpk3-1, INPUT, NONE);
|
||||
PIN_SLP(gpk3-2, INPUT, DOWN);
|
||||
PIN_SLP(gpk3-3, INPUT, NONE);
|
||||
PIN_SLP(gpk3-4, INPUT, NONE);
|
||||
PIN_SLP(gpk3-5, INPUT, NONE);
|
||||
PIN_SLP(gpk3-6, INPUT, NONE);
|
||||
|
||||
PIN_SLP(gpl0-0, INPUT, DOWN);
|
||||
PIN_SLP(gpl0-1, INPUT, DOWN);
|
||||
PIN_SLP(gpl0-2, INPUT, DOWN);
|
||||
PIN_SLP(gpl0-3, INPUT, DOWN);
|
||||
PIN_SLP(gpl0-4, PREV, NONE);
|
||||
PIN_SLP(gpl0-6, PREV, NONE);
|
||||
|
||||
PIN_SLP(gpl1-0, INPUT, DOWN);
|
||||
PIN_SLP(gpl1-1, INPUT, DOWN);
|
||||
PIN_SLP(gpl2-0, INPUT, DOWN);
|
||||
PIN_SLP(gpl2-1, INPUT, DOWN);
|
||||
PIN_SLP(gpl2-2, INPUT, DOWN);
|
||||
PIN_SLP(gpl2-3, INPUT, DOWN);
|
||||
PIN_SLP(gpl2-4, INPUT, DOWN);
|
||||
PIN_SLP(gpl2-5, INPUT, DOWN);
|
||||
PIN_SLP(gpl2-6, PREV, NONE);
|
||||
PIN_SLP(gpl2-7, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpm0-0, INPUT, DOWN);
|
||||
PIN_SLP(gpm0-1, INPUT, DOWN);
|
||||
PIN_SLP(gpm0-2, INPUT, DOWN);
|
||||
PIN_SLP(gpm0-3, INPUT, DOWN);
|
||||
PIN_SLP(gpm0-4, INPUT, DOWN);
|
||||
PIN_SLP(gpm0-5, INPUT, DOWN);
|
||||
PIN_SLP(gpm0-6, INPUT, DOWN);
|
||||
PIN_SLP(gpm0-7, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpm1-0, INPUT, DOWN);
|
||||
PIN_SLP(gpm1-1, INPUT, DOWN);
|
||||
PIN_SLP(gpm1-2, INPUT, NONE);
|
||||
PIN_SLP(gpm1-3, INPUT, NONE);
|
||||
PIN_SLP(gpm1-4, INPUT, NONE);
|
||||
PIN_SLP(gpm1-5, INPUT, NONE);
|
||||
PIN_SLP(gpm1-6, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpm2-0, INPUT, NONE);
|
||||
PIN_SLP(gpm2-1, INPUT, NONE);
|
||||
PIN_SLP(gpm2-2, INPUT, DOWN);
|
||||
PIN_SLP(gpm2-3, INPUT, DOWN);
|
||||
PIN_SLP(gpm2-4, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpm3-0, PREV, NONE);
|
||||
PIN_SLP(gpm3-1, PREV, NONE);
|
||||
PIN_SLP(gpm3-2, PREV, NONE);
|
||||
PIN_SLP(gpm3-3, OUT1, NONE);
|
||||
PIN_SLP(gpm3-4, INPUT, DOWN);
|
||||
PIN_SLP(gpm3-5, INPUT, DOWN);
|
||||
PIN_SLP(gpm3-6, INPUT, DOWN);
|
||||
PIN_SLP(gpm3-7, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpm4-0, INPUT, DOWN);
|
||||
PIN_SLP(gpm4-1, INPUT, DOWN);
|
||||
PIN_SLP(gpm4-2, INPUT, DOWN);
|
||||
PIN_SLP(gpm4-3, INPUT, DOWN);
|
||||
PIN_SLP(gpm4-4, INPUT, DOWN);
|
||||
PIN_SLP(gpm4-5, INPUT, DOWN);
|
||||
PIN_SLP(gpm4-6, INPUT, DOWN);
|
||||
PIN_SLP(gpm4-7, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpy0-0, INPUT, DOWN);
|
||||
PIN_SLP(gpy0-1, INPUT, DOWN);
|
||||
PIN_SLP(gpy0-2, INPUT, DOWN);
|
||||
PIN_SLP(gpy0-3, INPUT, DOWN);
|
||||
PIN_SLP(gpy0-4, INPUT, DOWN);
|
||||
PIN_SLP(gpy0-5, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpy1-0, INPUT, DOWN);
|
||||
PIN_SLP(gpy1-1, INPUT, DOWN);
|
||||
PIN_SLP(gpy1-2, INPUT, DOWN);
|
||||
PIN_SLP(gpy1-3, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpy2-0, PREV, NONE);
|
||||
PIN_SLP(gpy2-1, INPUT, DOWN);
|
||||
PIN_SLP(gpy2-2, INPUT, NONE);
|
||||
PIN_SLP(gpy2-3, INPUT, NONE);
|
||||
PIN_SLP(gpy2-4, INPUT, NONE);
|
||||
PIN_SLP(gpy2-5, INPUT, NONE);
|
||||
|
||||
PIN_SLP(gpy3-0, INPUT, DOWN);
|
||||
PIN_SLP(gpy3-1, INPUT, DOWN);
|
||||
PIN_SLP(gpy3-2, INPUT, DOWN);
|
||||
PIN_SLP(gpy3-3, INPUT, DOWN);
|
||||
PIN_SLP(gpy3-4, INPUT, DOWN);
|
||||
PIN_SLP(gpy3-5, INPUT, DOWN);
|
||||
PIN_SLP(gpy3-6, INPUT, DOWN);
|
||||
PIN_SLP(gpy3-7, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpy4-0, INPUT, DOWN);
|
||||
PIN_SLP(gpy4-1, INPUT, DOWN);
|
||||
PIN_SLP(gpy4-2, INPUT, DOWN);
|
||||
PIN_SLP(gpy4-3, INPUT, DOWN);
|
||||
PIN_SLP(gpy4-4, INPUT, DOWN);
|
||||
PIN_SLP(gpy4-5, INPUT, DOWN);
|
||||
PIN_SLP(gpy4-6, INPUT, DOWN);
|
||||
PIN_SLP(gpy4-7, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpy5-0, INPUT, DOWN);
|
||||
PIN_SLP(gpy5-1, INPUT, DOWN);
|
||||
PIN_SLP(gpy5-2, INPUT, DOWN);
|
||||
PIN_SLP(gpy5-3, INPUT, DOWN);
|
||||
PIN_SLP(gpy5-4, INPUT, DOWN);
|
||||
PIN_SLP(gpy5-5, INPUT, DOWN);
|
||||
PIN_SLP(gpy5-6, INPUT, DOWN);
|
||||
PIN_SLP(gpy5-7, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpy6-0, INPUT, DOWN);
|
||||
PIN_SLP(gpy6-1, INPUT, DOWN);
|
||||
PIN_SLP(gpy6-2, INPUT, DOWN);
|
||||
PIN_SLP(gpy6-3, INPUT, DOWN);
|
||||
PIN_SLP(gpy6-4, INPUT, DOWN);
|
||||
PIN_SLP(gpy6-5, INPUT, DOWN);
|
||||
PIN_SLP(gpy6-6, INPUT, DOWN);
|
||||
PIN_SLP(gpy6-7, INPUT, DOWN);
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl_2 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&sleep2>;
|
||||
|
||||
sleep2: sleep-states {
|
||||
PIN_SLP(gpz-0, INPUT, DOWN);
|
||||
PIN_SLP(gpz-1, INPUT, DOWN);
|
||||
PIN_SLP(gpz-2, INPUT, DOWN);
|
||||
PIN_SLP(gpz-3, INPUT, DOWN);
|
||||
PIN_SLP(gpz-4, INPUT, DOWN);
|
||||
PIN_SLP(gpz-5, INPUT, DOWN);
|
||||
PIN_SLP(gpz-6, INPUT, DOWN);
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl_3 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&sleep3>;
|
||||
|
||||
sleep3: sleep-states {
|
||||
PIN_SLP(gpv0-0, INPUT, DOWN);
|
||||
PIN_SLP(gpv0-1, INPUT, DOWN);
|
||||
PIN_SLP(gpv0-2, INPUT, DOWN);
|
||||
PIN_SLP(gpv0-3, INPUT, DOWN);
|
||||
PIN_SLP(gpv0-4, INPUT, DOWN);
|
||||
PIN_SLP(gpv0-5, INPUT, DOWN);
|
||||
PIN_SLP(gpv0-6, INPUT, DOWN);
|
||||
PIN_SLP(gpv0-7, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpv1-0, INPUT, DOWN);
|
||||
PIN_SLP(gpv1-1, INPUT, DOWN);
|
||||
PIN_SLP(gpv1-2, INPUT, DOWN);
|
||||
PIN_SLP(gpv1-3, INPUT, DOWN);
|
||||
PIN_SLP(gpv1-4, INPUT, DOWN);
|
||||
PIN_SLP(gpv1-5, INPUT, DOWN);
|
||||
PIN_SLP(gpv1-6, INPUT, DOWN);
|
||||
PIN_SLP(gpv1-7, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpv2-0, INPUT, DOWN);
|
||||
PIN_SLP(gpv2-1, INPUT, DOWN);
|
||||
PIN_SLP(gpv2-2, INPUT, DOWN);
|
||||
PIN_SLP(gpv2-3, INPUT, DOWN);
|
||||
PIN_SLP(gpv2-4, INPUT, DOWN);
|
||||
PIN_SLP(gpv2-5, INPUT, DOWN);
|
||||
PIN_SLP(gpv2-6, INPUT, DOWN);
|
||||
PIN_SLP(gpv2-7, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpv3-0, INPUT, DOWN);
|
||||
PIN_SLP(gpv3-1, INPUT, DOWN);
|
||||
PIN_SLP(gpv3-2, INPUT, DOWN);
|
||||
PIN_SLP(gpv3-3, INPUT, DOWN);
|
||||
PIN_SLP(gpv3-4, INPUT, DOWN);
|
||||
PIN_SLP(gpv3-5, INPUT, DOWN);
|
||||
PIN_SLP(gpv3-6, INPUT, DOWN);
|
||||
PIN_SLP(gpv3-7, INPUT, DOWN);
|
||||
|
||||
PIN_SLP(gpv4-0, INPUT, DOWN);
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user