firmware: arm_scpi: Add compatibility checks for shmem node
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 2 Jun 2021 07:38:50 +0000 (08:38 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 3 Jun 2021 15:46:53 +0000 (16:46 +0100)
commited7ecb8839010150e3adb41800d218ef3d62e269
treee7fb375aefcb635bb7232f4f98919af6571d6d79
parentab7766b72855e6a68109b915d071181b93086e29
firmware: arm_scpi: Add compatibility checks for shmem node

The shared memory node used for communication between the firmware and
the OS should be compatible with one of the following:
- amlogic,meson-gxbb-scp-shmem
- amlogic,meson-axg-scp-shmem
- arm,juno-scp-shmem
- arm,scp-shmem
Add the check for the same while parsing the node before fetching the memory
regions.

Link: https://lore.kernel.org/r/20210602073851.1005607-1-sudeep.holla@arm.com
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Tested-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scpi.c