e08f6d1f3c63800c6bde96d6debd26a81cead186
[openwrt/staging/jow.git] / target / linux / ipq807x / patches-6.1 / 0015-v6.2-arm64-dts-qcom-hk01-use-GPIO-flags-for-tlmm.patch
1 From 82ceb86227b1fc15c76d5fc691b2bf425f1a63b3 Mon Sep 17 00:00:00 2001
2 From: Robert Marko <robimarko@gmail.com>
3 Date: Mon, 7 Nov 2022 10:29:30 +0100
4 Subject: [PATCH] arm64: dts: qcom: hk01: use GPIO flags for tlmm
5
6 Use respective GPIO_ACTIVE_LOW/HIGH flags for tlmm GPIOs instead of
7 harcoding the cell value.
8
9 Signed-off-by: Robert Marko <robimarko@gmail.com>
10 Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
11 Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
12 Signed-off-by: Bjorn Andersson <andersson@kernel.org>
13 Link: https://lore.kernel.org/r/20221107092930.33325-3-robimarko@gmail.com
14 ---
15 arch/arm64/boot/dts/qcom/ipq8074-hk01.dts | 5 +++--
16 1 file changed, 3 insertions(+), 2 deletions(-)
17
18 --- a/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts
19 +++ b/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts
20 @@ -4,6 +4,7 @@
21 */
22 #include "ipq8074.dtsi"
23 #include "pmp8074.dtsi"
24 +#include <dt-bindings/gpio/gpio.h>
25
26 / {
27 model = "Qualcomm Technologies, Inc. IPQ8074-HK01";
28 @@ -52,12 +53,12 @@
29
30 &pcie0 {
31 status = "okay";
32 - perst-gpios = <&tlmm 61 0x1>;
33 + perst-gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
34 };
35
36 &pcie1 {
37 status = "okay";
38 - perst-gpios = <&tlmm 58 0x1>;
39 + perst-gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
40 };
41
42 &pcie_qmp0 {