]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: sdm845-mtp: Reserve reserved gpios
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 2 Nov 2018 21:45:32 +0000 (14:45 -0700)
committerAndy Gross <andy.gross@linaro.org>
Fri, 9 Nov 2018 23:16:55 +0000 (17:16 -0600)
With the introduction of commit 3edfb7bd76bd ("gpiolib: Show correct
direction from the beginning") the gpiolib will attempt to read the
direction of all pins, which triggers a read from protected register
regions.

The pins 0 through 3 and 81 through 84 are protected, so mark these as
reserved.

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

index eedfaf8922e2afbc4d50b91dc13ebdc486033e1a..d667eee4e6d03311b49185a1730e5795608a1a54 100644 (file)
@@ -352,6 +352,10 @@ &qupv3_id_1 {
        status = "okay";
 };
 
+&tlmm {
+       gpio-reserved-ranges = <0 4>, <81 4>;
+};
+
 &uart9 {
        status = "okay";
 };