Unverified Commit f14cdf03 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by AngeloGioacchino Del Regno
Browse files

arm64: dts: mediatek: mt7986a: bpi-r3: Convert to sugar syntax



Overlay syntactic sugar for generating target-path fragments is
supported by the version of dtc supplied with the kernel since commit
50aafd60 ("scripts/dtc: Update to upstream version
v1.4.6-21-g84e414b0b5bc").  Hence convert the Bananapi R3 overlay
devicetree source files to sugar syntax, improving readability.

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/2fd900a30b5a0f7de4ea68f60bac250794b8cdb4.1716984213.git.geert+renesas@glider.be


Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
parent 897a7edb
Loading
Loading
Loading
Loading
+12 −16
Original line number Diff line number Diff line
@@ -9,10 +9,9 @@

/ {
	compatible = "bananapi,bpi-r3", "mediatek,mt7986a";
};

	fragment@0 {
		target-path = "/soc/mmc@11230000";
		__overlay__ {
&{/soc/mmc@11230000} {
	bus-width = <8>;
	max-frequency = <200000000>;
	cap-mmc-highspeed;
@@ -24,6 +23,3 @@ __overlay__ {
	no-sdio;
	status = "okay";
};
	};
};
+36 −38
Original line number Diff line number Diff line
@@ -9,12 +9,12 @@

/ {
	compatible = "bananapi,bpi-r3", "mediatek,mt7986a";
};

	fragment@0 {
		target-path = "/soc/spi@1100a000";
		__overlay__ {
&{/soc/spi@1100a000} {
	#address-cells = <1>;
	#size-cells = <0>;

	spi_nand: flash@0 {
		compatible = "spi-nand";
		reg = <0>;
@@ -51,5 +51,3 @@ partition@580000 {
		};
	};
};
	};
};
+44 −46
Original line number Diff line number Diff line
@@ -9,12 +9,12 @@

/ {
	compatible = "bananapi,bpi-r3", "mediatek,mt7986a";
};

	fragment@0 {
		target-path = "/soc/spi@1100a000";
		__overlay__ {
&{/soc/spi@1100a000} {
	#address-cells = <1>;
	#size-cells = <0>;

	flash@0 {
		compatible = "jedec,spi-nor";
		reg = <0>;
@@ -59,5 +59,3 @@ partition@c00000 {
		};
	};
};
	};
};
+6 −10
Original line number Diff line number Diff line
@@ -9,15 +9,11 @@

/ {
	compatible = "bananapi,bpi-r3", "mediatek,mt7986a";
};

	fragment@0 {
		target-path = "/soc/mmc@11230000";
		__overlay__ {
&{/soc/mmc@11230000} {
	bus-width = <4>;
	max-frequency = <52000000>;
	cap-sd-highspeed;
	status = "okay";
};
	};
};