Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c29a7cce authored by Miquel Raynal's avatar Miquel Raynal Committed by Gregory CLEMENT
Browse files

ARM: dts: armada-375: update NAND node with new bindings



Use the new bindings of the Marvell NAND controller driver. Also adapt
the NAND controller node organization to distinguish which property is
relevant for the controller, and which one is NAND chip specific. Expose
the partitions as a subnode of the NAND chip.

Remove the 'marvell,nand-enable-arbiter' property, not needed anymore
as the new driver activates the arbiter by default for all boards which
is either needed or harmless.

Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@bootlin.com>
parent 3b799199
Loading
Loading
Loading
Loading
+30 −20
Original line number Diff line number Diff line
@@ -103,17 +103,25 @@
	nr-ports = <2>;
};

&nand {
&nand_controller {
	status = "okay";
	pinctrl-0 = <&nand_pins>;
	pinctrl-names = "default";
	status = "okay";
	num-cs = <1>;

	nand@0 {
		reg = <0>;
		label = "pxa3xx_nand-0";
		nand-rb = <0>;
		marvell,nand-keep-config;
	marvell,nand-enable-arbiter;
		nand-on-flash-bbt;
		nand-ecc-strength = <4>;
		nand-ecc-step-size = <512>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "U-Boot";
				reg = <0 0x800000>;
@@ -127,6 +135,8 @@
				reg = <0x1000000 0x3f000000>;
			};
		};
	};
};

&usb1 {
	status = "okay";
+3 −3
Original line number Diff line number Diff line
@@ -502,11 +502,11 @@
				status = "disabled";
			};

			nand: nand@d0000 {
				compatible = "marvell,armada370-nand";
			nand_controller: nand-controller@d0000 {
				compatible = "marvell,armada370-nand-controller";
				reg = <0xd0000 0x54>;
				#address-cells = <1>;
				#size-cells = <1>;
				#size-cells = <0>;
				interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
				clocks = <&gateclk 11>;
				status = "disabled";