Commit 2008ee09 authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'samsung-dt-pinctrl-4.9' of...

Merge tag 'samsung-dt-pinctrl-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into next/dt

Pull "Topic branch for Samsung DeviceTree cleanup for 4.9" from Krzysztof Kozłowski:

Replace in DT sources hard-coded values for pinctrl configuration like pull
up/down, drive strength and function. This makes the DTS easier to read,
especially that some drive strengths values are quite non-obvious.

* tag 'samsung-dt-pinctrl-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux:
  ARM: dts: s3c64xx: Use macros for pinctrl configuration
  ARM: dts: s3c2416: Use macros for pinctrl configuration
  ARM: dts: s5pv210: Use macros for pinctrl configuration
  ARM: dts: s3c64xx: Use common macros for pinctrl configuration
  ARM: dts: exynos: Fix mismatched values of SD drive strengh configuration on exynos4415
  ARM: dts: exynos: Fix mismatched value for SD4 pull up/down configuration on exynos4210
  ARM: dts: exynos: Use macros for pinctrl configuration on exynos542x/exynos5800
  ARM: dts: exynos: Use macros for pinctrl configuration on exynos5410
  ARM: dts: exynos: Use macros for pinctrl configuration on exynos5260
  ARM: dts: exynos: Use macros for pinctrl configuration on exynos5250
  ARM: dts: exynos: Use macros for pinctrl configuration on exynos4415
  ARM: dts: exynos: Use macros for pinctrl configuration on exynos4x12
  ARM: dts: exynos: Use macros for pinctrl configuration on exynos4210
  ARM: dts: exynos: Use macros for pinctrl configuration on exynos3250
  ARM: dts: exynos: Use common macros for pinctrl configuration
  pinctrl: dt-bindings: samsung: Update documentation with new macros
  pinctrl: dt-bindings: samsung: Add header with values used for configuration
parents b994738b d1379923
...@@ -229,6 +229,8 @@ Example: A pin-controller node with pin banks: ...@@ -229,6 +229,8 @@ Example: A pin-controller node with pin banks:
Example 1: A pin-controller node with pin groups. Example 1: A pin-controller node with pin groups.
#include <dt-bindings/pinctrl/samsung.h>
pinctrl_0: pinctrl@11400000 { pinctrl_0: pinctrl@11400000 {
compatible = "samsung,exynos4210-pinctrl"; compatible = "samsung,exynos4210-pinctrl";
reg = <0x11400000 0x1000>; reg = <0x11400000 0x1000>;
...@@ -238,53 +240,53 @@ Example 1: A pin-controller node with pin groups. ...@@ -238,53 +240,53 @@ Example 1: A pin-controller node with pin groups.
uart0_data: uart0-data { uart0_data: uart0-data {
samsung,pins = "gpa0-0", "gpa0-1"; samsung,pins = "gpa0-0", "gpa0-1";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
uart0_fctl: uart0-fctl { uart0_fctl: uart0-fctl {
samsung,pins = "gpa0-2", "gpa0-3"; samsung,pins = "gpa0-2", "gpa0-3";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
uart1_data: uart1-data { uart1_data: uart1-data {
samsung,pins = "gpa0-4", "gpa0-5"; samsung,pins = "gpa0-4", "gpa0-5";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
uart1_fctl: uart1-fctl { uart1_fctl: uart1-fctl {
samsung,pins = "gpa0-6", "gpa0-7"; samsung,pins = "gpa0-6", "gpa0-7";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
i2c2_bus: i2c2-bus { i2c2_bus: i2c2-bus {
samsung,pins = "gpa0-6", "gpa0-7"; samsung,pins = "gpa0-6", "gpa0-7";
samsung,pin-function = <3>; samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
sd4_bus8: sd4-bus-width8 { sd4_bus8: sd4-bus-width8 {
part-1 { part-1 {
samsung,pins = "gpk0-3", "gpk0-4", samsung,pins = "gpk0-3", "gpk0-4",
"gpk0-5", "gpk0-6"; "gpk0-5", "gpk0-6";
samsung,pin-function = <3>; samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <3>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>;
}; };
part-2 { part-2 {
samsung,pins = "gpk1-3", "gpk1-4", samsung,pins = "gpk1-3", "gpk1-4",
"gpk1-5", "gpk1-6"; "gpk1-5", "gpk1-6";
samsung,pin-function = <4>; samsung,pin-function = <EXYNOS_PIN_FUNC_4>;
samsung,pin-pud = <4>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <3>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>;
}; };
}; };
}; };
......
...@@ -9252,6 +9252,8 @@ L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) ...@@ -9252,6 +9252,8 @@ L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
L: linux-samsung-soc@vger.kernel.org (moderated for non-subscribers) L: linux-samsung-soc@vger.kernel.org (moderated for non-subscribers)
S: Maintained S: Maintained
F: drivers/pinctrl/samsung/ F: drivers/pinctrl/samsung/
F: include/dt-bindings/pinctrl/samsung.h
F: Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt
PIN CONTROLLER - SINGLE PIN CONTROLLER - SINGLE
M: Tony Lindgren <tony@atomide.com> M: Tony Lindgren <tony@atomide.com>
......
This diff is collapsed.
This diff is collapsed.
...@@ -137,17 +137,17 @@ key_e { ...@@ -137,17 +137,17 @@ key_e {
&pinctrl_1 { &pinctrl_1 {
keypad_rows: keypad-rows { keypad_rows: keypad-rows {
samsung,pins = "gpx2-0", "gpx2-1"; samsung,pins = "gpx2-0", "gpx2-1";
samsung,pin-function = <3>; samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
keypad_cols: keypad-cols { keypad_cols: keypad-cols {
samsung,pins = "gpx1-0", "gpx1-1", "gpx1-2", "gpx1-3", samsung,pins = "gpx1-0", "gpx1-1", "gpx1-2", "gpx1-3",
"gpx1-4", "gpx1-5", "gpx1-6", "gpx1-7"; "gpx1-4", "gpx1-5", "gpx1-6", "gpx1-7";
samsung,pin-function = <3>; samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
}; };
......
...@@ -522,16 +522,16 @@ port@0 { ...@@ -522,16 +522,16 @@ port@0 {
&pinctrl_1 { &pinctrl_1 {
hdmi_hpd: hdmi-hpd { hdmi_hpd: hdmi-hpd {
samsung,pins = "gpx3-7"; samsung,pins = "gpx3-7";
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
}; };
}; };
&pinctrl_0 { &pinctrl_0 {
i2c_ddc_bus: i2c-ddc-bus { i2c_ddc_bus: i2c-ddc-bus {
samsung,pins = "gpe4-2", "gpe4-3"; samsung,pins = "gpe4-2", "gpe4-3";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
}; };
......
...@@ -163,26 +163,26 @@ &cpu0 { ...@@ -163,26 +163,26 @@ &cpu0 {
/* RSTN signal for eMMC */ /* RSTN signal for eMMC */
&sd1_cd { &sd1_cd {
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
&pinctrl_1 { &pinctrl_1 {
gpio_power_key: power_key { gpio_power_key: power_key {
samsung,pins = "gpx1-3"; samsung,pins = "gpx1-3";
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
}; };
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>;
}; };
hdmi_hpd: hdmi-hpd { hdmi_hpd: hdmi-hpd {
samsung,pins = "gpx3-7"; samsung,pins = "gpx3-7";
samsung,pin-pud = <1>; samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
}; };
}; };
......
...@@ -84,7 +84,7 @@ &mshc_0 { ...@@ -84,7 +84,7 @@ &mshc_0 {
&pinctrl_1 { &pinctrl_1 {
gpio_home_key: home_key { gpio_home_key: home_key {
samsung,pins = "gpx2-2"; samsung,pins = "gpx2-2";
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
}; };
}; };
......
...@@ -501,16 +501,16 @@ &mshc_0 { ...@@ -501,16 +501,16 @@ &mshc_0 {
&pinctrl_1 { &pinctrl_1 {
keypad_rows: keypad-rows { keypad_rows: keypad-rows {
samsung,pins = "gpx2-0", "gpx2-1", "gpx2-2"; samsung,pins = "gpx2-0", "gpx2-1", "gpx2-2";
samsung,pin-function = <3>; samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
keypad_cols: keypad-cols { keypad_cols: keypad-cols {
samsung,pins = "gpx1-0", "gpx1-1"; samsung,pins = "gpx1-0", "gpx1-1";
samsung,pin-function = <3>; samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
}; };
......
...@@ -116,17 +116,17 @@ key_E { ...@@ -116,17 +116,17 @@ key_E {
&pinctrl_1 { &pinctrl_1 {
keypad_rows: keypad-rows { keypad_rows: keypad-rows {
samsung,pins = "gpx2-0", "gpx2-1", "gpx2-2"; samsung,pins = "gpx2-0", "gpx2-1", "gpx2-2";
samsung,pin-function = <3>; samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
keypad_cols: keypad-cols { keypad_cols: keypad-cols {
samsung,pins = "gpx1-0", "gpx1-1", "gpx1-2", "gpx1-3", samsung,pins = "gpx1-0", "gpx1-1", "gpx1-2", "gpx1-3",
"gpx1-4", "gpx1-5", "gpx1-6", "gpx1-7"; "gpx1-4", "gpx1-5", "gpx1-6", "gpx1-7";
samsung,pin-function = <3>; samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
}; };
}; };
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -417,8 +417,8 @@ partition@40000 { ...@@ -417,8 +417,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>;
}; };
}; };
...@@ -441,7 +441,7 @@ trackpad@67 { ...@@ -441,7 +441,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 {
...@@ -573,81 +573,81 @@ &mmc_3 { ...@@ -573,81 +573,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>;
}; };
}; };
...@@ -658,16 +658,16 @@ &rtc { ...@@ -658,16 +658,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>;
}; };
}; };
...@@ -358,7 +358,7 @@ KEY_RESERVED ...@@ -358,7 +358,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 {
...@@ -461,92 +461,92 @@ &mmc_1 { ...@@ -461,92 +461,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 {
......
This diff is collapsed.
...@@ -43,9 +43,9 @@ xrtcxti: xrtcxti { ...@@ -43,9 +43,9 @@ xrtcxti: xrtcxti {
&pinctrl_0 { &pinctrl_0 {
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 = <EXYNOS5260_PIN_DRV_LV1>;
}; };
}; };
......
...@@ -477,38 +477,38 @@ &mmc_2 { ...@@ -477,38 +477,38 @@ &mmc_2 {
&pinctrl_0 { &pinctrl_0 {
emmc_nrst_pin: emmc-nrst { emmc_nrst_pin: emmc-nrst {
samsung,pins = "gpd1-0"; samsung,pins = "gpd1-0";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
pmic_dvs_3: pmic-dvs-3 { pmic_dvs_3: pmic-dvs-3 {
samsung,pins = "gpx0-0"; samsung,pins = "gpx0-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 = <EXYNOS5420_PIN_DRV_LV1>;
}; };
pmic_dvs_2: pmic-dvs-2 { pmic_dvs_2: pmic-dvs-2 {
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 = <EXYNOS5420_PIN_DRV_LV1>;
}; };
pmic_dvs_1: pmic-dvs-1 { pmic_dvs_1: pmic-dvs-1 {
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 = <EXYNOS5420_PIN_DRV_LV1>;
samsung,pin-val = <1>; samsung,pin-val = <1>;
}; };
max77802_irq: max77802-irq { max77802_irq: max77802-irq {
samsung,pins = "gpx0-4"; samsung,pins = "gpx0-4";
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 = <EXYNOS5420_PIN_DRV_LV1>;
}; };
}; };
......
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#include <dt-bindings/pinctrl/samsung.h>
&pinctrl_0 { &pinctrl_0 {
gpa0: gpa0 { gpa0: gpa0 {
gpio-controller; gpio-controller;
...@@ -280,212 +282,212 @@ gpx3: gpx3 { ...@@ -280,212 +282,212 @@ gpx3: gpx3 {
uart0_data: uart0-data { uart0_data: uart0-data {
samsung,pins = "gpa0-0", "gpa0-1"; samsung,pins = "gpa0-0", "gpa0-1";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
uart0_fctl: uart0-fctl { uart0_fctl: uart0-fctl {
samsung,pins = "gpa0-2", "gpa0-3"; samsung,pins = "gpa0-2", "gpa0-3";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
uart1_data: uart1-data { uart1_data: uart1-data {
samsung,pins = "gpa0-4", "gpa0-5"; samsung,pins = "gpa0-4", "gpa0-5";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
uart1_fctl: uart1-fctl { uart1_fctl: uart1-fctl {
samsung,pins = "gpa0-6", "gpa0-7"; samsung,pins = "gpa0-6", "gpa0-7";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
i2c2_bus: i2c2-bus { i2c2_bus: i2c2-bus {
samsung,pins = "gpa0-6", "gpa0-7"; samsung,pins = "gpa0-6", "gpa0-7";
samsung,pin-function = <3>; samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
uart2_data: uart2-data { uart2_data: uart2-data {
samsung,pins = "gpa1-0", "gpa1-1"; samsung,pins = "gpa1-0", "gpa1-1";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
uart2_fctl: uart2-fctl { uart2_fctl: uart2-fctl {
samsung,pins = "gpa1-2", "gpa1-3"; samsung,pins = "gpa1-2", "gpa1-3";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
i2c3_bus: i2c3-bus { i2c3_bus: i2c3-bus {
samsung,pins = "gpa1-2", "gpa1-3"; samsung,pins = "gpa1-2", "gpa1-3";
samsung,pin-function = <3>; samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
uart3_data: uart3-data { uart3_data: uart3-data {
samsung,pins = "gpa1-4", "gpa1-5"; samsung,pins = "gpa1-4", "gpa1-5";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
i2c4_hs_bus: i2c4-hs-bus { i2c4_hs_bus: i2c4-hs-bus {
samsung,pins = "gpa2-0", "gpa2-1"; samsung,pins = "gpa2-0", "gpa2-1";
samsung,pin-function = <3>; samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
i2c5_hs_bus: i2c5-hs-bus { i2c5_hs_bus: i2c5-hs-bus {
samsung,pins = "gpa2-2", "gpa2-3"; samsung,pins = "gpa2-2", "gpa2-3";
samsung,pin-function = <3>; samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
i2c6_hs_bus: i2c6-hs-bus { i2c6_hs_bus: i2c6-hs-bus {
samsung,pins = "gpb1-3", "gpb1-4"; samsung,pins = "gpb1-3", "gpb1-4";
samsung,pin-function = <4>; samsung,pin-function = <EXYNOS_PIN_FUNC_4>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
pwm0_out: pwm0-out { pwm0_out: pwm0-out {
samsung,pins = "gpb2-0"; samsung,pins = "gpb2-0";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
pwm1_out: pwm1-out { pwm1_out: pwm1-out {
samsung,pins = "gpb2-1"; samsung,pins = "gpb2-1";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
pwm2_out: pwm2-out { pwm2_out: pwm2-out {
samsung,pins = "gpb2-2"; samsung,pins = "gpb2-2";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
pwm3_out: pwm3-out { pwm3_out: pwm3-out {
samsung,pins = "gpb2-3"; samsung,pins = "gpb2-3";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
i2c7_hs_bus: i2c7-hs-bus { i2c7_hs_bus: i2c7-hs-bus {
samsung,pins = "gpb2-2", "gpb2-3"; samsung,pins = "gpb2-2", "gpb2-3";
samsung,pin-function = <3>; samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
i2c0_bus: i2c0-bus { i2c0_bus: i2c0-bus {
samsung,pins = "gpb3-0", "gpb3-1"; samsung,pins = "gpb3-0", "gpb3-1";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
i2c1_bus: i2c1-bus { i2c1_bus: i2c1-bus {
samsung,pins = "gpb3-2", "gpb3-3"; samsung,pins = "gpb3-2", "gpb3-3";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
sd0_clk: sd0-clk { sd0_clk: sd0-clk {
samsung,pins = "gpc0-0"; samsung,pins = "gpc0-0";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <3>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
}; };
sd0_cmd: sd0-cmd { sd0_cmd: sd0-cmd {
samsung,pins = "gpc0-1"; samsung,pins = "gpc0-1";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <3>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
}; };
sd0_cd: sd0-cd { sd0_cd: sd0-cd {
samsung,pins = "gpc0-2"; samsung,pins = "gpc0-2";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <3>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
}; };
sd0_bus1: sd0-bus-width1 { sd0_bus1: sd0-bus-width1 {
samsung,pins = "gpc0-3"; samsung,pins = "gpc0-3";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <3>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
}; };
sd0_bus4: sd0-bus-width4 { sd0_bus4: sd0-bus-width4 {
samsung,pins = "gpc0-4", "gpc0-5", "gpc0-6"; samsung,pins = "gpc0-4", "gpc0-5", "gpc0-6";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <3>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
}; };
sd2_clk: sd2-clk { sd2_clk: sd2-clk {
samsung,pins = "gpc2-0"; samsung,pins = "gpc2-0";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <3>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
}; };
sd2_cmd: sd2-cmd { sd2_cmd: sd2-cmd {
samsung,pins = "gpc2-1"; samsung,pins = "gpc2-1";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <0>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
samsung,pin-drv = <3>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
}; };
sd2_cd: sd2-cd { sd2_cd: sd2-cd {
samsung,pins = "gpc2-2"; samsung,pins = "gpc2-2";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <3>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
}; };
sd2_bus1: sd2-bus-width1 { sd2_bus1: sd2-bus-width1 {
samsung,pins = "gpc2-3"; samsung,pins = "gpc2-3";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <3>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
}; };
sd2_bus4: sd2-bus-width4 { sd2_bus4: sd2-bus-width4 {
samsung,pins = "gpc2-4", "gpc2-5", "gpc2-6"; samsung,pins = "gpc2-4", "gpc2-5", "gpc2-6";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <3>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
}; };
sd0_bus8: sd0-bus-width8 { sd0_bus8: sd0-bus-width8 {
samsung,pins = "gpc3-0", "gpc3-1", "gpc3-2", "gpc3-3"; samsung,pins = "gpc3-0", "gpc3-1", "gpc3-2", "gpc3-3";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <3>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
}; };
}; };
......
...@@ -67,8 +67,8 @@ &pinctrl_0 { ...@@ -67,8 +67,8 @@ &pinctrl_0 {
srom_ctl: srom-ctl { srom_ctl: srom-ctl {
samsung,pins = "gpy0-3", "gpy0-4", "gpy0-5", samsung,pins = "gpy0-3", "gpy0-4", "gpy0-5",
"gpy1-0", "gpy1-1", "gpy1-2", "gpy1-3"; "gpy1-0", "gpy1-1", "gpy1-2", "gpy1-3";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
srom_ebi: srom-ebi { srom_ebi: srom-ebi {
...@@ -78,9 +78,9 @@ srom_ebi: srom-ebi { ...@@ -78,9 +78,9 @@ srom_ebi: srom-ebi {
"gpy5-4", "gpy5-5", "gpy5-6", "gpy5-7", "gpy5-4", "gpy5-5", "gpy5-6", "gpy5-7",
"gpy6-0", "gpy6-1", "gpy6-2", "gpy6-3", "gpy6-0", "gpy6-1", "gpy6-2", "gpy6-3",
"gpy6-4", "gpy6-5", "gpy6-6", "gpy6-7"; "gpy6-4", "gpy6-5", "gpy6-6", "gpy6-7";
samsung,pin-function = <2>; samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
samsung,pin-pud = <3>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
samsung,pin-drv = <0>; samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
}; };
}; };
......
...@@ -392,9 +392,9 @@ &mmc_2 { ...@@ -392,9 +392,9 @@ &mmc_2 {
&pinctrl_0 { &pinctrl_0 {
s2mps11_irq: s2mps11-irq { s2mps11_irq: s2mps11-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 = <EXYNOS5420_PIN_DRV_LV1>;
}; };
}; };
......
This diff is collapsed.
This diff is collapsed.
...@@ -387,25 +387,25 @@ &mmc_2 { ...@@ -387,25 +387,25 @@ &mmc_2 {
&pinctrl_0 { &pinctrl_0 {
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 = <EXYNOS5420_PIN_DRV_LV1>;
}; };
}; };
&pinctrl_2 { &pinctrl_2 {
usb300_vbus_en: usb300-vbus-en { usb300_vbus_en: usb300-vbus-en {
samsung,pins = "gpg0-5"; samsung,pins = "gpg0-5";
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 = <EXYNOS5420_PIN_DRV_LV1>;
}; };
usb301_vbus_en: usb301-vbus-en { usb301_vbus_en: usb301-vbus-en {
samsung,pins = "gpg1-4"; samsung,pins = "gpg1-4";
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 = <EXYNOS5420_PIN_DRV_LV1>;
}; };
}; };
......
...@@ -549,25 +549,25 @@ &nocp_mem1_1 { ...@@ -549,25 +549,25 @@ &nocp_mem1_1 {
&pinctrl_0 { &pinctrl_0 {
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 = <EXYNOS5420_PIN_DRV_LV1>;
}; };
s2mps11_irq: s2mps11-irq { s2mps11_irq: s2mps11-irq {
samsung,pins = "gpx0-4"; samsung,pins = "gpx0-4";
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 = <EXYNOS5420_PIN_DRV_LV1>;
}; };
}; };
&pinctrl_1 { &pinctrl_1 {
emmc_nrst_pin: emmc-nrst { emmc_nrst_pin: emmc-nrst {
samsung,pins = "gpd1-0"; samsung,pins = "gpd1-0";
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 = <EXYNOS5420_PIN_DRV_LV1>;
}; };
}; };
......
This diff is collapsed.
This diff is collapsed.
...@@ -201,13 +201,13 @@ &uart3 { ...@@ -201,13 +201,13 @@ &uart3 {
&pinctrl0 { &pinctrl0 {
gpio_leds: gpio-leds { gpio_leds: gpio-leds {
samsung,pins = "gpk-4", "gpk-5", "gpk-6", "gpk-7"; samsung,pins = "gpk-4", "gpk-5", "gpk-6", "gpk-7";
samsung,pin-pud = <PIN_PULL_NONE>; samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
}; };
gpio_keys: gpio-keys { gpio_keys: gpio-keys {
samsung,pins = "gpn-0", "gpn-1", "gpn-2", "gpn-3", samsung,pins = "gpn-0", "gpn-1", "gpn-2", "gpn-3",
"gpn-4", "gpn-5", "gpl-11", "gpl-12"; "gpn-4", "gpn-5", "gpl-11", "gpl-12";
samsung,pin-pud = <PIN_PULL_NONE>; samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
}; };
}; };
......
This diff is collapsed.
...@@ -387,7 +387,7 @@ timing0: timing { ...@@ -387,7 +387,7 @@ timing0: timing {
&pinctrl0 { &pinctrl0 {
t_flash_detect: t-flash-detect { t_flash_detect: t-flash-detect {
samsung,pins = "gph3-4"; samsung,pins = "gph3-4";
samsung,pin-function = <0>; samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
samsung,pin-pud = <0>; samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
}; };
}; };
This diff is collapsed.
/*
* Samsung's Exynos pinctrl bindings
*
* Copyright (c) 2016 Samsung Electronics Co., Ltd.
* http://www.samsung.com
* Author: Krzysztof Kozlowski <krzk@kernel.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __DT_BINDINGS_PINCTRL_SAMSUNG_H__
#define __DT_BINDINGS_PINCTRL_SAMSUNG_H__
#define EXYNOS_PIN_PULL_NONE 0
#define EXYNOS_PIN_PULL_DOWN 1
#define EXYNOS_PIN_PULL_UP 3
#define S3C64XX_PIN_PULL_NONE 0
#define S3C64XX_PIN_PULL_DOWN 1
#define S3C64XX_PIN_PULL_UP 2
/* Pin function in power down mode */
#define EXYNOS_PIN_PDN_OUT0 0
#define EXYNOS_PIN_PDN_OUT1 1
#define EXYNOS_PIN_PDN_INPUT 2
#define EXYNOS_PIN_PDN_PREV 3
/* Drive strengths for Exynos3250, Exynos4 (all) and Exynos5250 */
#define EXYNOS4_PIN_DRV_LV1 0
#define EXYNOS4_PIN_DRV_LV2 2
#define EXYNOS4_PIN_DRV_LV3 1
#define EXYNOS4_PIN_DRV_LV4 3
/* Drive strengths for Exynos5260 */
#define EXYNOS5260_PIN_DRV_LV1 0
#define EXYNOS5260_PIN_DRV_LV2 1
#define EXYNOS5260_PIN_DRV_LV4 2
#define EXYNOS5260_PIN_DRV_LV6 3
/* Drive strengths for Exynos5410, Exynos542x and Exynos5800 */
#define EXYNOS5420_PIN_DRV_LV1 0
#define EXYNOS5420_PIN_DRV_LV2 1
#define EXYNOS5420_PIN_DRV_LV3 2
#define EXYNOS5420_PIN_DRV_LV4 3
#define EXYNOS_PIN_FUNC_INPUT 0
#define EXYNOS_PIN_FUNC_OUTPUT 1
#define EXYNOS_PIN_FUNC_2 2
#define EXYNOS_PIN_FUNC_3 3
#define EXYNOS_PIN_FUNC_4 4
#define EXYNOS_PIN_FUNC_5 5
#define EXYNOS_PIN_FUNC_6 6
#define EXYNOS_PIN_FUNC_F 0xf
#endif /* __DT_BINDINGS_PINCTRL_SAMSUNG_H__ */
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