From patchwork Tue Feb 14 16:49:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 9572239 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 9DC2A6045F for ; Tue, 14 Feb 2017 16:49:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93E2928428 for ; Tue, 14 Feb 2017 16:49:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86B552842B; Tue, 14 Feb 2017 16:49:59 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM 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 A3F4128428 for ; Tue, 14 Feb 2017 16:49:58 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=eb/xIRtxSlsY9ZTlIefLgh1euW3tG3VOp+ZxHUCrUeI=; b=eB0veOAxV1NdcI XMwLaaeC3n+4EpmMMfy4ab8n4Gk9GoYEtkkhWMGKo8PLXj+nDapgZ5qKxiqUtLj2F6yBbY1NR9OQA GwdWNbmF9rn28lLgnUGJyyS+VpQm+ni/GI2mtnLjrURikPsmvM3eY7lxyBtnTgd8wAlqXcSOyvONL q4ha+vbuD2Ei16+fUyYKhL5gWU790Pahv3a1qkC/yo/Nj/H94zm4cA4Z9c31Gp0KUatWKVQW7Rd6y krRo0uQluTJJ5Be43tKt/E/t6BFWXVeIeZCEdnTy1C2qdUIJNc7NG90pepq8KMGsa4LUFruuahWMq 5fLmkMWMKOO38BRJUGCw==; 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 1cdgIY-0004en-Ry; Tue, 14 Feb 2017 16:49:50 +0000 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cdgIV-0004c4-FQ for linux-arm-kernel@lists.infradead.org; Tue, 14 Feb 2017 16:49:49 +0000 Received: by mail-lf0-x243.google.com with SMTP id x1so11515314lff.0 for ; Tue, 14 Feb 2017 08:49:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hp/jXdz0FFm8SSqTfsEs96cbZL7R69u5DD3Es329GfI=; b=Xenf/LR/68Le7APojAjAG7/dXfd7P4LYUz8hGwgnU2H52cAX9AAAMHj/D0sJkxThNM 2UkiwL5lRoZfNWuD3j0iNqvkQ7IE9q+3zSNYVJTS8C8p+RJkoKhcvOLPEjSdIvPB+6ar MtWUkit2HtvqRPsELa1cjN02cqR+39CFdafg68A5ZN1Py/MgeGL/d8BZ3f77C8qqIyYn 85dqt4KiD7+iohIO9DB5e8R5tNj/dscqrLlTFLOidByLUwYb8f3uDPzWvhFNeHNiD54s 2hyACwSapwQjz602bf4LTzSgdut77ZlzxgnYufFVeJXJqFP8UU6kEkxY/hRjJWIF6FqP lEJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hp/jXdz0FFm8SSqTfsEs96cbZL7R69u5DD3Es329GfI=; b=E9YQHPGc0xKHsmPIGQrx6MTVenaGYeJReB+jpwBLboUbjjpaz5BGVwOdBIUgAyPXts s9JEVhhTOu2LIY8+NkjJtUNVLvd5SdvNaJX9ts7HB2DVvAWoGwOGInKioEYAh2CtKq+u WvlOICiGHL1aJjRlwXBxJ3fzWLezBCeHK5Yn/zdcP7kubpsm6gQIMswBHGWmLOWCL5ms xBcJTh8HQXIEHtL1sUck0VzCLD9mYfc/roQhMfCz/m7WerLLglJq9k4oNZCvJI9iIx3H /Ifeix8P0homb7nzyVIgHdVMxwZu5PoMHE/BPpAdD4zLBla6m3q1HaLcIkZx5i55B9kf D5yA== X-Gm-Message-State: AMke39nscXU6EM6w4vBDtddNHO4unP1zYqxo56tiQ08fq0TnEVwYt1SZgwR2j3axzdn7+w== X-Received: by 10.25.196.136 with SMTP id u130mr8045588lff.37.1487090965283; Tue, 14 Feb 2017 08:49:25 -0800 (PST) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id h13sm278059ljh.5.2017.02.14.08.49.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2017 08:49:24 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] ARM: dts: BCM53573: Describe Tenda AC9 PCIe card in DT Date: Tue, 14 Feb 2017 17:49:05 +0100 Message-Id: <20170214164906.19245-1-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170214_084947_708471_6D4BEF01 X-CRM114-Status: GOOD ( 12.04 ) 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: Mark Rutland , devicetree@vger.kernel.org, Florian Fainelli , Hauke Mehrtens , Russell King , Rob Herring , bcm-kernel-feedback-list@broadcom.com, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= 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 From: Rafał Miłecki Tenda AC9 has PCIe controller with just one device connected to it: 0000:00:00.0 14e4:d145 Bridge Device └─ 0000:01:00.0 14e4:a8db Network Controller This card is directly on SoC (doesn't use physical connector) and has BCM43217 chipset with bcma bus. One of its components is ChipCommon core which is also a GPIO controller. We need to describe it to be able to add devices using its GPIO pins. Signed-off-by: Rafał Miłecki --- arch/arm/boot/dts/bcm47189-tenda-ac9.dts | 27 +++++++++++++++++++++++++++ arch/arm/boot/dts/bcm53573.dtsi | 4 ++++ 2 files changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/bcm47189-tenda-ac9.dts b/arch/arm/boot/dts/bcm47189-tenda-ac9.dts index 4403ae8790c2..ce8c155fcc01 100644 --- a/arch/arm/boot/dts/bcm47189-tenda-ac9.dts +++ b/arch/arm/boot/dts/bcm47189-tenda-ac9.dts @@ -72,3 +72,30 @@ }; }; }; + +&pcie0 { + ranges = <0x00000000 0 0 0 0 0x00100000>; + #address-cells = <3>; + #size-cells = <2>; + + bridge@0,0,0 { + reg = <0x0000 0 0 0 0>; + ranges = <0x00000000 0 0 0 0 0 0 0x00100000>; + #address-cells = <3>; + #size-cells = <2>; + + wifi@0,1,0 { + reg = <0x0000 0 0 0 0>; + ranges = <0x00000000 0 0 0 0x00100000>; + #address-cells = <1>; + #size-cells = <1>; + + pcie0_chipcommon: chipcommon@0 { + reg = <0 0x1000>; + + gpio-controller; + #gpio-cells = <2>; + }; + }; + }; +}; diff --git a/arch/arm/boot/dts/bcm53573.dtsi b/arch/arm/boot/dts/bcm53573.dtsi index 2da04d0a7348..71ce23e46d30 100644 --- a/arch/arm/boot/dts/bcm53573.dtsi +++ b/arch/arm/boot/dts/bcm53573.dtsi @@ -113,6 +113,10 @@ }; }; + pcie0: pcie@2000 { + reg = <0x00002000 0x1000>; + }; + usb2: usb2@4000 { reg = <0x4000 0x1000>; ranges;