Commit 5bd858a8 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Bjorn Andersson

ARM: dts: qcom: msm8660: override nodes by label

Using node paths to extend or override a device tree node is error
prone.  If there was a typo error, a new node will be created instead of
extending the existing node.  This will lead to run-time errors that
could be hard to detect.

A mistyped label on the other hand, will cause a dtc compile error
(during build time).  This also reduces the indentation making the code
easier to read.

The pre/post DTBS are the same.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220810080516.166866-3-krzysztof.kozlowski@linaro.org
parent c77ad7f3
...@@ -16,14 +16,6 @@ chosen { ...@@ -16,14 +16,6 @@ chosen {
}; };
soc { soc {
gsbi@19c00000 {
status = "okay";
qcom,mode = <GSBI_PROT_I2C_UART>;
serial@19c40000 {
status = "okay";
};
};
/* Temporary fixed regulator */ /* Temporary fixed regulator */
vsdcc_fixed: vsdcc-regulator { vsdcc_fixed: vsdcc-regulator {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
...@@ -32,21 +24,16 @@ vsdcc_fixed: vsdcc-regulator { ...@@ -32,21 +24,16 @@ vsdcc_fixed: vsdcc-regulator {
regulator-max-microvolt = <2700000>; regulator-max-microvolt = <2700000>;
regulator-always-on; regulator-always-on;
}; };
};
};
amba { &gsbi12 {
/* eMMC */ qcom,mode = <GSBI_PROT_I2C_UART>;
sdcc1: mmc@12400000 { status = "okay";
status = "okay"; };
vmmc-supply = <&vsdcc_fixed>;
};
/* External micro SD card */ &gsbi12_serial {
sdcc3: mmc@12180000 { status = "okay";
status = "okay";
vmmc-supply = <&vsdcc_fixed>;
};
};
};
}; };
&pm8058 { &pm8058 {
...@@ -76,3 +63,15 @@ MATRIX_KEY(5, 4, KEY_MENU) ...@@ -76,3 +63,15 @@ MATRIX_KEY(5, 4, KEY_MENU)
keypad,num-columns = <5>; keypad,num-columns = <5>;
}; };
}; };
/* eMMC */
&sdcc1 {
vmmc-supply = <&vsdcc_fixed>;
status = "okay";
};
/* External micro SD card */
&sdcc3 {
vmmc-supply = <&vsdcc_fixed>;
status = "okay";
};
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