Commit d953f1fb authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski

ARM: dts: exynos: Use macros for pinctrl configuration on exynos5250

Usage of DTS macros instead of hard-coded numbers makes code easier to
read.  One does not have to remember which value means pull-up/down or
specific driver strength.
Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 040611c8
This diff is collapsed.
...@@ -416,8 +416,8 @@ partition@40000 { ...@@ -416,8 +416,8 @@ partition@40000 {
&pinctrl_0 { &pinctrl_0 {
max77686_irq: max77686-irq { max77686_irq: max77686-irq {
samsung,pins = "gpx3-2"; samsung,pins = "gpx3-2";
samsung,pin-function = <0xf>; samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
}; };
...@@ -440,7 +440,7 @@ trackpad@67 { ...@@ -440,7 +440,7 @@ trackpad@67 {
* double-pulling gets us out of spec in some cases. * double-pulling gets us out of spec in some cases.
*/ */
&i2c2_bus { &i2c2_bus {
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
}; };
&i2c_2 { &i2c_2 {
...@@ -572,81 +572,81 @@ &mmc_3 { ...@@ -572,81 +572,81 @@ &mmc_3 {
&pinctrl_0 { &pinctrl_0 {
wifi_en: wifi-en { wifi_en: wifi-en {
samsung,pins = "gpx0-1"; samsung,pins = "gpx0-1";
samsung,pin-function = <1>; samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
wifi_rst: wifi-rst { wifi_rst: wifi-rst {
samsung,pins = "gpx0-2"; samsung,pins = "gpx0-2";
samsung,pin-function = <1>; samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
power_key_irq: power-key-irq { power_key_irq: power-key-irq {
samsung,pins = "gpx1-3"; samsung,pins = "gpx1-3";
samsung,pin-function = <0xf>; samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
ec_irq: ec-irq { ec_irq: ec-irq {
samsung,pins = "gpx1-6"; samsung,pins = "gpx1-6";
samsung,pin-function = <0>; samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
tps65090_irq: tps65090-irq { tps65090_irq: tps65090-irq {
samsung,pins = "gpx2-6"; samsung,pins = "gpx2-6";
samsung,pin-function = <0>; samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
usb3_vbus_en: usb3-vbus-en { usb3_vbus_en: usb3-vbus-en {
samsung,pins = "gpx2-7"; samsung,pins = "gpx2-7";
samsung,pin-function = <1>; samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
max77686_irq: max77686-irq { max77686_irq: max77686-irq {
samsung,pins = "gpx3-2"; samsung,pins = "gpx3-2";
samsung,pin-function = <0>; samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
lid_irq: lid-irq { lid_irq: lid-irq {
samsung,pins = "gpx3-5"; samsung,pins = "gpx3-5";
samsung,pin-function = <0xf>; samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
hdmi_hpd_irq: hdmi-hpd-irq { hdmi_hpd_irq: hdmi-hpd-irq {
samsung,pins = "gpx3-7"; samsung,pins = "gpx3-7";
samsung,pin-function = <0>; samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
samsung,pin-pud = <1>; samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
}; };
&pinctrl_1 { &pinctrl_1 {
arb_their_claim: arb-their-claim { arb_their_claim: arb-their-claim {
samsung,pins = "gpe0-4"; samsung,pins = "gpe0-4";
samsung,pin-function = <0>; samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
arb_our_claim: arb-our-claim { arb_our_claim: arb-our-claim {
samsung,pins = "gpf0-3"; samsung,pins = "gpf0-3";
samsung,pin-function = <1>; samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
}; };
...@@ -657,16 +657,16 @@ &rtc { ...@@ -657,16 +657,16 @@ &rtc {
}; };
&sd3_bus4 { &sd3_bus4 {
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
&sd3_clk { &sd3_clk {
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
&sd3_cmd { &sd3_cmd {
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
&spi_1 { &spi_1 {
......
...@@ -40,8 +40,8 @@ max98090: codec@10 { ...@@ -40,8 +40,8 @@ max98090: codec@10 {
&pinctrl_0 { &pinctrl_0 {
max98090_irq: max98090-irq { max98090_irq: max98090-irq {
samsung,pins = "gpx0-4"; samsung,pins = "gpx0-4";
samsung,pin-function = <0>; samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
}; };
...@@ -36,8 +36,8 @@ max98095: codec@11 { ...@@ -36,8 +36,8 @@ max98095: codec@11 {
&pinctrl_0 { &pinctrl_0 {
max98095_en: max98095-en { max98095_en: max98095-en {
samsung,pins = "gpx1-7"; samsung,pins = "gpx1-7";
samsung,pin-function = <0>; samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
}; };
...@@ -357,7 +357,7 @@ KEY_RESERVED ...@@ -357,7 +357,7 @@ KEY_RESERVED
* double-pulling gets us out of spec in some cases. * double-pulling gets us out of spec in some cases.
*/ */
&i2c2_bus { &i2c2_bus {
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
}; };
&i2c_2 { &i2c_2 {
...@@ -460,92 +460,92 @@ &mmc_1 { ...@@ -460,92 +460,92 @@ &mmc_1 {
&pinctrl_0 { &pinctrl_0 {
s5m8767_dvs: s5m8767-dvs { s5m8767_dvs: s5m8767-dvs {
samsung,pins = "gpd1-0", "gpd1-1", "gpd1-2"; samsung,pins = "gpd1-0", "gpd1-1", "gpd1-2";
samsung,pin-function = <0>; samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
samsung,pin-pud = <1>; samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
dp_hpd_gpio: dp-hpd-gpio { dp_hpd_gpio: dp-hpd-gpio {
samsung,pins = "gpc3-0"; samsung,pins = "gpc3-0";
samsung,pin-function = <0>; samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
trackpad_irq: trackpad-irq { trackpad_irq: trackpad-irq {
samsung,pins = "gpx1-2"; samsung,pins = "gpx1-2";
samsung,pin-function = <0xf>; samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
power_key_irq: power-key-irq { power_key_irq: power-key-irq {
samsung,pins = "gpx1-3"; samsung,pins = "gpx1-3";
samsung,pin-function = <0xf>; samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
ec_irq: ec-irq { ec_irq: ec-irq {
samsung,pins = "gpx1-6"; samsung,pins = "gpx1-6";
samsung,pin-function = <0>; samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
s5m8767_ds: s5m8767-ds { s5m8767_ds: s5m8767-ds {
samsung,pins = "gpx2-3", "gpx2-4", "gpx2-5"; samsung,pins = "gpx2-3", "gpx2-4", "gpx2-5";
samsung,pin-function = <0>; samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
samsung,pin-pud = <1>; samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
s5m8767_irq: s5m8767-irq { s5m8767_irq: s5m8767-irq {
samsung,pins = "gpx3-2"; samsung,pins = "gpx3-2";
samsung,pin-function = <0>; samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
lid_irq: lid-irq { lid_irq: lid-irq {
samsung,pins = "gpx3-5"; samsung,pins = "gpx3-5";
samsung,pin-function = <0xf>; samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
hdmi_hpd_irq: hdmi-hpd-irq { hdmi_hpd_irq: hdmi-hpd-irq {
samsung,pins = "gpx3-7"; samsung,pins = "gpx3-7";
samsung,pin-function = <0>; samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
samsung,pin-pud = <1>; samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
}; };
&pinctrl_1 { &pinctrl_1 {
hsic_reset: hsic-reset { hsic_reset: hsic-reset {
samsung,pins = "gpe1-0"; samsung,pins = "gpe1-0";
samsung,pin-function = <1>; samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
}; };
&sd1_bus4 { &sd1_bus4 {
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
&sd1_cd { &sd1_cd {
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
&sd1_clk { &sd1_clk {
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
&sd1_cmd { &sd1_cmd {
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
&spi_1 { &spi_1 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment