From patchwork Sun Jul 30 17:10:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 9870627 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 AB4156032A for ; Sun, 30 Jul 2017 17:12:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 823B9285A2 for ; Sun, 30 Jul 2017 17:12:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75EF8285AA; Sun, 30 Jul 2017 17:12:17 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 3BA25285A2 for ; Sun, 30 Jul 2017 17:12:16 +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=F0xq2OdOKNcluv9K1gmC3iwpNqBCTLxmTuhb5Ux8iwk=; b=h0B27wigbd/90Hh3WgUi2Z+viB VPG4f+UKF19lrsGcor30UwSb34S0U50sMwmFlQ2ohIyyKDvAVrUuEWokGhxD7bTjYNNeGvNtK8byd 4TjmxkBp6h42VtDvjpm9ZR3TZN14W2HqjO3vctj5heOd2wfHe8gu7ybArZfLRzBYOTFuBdWp4yPCQ HosS+TAu4s0ndJAMK6Fco8PhuDXXFsU1zrc6z3qYtRZ/igJqo2XU5vMzHy0xR0cs0ON9pjbYjMvXU T5ouOPKKm0P74nqbpWaAGeUX7gqVnc3N/TpnNC6QhQg4OZrycsWpNBBd4s1o4wtElm3S+eEfpkWfi Jlxaf+fA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dbrkp-0008TF-CB; Sun, 30 Jul 2017 17:11:47 +0000 Received: from mout.kundenserver.de ([212.227.17.10]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dbrkQ-0007wZ-V2; Sun, 30 Jul 2017 17:11:25 +0000 Received: from localhost.localdomain ([95.90.209.10]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.183]) with ESMTPSA (Nemesis) id 0M3SWO-1dtfho0pSi-00r3Rx; Sun, 30 Jul 2017 19:10:48 +0200 From: Stefan Wahren To: Eric Anholt , Rob Herring , Mark Rutland Subject: [PATCH V2 3/3] ARM: dts: bcm2835: Add Raspberry Pi Zero W Date: Sun, 30 Jul 2017 19:10:34 +0200 Message-Id: <1501434634-2325-4-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501434634-2325-1-git-send-email-stefan.wahren@i2se.com> References: <1501434634-2325-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K0:FA8VuvAEAWQbs3A0yyS4o86RDJVw5e6ygsf5TPF6YM6JG/Fkmfz rY6oF8HUKpdDbOc188FW/wxounKvUzONsLSD36WSm7CntyQGhkpzQRlnx5KxR4WCWxzb2DN UjJ/pjN5G3Qs0xmBqoRxuAAYqjM/uMic50M2Fe2VYapRuZDgq11aYCXXpUMq2rQ3SpgjVwN Zmg1ZAVhhvZITubpTj86w== X-UI-Out-Filterresults: notjunk:1; V01:K0:eeVd5pizS6I=:5ljx+iGEJpJwLXQWWLo7AE woe/UqhGOqNzTvYBHpbn+06QpRfOpse2OAEoAIesVU+CVpPt3QIFhgPxeRvl6BWzZUD5r8uX6 JpPaimHgw3ML6ZodrOWoODFeia2BeTRzZGQp1nNQiR3ecyqALQTFPhWBQU0mUCZdj9rYDL9B+ +Y3kj56z5SWMNZ8WIxhal86+U9iqDbrqrntyl9TkKSZgz60D2rEdILarGr+rOU6vq8FgmVblS KrGOTlYgbP4R+KeljZfitLzxMersexFpqcsgaO6v3Um5rkvLehqvRXZwptEelPC3zm6B1JmP4 /IdF6blS2ieH7oN4IoV/NnfAZB6cnJ/dxrxYqKZ827ESWEMg8COFWhAeUVPrn34p3NMHXlb7P 22J7SaJ/WP8c0ZZOhEcpKTcUWFmMeJ6IZcoTLyIM580QNGtS58/nxgmPwTFzo2YQUYICuplCt fgao0XwKrrYuACdhV4BgAc6856VQBAml3oQOOh4tZxqhUuO2dBjdgqg8AvgoOxrwMClWGQt7N UuTzchi4eqA4nurzdiGGKS2W76EfT8+NvfmXXPS53iiURgpgE3EWHzRz2NUCtlzgSY3Yo3Syk vIFwJT28O5arI6rGn85oJrYCpLuSzbvDG6xeX+XzZOtUtur4sD9l8KxTZrL+Lab6gudUapWre QT2WsdhsHMrCUpYaaBys1Oq3ZUPu+wdxIBmr3sJatmd7M1oqXhDgjEicfefjTI/aBATWH2IUV ole0Fd6AwmGlIrfSSIdReD54FxBjAgh+ZoG6bg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170730_101123_329534_E381E559 X-CRM114-Status: GOOD ( 15.20 ) 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 , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Gerd Hoffmann 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 Zero W has the same components like the Zero plus a Cypress CYW43438 wireless chip (wifi + bl). Signed-off-by: Stefan Wahren --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/bcm2835-rpi-zero-w.dts | 139 +++++++++++++++++++++++++++++++ 2 files changed, 141 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/bcm2835-rpi-zero-w.dts I'm not sure that GPIO34 to GPIO39 are really "not connected". They are listed in dt-blob.dts, but only declared as input. Still no full schematics available. diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 4b17f35..6e632a3 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -73,7 +73,8 @@ dtb-$(CONFIG_ARCH_BCM2835) += \ bcm2835-rpi-a-plus.dtb \ bcm2836-rpi-2-b.dtb \ bcm2837-rpi-3-b.dtb \ - bcm2835-rpi-zero.dtb + bcm2835-rpi-zero.dtb \ + bcm2835-rpi-zero-w.dtb dtb-$(CONFIG_ARCH_BCM_5301X) += \ bcm4708-asus-rt-ac56u.dtb \ bcm4708-asus-rt-ac68u.dtb \ diff --git a/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts b/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts new file mode 100644 index 0000000..82651c3 --- /dev/null +++ b/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts @@ -0,0 +1,139 @@ +/* + * Copyright (C) 2017 Stefan Wahren + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ + +/dts-v1/; +#include "bcm2835.dtsi" +#include "bcm2835-rpi.dtsi" +#include "bcm283x-rpi-usb-host.dtsi" + +/ { + compatible = "raspberrypi,model-zero-w", "brcm,bcm2835"; + model = "Raspberry Pi Zero W"; + + /* Needed by firmware to properly init UARTs */ + aliases { + uart0 = "/soc/serial@7e201000"; + uart1 = "/soc/serial@7e215040"; + serial0 = "/soc/serial@7e201000"; + serial1 = "/soc/serial@7e215040"; + }; + + leds { + act { + gpios = <&gpio 47 GPIO_ACTIVE_HIGH>; + }; + }; + + wifi_pwrseq: wifi-pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&wl_on>; + reset-gpios = <&gpio 41 GPIO_ACTIVE_LOW>; + }; +}; + +&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", + "SDA1", + "SCL1", + "GPIO_GCLK", + "GPIO5", + "GPIO6", + "SPI_CE1_N", + "SPI_CE0_N", + "SPI_MISO", + "SPI_MOSI", + "SPI_SCLK", + "GPIO12", + "GPIO13", + /* Serial port */ + "TXD0", + "RXD0", + "GPIO16", + "GPIO17", + "GPIO18", + "GPIO19", + "GPIO20", + "GPIO21", + "GPIO22", + "GPIO23", + "GPIO24", + "GPIO25", + "GPIO26", + "GPIO27", + "SDA0", + "SCL0", + "NC", /* GPIO30 */ + "NC", /* GPIO31 */ + "NC", /* GPIO32 */ + "NC", /* GPIO33 */ + "NC", /* GPIO34 */ + "NC", /* GPIO35 */ + "NC", /* GPIO36 */ + "NC", /* GPIO37 */ + "NC", /* GPIO38 */ + "NC", /* GPIO39 */ + "CAM_GPIO1", /* GPIO40 */ + "WL_ON", /* GPIO41 */ + "NC", /* GPIO42 */ + "WIFI_CLK", /* GPIO43 */ + "CAM_GPIO0", /* GPIO44 */ + "BT_ON", /* GPIO45 */ + "HDMI_HPD_N", + "STATUS_LED_N", + /* Used by SD Card */ + "SD_CLK_R", + "SD_CMD_R", + "SD_DATA0_R", + "SD_DATA1_R", + "SD_DATA2_R", + "SD_DATA3_R"; + + pinctrl-0 = <&gpioout &alt0>; + + wl_on: wl-on { + brcm,pins = <41>; + brcm,function = ; + }; +}; + +&hdmi { + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; +}; + +&sdhci { + #address-cells = <1>; + #size-cells = <0>; + pinctrl-0 = <&emmc_gpio34 &gpclk2_gpio43>; + mmc-pwrseq = <&wifi_pwrseq>; + non-removable; + status = "okay"; + + brcmf: wifi@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + }; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_gpio14>; + status = "okay"; +};