Thread (15 messages) 15 messages, 6 authors, 2017-10-13

[PATCH v5 3/3] arm64: dts: rockchip: Handle pcie wake in pcie driver for Gru

From: shawn.lin@rock-chips.com (Shawn Lin)
Date: 2017-09-12 00:40:36
Also in: linux-devicetree, linux-rockchip


On 2017/9/11 23:10, Jeffy Chen wrote:
Currently we are handling pcie wake irq in mrvl wifi driver.
Move it to rockchip pcie driver for Gru boards.

Signed-off-by: Jeffy Chen <redacted>
---
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
quoted hunk ↗ jump to hunk
Changes in v5:
Use "wakeup" instead of "wake"

Changes in v3: None
Changes in v2: None

  arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 15 +++++++++------
  1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
index 199a5118b20d..9e0269a13ced 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
@@ -707,7 +707,15 @@ ap_i2c_audio: &i2c8 {
  
  	ep-gpios = <&gpio2 27 GPIO_ACTIVE_HIGH>;
  	pinctrl-names = "default";
-	pinctrl-0 = <&pcie_clkreqn_cpm>, <&wifi_perst_l>;
+	pinctrl-0 = <&pcie_clkreqn_cpm>, <&wlan_host_wake_l>, <&wifi_perst_l>;
+
+	interrupts-extended = <&gic GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH 0>,
+			      <&gic GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH 0>,
+			      <&gic GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH 0>,
+			      <&gpio0 8 IRQ_TYPE_LEVEL_LOW>;
+	interrupt-names = "sys", "legacy", "client", "wakeup";
+	/delete-property/ interrupts;
+
  	vpcie3v3-supply = <&pp3300_wifi_bt>;
  	vpcie1v8-supply = <&wlan_pd_n>; /* HACK: see &wlan_pd_n */
  	vpcie0v9-supply = <&pp900_pcie>;
@@ -722,11 +730,6 @@ ap_i2c_audio: &i2c8 {
  			compatible = "pci1b4b,2b42";
  			reg = <0x83010000 0x0 0x00000000 0x0 0x00100000
  			       0x83010000 0x0 0x00100000 0x0 0x00100000>;
-			interrupt-parent = <&gpio0>;
-			interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
-			pinctrl-names = "default";
-			pinctrl-0 = <&wlan_host_wake_l>;
-			wakeup-source;
  		};
  	};
  };
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help