mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
a599926a53
Add support for the FriendlyARM NanoPi R4S. Signed-off-by: Tianling Shen <cnsztl@gmail.com> Co-authored-by: Jensen Huang <jensenhuang@friendlyarm.com> Signed-off-by: Jensen Huang <jensenhuang@friendlyarm.com> Co-authored-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Marty Jones <mj8263788@gmail.com>
39 lines
993 B
Diff
39 lines
993 B
Diff
From f5c5391cc60a675ba38ece5f62b5d113fd57ee45 Mon Sep 17 00:00:00 2001
|
|
From: Tianling Shen <cnsztl@gmail.com>
|
|
Date: Sun, 27 Dec 2020 05:14:47 +0000
|
|
Subject: [PATCH] arm: dts: rockchip: rename and label gpio-keys subnodes
|
|
|
|
Current dtsi files does not allow to add new gpio labels
|
|
in device specific dts, so let's rename and label it.
|
|
|
|
Signed-off-by: Tianling Shen <cnsztl@gmail.com>
|
|
---
|
|
arch/arm/dts/rk3399-nanopi4.dtsi | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
--- a/arch/arm/dts/rk3399-nanopi4.dtsi
|
|
+++ b/arch/arm/dts/rk3399-nanopi4.dtsi
|
|
@@ -99,11 +99,11 @@
|
|
regulator-name = "vbus_typec";
|
|
};
|
|
|
|
- gpio-keys {
|
|
+ keys: gpio-keys {
|
|
compatible = "gpio-keys";
|
|
autorepeat;
|
|
pinctrl-names = "default";
|
|
- pinctrl-0 = <&power_key>;
|
|
+ pinctrl-0 = <&key_pins>;
|
|
|
|
power {
|
|
debounce-interval = <100>;
|
|
@@ -550,7 +550,7 @@
|
|
};
|
|
|
|
rockchip-key {
|
|
- power_key: power-key {
|
|
+ key_pins: key-pins {
|
|
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
};
|