linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] arm64: dts: rockchip: add spiflash and  ir-receiver nodes to rk3399-khadas-edge
@ 2020-09-23 13:14 Artem Lapkin
  2020-09-23 13:14 ` [PATCH v2 1/2] arm64: dts: rockchip: add spiflash node " Artem Lapkin
  2020-09-23 13:14 ` [PATCH v2 2/2] arm64: dts: rockchip: add ir-receiver " Artem Lapkin
  0 siblings, 2 replies; 3+ messages in thread
From: Artem Lapkin @ 2020-09-23 13:14 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: robh+dt, art, jbx6244, devicetree, linux-kernel, nick, gouwa

add missed spiflash and ir-receiver dts nodes to Khadas Edge Board

Artem Lapkin (2):
  arm64: dts: rockchip: add spiflash node to rk3399-khadas-edge
  arm64: dts: rockchip: add ir-receiver node to rk3399-khadas-edge

 .../boot/dts/rockchip/rk3399-khadas-edge.dtsi | 24 +++++++++++++++++++
 1 file changed, 24 insertions(+)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2 1/2] arm64: dts: rockchip: add spiflash node to rk3399-khadas-edge
  2020-09-23 13:14 [PATCH v2 0/2] arm64: dts: rockchip: add spiflash and ir-receiver nodes to rk3399-khadas-edge Artem Lapkin
@ 2020-09-23 13:14 ` Artem Lapkin
  2020-09-23 13:14 ` [PATCH v2 2/2] arm64: dts: rockchip: add ir-receiver " Artem Lapkin
  1 sibling, 0 replies; 3+ messages in thread
From: Artem Lapkin @ 2020-09-23 13:14 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: robh+dt, art, jbx6244, devicetree, linux-kernel, nick, gouwa

The Khadas Edge Boards uses winbond - w25q128 spi flash with 104Mhz

Signed-off-by: Artem Lapkin <art@khadas.com>
Tested-by: Artem Lapkin <art@khadas.com>
---
 arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi
index e36837c04dc..c67420578fa 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi
@@ -690,6 +690,16 @@ &sdhci {
 	status = "okay";
 };
 
+&spi1 {
+	status = "okay";
+
+	spiflash: flash@0 {
+		compatible = "winbond,w25q128fw", "jedec,spi-nor";
+		reg = <0>;
+		spi-max-frequency = <104000000>;
+	};
+};
+
 &tcphy0 {
 	status = "okay";
 };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v2 2/2] arm64: dts: rockchip: add ir-receiver node to rk3399-khadas-edge
  2020-09-23 13:14 [PATCH v2 0/2] arm64: dts: rockchip: add spiflash and ir-receiver nodes to rk3399-khadas-edge Artem Lapkin
  2020-09-23 13:14 ` [PATCH v2 1/2] arm64: dts: rockchip: add spiflash node " Artem Lapkin
@ 2020-09-23 13:14 ` Artem Lapkin
  1 sibling, 0 replies; 3+ messages in thread
From: Artem Lapkin @ 2020-09-23 13:14 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: robh+dt, art, jbx6244, devicetree, linux-kernel, nick, gouwa

add missed ir-receiver and ir_rx pinctl nodes to rk3399-khadas-edge
Khadas Edge board uses gpio-ir-receiver on RK_PB6 gpio

Signed-off-by: Artem Lapkin <art@khadas.com>
Tested-by: Artem Lapkin <art@khadas.com>
---
 .../boot/dts/rockchip/rk3399-khadas-edge.dtsi      | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi
index c67420578fa..e4655097f22 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi
@@ -109,6 +109,14 @@ vsys_5v0: vsys-5v0 {
 		vin-supply = <&vsys>;
 	};
 
+	ir-receiver {
+		compatible = "gpio-ir-receiver";
+		gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&ir_rx>;
+		linux,rc-map-name = "rc-khadas";
+	};
+
 	adc-keys {
 		compatible = "adc-keys";
 		io-channels = <&saradc 1>;
@@ -585,6 +593,12 @@ pwrbtn: pwrbtn {
 		};
 	};
 
+	ir {
+		ir_rx: ir-rx {
+		    rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+	};
+
 	leds {
 		sys_led_pin: sys-led-pin {
 			rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-23 13:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-23 13:14 [PATCH v2 0/2] arm64: dts: rockchip: add spiflash and ir-receiver nodes to rk3399-khadas-edge Artem Lapkin
2020-09-23 13:14 ` [PATCH v2 1/2] arm64: dts: rockchip: add spiflash node " Artem Lapkin
2020-09-23 13:14 ` [PATCH v2 2/2] arm64: dts: rockchip: add ir-receiver " Artem Lapkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).