Commit 6554a295 authored by Stephan Gerhold's avatar Stephan Gerhold Committed by Bjorn Andersson

arm64: dts: qcom: msm8916: Simplify pinctrl configuration

So far we have been separating pinctrl entries into pinmux/pinconf.
It turns out it is also possible to combine them: The advantage is
that the device tree is overall more concise because the "pins"
to configure just need to be specified once, not separately for
pinmux/pinconf.

Using the simpler form only for new entries would be rather confusing.
This commit makes all MSM8916 device trees use the simplfied form.
Signed-off-by: default avatarStephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20200622151751.408995-3-stephan@gerhold.netSigned-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent f7f394f0
...@@ -781,133 +781,102 @@ l18 { ...@@ -781,133 +781,102 @@ l18 {
&msmgpio { &msmgpio {
msmgpio_leds: msmgpio-leds { msmgpio_leds: msmgpio-leds {
pinconf { pins = "gpio21", "gpio120";
pins = "gpio21", "gpio120"; function = "gpio";
function = "gpio";
output-low; output-low;
};
}; };
usb_id_default: usb-id-default { usb_id_default: usb-id-default {
pinmux { pins = "gpio121";
function = "gpio"; function = "gpio";
pins = "gpio121";
};
pinconf { drive-strength = <8>;
pins = "gpio121"; input-enable;
drive-strength = <8>; bias-pull-up;
input-enable;
bias-pull-up;
};
}; };
adv7533_int_active: adv533-int-active { adv7533_int_active: adv533-int-active {
pinmux { pins = "gpio31";
function = "gpio"; function = "gpio";
pins = "gpio31";
}; drive-strength = <16>;
pinconf { bias-disable;
pins = "gpio31";
drive-strength = <16>;
bias-disable;
};
}; };
adv7533_int_suspend: adv7533-int-suspend { adv7533_int_suspend: adv7533-int-suspend {
pinmux { pins = "gpio31";
function = "gpio"; function = "gpio";
pins = "gpio31";
}; drive-strength = <2>;
pinconf { bias-disable;
pins = "gpio31";
drive-strength = <2>;
bias-disable;
};
}; };
adv7533_switch_active: adv7533-switch-active { adv7533_switch_active: adv7533-switch-active {
pinmux { pins = "gpio32";
function = "gpio"; function = "gpio";
pins = "gpio32";
}; drive-strength = <16>;
pinconf { bias-disable;
pins = "gpio32";
drive-strength = <16>;
bias-disable;
};
}; };
adv7533_switch_suspend: adv7533-switch-suspend { adv7533_switch_suspend: adv7533-switch-suspend {
pinmux { pins = "gpio32";
function = "gpio"; function = "gpio";
pins = "gpio32";
}; drive-strength = <2>;
pinconf { bias-disable;
pins = "gpio32";
drive-strength = <2>;
bias-disable;
};
}; };
msm_key_volp_n_default: msm-key-volp-n-default { msm_key_volp_n_default: msm-key-volp-n-default {
pinmux { pins = "gpio107";
function = "gpio"; function = "gpio";
pins = "gpio107";
}; drive-strength = <8>;
pinconf { input-enable;
pins = "gpio107"; bias-pull-up;
drive-strength = <8>;
input-enable;
bias-pull-up;
};
}; };
}; };
&pm8916_gpios { &pm8916_gpios {
usb_hub_reset_pm: usb-hub-reset-pm { usb_hub_reset_pm: usb-hub-reset-pm {
pinconf { pins = "gpio3";
pins = "gpio3"; function = PMIC_GPIO_FUNC_NORMAL;
function = PMIC_GPIO_FUNC_NORMAL;
input-disable; input-disable;
output-high; output-high;
};
}; };
usb_hub_reset_pm_device: usb-hub-reset-pm-device { usb_hub_reset_pm_device: usb-hub-reset-pm-device {
pinconf { pins = "gpio3";
pins = "gpio3"; function = PMIC_GPIO_FUNC_NORMAL;
function = PMIC_GPIO_FUNC_NORMAL;
output-low; output-low;
};
}; };
usb_sw_sel_pm: usb-sw-sel-pm { usb_sw_sel_pm: usb-sw-sel-pm {
pinconf { pins = "gpio4";
pins = "gpio4"; function = PMIC_GPIO_FUNC_NORMAL;
function = PMIC_GPIO_FUNC_NORMAL;
power-source = <PM8916_GPIO_VPH>; power-source = <PM8916_GPIO_VPH>;
input-disable; input-disable;
output-high; output-high;
};
}; };
usb_sw_sel_pm_device: usb-sw-sel-pm-device { usb_sw_sel_pm_device: usb-sw-sel-pm-device {
pinconf { pins = "gpio4";
pins = "gpio4"; function = PMIC_GPIO_FUNC_NORMAL;
function = PMIC_GPIO_FUNC_NORMAL;
power-source = <PM8916_GPIO_VPH>; power-source = <PM8916_GPIO_VPH>;
input-disable; input-disable;
output-low; output-low;
};
}; };
pm8916_gpios_leds: pm8916-gpios-leds { pm8916_gpios_leds: pm8916-gpios-leds {
pinconf { pins = "gpio1", "gpio2";
pins = "gpio1", "gpio2"; function = PMIC_GPIO_FUNC_NORMAL;
function = PMIC_GPIO_FUNC_NORMAL;
output-low; output-low;
};
}; };
}; };
...@@ -916,19 +885,17 @@ &pm8916_mpps { ...@@ -916,19 +885,17 @@ &pm8916_mpps {
pinctrl-0 = <&ls_exp_gpio_f>; pinctrl-0 = <&ls_exp_gpio_f>;
ls_exp_gpio_f: pm8916-mpp4 { ls_exp_gpio_f: pm8916-mpp4 {
pinconf { pins = "mpp4";
pins = "mpp4"; function = "digital";
function = "digital";
output-low; output-low;
power-source = <PM8916_MPP_L5>; // 1.8V power-source = <PM8916_MPP_L5>; // 1.8V
};
}; };
pm8916_mpps_leds: pm8916-mpps-leds { pm8916_mpps_leds: pm8916-mpps-leds {
pinconf { pins = "mpp2", "mpp3";
pins = "mpp2", "mpp3"; function = "digital";
function = "digital";
output-low; output-low;
};
}; };
}; };
...@@ -236,25 +236,17 @@ l18 { ...@@ -236,25 +236,17 @@ l18 {
&msmgpio { &msmgpio {
gpio_keys_default: gpio-keys-default { gpio_keys_default: gpio-keys-default {
pinmux { pins = "gpio107";
function = "gpio"; function = "gpio";
pins = "gpio107";
}; drive-strength = <2>;
pinconf { bias-pull-up;
pins = "gpio107";
drive-strength = <2>;
bias-pull-up;
};
}; };
usb_vbus_default: usb-vbus-default { usb_vbus_default: usb-vbus-default {
pinmux { pins = "gpio62";
function = "gpio"; function = "gpio";
pins = "gpio62";
}; bias-pull-up;
pinconf {
pins = "gpio62";
bias-pull-up;
};
}; };
}; };
This diff is collapsed.
...@@ -295,76 +295,51 @@ l18 { ...@@ -295,76 +295,51 @@ l18 {
&msmgpio { &msmgpio {
gpio_keys_default: gpio-keys-default { gpio_keys_default: gpio-keys-default {
pinmux { pins = "gpio107", "gpio109";
function = "gpio"; function = "gpio";
pins = "gpio107", "gpio109";
}; drive-strength = <2>;
pinconf { bias-pull-up;
pins = "gpio107", "gpio109";
drive-strength = <2>;
bias-pull-up;
};
}; };
gpio_hall_sensor_default: gpio-hall-sensor-default { gpio_hall_sensor_default: gpio-hall-sensor-default {
pinmux { pins = "gpio52";
function = "gpio"; function = "gpio";
pins = "gpio52";
}; drive-strength = <2>;
pinconf { bias-disable;
pins = "gpio52";
drive-strength = <2>;
bias-disable;
};
}; };
mdss { mdss {
mdss_default: mdss-default { mdss_default: mdss-default {
pinmux { pins = "gpio25";
function = "gpio"; function = "gpio";
pins = "gpio25";
};
pinconf {
pins = "gpio25";
drive-strength = <8>;
bias-disable;
};
};
drive-strength = <8>;
bias-disable;
};
mdss_sleep: mdss-sleep { mdss_sleep: mdss-sleep {
pinmux { pins = "gpio25";
function = "gpio"; function = "gpio";
pins = "gpio25";
}; drive-strength = <2>;
pinconf { bias-pull-down;
pins = "gpio25";
drive-strength = <2>;
bias-pull-down;
};
}; };
}; };
muic_int_default: muic-int-default { muic_int_default: muic-int-default {
pinmux { pins = "gpio12";
function = "gpio"; function = "gpio";
pins = "gpio12";
}; drive-strength = <2>;
pinconf { bias-disable;
pins = "gpio12";
drive-strength = <2>;
bias-disable;
};
}; };
tsp_en_default: tsp-en-default { tsp_en_default: tsp-en-default {
pinmux { pins = "gpio73";
function = "gpio"; function = "gpio";
pins = "gpio73";
}; drive-strength = <2>;
pinconf { bias-disable;
pins = "gpio73";
drive-strength = <2>;
bias-disable;
};
}; };
}; };
...@@ -51,14 +51,10 @@ dsi0_out: endpoint { ...@@ -51,14 +51,10 @@ dsi0_out: endpoint {
&msmgpio { &msmgpio {
panel_vdd3_default: panel-vdd3-default { panel_vdd3_default: panel-vdd3-default {
pinmux { pins = "gpio9";
function = "gpio"; function = "gpio";
pins = "gpio9";
}; drive-strength = <2>;
pinconf { bias-disable;
pins = "gpio9";
drive-strength = <2>;
bias-disable;
};
}; };
}; };
...@@ -38,14 +38,10 @@ iris { ...@@ -38,14 +38,10 @@ iris {
&msmgpio { &msmgpio {
ts_int_default: ts-int-default { ts_int_default: ts-int-default {
pinmux { pins = "gpio13";
function = "gpio"; function = "gpio";
pins = "gpio13";
}; drive-strength = <2>;
pinconf { bias-disable;
pins = "gpio13";
drive-strength = <2>;
bias-disable;
};
}; };
}; };
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