Commit 12541f68 authored by Konrad Dybcio's avatar Konrad Dybcio Committed by Bjorn Andersson

arm64: dts: qcom: msm8998*: Fix TLMM and pin nodes

Remove the unnecessary level of indentation, commonize SDC2 pins and notice
that SDCC2_CD_ON and _OFF is identical, deduplicate it!

Also, remove some unnecessary overrides and use decimal values in #-cells
Signed-off-by: default avatarKonrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220430162353.607709-1-konrad.dybcio@somainline.org
parent f424d754
...@@ -37,12 +37,3 @@ keyboard@3a { ...@@ -37,12 +37,3 @@ keyboard@3a {
&sdhc2 { &sdhc2 {
cd-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>; cd-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;
}; };
&tlmm {
touchpad: touchpad {
config {
pins = "gpio123";
bias-pull-up;
};
};
};
...@@ -289,11 +289,9 @@ &remoteproc_mss { ...@@ -289,11 +289,9 @@ &remoteproc_mss {
&tlmm { &tlmm {
gpio-reserved-ranges = <0 4>, <81 4>; gpio-reserved-ranges = <0 4>, <81 4>;
touchpad: touchpad { touchpad: touchpad-pin {
config { pins = "gpio123";
pins = "gpio123"; bias-pull-up;
bias-pull-up; /* pull up */
};
}; };
}; };
...@@ -304,8 +302,8 @@ &sdhc2 { ...@@ -304,8 +302,8 @@ &sdhc2 {
vqmmc-supply = <&vreg_l13a_2p95>; vqmmc-supply = <&vreg_l13a_2p95>;
pinctrl-names = "default", "sleep"; pinctrl-names = "default", "sleep";
pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; pinctrl-0 = <&sdc2_on &sdc2_cd>;
pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; pinctrl-1 = <&sdc2_off &sdc2_cd>;
}; };
&ufshc { &ufshc {
......
...@@ -348,8 +348,8 @@ &sdhc2 { ...@@ -348,8 +348,8 @@ &sdhc2 {
vqmmc-supply = <&vreg_l13a_2p95>; vqmmc-supply = <&vreg_l13a_2p95>;
pinctrl-names = "default", "sleep"; pinctrl-names = "default", "sleep";
pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; pinctrl-0 = <&sdc2_on &sdc2_cd>;
pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; pinctrl-1 = <&sdc2_off &sdc2_cd>;
}; };
&stm { &stm {
......
...@@ -549,8 +549,8 @@ &sdhc2 { ...@@ -549,8 +549,8 @@ &sdhc2 {
vqmmc-supply = <&vreg_l13a_2p95>; vqmmc-supply = <&vreg_l13a_2p95>;
pinctrl-names = "default", "sleep"; pinctrl-names = "default", "sleep";
pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; pinctrl-0 = <&sdc2_on &sdc2_cd>;
pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; pinctrl-1 = <&sdc2_off &sdc2_cd>;
}; };
&tlmm { &tlmm {
......
...@@ -1057,85 +1057,58 @@ tlmm: pinctrl@3400000 { ...@@ -1057,85 +1057,58 @@ tlmm: pinctrl@3400000 {
reg = <0x03400000 0xc00000>; reg = <0x03400000 0xc00000>;
interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
gpio-controller; gpio-controller;
#gpio-cells = <0x2>; #gpio-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <0x2>; #interrupt-cells = <2>;
sdc2_clk_on: sdc2_clk_on { sdc2_on: sdc2-on {
config { clk {
pins = "sdc2_clk"; pins = "sdc2_clk";
bias-disable;
drive-strength = <16>; drive-strength = <16>;
};
};
sdc2_clk_off: sdc2_clk_off {
config {
pins = "sdc2_clk";
bias-disable; bias-disable;
drive-strength = <2>;
}; };
};
sdc2_cmd_on: sdc2_cmd_on { cmd {
config {
pins = "sdc2_cmd"; pins = "sdc2_cmd";
bias-pull-up;
drive-strength = <10>; drive-strength = <10>;
};
};
sdc2_cmd_off: sdc2_cmd_off {
config {
pins = "sdc2_cmd";
bias-pull-up; bias-pull-up;
drive-strength = <2>;
}; };
};
sdc2_data_on: sdc2_data_on { data {
config {
pins = "sdc2_data"; pins = "sdc2_data";
bias-pull-up;
drive-strength = <10>; drive-strength = <10>;
bias-pull-up;
}; };
}; };
sdc2_data_off: sdc2_data_off { sdc2_off: sdc2-off {
config { clk {
pins = "sdc2_data"; pins = "sdc2_clk";
bias-pull-up;
drive-strength = <2>; drive-strength = <2>;
bias-disable;
}; };
};
sdc2_cd_on: sdc2_cd_on { cmd {
mux { pins = "sdc2_cmd";
pins = "gpio95"; drive-strength = <2>;
function = "gpio"; bias-pull-up;
}; };
config { data {
pins = "gpio95"; pins = "sdc2_data";
bias-pull-up;
drive-strength = <2>; drive-strength = <2>;
bias-pull-up;
}; };
}; };
sdc2_cd_off: sdc2_cd_off { sdc2_cd: sdc2-cd {
mux { pins = "gpio95";
pins = "gpio95"; function = "gpio";
function = "gpio"; bias-pull-up;
}; drive-strength = <2>;
config {
pins = "gpio95";
bias-pull-up;
drive-strength = <2>;
};
}; };
blsp1_uart3_on: blsp1_uart3_on { blsp1_uart3_on: blsp1-uart3-on {
tx { tx {
pins = "gpio45"; pins = "gpio45";
function = "blsp_uart3_a"; function = "blsp_uart3_a";
......
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