arm64: dts: qcom: sdm845: Add size/address-cells to dsi[01]
authorKonrad Dybcio <konrad.dybcio@somainline.org>
Sat, 2 Oct 2021 00:13:57 +0000 (02:13 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 24 Oct 2021 03:41:52 +0000 (22:41 -0500)
Add the aforementioned properties in the SoC DTSI so that everybody doesn't
have to copy that into their device DTs, effectively reducing code
duplication.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211002001358.45920-5-konrad.dybcio@somainline.org
arch/arm64/boot/dts/qcom/sdm845-mtp.dts
arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts
arch/arm64/boot/dts/qcom/sdm845.dtsi

index 5ad934fcc718b73eb4555415606ba4372cd3ebb6..588f899d40f20153017b1e8759a704f1da1440d5 100644 (file)
        qcom,dual-dsi-mode;
        qcom,master-dsi;
 
-       #address-cells = <1>;
-       #size-cells = <0>;
-
        ports {
                port@1 {
                        endpoint {
index aaa9f3377526280adcd1c41eb3092a705096ddb3..8bad4c965229e93d60a5916b46538c8181488bce 100644 (file)
        status = "okay";
        vdda-supply = <&vdda_mipi_dsi0_1p2>;
 
-       #address-cells = <1>;
-       #size-cells = <0>;
-
        /*
         * Both devices use different panels but all other properties
         * are common. Compatible line is declared in device dts.
index 46cca67487969b7adccbeb34450b3d48539bfd45..09d06bac8622cbfc95f01ad7d001f00deb433af2 100644 (file)
        status = "okay";
        vdda-supply = <&vreg_l26a_1p2>;
 
-       #address-cells = <1>;
-       #size-cells = <0>;
-
        panel@0 {
                compatible = "tianma,fhd-video";
                reg = <0>;
index a898f6e4a150205dbd4c91c6ffa7620c2cba2d8f..c7c8ca1865eaa5334cff652f951b7926b13fac27 100644 (file)
 
                                status = "disabled";
 
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
                                ports {
                                        #address-cells = <1>;
                                        #size-cells = <0>;
 
                                status = "disabled";
 
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
                                ports {
                                        #address-cells = <1>;
                                        #size-cells = <0>;