summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-07-27 16:49:22 +0300
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-08-03 11:40:34 +0300
commitd2a77cde6ce7eeb5e3656dcd566cfcee94400379 (patch)
tree183d340a173e0a5158f3742a170e9b8f86f53f3f
parente1d0ef7ecc9503c3cfb8300ad33f372fc78094cb (diff)
apalis-imx6: convert adv7280 to syntactic sugar
Convert an overlay file for Analogue Camera Adapter V2.0B for Apalis iMX6 module into Syntactic Sugar format, as this format is strongly recommended in Embedded Linux Wiki [1]. [1] https://elinux.org/Device_Tree_Reference#Overlay_Source_Format Related-to: ELB-2834 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r--overlays/apalis-imx6_adv7280_overlay.dts59
1 files changed, 27 insertions, 32 deletions
diff --git a/overlays/apalis-imx6_adv7280_overlay.dts b/overlays/apalis-imx6_adv7280_overlay.dts
index 51ee907..29ecffd 100644
--- a/overlays/apalis-imx6_adv7280_overlay.dts
+++ b/overlays/apalis-imx6_adv7280_overlay.dts
@@ -5,45 +5,40 @@
/ {
compatible = "toradex,apalis_imx6q";
+};
- fragment@0 {
- target-path = "/soc/aips-bus@2100000/i2c@21a8000";
- __overlay__ {
- #address-cells = <1>;
- #size-cells = <0>;
- status = "okay";
-
- adv7280@21 {
- compatible = "adi,adv7280";
- reg = <0x21>;
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_ipu1_csi0>;
-
- port {
- adv7280_to_ipu1_csi0_mux: endpoint {
- remote-endpoint = <&ipu1_csi0_mux_from_parallel_sensor>;
- bus-width = <8>;
- };
- };
+&i2c3 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ adv7280@21 {
+ compatible = "adi,adv7280";
+ reg = <0x21>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_ipu1_csi0>;
+
+ port {
+ adv7280_to_ipu1_csi0_mux: endpoint {
+ remote-endpoint = <&ipu1_csi0_mux_from_parallel_sensor>;
+ bus-width = <8>;
};
};
};
+};
- fragment@1 {
- target-path = "/soc/aips-bus@2000000/iomuxc-gpr@20e0000/ipu1_csi0_mux/";
- __overlay__ {
- #address-cells = <1>;
- #size-cells = <0>;
- status = "okay";
+&{/soc/aips-bus@2000000/iomuxc-gpr@20e0000/ipu1_csi0_mux} {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
- port@1 {
- reg = <1>;
+ port@1 {
+ reg = <1>;
- ipu1_csi0_mux_from_parallel_sensor: endpoint {
- remote-endpoint = <&adv7280_to_ipu1_csi0_mux>;
- bus-width = <8>;
- };
- };
+ ipu1_csi0_mux_from_parallel_sensor: endpoint {
+ remote-endpoint = <&adv7280_to_ipu1_csi0_mux>;
+ bus-width = <8>;
};
};
};
+