From patchwork Thu Jun 14 19:50:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10465217 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 617A5600D0 for ; Thu, 14 Jun 2018 19:53:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F09728BC2 for ; Thu, 14 Jun 2018 19:53:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4188328BDD; Thu, 14 Jun 2018 19:53:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AF3CB28BC2 for ; Thu, 14 Jun 2018 19:53:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=HKI6zVYDzolE2rbVxpHF1FeaueFsd3vKaZvg5r0je4g=; b=baf /pQp3fy7DaGGV6Dctn/whKj0vRG2gBX29fhKBkuS2XDzegylDqktbMbB3cuKOzSl8CXRcsKayhvae YkrAtKUABFZsjnirV1uX4SoUDmAY+1WgTHsyn8ODalGg9EKVy/BpMGXHKCBUHfjUQ6zTIy/Sl58TD wpMJDQBhEkg0ivFGUkm8pld2Me4RqNmCCGCE+mkuoFWd3vHHW3DhZBV3a1LAfRbR6FRLd08EuWRGt 4SRSR6fD/ONZDfVnJb8mFQ0g5+1inVR4pLKFFa0uILfEI6gmS3A+vClubNzmlhiW/0IrZx4I5CEHE GDcrpQ2QUNJfueiFjhKt+bu03fjKQog==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTYJC-0004WI-7p; Thu, 14 Jun 2018 19:53:26 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTYJ7-0004Uy-Re; Thu, 14 Jun 2018 19:53:23 +0000 Received: from localhost.localdomain ([37.4.249.111]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0Lzb2g-1gFF4w3qc6-014nLt; Thu, 14 Jun 2018 21:52:37 +0200 From: Stefan Wahren To: Rob Herring , Mark Rutland , Eric Anholt Subject: [PATCH V2] ARM: dts: add Raspberry Pi Compute Module and IO board Date: Thu, 14 Jun 2018 21:50:04 +0200 Message-Id: <1529005804-3065-1-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 X-Provags-ID: V03:K1:Qig1xKdXWxrYBaxkhbu9Pr6kzVDzygUt+JJ8fPac61Wvcz9W1PW /Leu4Vrzfb0gNdM+vPOEUlAwRWrs5KK1/eQ8RE0WnbPz1Hl7jTm14VkZwhcgBR5hoDN7sLs OUD/heFvJK5ZwnK5LYKVGGgjvCKOk+9BC789Xu0QnQ9L1Hz7H7HH4BiBjIv5Yk5qEtMaLmG 94/zzbcM073blXNoxZd9w== X-UI-Out-Filterresults: notjunk:1; V01:K0:1H5QaMylXnc=:Gd51UXQXO6ZjlHx0V9zS8O zzZnxgGkFfy0/4PNC8K2IQ4qbGrNoHmQUYRfJNQaAhRlP6p2wfaTBmMQSRHUdEhsuf6+g6dmc OJKLrRaLaaKs5m008eJKUpZrJCxTIsCb/VUxbfNJYccvxgsLiyeO10IuQThVStCpOWPK+RKxl OABgEViKzlOJ7/ksOIGlXNhPvkfEWy7mrr36xrfBpUrUDtJ80pAGakfICiBBi219GJ57JmrsR vlveqWZwpuJk8iG69F1yWaBekNgTLLHodAONpiReDupzPcMY3Tq7Q1v9rWdka5feq2WZci11G 6PMc3hNcaiWVtFjEQHOxkiwJxap7hgRNxYp1c/vmvgaFuMvWkpiMRz7TsiM6lN3UJ7xzTGF3E A+EzQcdVH+mN3xNAQh39obIBHHzjBRdcXCRhCne9uh7FeseccSihlYc8ChlZ2Ge+06TxOmRly W3u3I6aHfg+8CHaQL8Lo34txGbHebXbnj7KMpsQHEqTuDEGrSTSCwR9+RyJc+kZiOL8OuSVCH YHF2rbMQvh/c/TaxImTBArRARCEchq+ia6MHQQ89imwepKVbs96izBna+YIZTL59BhE7XWWsr svNaazSDQuuzL1MBpDXZOewbNM1osg13tgp+/MXuPiozoYHbG1GA/xJNLgTgw+RuXadqWpXl/ oydVkOFmUZ+M95aIswQB+SDszdxw35qVWrxs6Vr18BtYum8wowLeIWCLEhaLkYlLeH/Q= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180614_125322_225319_E6B0E1C0 X-CRM114-Status: GOOD ( 20.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Wahren , devicetree@vger.kernel.org, Florian Fainelli , Scott Branden , Ray Jui , Phil Elwell , Alexander Graf , bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Raspberry Pi Compute Module (CM1) is a SoM which contains a BCM2835 processor, 512 MB RAM and a 4 GB eMMC. There is also a carrier board which is called Compute Module IO Board. Signed-off-by: Stefan Wahren --- Changes in V2: - fix HDMI detect polarity - drop dsi1 which prevent vc4 from probing arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/bcm2835-rpi-cm1-io1.dts | 88 +++++++++++++++++++++++++++++++ arch/arm/boot/dts/bcm2835-rpi-cm1.dtsi | 34 ++++++++++++ 3 files changed, 123 insertions(+) create mode 100644 arch/arm/boot/dts/bcm2835-rpi-cm1-io1.dts create mode 100644 arch/arm/boot/dts/bcm2835-rpi-cm1.dtsi diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 37a3de7..07b306f 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -73,6 +73,7 @@ dtb-$(CONFIG_ARCH_BCM2835) += \ bcm2835-rpi-b-rev2.dtb \ bcm2835-rpi-b-plus.dtb \ bcm2835-rpi-a-plus.dtb \ + bcm2835-rpi-cm1-io1.dtb \ bcm2836-rpi-2-b.dtb \ bcm2837-rpi-3-b.dtb \ bcm2837-rpi-3-b-plus.dtb \ diff --git a/arch/arm/boot/dts/bcm2835-rpi-cm1-io1.dts b/arch/arm/boot/dts/bcm2835-rpi-cm1-io1.dts new file mode 100644 index 0000000..4764a25 --- /dev/null +++ b/arch/arm/boot/dts/bcm2835-rpi-cm1-io1.dts @@ -0,0 +1,88 @@ +// SPDX-License-Identifier: GPL-2.0 +/dts-v1/; +#include "bcm2835-rpi-cm1.dtsi" +#include "bcm283x-rpi-usb-host.dtsi" + +/ { + compatible = "raspberrypi,compute-module", "brcm,bcm2835"; + model = "Raspberry Pi Compute Module IO board rev1"; +}; + +&gpio { + /* + * This is based on the official GPU firmware DT blob. + * + * Legend: + * "NC" = not connected (no rail from the SoC) + * "FOO" = GPIO line named "FOO" on the schematic + * "FOO_N" = GPIO line named "FOO" on schematic, active low + */ + gpio-line-names = "GPIO0", + "GPIO1", + "GPIO2", + "GPIO3", + "GPIO4", + "GPIO5", + "GPIO6", + "GPIO7", + "GPIO8", + "GPIO9", + "GPIO10", + "GPIO11", + "GPIO12", + "GPIO13", + "GPIO14", + "GPIO15", + "GPIO16", + "GPIO17", + "GPIO18", + "GPIO19", + "GPIO20", + "GPIO21", + "GPIO22", + "GPIO23", + "GPIO24", + "GPIO25", + "GPIO26", + "GPIO27", + "GPIO28", + "GPIO29", + "GPIO30", + "GPIO31", + "GPIO32", + "GPIO33", + "GPIO34", + "GPIO35", + "GPIO36", + "GPIO37", + "GPIO38", + "GPIO39", + "GPIO40", + "GPIO41", + "GPIO42", + "GPIO43", + "GPIO44", + "GPIO45", + "HDMI_HPD_N", + /* Also used as ACT LED */ + "EMMC_EN_N", + /* Used by eMMC */ + "SD_CLK_R", + "SD_CMD_R", + "SD_DATA0_R", + "SD_DATA1_R", + "SD_DATA2_R", + "SD_DATA3_R"; + + pinctrl-0 = <&gpioout &alt0>; +}; + +&hdmi { + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_gpio14>; + status = "okay"; +}; diff --git a/arch/arm/boot/dts/bcm2835-rpi-cm1.dtsi b/arch/arm/boot/dts/bcm2835-rpi-cm1.dtsi new file mode 100644 index 0000000..ef22c2d --- /dev/null +++ b/arch/arm/boot/dts/bcm2835-rpi-cm1.dtsi @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: GPL-2.0 +/dts-v1/; +#include "bcm2835.dtsi" +#include "bcm2835-rpi.dtsi" + +/ { + leds { + act { + gpios = <&gpio 47 GPIO_ACTIVE_LOW>; + }; + }; + + reg_3v3: fixed-regulator { + compatible = "regulator-fixed"; + regulator-name = "3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + reg_1v8: fixed-regulator { + compatible = "regulator-fixed"; + regulator-name = "1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; +}; + +&sdhost { + non-removable; + vmmc-supply = <®_3v3>; + vqmmc-supply = <®_1v8>; +};