OSDN Git Service

arm64: dts: qcom: hk10: use GPIO flags for tlmm
authorRobert Marko <robimarko@gmail.com>
Mon, 7 Nov 2022 09:29:29 +0000 (10:29 +0100)
committerBjorn Andersson <andersson@kernel.org>
Tue, 8 Nov 2022 01:26:37 +0000 (19:26 -0600)
Use respective GPIO_ACTIVE_LOW/HIGH flags for tlmm GPIOs instead of
harcoding the cell value.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221107092930.33325-2-robimarko@gmail.com
arch/arm64/boot/dts/qcom/ipq8074-hk10.dtsi

index 262b937..651a231 100644 (file)
@@ -5,6 +5,7 @@
 /dts-v1/;
 
 #include "ipq8074.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        aliases {
 
 &pcie0 {
        status = "okay";
-       perst-gpios = <&tlmm 58 0x1>;
+       perst-gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
 };
 
 &pcie1 {
        status = "okay";
-       perst-gpios = <&tlmm 61 0x1>;
+       perst-gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
 };
 
 &pcie_phy0 {