mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Neil Armstrong <narmstrong@baylibre.com>
To: linux-kernel@vger.kernel.org, linux@arm.linux.org.uk,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org
Cc: Neil Armstrong <narmstrong@baylibre.com>
Subject: [PATCH v3 18/18] arm: boot: dts: Add Western Digital My Book World Edition device tree
Date: Thu, 24 Mar 2016 17:50:15 +0100	[thread overview]
Message-ID: <1458838215-23314-19-git-send-email-narmstrong@baylibre.com> (raw)
In-Reply-To: <1458838215-23314-1-git-send-email-narmstrong@baylibre.com>

Add Western Digital My Book World Edition device tree based on
PLX Technology OX810SE SoC.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
 arch/arm/boot/dts/Makefile    |   2 +
 arch/arm/boot/dts/wd-mbwe.dts | 112 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 114 insertions(+)
 create mode 100644 arch/arm/boot/dts/wd-mbwe.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 52b34a0..3290d4e 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -530,6 +530,8 @@ dtb-$(CONFIG_ARCH_ORION5X) += \
 	orion5x-rd88f5182-nas.dtb
 dtb-$(CONFIG_ARCH_PRIMA2) += \
 	prima2-evb.dtb
+dtb-$(CONFIG_ARCH_OXNAS) += \
+	wd-mbwe.dtb
 dtb-$(CONFIG_ARCH_QCOM) += \
 	qcom-apq8064-cm-qs600.dtb \
 	qcom-apq8064-ifc6410.dtb \
diff --git a/arch/arm/boot/dts/wd-mbwe.dts b/arch/arm/boot/dts/wd-mbwe.dts
new file mode 100644
index 0000000..ac3250a
--- /dev/null
+++ b/arch/arm/boot/dts/wd-mbwe.dts
@@ -0,0 +1,112 @@
+/*
+ * wd-mbwe.dtsi - Device tree file for Western Digital My Book World Edition
+ *
+ * Copyright (C) 2016 Neil Armstrong <narmstrong@baylibre.com>
+ *
+ * Licensed under GPLv2 or later
+ */
+
+/dts-v1/;
+#include "ox810se.dtsi"
+
+/ {
+	model = "Western Digital My Book World Edition";
+
+	compatible = "wd,mbwe", "oxsemi,ox810se";
+
+	chosen {
+		bootargs = "console=ttyS1,115200n8 earlyprintk=serial";
+	};
+
+	memory {
+		/* 128Mbytes DDR */
+		reg = <0x48000000 0x8000000>;
+	};
+
+	aliases {
+		serial1 = &uart1;
+		gpio0 = &gpio0;
+		gpio1 = &gpio1;
+	};
+
+	gpio-keys-polled {
+		compatible = "gpio-keys-polled";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		poll-interval = <100>;
+
+		power {
+			label = "power";
+			gpios = <&gpio0 0 1>;
+			linux,code = <0x198>;
+		};
+
+		recovery {
+			label = "recovery";
+			gpios = <&gpio0 4 1>;
+			linux,code = <0xab>;
+		};
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		a0 {
+			label = "activity0";
+			gpios = <&gpio0 25 0>;
+			default-state = "keep";
+		};
+
+		a1 {
+			label = "activity1";
+			gpios = <&gpio0 26 0>;
+			default-state = "keep";
+		};
+
+		a2 {
+			label = "activity2";
+			gpios = <&gpio0 5 0>;
+			default-state = "keep";
+		};
+
+		a3 {
+			label = "activity3";
+			gpios = <&gpio0 6 0>;
+			default-state = "keep";
+		};
+
+		a4 {
+			label = "activity4";
+			gpios = <&gpio0 7 0>;
+			default-state = "keep";
+		};
+
+		a5 {
+			label = "activity5";
+			gpios = <&gpio1 2 0>;
+			default-state = "keep";
+		};
+	};
+
+	i2c-gpio {
+		compatible = "i2c-gpio";
+		gpios = <&gpio0 3 0 /* sda */
+			 &gpio0 2 0 /* scl */
+			 >;
+		i2c-gpio,delay-us = <2>;        /* ~100 kHz */
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		rtc0: rtc@48 {
+			compatible = "st,m41t00";
+			reg = <0x68>;
+		};
+	};
+};
+
+&uart1 {
+	status = "okay";
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart1>;
+};
-- 
1.9.1

  parent reply	other threads:[~2016-03-24 16:51 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-24 16:49 [PATCH v3 00/18] Add Initial support for PLX Technology OX810SE Neil Armstrong
2016-03-24 16:49 ` [PATCH v3 01/18] clocksource: sp804: Add support for OX810SE 24bit timer width Neil Armstrong
2016-03-29 14:37   ` Daniel Lezcano
2016-03-24 16:49 ` [PATCH v3 02/18] dt-bindings: timer: sp804: add new compatible for OX810SE SoC Neil Armstrong
2016-03-25 14:40   ` Rob Herring
2016-03-24 16:50 ` [PATCH v3 03/18] irqchip: versatile-fpga: " Neil Armstrong
2016-03-24 17:11   ` Marc Zyngier
2016-03-24 16:50 ` [PATCH v3 04/18] dt-bindings: irq: arm,versatile-fpga: add compatible string " Neil Armstrong
2016-03-25 14:41   ` Rob Herring
2016-03-24 16:50 ` [PATCH v3 05/18] dt-bindings: vendor-prefixes: Add PLX Technology Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 06/18] dt-bindings: Add Oxford Semiconductors to vendor prefixes Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 07/18] reset: Add PLX Technology Reset Controller driver Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 08/18] dt-bindings: Add PLX Technology Reset Controller bindings Neil Armstrong
2016-03-30 14:19   ` Philipp Zabel
2016-03-24 16:50 ` [PATCH v3 09/18] clk: Add PLX Technology OXNAS Standard Clocks Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 10/18] dt-bindings: Add PLX Technology OXNAS Standard Clocks bindings Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 11/18] pinctrl: Add PLX Technology OXNAS pinctrl and gpio driver Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 12/18] dt-bindings: Add PLX Technology OXNAS pinctrl and gpio bindings Neil Armstrong
2016-03-25 14:48   ` Rob Herring
2016-03-31  8:58     ` Linus Walleij
2016-03-31 13:36       ` Rob Herring
2016-04-01 14:30         ` Neil Armstrong
2016-04-01 15:19           ` Rob Herring
2016-04-01 15:48             ` Neil Armstrong
2016-04-08 11:16               ` Linus Walleij
2016-04-08 11:14         ` Linus Walleij
2016-03-31  8:55   ` Linus Walleij
2016-03-24 16:50 ` [PATCH v3 13/18] arm: Add new mach-oxnas Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 14/18] arm: Add build support for mach-oxnas Neil Armstrong
2016-03-29 13:01   ` Arnd Bergmann
2016-03-24 16:50 ` [PATCH v3 15/18] arm: boot: dts: Add PLX Technology OX810SE dtsi Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 16/18] dt-bindings: Add OXNAS bindings Neil Armstrong
2016-03-25 14:48   ` Rob Herring
2016-03-24 16:50 ` [PATCH v3 17/18] dt-bindings: Add Western Digital to vendor prefixes Neil Armstrong
2016-03-24 16:50 ` Neil Armstrong [this message]
2016-03-29 13:07 ` [PATCH v3 00/18] Add Initial support for PLX Technology OX810SE Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1458838215-23314-19-git-send-email-narmstrong@baylibre.com \
    --to=narmstrong@baylibre.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®