Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4022754ooa; Mon, 13 Aug 2018 23:19:17 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw0aopva02oa4g1OWv2WbZDANh6QhIO7lpyUIW26uKmK21vkXGRHoo4dXR/SEg/qrHHp8h8 X-Received: by 2002:a63:ce12:: with SMTP id y18-v6mr19774779pgf.144.1534227557569; Mon, 13 Aug 2018 23:19:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534227557; cv=none; d=google.com; s=arc-20160816; b=TUJbBVaGse62iOzFsGxMgQHwT0aBG4f55fhbPCk5DyrYwXAKNiOK2ZXHaTNtvjGHsA kk5w0Uoi/OWUpaLGKEOr02dv3Pnr906TEgzSe96Wv0OPEUiF49zB8MNL00J/wrpII3ld MmHgWu3V5vMNE4THQCo4ubMWzONGK0w5H3hCaWsUG8W+rEMXg+5Q2bXY7l+UyyOdftpi 8aHIruZxYVH2ZKgcqeFJck/pqkHXC4QSw98O3CUyg94LgH1eYZgB8E8IxaSC991blNzN lyiZAzXo0JMclRILwYCWZgySFh2DRzE9myiHTsSPSUO+kDWwXzJmj2q62YO3hVhEQIFv IzGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=ZUbvR4wOzg1OyEBWndJd4SXS6Ul19nxwa1tYrZTihhU=; b=iPQB0uZg1eIny7Gb61bgQNYFObBJg6pRGsRVYL3dZRqQiPk1+1O6A1B7DeMJvdIWRN 3DWbQApl1t+a5d0ycgfAb1A8KAbX85X1YYhhk+kaF6CLh4T593RXMf8lnGl4FN4kHmnH 8k2trf3Lh6wFcH9mKgJlRS+S9oUdjtT0Yr7u2Mx3ISAp6maQUJbFBfvJQkcmZC1wvBzj TpeQy8GcCW6Na8xTAIGseUVRAWMSU2wUjQbdOBUT4q58Jze2VhDK1y4sAwsUntYVrlXe lqGt1h+bismGRvQSKO/cf9QUS9QCSO2/bVqadcwz8JMylGX1SH62D1bp+SfJaUh5sjc2 qI3A== ARC-Authentication-Results: i=1; mx.google.com; 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 w25-v6si21129913pfa.359.2018.08.13.23.19.02; Mon, 13 Aug 2018 23:19:17 -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; 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 S1731168AbeHNJDs (ORCPT + 99 others); Tue, 14 Aug 2018 05:03:48 -0400 Received: from mail-sh2.amlogic.com ([58.32.228.45]:10943 "EHLO mail-sh2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728483AbeHNJDs (ORCPT ); Tue, 14 Aug 2018 05:03:48 -0400 Received: from droid10.amlogic.com (10.18.11.213) by mail-sh2.amlogic.com (10.18.11.6) with Microsoft SMTP Server id 15.0.1320.4; Tue, 14 Aug 2018 14:18:16 +0800 From: Hanjie Lin To: Bjorn Helgaas CC: Yue Wang , Yue Wang , Kevin Hilman , Rob Herring , , , , , Subject: [PATCH 1/2] dt-bindings: PCI: meson: add DT bindings for Amlogic Meson PCIe controller Date: Tue, 14 Aug 2018 02:18:41 -0400 Message-ID: <1534227522-186798-2-git-send-email-hanjie.lin@amlogic.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534227522-186798-1-git-send-email-hanjie.lin@amlogic.com> References: <1534227522-186798-1-git-send-email-hanjie.lin@amlogic.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.18.11.213] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yue Wang The Amlogic Meson PCIe host controller is based on the Synopsys DesignWare PCI core. This patch adds documentation for the DT bindings in Meson PCIe controller. Signed-off-by: Yue Wang Signed-off-by: Hanjie Lin --- .../devicetree/bindings/pci/amlogic,meson-pcie.txt | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/amlogic,meson-pcie.txt diff --git a/Documentation/devicetree/bindings/pci/amlogic,meson-pcie.txt b/Documentation/devicetree/bindings/pci/amlogic,meson-pcie.txt new file mode 100644 index 0000000..48233e4 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/amlogic,meson-pcie.txt @@ -0,0 +1,57 @@ +Amlogic Meson AXG DWC PCIE SoC controller + +Amlogic Meson PCIe host controller is based on the Synopsys DesignWare PCI core. +It shares common functions with the PCIe DesignWare core driver and +inherits common properties defined in +Documentation/devicetree/bindings/pci/designware-pci.txt. + +Additional properties are described here: + +Required properties: +- compatible: + should contain "amlogic,axg-pcie" to identify the core. +- reg: + Should contain the configuration address space. +- reg-names: Must be + - "elbi" External local bus interface registers + - "cfg" Meson specific registers + - "config" PCIe configuration space +- clocks: Must contain an entry for each entry in clock-names. +- clock-names: Must include the following entries: + - "pcie" + - "pcie_bus" + - "pcie_general" + - "pcie_mipi_en" + +Example configuration: + + pcie: pcie@dffff000 { + compatible = "amlogic,axg-pcie", "snps,dw-pcie"; + reg = <0x0 0xf9800000 0x0 0x400000 + 0x0 0xff646000 0x0 0x2000 + 0x0 0xf9f00000 0x0 0x100000>; + reg-names = "elbi", "cfg", "config"; + reset-gpio = <&gpio GPIOX_19 GPIO_ACTIVE_HIGH>; + interrupts = <0 177 IRQ_TYPE_EDGE_RISING>; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 179 IRQ_TYPE_EDGE_RISING>; + bus-range = <0x0 0xff>; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + phys = <&pcie_phy>; + ranges = <0x82000000 0 0 0x0 0xf9c00000 0 0x00300000>; + num-lanes = <1>; + pcie-num = <1>; + + clocks = <&clkc CLKID_USB + &clkc CLKID_MIPI_ENABLE + &clkc CLKID_PCIE_A + &clkc CLKID_PCIE_CML_EN0>; + clock-names = "pcie_general", + "pcie_refpll", + "pcie_mipi_en", + "pcie", + "port"; + }; -- 2.7.4