From patchwork Thu Sep 8 09:30:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 75743 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp745683qgf; Thu, 8 Sep 2016 02:34:07 -0700 (PDT) X-Received: by 10.66.13.200 with SMTP id j8mr89600340pac.150.1473327247001; Thu, 08 Sep 2016 02:34:07 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id l64si46301641pfc.252.2016.09.08.02.34.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Sep 2016 02:34:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bhvhY-0004kG-UL; Thu, 08 Sep 2016 09:32:56 +0000 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bhvfr-0002sl-06 for linux-arm-kernel@lists.infradead.org; Thu, 08 Sep 2016 09:31:16 +0000 Received: by mail-lf0-x22e.google.com with SMTP id h127so17022620lfh.0 for ; Thu, 08 Sep 2016 02:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=DcRSQ9OAGB5ICPCPivS7ZUP7PE4EVbAfhV48klFyIUY=; b=jkW9Mh0xQ6Odpysv5cQzk7e03r8CiTM2EF9uO2Zwlemwkihwqi36CTT9mZXZbZUanp id0FuDrLcdfJXzQ8MoD5CtYI/AHjlu9PGvtjeJe8RhTK0eNYYcBeQYFKeAFkMDEUKIbl DRQiuSWceUHU9TCIyihLlFKciJILzhhETznXg= 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; bh=DcRSQ9OAGB5ICPCPivS7ZUP7PE4EVbAfhV48klFyIUY=; b=Z0nxNdZoAFZET2GN6ERo/MUwqqjvnanxHWZJfy6FYfzVBa3/efSzn6crl4/fnlFykB xY4+Qwhq+uwBy+ixxb0PZ/A8TsSNBmK+Xuqt61HGz59tNSKM0Av3lhNipfgYMpAjV2iw 08OvjIe+buOiJRJOlO+npQsSaAdVdYih+Nm1H2HnAn7PgdHVnFtI8vTeJ9fMTnP7Fo7M ManpedM3Zj0YlTP7D23g2H7sU9kgp0mosvUIxaklnm22scVERkjVPTEpZRniZ79ovs3v UvQXojm9PdK4yPsHMhyQbE6TPfHdkJJvxaofdsrYDkozINJyTLCbvcLmC4xFxYU0BL64 NWFQ== X-Gm-Message-State: AE9vXwOAvDk9DR0qM6WcIx3kuGV17DLg460Y5wK1Y3ZGcfHF13E5+ZoFwqTXe2zt2KuheCDZ X-Received: by 10.25.88.20 with SMTP id m20mr1383774lfb.150.1473327048470; Thu, 08 Sep 2016 02:30:48 -0700 (PDT) Received: from linuslaptop.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id p128sm1028111lfb.32.2016.09.08.02.30.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Sep 2016 02:30:47 -0700 (PDT) From: Linus Walleij To: arm@kernel.org Subject: [PATCH 2/2] ARM: dts: add device tree for the RealView EB Rev D Date: Thu, 8 Sep 2016 11:30:43 +0200 Message-Id: <1473327043-31903-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160908_023111_648835_8B3C9E86 X-CRM114-Status: GOOD ( 20.52 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c07:0:0:0:22e listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 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: Linus Walleij , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org The RealView EB revision D is a special case as it appears to be undocumented in ARM official documents, while the Linux kernel still contains special code for handling it. commit be4f3c8691492934c8ee03dbecb3a3a865ac6cd6 "Add RealView/EB support for the LAN9118 Ethernet chip" adds support for the SMSC LAN9118 chip used on the D revision, but no other traces of hardware deviations for this variant can be found. This created a separate top-level .dts file especially for this board version, so that it gets registered with the right type of ethernet controller. Signed-off-by: Linus Walleij --- ARM SoC people: please apply this directly with the first patch. --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/arm-realview-eb-revd.dts | 49 ++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 arch/arm/boot/dts/arm-realview-eb-revd.dts -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index faacd52370d2..43d2c379d034 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -608,6 +608,7 @@ dtb-$(CONFIG_ARCH_REALVIEW) += \ arm-realview-pb1176.dtb \ arm-realview-pb11mp.dtb \ arm-realview-eb.dtb \ + arm-realview-eb-revd.dtb \ arm-realview-eb-11mp.dtb \ arm-realview-eb-11mp-revb.dtb \ arm-realview-eb-a9mp.dtb \ diff --git a/arch/arm/boot/dts/arm-realview-eb-revd.dts b/arch/arm/boot/dts/arm-realview-eb-revd.dts new file mode 100644 index 000000000000..2142deffbe4c --- /dev/null +++ b/arch/arm/boot/dts/arm-realview-eb-revd.dts @@ -0,0 +1,49 @@ +/* + * Copyright 2016 Linaro Ltd + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +#include "arm-realview-eb.dts" + +/ { + model = "ARM RealView Emulation Baseboard Rev D"; + + /* Introduce a fixed regulator for the new ethernet controller */ + veth: fixedregulator@0 { + compatible = "regulator-fixed"; + regulator-name = "veth"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; +}; + +/* + * The revision D has a different ethernet controller that the elder boards: + * the older board uses LAN91C111 but the new one uses LAN9118. + */ +ðernet { + compatible = "smsc,lan9118", "smsc,lan9115"; + phy-mode = "mii"; + smsc,irq-active-high; + smsc,irq-push-pull; + vdd33a-supply = <&veth>; + vddvario-supply = <&veth>; +};