From patchwork Thu Mar 24 16:50:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 8663111 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1D580C0553 for ; Thu, 24 Mar 2016 17:09:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 20D6220376 for ; Thu, 24 Mar 2016 17:09:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0E3CC20351 for ; Thu, 24 Mar 2016 17:09:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aj8jh-0004gX-JF; Thu, 24 Mar 2016 17:07:53 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aj8je-0004WN-II for linux-arm-kernel@bombadil.infradead.org; Thu, 24 Mar 2016 17:07:50 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by casper.infradead.org with esmtps (Exim 4.85 #2 (Red Hat Linux)) id 1aj8Te-0006p7-7B for linux-arm-kernel@lists.infradead.org; Thu, 24 Mar 2016 16:51:18 +0000 Received: by mail-wm0-x231.google.com with SMTP id p65so282966396wmp.1 for ; Thu, 24 Mar 2016 09:50:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+HoJKAPev2cRIUm1m4lUEld1l+GprlZ2/wVGaSSyDCY=; b=gb3urJGNRqfr0Enn8gow6WwZ7Ek00lruS95PbknVe25KdYTBkKHQqkmIps0Zx7lcSz GGAyxzf1DGazTPE5vopwrntb6+YdlT8AwAKj1u4C6D0w8deWv8sT467jqhsPkEbKoqo3 xQ6F3LMjgBs/XCF0XJzdgN1MkxNNZu5PufHw/G5yqTwCGB6F8hdSs15CJMOGP/8GWUBx JELUejc+2F06AAu7gZHgD0S19Jov4fe58G1r3GgFvJi81JgkdxfCfPwGnU4YzW/vXFW3 RXT1pw3QhC0OAPxHKNr/BP9BNc4nAzctYZp8WOmuuybBJUiyAh0KxI8AEsNqCpw8NA4D nPwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+HoJKAPev2cRIUm1m4lUEld1l+GprlZ2/wVGaSSyDCY=; b=EZ62lSSIh77qAJGuQW0JEUz51Bbgxzm6HDEmFcbhlvzrAMZfeJFljdjQNedrD1g+vZ msGe7u3YTZFU8QR8HKtCXdxEjWxSeodx5XcLAMzA51CxazJbvRs/TLIlaT9DKQDA0CV8 YBIQBb6TFwzgpCD/A4syMwxl9zTh5b/PeVh/Lyr3lbavasqw/aww8VkBfiGOCVIimvbj 9bTA66UDsu06m/UKiBUh37x1RyJGVLlBo4oLSYOlv068oHjzkywK2N5e0WaYn7L1zDty qww8g26m1kLK9+zOOA4U8+1geZj7LVl5gTtcEtkX5HN9SNFWmI6bj3a1H5lFlDH2qVUz ZWOA== X-Gm-Message-State: AD7BkJKqIReBrk8uSlJSUyCU3v+kj34hcdLx1HV2MFhe+5O9bv8AYh8syLzrX9a1ECTsSEyd X-Received: by 10.194.175.33 with SMTP id bx1mr11187788wjc.104.1458838257058; Thu, 24 Mar 2016 09:50:57 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id lz5sm8177545wjb.5.2016.03.24.09.50.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Mar 2016 09:50:56 -0700 (PDT) From: Neil Armstrong To: linux-kernel@vger.kernel.org, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org 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 Message-Id: <1458838215-23314-19-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1458838215-23314-1-git-send-email-narmstrong@baylibre.com> References: <1458838215-23314-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160324_165118_335376_3C100E5D X-CRM114-Status: GOOD ( 14.56 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add Western Digital My Book World Edition device tree based on PLX Technology OX810SE SoC. Signed-off-by: Neil Armstrong --- 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 + * + * 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>; +};