OSDN Git Service

arm64: dts: juno: set the right partition type for NOR flash
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 28 May 2019 08:58:13 +0000 (10:58 +0200)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 28 May 2019 10:35:11 +0000 (11:35 +0100)
We do not normally access the flash on the Juno, as this
will disturb other aspects of the system, but if we choose
to do so anyways, we should set up the partitions in the
right way so we will find out what is in the flash.

The ARM Firmware Suite now has its own compatible and
proper device tree bindings to trigger discovery of the
flash contents, and Linux supports handling the new type
of AFS partitions.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
arch/arm64/boot/dts/arm/juno-motherboard.dtsi

index 1792b07..9f60dac 100644 (file)
                        flash@0,00000000 {
                                /* 2 * 32MiB NOR Flash memory mounted on CS0 */
                                compatible = "arm,vexpress-flash", "cfi-flash";
-                               linux,part-probe = "afs";
                                reg = <0 0x00000000 0x04000000>;
                                bank-width = <4>;
                                /*
                                 * flash hardware access is disabled by default.
                                 */
                                status = "disabled";
+                               partitions {
+                                       compatible = "arm,arm-firmware-suite";
+                               };
                        };
 
                        ethernet@2,00000000 {