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,134 +781,103 @@ l18 { ...@@ -781,134 +781,103 @@ 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 {
function = "gpio";
pins = "gpio121"; pins = "gpio121";
}; function = "gpio";
pinconf {
pins = "gpio121";
drive-strength = <8>; drive-strength = <8>;
input-enable; input-enable;
bias-pull-up; bias-pull-up;
}; };
};
adv7533_int_active: adv533-int-active { adv7533_int_active: adv533-int-active {
pinmux {
function = "gpio";
pins = "gpio31";
};
pinconf {
pins = "gpio31"; pins = "gpio31";
function = "gpio";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
}; };
};
adv7533_int_suspend: adv7533-int-suspend { adv7533_int_suspend: adv7533-int-suspend {
pinmux {
function = "gpio";
pins = "gpio31";
};
pinconf {
pins = "gpio31"; pins = "gpio31";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
};
adv7533_switch_active: adv7533-switch-active { adv7533_switch_active: adv7533-switch-active {
pinmux {
function = "gpio";
pins = "gpio32";
};
pinconf {
pins = "gpio32"; pins = "gpio32";
function = "gpio";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
}; };
};
adv7533_switch_suspend: adv7533-switch-suspend { adv7533_switch_suspend: adv7533-switch-suspend {
pinmux {
function = "gpio";
pins = "gpio32";
};
pinconf {
pins = "gpio32"; pins = "gpio32";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
};
msm_key_volp_n_default: msm-key-volp-n-default { msm_key_volp_n_default: msm-key-volp-n-default {
pinmux {
function = "gpio";
pins = "gpio107";
};
pinconf {
pins = "gpio107"; pins = "gpio107";
function = "gpio";
drive-strength = <8>; drive-strength = <8>;
input-enable; input-enable;
bias-pull-up; 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;
}; };
};
}; };
&pm8916_mpps { &pm8916_mpps {
...@@ -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 {
function = "gpio";
pins = "gpio107";
};
pinconf {
pins = "gpio107"; pins = "gpio107";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-pull-up; bias-pull-up;
}; };
};
usb_vbus_default: usb-vbus-default { usb_vbus_default: usb-vbus-default {
pinmux {
function = "gpio";
pins = "gpio62";
};
pinconf {
pins = "gpio62"; pins = "gpio62";
function = "gpio";
bias-pull-up; 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 {
function = "gpio";
pins = "gpio107", "gpio109";
};
pinconf {
pins = "gpio107", "gpio109"; pins = "gpio107", "gpio109";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-pull-up; bias-pull-up;
}; };
};
gpio_hall_sensor_default: gpio-hall-sensor-default { gpio_hall_sensor_default: gpio-hall-sensor-default {
pinmux {
function = "gpio";
pins = "gpio52";
};
pinconf {
pins = "gpio52"; pins = "gpio52";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
};
mdss { mdss {
mdss_default: mdss-default { mdss_default: mdss-default {
pinmux {
function = "gpio";
pins = "gpio25";
};
pinconf {
pins = "gpio25"; pins = "gpio25";
function = "gpio";
drive-strength = <8>; drive-strength = <8>;
bias-disable; bias-disable;
}; };
};
mdss_sleep: mdss-sleep { mdss_sleep: mdss-sleep {
pinmux {
function = "gpio";
pins = "gpio25";
};
pinconf {
pins = "gpio25"; pins = "gpio25";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-pull-down; bias-pull-down;
}; };
}; };
};
muic_int_default: muic-int-default { muic_int_default: muic-int-default {
pinmux {
function = "gpio";
pins = "gpio12";
};
pinconf {
pins = "gpio12"; pins = "gpio12";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
};
tsp_en_default: tsp-en-default { tsp_en_default: tsp-en-default {
pinmux {
function = "gpio";
pins = "gpio73";
};
pinconf {
pins = "gpio73"; pins = "gpio73";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-disable; 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 {
function = "gpio";
pins = "gpio9";
};
pinconf {
pins = "gpio9"; pins = "gpio9";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-disable; 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 {
function = "gpio";
pins = "gpio13";
};
pinconf {
pins = "gpio13"; pins = "gpio13";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-disable; 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