summaryrefslogtreecommitdiff
path: root/arch/mips/boot/dts/ingenic
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2020-03-07 00:06:32 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-03-23 15:43:45 +0300
commitfa894a8feedc74d2fb4592dd0245f75556decc94 (patch)
tree3063247af7b0d03220481447caba0bd2f03c94f5 /arch/mips/boot/dts/ingenic
parentf5e8fcf85a25bac26c32a0000dbab5857ead9113 (diff)
downloadlinux-fa894a8feedc74d2fb4592dd0245f75556decc94.tar.xz
MIPS: DTS: CI20: multiple DTS improvements
a) add DT node for SW1 as Enter button The SW1 button can be used as a simple one-button keyboard and is connected to PD17. Note: SW1 has a second meaning to change the boot sequence when pressed while powering on. b) give eth0_power a defined voltage. This is a 3.3V power switch (DVNET3.3V). Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Reviewed-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/boot/dts/ingenic')
-rw-r--r--arch/mips/boot/dts/ingenic/ci20.dts14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts
index fc4e64200c3d..db0ca250bd1a 100644
--- a/arch/mips/boot/dts/ingenic/ci20.dts
+++ b/arch/mips/boot/dts/ingenic/ci20.dts
@@ -4,6 +4,7 @@
#include "jz4780.dtsi"
#include <dt-bindings/clock/ingenic,tcu.h>
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/regulator/active-semi,8865-regulator.h>
@@ -27,6 +28,17 @@
0x30000000 0x30000000>;
};
+ gpio-keys {
+ compatible = "gpio-keys";
+
+ sw1 {
+ label = "ci20:sw1";
+ linux,code = <KEY_F13>;
+ gpios = <&gpd 17 GPIO_ACTIVE_HIGH>;
+ wakeup-source;
+ };
+ };
+
leds {
compatible = "gpio-leds";
@@ -58,6 +70,8 @@
eth0_power: fixedregulator@0 {
compatible = "regulator-fixed";
regulator-name = "eth0_power";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
gpio = <&gpb 25 GPIO_ACTIVE_LOW>;
enable-active-high;
};