From patchwork Thu May 17 20:44:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10407725 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 C3A8B60247 for ; Thu, 17 May 2018 20:45:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B19DC2873F for ; Thu, 17 May 2018 20:45:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5D0728742; Thu, 17 May 2018 20:45:27 +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 1B42028748 for ; Thu, 17 May 2018 20:45:26 +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=hP04RnWEUXmpv7jigV1/iHK2Y7UJArL1fEIOMZrFcA8=; b=DQs vv+DIEJT1cat5p82r93iZJJxTTgtSG0NrYn6Zx2SjRWUqSFijM1z4+zqeyxuby7ofSGcHNI9eJ2r+ 6QU4qqWqI5UZFJ7uckEFeBF+8JLUBA5dxgVuoTyIHqdmM2SZwKqEAsjkw87/pdW2fOK/Q7ett6lBf TsUxkNuJ4/+J2TZ2xOn6qGKbbMVW4hLfKfxGPtR2Fcz4D7HC9RqLRhXkewEnJ68FvkoVxL5SoWUGQ hyaDCewENHwVi6Ea2eTsYNiNdVn3BSpZHlXzq20EqxmSTdHwWDhNhfMTPs8SLZtw1vRBj2ag2jBo8 pV6oVXix8bFL8SWp9GsSoxteAtjuJDQ==; 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 1fJPm0-0007w3-SO; Thu, 17 May 2018 20:45:16 +0000 Received: from mout.kundenserver.de ([212.227.17.10]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJPlx-0006ge-7M; Thu, 17 May 2018 20:45:15 +0000 Received: from localhost.localdomain ([37.4.249.136]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LrbET-1eFzsv3dML-013MSK; Thu, 17 May 2018 22:44:53 +0200 From: Stefan Wahren To: Rob Herring , Mark Rutland , Eric Anholt Subject: [PATCH RFC] ARM: dts: add Raspberry Pi Compute Module and IO board Date: Thu, 17 May 2018 22:44:32 +0200 Message-Id: <1526589872-13459-1-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 X-Provags-ID: V03:K1:Ameeqi18uehlGuh5ksGqN9cxs7EVE6yCj2N6d5Wiv7WMCw9DaHW vn3jcAHfwNw0ZSQdAsi8FumgpphN+gO576L9ACH0SryC++aWv8wU6mq22Ps6N7QnFZvkw5A tAKxU8OGbH9ttmM+5+Ue3mbEYHMg4VWr/bjGl2ji/UTrLrzoDiQ0LTfAzL7McX5UpiYNaon HVSnG20ccnnjf7wrexaiw== X-UI-Out-Filterresults: notjunk:1; V01:K0:yGoA6WSh2QI=:D3rbUrWyJlamdTYqTeOYHp 2mcdFX8YXfSjlDaLZSilWWtnPxKQ8IiqFiHju1p9EdlPgG57rzVZpTARemDlGqVlrrne7ov+w +O8t8xktPW/q6BC9uxjI2KE8CQj1F/2FVr3dRoyb4Xs+EyRLns1HQobEwJ+LqX7lI5vfdFhS5 5tDpI/lsqbI/DAGWBRINK8Fj0NeNiA6NyRtoo8/6JxCGeaq3CLign2EhTAxPUiM3Ju4LvIY3N oOYh3gYjvB2N0/VOtpouqOPmTcpcYWbb4hmC3dwXru9oJuAPqHJXQ89W1+UTSP5JVVD7QffSl 2rs0O+eptk4gjThiPdovirMio1qlyspBLYeod+GTAtRDghs8avdpAxlE1SwrrgJYDh35G6loE ssfgR0YZFLNKA89YewpBrDO20Dtuh878kXXcLT/NLS98hjTnIVi+x+Ol8sKNmm9pP9MEXFi5N 0ZkioAqmFM/TzKOhegl7Hzl8Ec7YoLU3GGZTJ4o2J6gIJoqtSKVMCe1LLEFMlyPEqvgrWDYIb vH5oiZPcDq4SAvx84UgXM9IaEA4jd4dMUeq36TlThQoiWjH9exanpMmff+ySoehp9ZZE4fQYL mY2vOpTaELimi8Jf1AJr69aKO+e/4c0RForuZFxaiOTd5r9l8k0CkmQisqgXOgJI9n3JeCnX/ hW4tZtEnRroaYY9Qgjd5z7bz/Dm2jizCh+vn6CAhbTjqKEK7NzAgRA73JL4ToURIQcOo= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180517_134513_642590_F15A609D X-CRM114-Status: GOOD ( 21.29 ) 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 , 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 Reviewed-by: Eric Anholt --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/bcm2835-rpi-cm1-io1.dts | 92 +++++++++++++++++++++++++++++++ arch/arm/boot/dts/bcm2835-rpi-cm1.dtsi | 34 ++++++++++++ 3 files changed, 127 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 ec2024e..a9883e8 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..4d9aa22 --- /dev/null +++ b/arch/arm/boot/dts/bcm2835-rpi-cm1-io1.dts @@ -0,0 +1,92 @@ +// 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"; +}; + +&dsi1 { + status = "okay"; +}; + +&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_HIGH>; +}; + +&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>; +};