Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/dts Add support for Pinebook lid switch and eMMC
details: https://anonhg.NetBSD.org/src/rev/a589ba83d0d8
branches: trunk
changeset: 361402:a589ba83d0d8
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Apr 28 11:49:48 2018 +0000
description:
Add support for Pinebook lid switch and eMMC
diffstat:
sys/arch/arm/dts/sun50i-a64-pinebook.dts | 28 ++++++++++++++++++++++------
1 files changed, 22 insertions(+), 6 deletions(-)
diffs (50 lines):
diff -r 983632306583 -r a589ba83d0d8 sys/arch/arm/dts/sun50i-a64-pinebook.dts
--- a/sys/arch/arm/dts/sun50i-a64-pinebook.dts Sat Apr 28 11:49:06 2018 +0000
+++ b/sys/arch/arm/dts/sun50i-a64-pinebook.dts Sat Apr 28 11:49:48 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sun50i-a64-pinebook.dts,v 1.3 2018/02/18 12:22:16 jmcneill Exp $ */
+/* $NetBSD: sun50i-a64-pinebook.dts,v 1.4 2018/04/28 11:49:48 jmcneill Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,6 +29,8 @@
#include "../../../external/gpl2/dts/dist/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts"
#include "sun50i-a64.dtsi"
+#include <dt-bindings/input/linux-event-codes.h>
+
/ {
model = "Pine64 Pinebook";
compatible = "pine64,pinebook", "allwinner,sun50i-a64";
@@ -38,12 +40,26 @@
allwinner,pipeline = "mixer0-lcd0";
};
};
+
+ gpio_keys {
+ compatible = "gpio-keys";
+
+ lid_switch {
+ label = "Lid Switch";
+ gpios = <&pio 7 10 GPIO_ACTIVE_LOW>; /* PH10 */
+ linux,input-type = <EV_SW>;
+ linux,code = <SW_LID>;
+ linux,can-disable;
+ };
+ };
};
-&ehci0 {
+&mmc2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc2_pins>;
+ vmmc-supply = <®_dcdc1>;
+ bus-width = <8>;
+ non-removable;
+ cap-mmc-hw-reset;
status = "okay";
};
-
-&ohci0 {
- status = "okay";
-};
Home |
Main Index |
Thread Index |
Old Index