arm64: dts: qcom: sdm845-mtp: Mark protected gcc clocks
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 6 Nov 2018 05:50:13 +0000 (21:50 -0800)
committerStephen Boyd <sboyd@kernel.org>
Wed, 28 Nov 2018 06:34:10 +0000 (22:34 -0800)
As of v4.20-rc1 probing the GCC driver on a SDM845 device with the
standard security implementation causes an access violation and an
immediate system restart. Use the protected-clocks property to mark the
offending clocks protected for the MTP, in order to allow it to boot.

Cc: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
arch/arm64/boot/dts/qcom/sdm845-mtp.dts

index eedfaf8922e2afbc4d50b91dc13ebdc486033e1a..ef2d059c2db13061992ed0efea206e03ae82ed95 100644 (file)
        };
 };
 
+&gcc {
+       protected-clocks = <GCC_QSPI_CORE_CLK>,
+                          <GCC_QSPI_CORE_CLK_SRC>,
+                          <GCC_QSPI_CNOC_PERIPH_AHB_CLK>;
+};
+
 &i2c10 {
        status = "okay";
        clock-frequency = <400000>;