From patchwork Thu Jul 20 19:37:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 9855629 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 41CAB602BA for ; Thu, 20 Jul 2017 19:39:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33A1A285DC for ; Thu, 20 Jul 2017 19:39:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 28524285ED; Thu, 20 Jul 2017 19:39:07 +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.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no 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 BACC7285DC for ; Thu, 20 Jul 2017 19:39:06 +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=xtzdLY2GFxyCYkocJxC9aCrVTjKuYkFx2BeMvUrnjsA=; b=b8Ui5QVwychVocKH/yssTc1EZI xm6dHllR5hRjEtqjk+RnhvVJV1dBhPyPdJ1XwWR8zk6Wl4aNwiw7GClFByjc+AeY2IW1jg6SBHQ99 S1GPnSc4LoEgcvYFesvvxxHs+z1VqLPqdxrXzq/qA8JuIs082tCQr1xeALxPL7vfkg1xc3lBj1For 1BWASeJLBkmk8oL+BYkPYRnPrpeZwUEJaDYCdiPDNG59cAMp4NH8anExRnyYX/SmfOQtRDb/jRWRg 0p0dCFDMUAR1krNS8OckW8x6XvvrJfyxxn6rb7ScYDcDuRBBExIxxojmbNIeVVOnNRPKtO3WtVA1o IAAdBAVg==; 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 1dYHHr-00013M-5T; Thu, 20 Jul 2017 19:39:03 +0000 Received: from mout.kundenserver.de ([212.227.126.134]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dYHGp-00007u-QA; Thu, 20 Jul 2017 19:38:04 +0000 Received: from localhost.localdomain ([95.90.209.44]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.167]) with ESMTPSA (Nemesis) id 0Mep3o-1dEZaA3puK-00OEKs; Thu, 20 Jul 2017 21:37:27 +0200 From: Stefan Wahren To: Eric Anholt , Rob Herring , Mark Rutland Subject: [PATCH 3/3] ARM: dts: bcm2835: Add Raspberry Pi Zero W Date: Thu, 20 Jul 2017 21:37:09 +0200 Message-Id: <1500579429-9101-4-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500579429-9101-1-git-send-email-stefan.wahren@i2se.com> References: <1500579429-9101-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K0:6xCCpTLr0wsukEFdLREMLVcHgo6luDD/EEVpTgPMD7RD9AXXpqa 3QMoPULhjSElppOFRtqTgCiHJgLbzWzrPIwDPIMZHNGxfM/IK7jMkzRmszDfKOSwgwDPs2S zd0vS/c4Pcp3s4ZTw2a8/ZXzrKb0gTxceWcggmPoeeiJPqa1BWt/N44BPuoYEdZ8hahD8zk RbRJSIyFAEr2AUsr3Ikyw== X-UI-Out-Filterresults: notjunk:1; V01:K0:RzBF/zpBt9k=:xHNYx5wCQW/rIzxJcUwsXo mhK0qsQ9NYv1tg4jqdlZx4AxB1Xva+iD6cHU9hpKts85+gJcYbIvsTAEChmIAtCE5x9t0JjJb t+69e5BFK0QV4GLTTYYaa2pdDLG/LXOpRghBw5O7kynl7BvoHYeSLFubK8qyCRdTODa5Qv9Jj zvjRVH1jRaYkITSw4SjZoJ4UsJ5m9ggQsYx8wzhGZOFpRzIjIqquyb2OVpGIKCvfEfaRud1Q+ sHu1Vzd9lPnRsCJms8kBx5th/m3z48ftAogIjnP728PBI0zqwwdeT+ga6fTcXFn+MXEiKM6Xm qAT4beLwgVj5zL88A4Jkc4adusEO79Jno6g6G+lgfw7udwpR9AcvDU39xIg9GzJJbMiCQVkOg ALi5+D59rCJ2qn3fli3LiHBpvWhpx8fw7HpiXownQsz2yD0hbg5f9R/bAqztZih3r1KdKZDcu WWyJxDmvPhtiN4sNZLniz8mzFBni/BR0E3VTPzu06SjSmhT/F0jjgwCibTTS0Ba5o83qlfXoK yr1FVdoxwR1dINopSbSS11M9MBIl+DWxck0Ov3MR9lQ4ezaEzfia2nD/ItHM4JTUvIlFQJLx6 lyqh/r2SiG8mJiFq09QuHU0mpOrOF93n1B6WhlbK/TnJ2mrMoG30LrCjPpRBwf1ggIjnTSkoW 1FlvRIKx+A6Y235YPXtafFTB+yFdPDgKmb7T/kwdVgnTURTZrRTsBt5ePUYmKJJgy+ej+j6q4 VSd6JgxhpMpAXR6c6I+A5g1KTmnWEA3O7ND+7Q== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170720_123800_189176_1A27F7DA X-CRM114-Status: GOOD ( 13.25 ) 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 Reviewed-by: Eric Anholt --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/bcm2835-rpi-zero-w.dts | 73 ++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/bcm2835-rpi-zero-w.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index ec60f4f..f3bf9397 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -74,7 +74,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..9c6d714 --- /dev/null +++ b/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts @@ -0,0 +1,73 @@ +/* + * 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"; + + 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 { + 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"; +};