From patchwork Thu Nov 15 22:29:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10685135 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 710B814DB for ; Thu, 15 Nov 2018 22:34:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E7E02D100 for ; Thu, 15 Nov 2018 22:34:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F0132D4D4; Thu, 15 Nov 2018 22:34: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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 B3E6F2D4CE for ; Thu, 15 Nov 2018 22:34: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:References: In-Reply-To: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:List-Owner; bh=Fy8Rzb9qUuFVFocweYlqkJiSUgBRFBLG6fZGvIOrOIc=; b=lxiyHb+7BxmHf54Q2YM8vmIioy kj0mB0EkbFyctH4vAXqIb6qVIiRLIYoK7hd5kz/8eSikez+pr0+WF+lDiP/ah2rP4944p7csfTFz4 J8e1FYTslQJTpUt4PpFehLY2hvhpCtJl13USKnE1yGD6KHiaYalb9M3bl57sh9LxWa6CpcCXdi2iX 8Olw4UrzqMkg3thO2drOJbqNJeF/k25jrI4j52Mip750oftmFaPvhkBtAt/KZMOvZv1lR5cFQDT44 Rq/d4NMeSbvB0/9z+0pUTChVDI5oXDQj+zULPBEJbg/9JQsrcK5bb9nbxkFuK2XPsp7Kjc0RyHeAK 5oVkWsEA==; 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 1gNQDS-0005Ic-7s; Thu, 15 Nov 2018 22:34:26 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNQD0-00040u-SL; Thu, 15 Nov 2018 22:33:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6c/dFOrIr5qPOCKMLmk55UwbcyAOlQ6myU2Kh/AC+VY=; b=hYLkrypXkDEW7fTANFQriRtpE FcdaPqttwHNgP+XpsWvUbkcQOSCGJGC8VNvNQomkNmY17z9iN8KgjERlf7WkrJfr572HdDvQqZzh+ Tmvf385tzuz5o0npzGLjpJEgMZYHh52o5F++r94oy4hMt8XMb/E51tr2EfGkhE8CqE2M3005kDZb8 4+7BhXuQuQfw3+rjmo4HzAEB35tn9f/2kOuGZMJa0MrahAIrR65PatCpQxxxyfG6KaNREEuyj8HFb yUQoWyuuzuYlPKjk9A9gD8H992v9cdZn7aY5VTSN4s5cOFpN4Il3d6UoSe5SHYnik4ENxfH14Rlmq QC9qj9Iuw==; Received: from mout.kundenserver.de ([212.227.126.131]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNQBJ-0001Pc-K3; Thu, 15 Nov 2018 22:32:15 +0000 Received: from localhost.localdomain ([37.4.249.153]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MlbPO-1ffndW3afy-00ioGB; Thu, 15 Nov 2018 23:31:56 +0100 From: Stefan Wahren To: Rob Herring , Mark Rutland , Florian Fainelli , Ray Jui , Scott Branden , Eric Anholt , Phil Elwell , Arnd Bergmann Subject: [PATCH 2/3] ARM: dts: add Raspberry Pi 3 A+ Date: Thu, 15 Nov 2018 23:29:39 +0100 Message-Id: <1542320980-2842-3-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542320980-2842-1-git-send-email-stefan.wahren@i2se.com> References: <1542320980-2842-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:J5rV5KD736a4tMXZx86utm+D9giBdW8w+J7wRanJPuCCdPVTB69 oZJ/MyR5dhTTbmwCzThrlliXdVsFfIUHSCOOYxB1RnEaAtb4N5bzCzGyzc+EfOBeRS1sHUA 8fU30D7/lcZTZvuK8279GXvqsYTUQbx8/Q19DkAYTn9P7J9w9t9o/nM6/S7CMJrQa10FjVE 9vePXQylFkwo5le+VwOiA== X-UI-Out-Filterresults: notjunk:1;V01:K0:w7j6i6Pqc1s=:ZLOdAVP2TtKzHqf4Nliugy t674mUz7kZHS5JgQK4fS9c5qZvlHbvhglJkZG6/n9G0jadZeEctvuFoP08Ci7KB5xbb4Tc87y C9/0QWC1AwD+uB/VpBiIW1dhBcUVuz/Ut+fWTW2MeUfEeyHprenD4R6pzTZtKRGuurody5gBY BbNNVkd/oKITdr+gapGF1ZNIUZsyC3e69UQ1oZkIbSI2vn3CWE6wn6KK9+CFtrPn8MlbQ1QHU IFIoIlgF65KyddbCSUUsw0zyKknD+VOnEhIf0wetGbXeLgZF60tt3YTyXlZEX2eazFbOrVOG8 tiOBvZgPBLrGqPl7GqQdzSMuIUIqr0lMzuwnO+txkItdCm4KLOckp3RIyF0+VUFQLt29B8teE +JnlCQIUZL/Qcxx1j1H6RPeBGFvDnhM2Ih1UOb6YjSNie7g6WDKF3a8A0QXk9P5FtLtH1RptQ W3jMaHLcoGe2Gulv/p/Ck4JxLsowhx1HyvKKIVCklWhj9F2X7NmKYOHNmS22VlxhcAa7R0M+/ gDcsssh62T4RjvMWem5ld1rHIXPm5ZhbOmKbx9uTVBQipZNenVoED7nQqfTlYLcPAp6y29e5P uOp8TlaKqXe7QtTwPVBmOXDju69spk1x4gb+VQ18V/UuCgmevSfLK5lbcIkdWG5nwbJrkWVOU M4sMyDrPP2rDyDK1+JtqUtppwdRO4Ci+Gof/ehSimz1TJjok9RRoNF8yZWsqBwK3rS8Qulsd2 s3fXroBCbTEgDAqCSrohA9otiTOFPkjxe5HHeSwmfS0csHeAQ88a9UV/dhEVW28lEwzUTYS+I RF9JF1CtASscyKjYAczGtosxM2wCw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181115_223213_694704_6BC12247 X-CRM114-Status: GOOD ( 17.83 ) 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 , 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 3 A+ is similar to the Pi 3 B+ but has only 512 MB RAM, 1 USB 2.0 port and no Ethernet. Signed-off-by: Stefan Wahren --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts | 107 +++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index b0e966d..15bbd0d 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -79,6 +79,7 @@ dtb-$(CONFIG_ARCH_BCM2835) += \ bcm2835-rpi-a-plus.dtb \ bcm2835-rpi-cm1-io1.dtb \ bcm2836-rpi-2-b.dtb \ + bcm2837-rpi-3-a-plus.dtb \ bcm2837-rpi-3-b.dtb \ bcm2837-rpi-3-b-plus.dtb \ bcm2837-rpi-cm3-io3.dtb \ diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts b/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts new file mode 100644 index 0000000..75785dd --- /dev/null +++ b/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts @@ -0,0 +1,107 @@ +// SPDX-License-Identifier: GPL-2.0 +/dts-v1/; +#include "bcm2837.dtsi" +#include "bcm2836-rpi.dtsi" +#include "bcm283x-rpi-usb-host.dtsi" + +/ { + compatible = "raspberrypi,3-model-a-plus", "brcm,bcm2837"; + model = "Raspberry Pi 3 Model A+"; + + chosen { + /* 8250 auxiliary UART instead of pl011 */ + stdout-path = "serial1:115200n8"; + }; + + memory { + reg = <0 0x20000000>; + }; + + leds { + act { + gpios = <&gpio 29 GPIO_ACTIVE_HIGH>; + }; + + pwr { + label = "PWR"; + gpios = <&expgpio 2 GPIO_ACTIVE_LOW>; + }; + }; + + wifi_pwrseq: wifi-pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&expgpio 1 GPIO_ACTIVE_HIGH>; + }; +}; + +&firmware { + expgpio: gpio { + compatible = "raspberrypi,firmware-gpio"; + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = "BT_ON", + "WL_ON", + "STATUS_LED", + "", + "", + "CAM_GPIO0", + "CAM_GPIO1", + ""; + status = "okay"; + }; +}; + +&hdmi { + hpd-gpios = <&gpio 28 GPIO_ACTIVE_LOW>; +}; + +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio41>; + status = "okay"; +}; + +/* SDHCI is used to control the SDIO for wireless */ +&sdhci { + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&emmc_gpio34>; + status = "okay"; + bus-width = <4>; + non-removable; + mmc-pwrseq = <&wifi_pwrseq>; + + brcmf: wifi@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + }; +}; + +/* SDHOST is used to drive the SD card */ +&sdhost { + pinctrl-names = "default"; + pinctrl-0 = <&sdhost_gpio48>; + status = "okay"; + bus-width = <4>; +}; + +/* uart0 communicates with the BT module */ +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32 &gpclk2_gpio43>; + status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + max-speed = <2000000>; + shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>; + }; +}; + +/* uart1 is mapped to the pin header */ +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_gpio14>; + status = "okay"; +};