Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4183890ybe; Mon, 9 Sep 2019 05:41:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyElaVIijMBUK3/VYN0/4uHXk4QyZQ05LO/wtlxXVYgwt/i8L5tvgrhZPXN0b1ZYahBCnIb X-Received: by 2002:aa7:cfd0:: with SMTP id r16mr22383724edy.104.1568032919200; Mon, 09 Sep 2019 05:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568032919; cv=none; d=google.com; s=arc-20160816; b=u7CnvRkbf8s5ooQUmVzDOvrjeiduGWrPFD/aOyTE02v2DiuGY/FDfHCRJl1kYJCCTn STHTYLBOx9CeRHKGpHv5pJDPzsMeM5e0MZ1f4Y35iw5au/YlGgySAiyi5WeCL/fMd23F 1stFeMEzubPQfUgJweKU6RYfSJ/AQ+5PIkDiiatJh2zCywxclTQQW+LZqn54bb4UxdLW cjKyQiY6C53Pzrdnmhbpfketxe1foQQn6wihKnXGsI3SsA8cBR2Bc06VWAy09t2SJWjv 8DVMdFRMT7ysqoD1LhCl5uURd7kEEODG54Da8+cvx7POUzsRTyd2M9eWMjstLYkaywus mi/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=QWP79fY1JKJ4Q8J2pghEAh/SdWHmEms4TAuDdfokLg8=; b=HvklSe75eB9yXDXeMFTkGjuaAhrxC2Rt+VpRyrf7BT9A0sTmxdweCe7nEK3qXOCvgp 1BS/kdWMyhntg+iZLxmZafYmybuo7DnH+nih5ZIvltJdgIQdj/nPYYhJtururcPtEn/d VnXxgpDTvuCHvNXpAcnSHhmS8B5cLf22UcL/EB627Sfw5fj5pFg23lzJ1CHJlNVyzU8F //6kf7Wd0yGaTT/HWt1Qd4TrEeruct/hzcSicvfaXNnuvBJmEJKd97O+1EHpVmNs3EYu MIIDiFNFdCCujRfAMXeTGZjVx0bif6pdKxWHFZc+PM9w083SzUFFokQQAT+5VRGkV44O 7xZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=YIGG+kJs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d17si5946568edr.294.2019.09.09.05.41.34; Mon, 09 Sep 2019 05:41:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=YIGG+kJs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728549AbfIHNn1 (ORCPT + 99 others); Sun, 8 Sep 2019 09:43:27 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:53886 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728326AbfIHNnL (ORCPT ); Sun, 8 Sep 2019 09:43:11 -0400 Received: by mail-wm1-f68.google.com with SMTP id q19so10916237wmc.3 for ; Sun, 08 Sep 2019 06:43:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QWP79fY1JKJ4Q8J2pghEAh/SdWHmEms4TAuDdfokLg8=; b=YIGG+kJsJiFhCq3dqmypto366EH9ax3zhx8JVdur/EKxb+SmXYRhG28v5Z63pHp8zN OCBmiFSYfe7EbgzmvvQaWF4jBUbNCHjb9U0uhY77dUiOkRvq2CMyuS33EiGQ1utr7OIc FSZ93GRxpYLtF1fMwZa+LFkGEvZhyMQY8xVOcASm877jwvppWgo75O/hfqkKQO9lGgMA YU3yblmv3OwAATFQ7hetuxDEb7YPDEjN6U0gFc2BopqhFn6UIR0AkAOHbFOuRMJSyIwx OV9fpvur/5+VTfiqO6r29dWMVSjemOfYtPgj6bolH2f9y307wxErNay27xD8B2Elh0Vp qhpA== 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:in-reply-to :references; bh=QWP79fY1JKJ4Q8J2pghEAh/SdWHmEms4TAuDdfokLg8=; b=m1Q8GgbNn/6QUzgQkOVlJJvmYzNP0RcsGoHULFdGIHO+dbNWKMYBl7xc87Mm4oJm5q BGVDIZgFfDF4xEu/8hgD5vhfh8QRHQKzH9/7i6V8v7+CC1+PNWoP8Knl6PPKuf3qeqAu /L+h0lJa28Gml9wJENuqqLpsmjPGqAD9TrDhYYXoL97h7MLsRHP62WMBgJTH0uh4QiyF dbbHM21LkIF2LVoNzhdH/MgGV1k0LdShTzG32+BT/d9SDyO+sn/rU1lvvCyjYtwiVmXM aU3WzbwL8d4j2HdvavYB8zsiag49fE3AnXbWiz15Zp/DMKcx1JTa70ydPtVwzXlyyBXY 6HKw== X-Gm-Message-State: APjAAAUBhn+tRvllt6fpBezTeCj1QphrEN7ns5ad3v6QuZqWXH+jp/w0 AbEp6gFgoPm5qjNsxokDPC2BiQ== X-Received: by 2002:a1c:ca02:: with SMTP id a2mr16087461wmg.127.1567950189470; Sun, 08 Sep 2019 06:43:09 -0700 (PDT) Received: from localhost.localdomain ([51.15.160.169]) by smtp.gmail.com with ESMTPSA id t203sm14313902wmf.42.2019.09.08.06.43.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Sep 2019 06:43:09 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, bhelgaas@google.com, lorenzo.pieralisi@arm.com, yue.wang@Amlogic.com, kishon@ti.com Cc: repk@triplefau.lt, Neil Armstrong , maz@kernel.org, linux-amlogic@lists.infradead.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] arm64: dts: meson-g12a: Add PCIe node Date: Sun, 8 Sep 2019 13:42:57 +0000 Message-Id: <1567950178-4466-6-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1567950178-4466-1-git-send-email-narmstrong@baylibre.com> References: <1567950178-4466-1-git-send-email-narmstrong@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds the Amlogic G12A PCI Express controller node, also using the USB3+PCIe Combo PHY. The PHY mode selection is static, thus the USB3+PCIe Combo PHY phandle would need to be removed from the USB control node if the shared differentil lines are used for PCIe instead of USB3. Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12-common.dtsi | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi index 852cf9cf121b..7330dc37b7a6 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi @@ -95,6 +95,39 @@ #size-cells = <2>; ranges; + pcie: pcie@fc000000 { + compatible = "amlogic,g12a-pcie", "snps,dw-pcie"; + reg = <0x0 0xfc000000 0x0 0x400000 + 0x0 0xff648000 0x0 0x2000 + 0x0 0xfc400000 0x0 0x200000>; + reg-names = "elbi", "cfg", "config"; + interrupts = ; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>; + bus-range = <0x0 0xff>; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges = <0x81000000 0 0 0x0 0xfc600000 0 0x00100000 + 0x82000000 0 0xfc700000 0x0 0xfc700000 0 0x1900000>; + + clocks = <&clkc CLKID_PCIE_PHY + &clkc CLKID_PCIE_COMB + &clkc CLKID_PCIE_PLL>; + clock-names = "general", + "pclk", + "port"; + resets = <&reset RESET_PCIE_CTRL_A>, + <&reset RESET_PCIE_APB>; + reset-names = "port", + "apb"; + num-lanes = <1>; + phys = <&usb3_pcie_phy PHY_TYPE_PCIE>; + phy-names = "pcie"; + status = "disabled"; + }; + ethmac: ethernet@ff3f0000 { compatible = "amlogic,meson-axg-dwmac", "snps,dwmac-3.70a", -- 2.17.1