0068-v6.2-arm64-dts-qcom-hk01-use-GPIO-flags-for-tlmm.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 82ceb86227b1fc15c76d5fc691b2bf425f1a63b3 Mon Sep 17 00:00:00 2001
  2. From: Robert Marko <[email protected]>
  3. Date: Mon, 7 Nov 2022 10:29:30 +0100
  4. Subject: [PATCH] arm64: dts: qcom: hk01: use GPIO flags for tlmm
  5. Use respective GPIO_ACTIVE_LOW/HIGH flags for tlmm GPIOs instead of
  6. harcoding the cell value.
  7. Signed-off-by: Robert Marko <[email protected]>
  8. Reviewed-by: Krzysztof Kozlowski <[email protected]>
  9. Reviewed-by: Konrad Dybcio <[email protected]>
  10. Signed-off-by: Bjorn Andersson <[email protected]>
  11. Link: https://lore.kernel.org/r/[email protected]
  12. ---
  13. arch/arm64/boot/dts/qcom/ipq8074-hk01.dts | 5 +++--
  14. 1 file changed, 3 insertions(+), 2 deletions(-)
  15. --- a/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts
  16. +++ b/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts
  17. @@ -4,6 +4,7 @@
  18. */
  19. #include "ipq8074.dtsi"
  20. #include "pmp8074.dtsi"
  21. +#include <dt-bindings/gpio/gpio.h>
  22. / {
  23. model = "Qualcomm Technologies, Inc. IPQ8074-HK01";
  24. @@ -50,12 +51,12 @@
  25. &pcie0 {
  26. status = "okay";
  27. - perst-gpios = <&tlmm 61 0x1>;
  28. + perst-gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
  29. };
  30. &pcie1 {
  31. status = "okay";
  32. - perst-gpios = <&tlmm 58 0x1>;
  33. + perst-gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
  34. };
  35. &pcie_phy0 {