Re: [PATCH 07/13] arm64: dts: qcom: sc7180-trogdor: Remove fp control pins in prep for coachz

2021-02-25 Thread Matthias Kaehlcke
On Thu, Feb 25, 2021 at 02:13:04PM -0800, Douglas Anderson wrote:
> From: Alexandru M Stan 
> 
> Removed the pinctrl and pin{mux,conf} for the control pins because:
> 1. The only need for them is for userspace control via flash_fp_mcu
> 2. cros-ec doesn't know what to do with them, and even if it did,
>it would interfere with flash_fp_mcu at the most inopportune times
> 
> Since we're not using hogs, we rely on AP firmware to set all the
> control pins correctly.
> 
> Cc: Stephen Boyd 
> Cc: Craig Hesling 
> Signed-off-by: Alexandru M Stan 
> [dianders: adjusted since coachz isn't upstream yet]
> Signed-off-by: Douglas Anderson 

We have essentially the same patch downstream, so I suppose the AP FW
indeed takes care of configuring the FP pins as needed :)

Reviewed-by; Matthias Kaehlcke 


[PATCH 07/13] arm64: dts: qcom: sc7180-trogdor: Remove fp control pins in prep for coachz

2021-02-25 Thread Douglas Anderson
From: Alexandru M Stan 

Removed the pinctrl and pin{mux,conf} for the control pins because:
1. The only need for them is for userspace control via flash_fp_mcu
2. cros-ec doesn't know what to do with them, and even if it did,
   it would interfere with flash_fp_mcu at the most inopportune times

Since we're not using hogs, we rely on AP firmware to set all the
control pins correctly.

Cc: Stephen Boyd 
Cc: Craig Hesling 
Signed-off-by: Alexandru M Stan 
[dianders: adjusted since coachz isn't upstream yet]
Signed-off-by: Douglas Anderson 
---

 arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 45 +---
 1 file changed, 1 insertion(+), 44 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi 
b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi
index 69bf600e1c9f..12397e31bef6 100644
--- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi
@@ -808,7 +808,7 @@ cros_ec_fp: ec@0 {
interrupt-parent = <&tlmm>;
interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
-   pinctrl-0 = <&fp_to_ap_irq_l>, <&fp_rst_l>, <&fpmcu_boot0>, 
<&fpmcu_sel>;
+   pinctrl-0 = <&fp_to_ap_irq_l>;
spi-max-frequency = <300>;
};
 };
@@ -1233,48 +1233,6 @@ pinconf {
};
};
 
-   fpmcu_boot0: fpmcu-boot0 {
-   pinmux {
-   pins = "gpio10";
-   function = "gpio";
-   };
-
-   pinconf {
-   pins = "gpio10";
-   bias-disable;
-   drive-strength = <2>;
-   output-low;
-   };
-   };
-
-   fpmcu_sel: fpmcu-sel {
-   pinmux {
-   pins = "gpio22";
-   function = "gpio";
-   };
-
-   pinconf {
-   pins = "gpio22";
-   bias-disable;
-   drive-strength = <2>;
-   output-high;
-   };
-   };
-
-   fp_rst_l: fp-rst-l {
-   pinmux {
-   pins = "gpio5";
-   function = "gpio";
-   };
-
-   pinconf {
-   pins = "gpio5";
-   bias-disable;
-   drive-strength = <2>;
-   output-high;
-   };
-   };
-
fp_to_ap_irq_l: fp-to-ap-irq-l {
pinmux {
pins = "gpio4";
@@ -1290,7 +1248,6 @@ pinconf {
};
};
 
-
h1_ap_int_odl: h1-ap-int-odl {
pinmux {
pins = "gpio42";
-- 
2.30.1.766.gb4fecdf3b7-goog