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;
}; };
};
}; };
...@@ -6,74 +6,49 @@ ...@@ -6,74 +6,49 @@
&msmgpio { &msmgpio {
blsp1_uart1_default: blsp1-uart1-default { blsp1_uart1_default: blsp1-uart1-default {
pinmux {
function = "blsp_uart1";
// TX, RX, CTS_N, RTS_N // TX, RX, CTS_N, RTS_N
pins = "gpio0", "gpio1", pins = "gpio0", "gpio1", "gpio2", "gpio3";
"gpio2", "gpio3"; function = "blsp_uart1";
};
pinconf {
pins = "gpio0", "gpio1",
"gpio2", "gpio3";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
}; };
};
blsp1_uart1_sleep: blsp1-uart1-sleep { blsp1_uart1_sleep: blsp1-uart1-sleep {
pinmux { pins = "gpio0", "gpio1", "gpio2", "gpio3";
function = "gpio"; function = "gpio";
pins = "gpio0", "gpio1",
"gpio2", "gpio3";
};
pinconf {
pins = "gpio0", "gpio1",
"gpio2", "gpio3";
drive-strength = <2>; drive-strength = <2>;
bias-pull-down; bias-pull-down;
}; };
};
blsp1_uart2_default: blsp1-uart2-default { blsp1_uart2_default: blsp1-uart2-default {
pinmux {
function = "blsp_uart2";
pins = "gpio4", "gpio5";
};
pinconf {
pins = "gpio4", "gpio5"; pins = "gpio4", "gpio5";
function = "blsp_uart2";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
}; };
};
blsp1_uart2_sleep: blsp1-uart2-sleep { blsp1_uart2_sleep: blsp1-uart2-sleep {
pinmux {
function = "gpio";
pins = "gpio4", "gpio5";
};
pinconf {
pins = "gpio4", "gpio5"; pins = "gpio4", "gpio5";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-pull-down; bias-pull-down;
}; };
};
spi1_default: spi1-default { spi1_default: spi1-default {
pinmux {
function = "blsp_spi1";
pins = "gpio0", "gpio1", "gpio3";
};
pinmux-cs {
function = "gpio";
pins = "gpio2";
};
pinconf {
pins = "gpio0", "gpio1", "gpio3"; pins = "gpio0", "gpio1", "gpio3";
function = "blsp_spi1";
drive-strength = <12>; drive-strength = <12>;
bias-disable; bias-disable;
};
pinconf-cs { cs {
pins = "gpio2"; pins = "gpio2";
function = "gpio";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
output-high; output-high;
...@@ -81,33 +56,24 @@ pinconf-cs { ...@@ -81,33 +56,24 @@ pinconf-cs {
}; };
spi1_sleep: spi1-sleep { spi1_sleep: spi1-sleep {
pinmux {
function = "gpio";
pins = "gpio0", "gpio1", "gpio2", "gpio3";
};
pinconf {
pins = "gpio0", "gpio1", "gpio2", "gpio3"; pins = "gpio0", "gpio1", "gpio2", "gpio3";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-pull-down; bias-pull-down;
}; };
};
spi2_default: spi2-default { spi2_default: spi2-default {
pinmux {
function = "blsp_spi2";
pins = "gpio4", "gpio5", "gpio7";
};
pinmux-cs {
function = "gpio";
pins = "gpio6";
};
pinconf {
pins = "gpio4", "gpio5", "gpio7"; pins = "gpio4", "gpio5", "gpio7";
function = "blsp_spi2";
drive-strength = <12>; drive-strength = <12>;
bias-disable; bias-disable;
};
pinconf-cs { cs {
pins = "gpio6"; pins = "gpio6";
function = "gpio";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
output-high; output-high;
...@@ -115,33 +81,24 @@ pinconf-cs { ...@@ -115,33 +81,24 @@ pinconf-cs {
}; };
spi2_sleep: spi2-sleep { spi2_sleep: spi2-sleep {
pinmux {
function = "gpio";
pins = "gpio4", "gpio5", "gpio6", "gpio7";
};
pinconf {
pins = "gpio4", "gpio5", "gpio6", "gpio7"; pins = "gpio4", "gpio5", "gpio6", "gpio7";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-pull-down; bias-pull-down;
}; };
};
spi3_default: spi3-default { spi3_default: spi3-default {
pinmux {
function = "blsp_spi3";
pins = "gpio8", "gpio9", "gpio11";
};
pinmux-cs {
function = "gpio";
pins = "gpio10";
};
pinconf {
pins = "gpio8", "gpio9", "gpio11"; pins = "gpio8", "gpio9", "gpio11";
function = "blsp_spi3";
drive-strength = <12>; drive-strength = <12>;
bias-disable; bias-disable;
};
pinconf-cs { cs {
pins = "gpio10"; pins = "gpio10";
function = "gpio";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
output-high; output-high;
...@@ -149,33 +106,24 @@ pinconf-cs { ...@@ -149,33 +106,24 @@ pinconf-cs {
}; };
spi3_sleep: spi3-sleep { spi3_sleep: spi3-sleep {
pinmux {
function = "gpio";
pins = "gpio8", "gpio9", "gpio10", "gpio11";
};
pinconf {
pins = "gpio8", "gpio9", "gpio10", "gpio11"; pins = "gpio8", "gpio9", "gpio10", "gpio11";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-pull-down; bias-pull-down;
}; };
};
spi4_default: spi4-default { spi4_default: spi4-default {
pinmux {
function = "blsp_spi4";
pins = "gpio12", "gpio13", "gpio15";
};
pinmux-cs {
function = "gpio";
pins = "gpio14";
};
pinconf {
pins = "gpio12", "gpio13", "gpio15"; pins = "gpio12", "gpio13", "gpio15";
function = "blsp_spi4";
drive-strength = <12>; drive-strength = <12>;
bias-disable; bias-disable;
};
pinconf-cs { cs {
pins = "gpio14"; pins = "gpio14";
function = "gpio";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
output-high; output-high;
...@@ -183,33 +131,24 @@ pinconf-cs { ...@@ -183,33 +131,24 @@ pinconf-cs {
}; };
spi4_sleep: spi4-sleep { spi4_sleep: spi4-sleep {
pinmux {
function = "gpio";
pins = "gpio12", "gpio13", "gpio14", "gpio15";
};
pinconf {
pins = "gpio12", "gpio13", "gpio14", "gpio15"; pins = "gpio12", "gpio13", "gpio14", "gpio15";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-pull-down; bias-pull-down;
}; };
};
spi5_default: spi5-default { spi5_default: spi5-default {
pinmux {
function = "blsp_spi5";
pins = "gpio16", "gpio17", "gpio19";
};
pinmux-cs {
function = "gpio";
pins = "gpio18";
};
pinconf {
pins = "gpio16", "gpio17", "gpio19"; pins = "gpio16", "gpio17", "gpio19";
function = "blsp_spi5";
drive-strength = <12>; drive-strength = <12>;
bias-disable; bias-disable;
};
pinconf-cs { cs {
pins = "gpio18"; pins = "gpio18";
function = "gpio";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
output-high; output-high;
...@@ -217,33 +156,24 @@ pinconf-cs { ...@@ -217,33 +156,24 @@ pinconf-cs {
}; };
spi5_sleep: spi5-sleep { spi5_sleep: spi5-sleep {
pinmux {
function = "gpio";
pins = "gpio16", "gpio17", "gpio18", "gpio19";
};
pinconf {
pins = "gpio16", "gpio17", "gpio18", "gpio19"; pins = "gpio16", "gpio17", "gpio18", "gpio19";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-pull-down; bias-pull-down;
}; };
};
spi6_default: spi6-default { spi6_default: spi6-default {
pinmux {
function = "blsp_spi6";
pins = "gpio20", "gpio21", "gpio23";
};
pinmux-cs {
function = "gpio";
pins = "gpio22";
};
pinconf {
pins = "gpio20", "gpio21", "gpio23"; pins = "gpio20", "gpio21", "gpio23";
function = "blsp_spi6";
drive-strength = <12>; drive-strength = <12>;
bias-disable; bias-disable;
};
pinconf-cs { cs {
pins = "gpio22"; pins = "gpio22";
function = "gpio";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
output-high; output-high;
...@@ -251,466 +181,315 @@ pinconf-cs { ...@@ -251,466 +181,315 @@ pinconf-cs {
}; };
spi6_sleep: spi6-sleep { spi6_sleep: spi6-sleep {
pinmux {
function = "gpio";
pins = "gpio20", "gpio21", "gpio22", "gpio23";
};
pinconf {
pins = "gpio20", "gpio21", "gpio22", "gpio23"; pins = "gpio20", "gpio21", "gpio22", "gpio23";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-pull-down; bias-pull-down;
}; };
};
i2c1_default: i2c1-default { i2c1_default: i2c1-default {
pinmux {
function = "blsp_i2c1";
pins = "gpio2", "gpio3";
};
pinconf {
pins = "gpio2", "gpio3"; pins = "gpio2", "gpio3";
function = "blsp_i2c1";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
};
i2c1_sleep: i2c1-sleep { i2c1_sleep: i2c1-sleep {
pinmux {
function = "gpio";
pins = "gpio2", "gpio3";
};
pinconf {
pins = "gpio2", "gpio3"; pins = "gpio2", "gpio3";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
};
i2c2_default: i2c2-default { i2c2_default: i2c2-default {
pinmux {
function = "blsp_i2c2";
pins = "gpio6", "gpio7";
};
pinconf {
pins = "gpio6", "gpio7"; pins = "gpio6", "gpio7";
function = "blsp_i2c2";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
}; };
};
i2c2_sleep: i2c2-sleep { i2c2_sleep: i2c2-sleep {
pinmux {
function = "gpio";
pins = "gpio6", "gpio7";
};
pinconf {
pins = "gpio6", "gpio7"; pins = "gpio6", "gpio7";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
};
i2c4_default: i2c4-default { i2c4_default: i2c4-default {
pinmux {
function = "blsp_i2c4";
pins = "gpio14", "gpio15";
};
pinconf {
pins = "gpio14", "gpio15"; pins = "gpio14", "gpio15";
function = "blsp_i2c4";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
}; };
};
i2c4_sleep: i2c4-sleep { i2c4_sleep: i2c4-sleep {
pinmux {
function = "gpio";
pins = "gpio14", "gpio15";
};
pinconf {
pins = "gpio14", "gpio15"; pins = "gpio14", "gpio15";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
};
i2c5_default: i2c5-default { i2c5_default: i2c5-default {
pinmux {
function = "blsp_i2c5";
pins = "gpio18", "gpio19";
};
pinconf {
pins = "gpio18", "gpio19"; pins = "gpio18", "gpio19";
function = "blsp_i2c5";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
};
i2c5_sleep: i2c5-sleep { i2c5_sleep: i2c5-sleep {
pinmux {
function = "gpio";
pins = "gpio18", "gpio19";
};
pinconf {
pins = "gpio18", "gpio19"; pins = "gpio18", "gpio19";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
};
i2c6_default: i2c6-default { i2c6_default: i2c6-default {
pinmux {
function = "blsp_i2c6";
pins = "gpio22", "gpio23";
};
pinconf {
pins = "gpio22", "gpio23"; pins = "gpio22", "gpio23";
function = "blsp_i2c6";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
}; };
};
i2c6_sleep: i2c6-sleep { i2c6_sleep: i2c6-sleep {
pinmux {
function = "gpio";
pins = "gpio22", "gpio23";
};
pinconf {
pins = "gpio22", "gpio23"; pins = "gpio22", "gpio23";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
};
pmx-sdc1-clk { pmx-sdc1-clk {
sdc1_clk_on: clk-on { sdc1_clk_on: clk-on {
pinmux {
pins = "sdc1_clk";
};
pinconf {
pins = "sdc1_clk"; pins = "sdc1_clk";
bias-disable; bias-disable;
drive-strength = <16>; drive-strength = <16>;
}; };
};
sdc1_clk_off: clk-off { sdc1_clk_off: clk-off {
pinmux {
pins = "sdc1_clk";
};
pinconf {
pins = "sdc1_clk"; pins = "sdc1_clk";
bias-disable; bias-disable;
drive-strength = <2>; drive-strength = <2>;
}; };
}; };
};
pmx-sdc1-cmd { pmx-sdc1-cmd {
sdc1_cmd_on: cmd-on { sdc1_cmd_on: cmd-on {
pinmux {
pins = "sdc1_cmd";
};
pinconf {
pins = "sdc1_cmd"; pins = "sdc1_cmd";
bias-pull-up; bias-pull-up;
drive-strength = <10>; drive-strength = <10>;
}; };
};
sdc1_cmd_off: cmd-off { sdc1_cmd_off: cmd-off {
pinmux {
pins = "sdc1_cmd";
};
pinconf {
pins = "sdc1_cmd"; pins = "sdc1_cmd";
bias-pull-up; bias-pull-up;
drive-strength = <2>; drive-strength = <2>;
}; };
}; };
};
pmx-sdc1-data { pmx-sdc1-data {
sdc1_data_on: data-on { sdc1_data_on: data-on {
pinmux {
pins = "sdc1_data";
};
pinconf {
pins = "sdc1_data"; pins = "sdc1_data";
bias-pull-up; bias-pull-up;
drive-strength = <10>; drive-strength = <10>;
}; };
};
sdc1_data_off: data-off { sdc1_data_off: data-off {
pinmux {
pins = "sdc1_data";
};
pinconf {
pins = "sdc1_data"; pins = "sdc1_data";
bias-pull-up; bias-pull-up;
drive-strength = <2>; drive-strength = <2>;
}; };
}; };
};
pmx-sdc2-clk { pmx-sdc2-clk {
sdc2_clk_on: clk-on { sdc2_clk_on: clk-on {
pinmux {
pins = "sdc2_clk";
};
pinconf {
pins = "sdc2_clk"; pins = "sdc2_clk";
bias-disable; bias-disable;
drive-strength = <16>; drive-strength = <16>;
}; };
};
sdc2_clk_off: clk-off { sdc2_clk_off: clk-off {
pinmux {
pins = "sdc2_clk";
};
pinconf {
pins = "sdc2_clk"; pins = "sdc2_clk";
bias-disable; bias-disable;
drive-strength = <2>; drive-strength = <2>;
}; };
}; };
};
pmx-sdc2-cmd { pmx-sdc2-cmd {
sdc2_cmd_on: cmd-on { sdc2_cmd_on: cmd-on {
pinmux {
pins = "sdc2_cmd";
};
pinconf {
pins = "sdc2_cmd"; pins = "sdc2_cmd";
bias-pull-up; bias-pull-up;
drive-strength = <10>; drive-strength = <10>;
}; };
};
sdc2_cmd_off: cmd-off { sdc2_cmd_off: cmd-off {
pinmux {
pins = "sdc2_cmd";
};
pinconf {
pins = "sdc2_cmd"; pins = "sdc2_cmd";
bias-pull-up; bias-pull-up;
drive-strength = <2>; drive-strength = <2>;
}; };
}; };
};
pmx-sdc2-data { pmx-sdc2-data {
sdc2_data_on: data-on { sdc2_data_on: data-on {
pinmux {
pins = "sdc2_data";
};
pinconf {
pins = "sdc2_data"; pins = "sdc2_data";
bias-pull-up; bias-pull-up;
drive-strength = <10>; drive-strength = <10>;
}; };
};
sdc2_data_off: data-off { sdc2_data_off: data-off {
pinmux {
pins = "sdc2_data";
};
pinconf {
pins = "sdc2_data"; pins = "sdc2_data";
bias-pull-up; bias-pull-up;
drive-strength = <2>; drive-strength = <2>;
}; };
}; };
};
pmx-sdc2-cd-pin { pmx-sdc2-cd-pin {
sdc2_cd_on: cd-on { sdc2_cd_on: cd-on {
pinmux {
function = "gpio";
pins = "gpio38";
};
pinconf {
pins = "gpio38"; pins = "gpio38";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-pull-up; bias-pull-up;
}; };
};
sdc2_cd_off: cd-off { sdc2_cd_off: cd-off {
pinmux {
function = "gpio";
pins = "gpio38";
};
pinconf {
pins = "gpio38"; pins = "gpio38";
function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
}; };
};
cdc-pdm-lines { cdc-pdm-lines {
cdc_pdm_lines_act: pdm-lines-on { cdc_pdm_lines_act: pdm-lines-on {
pinmux {
function = "cdc_pdm0";
pins = "gpio63", "gpio64", "gpio65", "gpio66",
"gpio67", "gpio68";
};
pinconf {
pins = "gpio63", "gpio64", "gpio65", "gpio66", pins = "gpio63", "gpio64", "gpio65", "gpio66",
"gpio67", "gpio68"; "gpio67", "gpio68";
function = "cdc_pdm0";
drive-strength = <8>; drive-strength = <8>;
bias-disable; bias-disable;
}; };
};
cdc_pdm_lines_sus: pdm-lines-off { cdc_pdm_lines_sus: pdm-lines-off {
pinmux {
function = "cdc_pdm0";
pins = "gpio63", "gpio64", "gpio65", "gpio66",
"gpio67", "gpio68";
};
pinconf {
pins = "gpio63", "gpio64", "gpio65", "gpio66", pins = "gpio63", "gpio64", "gpio65", "gpio66",
"gpio67", "gpio68"; "gpio67", "gpio68";
function = "cdc_pdm0";
drive-strength = <2>; drive-strength = <2>;
bias-pull-down; bias-pull-down;
}; };
}; };
};
ext-pri-tlmm-lines { ext-pri-tlmm-lines {
ext_pri_tlmm_lines_act: ext-pa-on { ext_pri_tlmm_lines_act: ext-pa-on {
pinmux { pins = "gpio113", "gpio114", "gpio115", "gpio116";
function = "pri_mi2s"; function = "pri_mi2s";
pins = "gpio113", "gpio114", "gpio115",
"gpio116";
};
pinconf {
pins = "gpio113", "gpio114", "gpio115",
"gpio116";
drive-strength = <8>; drive-strength = <8>;
bias-disable; bias-disable;
}; };
};
ext_pri_tlmm_lines_sus: ext-pa-off { ext_pri_tlmm_lines_sus: ext-pa-off {
pinmux { pins = "gpio113", "gpio114", "gpio115", "gpio116";
function = "pri_mi2s"; function = "pri_mi2s";
pins = "gpio113", "gpio114", "gpio115",
"gpio116";
};
pinconf {
pins = "gpio113", "gpio114", "gpio115",
"gpio116";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
}; };
};
ext-pri-ws-line { ext-pri-ws-line {
ext_pri_ws_act: ext-pa-on { ext_pri_ws_act: ext-pa-on {
pinmux {
function = "pri_mi2s_ws";
pins = "gpio110";
};
pinconf {
pins = "gpio110"; pins = "gpio110";
function = "pri_mi2s_ws";
drive-strength = <8>; drive-strength = <8>;
bias-disable; bias-disable;
}; };
};
ext_pri_ws_sus: ext-pa-off { ext_pri_ws_sus: ext-pa-off {
pinmux {
function = "pri_mi2s_ws";
pins = "gpio110";
};
pinconf {
pins = "gpio110"; pins = "gpio110";
function = "pri_mi2s_ws";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
}; };
};
ext-mclk-tlmm-lines { ext-mclk-tlmm-lines {
ext_mclk_tlmm_lines_act: mclk-lines-on { ext_mclk_tlmm_lines_act: mclk-lines-on {
pinmux {
function = "pri_mi2s";
pins = "gpio116";
};
pinconf {
pins = "gpio116"; pins = "gpio116";
function = "pri_mi2s";
drive-strength = <8>; drive-strength = <8>;
bias-disable; bias-disable;
}; };
};
ext_mclk_tlmm_lines_sus: mclk-lines-off { ext_mclk_tlmm_lines_sus: mclk-lines-off {
pinmux {
function = "pri_mi2s";
pins = "gpio116";
};
pinconf {
pins = "gpio116"; pins = "gpio116";
function = "pri_mi2s";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
}; };
};
/* secondary Mi2S */ /* secondary Mi2S */
ext-sec-tlmm-lines { ext-sec-tlmm-lines {
ext_sec_tlmm_lines_act: tlmm-lines-on { ext_sec_tlmm_lines_act: tlmm-lines-on {
pinmux { pins = "gpio112", "gpio117", "gpio118", "gpio119";
function = "sec_mi2s"; function = "sec_mi2s";
pins = "gpio112", "gpio117", "gpio118",
"gpio119";
};
pinconf {
pins = "gpio112", "gpio117", "gpio118",
"gpio119";
drive-strength = <8>; drive-strength = <8>;
bias-disable; bias-disable;
}; };
};
ext_sec_tlmm_lines_sus: tlmm-lines-off { ext_sec_tlmm_lines_sus: tlmm-lines-off {
pinmux { pins = "gpio112", "gpio117", "gpio118", "gpio119";
function = "sec_mi2s"; function = "sec_mi2s";
pins = "gpio112", "gpio117", "gpio118",
"gpio119";
};
pinconf {
pins = "gpio112", "gpio117", "gpio118",
"gpio119";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
}; };
};
cdc-dmic-lines { cdc-dmic-lines {
cdc_dmic_lines_act: dmic-lines-on { cdc_dmic_lines_act: dmic-lines-on {
pinmux-dmic0-clk { clk {
function = "dmic0_clk";
pins = "gpio0"; pins = "gpio0";
function = "dmic0_clk";
drive-strength = <8>;
}; };
pinmux-dmic0-data { data {
function = "dmic0_data";
pins = "gpio1"; pins = "gpio1";
}; function = "dmic0_data";
pinconf {
pins = "gpio0", "gpio1";
drive-strength = <8>; drive-strength = <8>;
}; };
}; };
cdc_dmic_lines_sus: dmic-lines-off { cdc_dmic_lines_sus: dmic-lines-off {
pinmux-dmic0-clk { clk {
function = "dmic0_clk";
pins = "gpio0"; pins = "gpio0";
function = "dmic0_clk";
drive-strength = <2>;
bias-disable;
}; };
pinmux-dmic0-data { data {
function = "dmic0_data";
pins = "gpio1"; pins = "gpio1";
}; function = "dmic0_data";
pinconf {
pins = "gpio0", "gpio1";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
...@@ -718,88 +497,64 @@ pinconf { ...@@ -718,88 +497,64 @@ pinconf {
}; };
wcnss_pin_a: wcnss-active { wcnss_pin_a: wcnss-active {
pinmux {
pins = "gpio40", "gpio41", "gpio42", "gpio43", "gpio44"; pins = "gpio40", "gpio41", "gpio42", "gpio43", "gpio44";
function = "wcss_wlan"; function = "wcss_wlan";
};
pinconf {
pins = "gpio40", "gpio41", "gpio42", "gpio43", "gpio44";
drive-strength = <6>; drive-strength = <6>;
bias-pull-up; bias-pull-up;
}; };
};
cci0_default: cci0-default { cci0_default: cci0-default {
pinmux {
function = "cci_i2c";
pins = "gpio29", "gpio30";
};
pinconf {
pins = "gpio29", "gpio30"; pins = "gpio29", "gpio30";
function = "cci_i2c";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
}; };
};
camera_front_default: camera-front-default { camera_front_default: camera-front-default {
pinmux-pwdn { pwdn {
function = "gpio";
pins = "gpio33";
};
pinconf-pwdn {
pins = "gpio33"; pins = "gpio33";
function = "gpio";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
}; };
rst {
pinmux-rst {
function = "gpio";
pins = "gpio28";
};
pinconf-rst {
pins = "gpio28"; pins = "gpio28";
function = "gpio";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
}; };
mclk1 {
pinmux-mclk1 {
function = "cam_mclk1";
pins = "gpio27";
};
pinconf-mclk1 {
pins = "gpio27"; pins = "gpio27";
function = "cam_mclk1";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
}; };
}; };
camera_rear_default: camera-rear-default { camera_rear_default: camera-rear-default {
pinmux-pwdn { pwdn {
function = "gpio";
pins = "gpio34";
};
pinconf-pwdn {
pins = "gpio34"; pins = "gpio34";
function = "gpio";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
}; };
rst {
pinmux-rst {
function = "gpio";
pins = "gpio35";
};
pinconf-rst {
pins = "gpio35"; pins = "gpio35";
function = "gpio";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
}; };
mclk0 {
pinmux-mclk0 {
function = "cam_mclk0";
pins = "gpio26";
};
pinconf-mclk0 {
pins = "gpio26"; pins = "gpio26";
function = "cam_mclk0";
drive-strength = <16>; drive-strength = <16>;
bias-disable; bias-disable;
}; };
......
...@@ -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