arm64: dts: qcom: sdm845: Define the number of available ports
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Thu, 17 Nov 2022 00:32:26 +0000 (00:32 +0000)
committerBjorn Andersson <andersson@kernel.org>
Tue, 6 Dec 2022 17:05:30 +0000 (11:05 -0600)
The number of available ports is SoC specific so we should define it in the
SoC dtsi. For the case of the sdm845 that is 4 CSI PHYs => four ports.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221117003232.589734-2-bryan.odonoghue@linaro.org
arch/arm64/boot/dts/qcom/sdm845.dtsi

index 9c7d484ce72f139c59b12e5af5f264688f8ec1af..65032b94b46d6e163168206acf0c4e04287691d9 100644 (file)
                        ports {
                                #address-cells = <1>;
                                #size-cells = <0>;
+
+                               port@0 {
+                                       reg = <0>;
+                               };
+
+                               port@1 {
+                                       reg = <1>;
+                               };
+
+                               port@2 {
+                                       reg = <2>;
+                               };
+
+                               port@3 {
+                                       reg = <3>;
+                               };
                        };
                };