Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp537352pxv; Fri, 9 Jul 2021 03:46:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/C58HODBBRqYYB768aBzdpGPgwXbHQC7syiTz8tVRCeWEaJXpKEXo56gCtA4JDFTlXrN8 X-Received: by 2002:a17:906:5d13:: with SMTP id g19mr37468462ejt.90.1625827579010; Fri, 09 Jul 2021 03:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625827579; cv=none; d=google.com; s=arc-20160816; b=LcxbsvW8K1tPtoKunD3745CIIf9EAZ1VEIJM8cHsxXNSsPKpguMiPArw9wBy6vjXZV 18I10sYaULpsKMEMq1TV7peaNaL3i9VjgUihs5TBrtaX+EXmSKTCDR1X0KS+rUR+m8FN 5nG5bxrPs+dWJx2jqS4r0c/YORlyxtzgoxMjt2kV4x5b10nrF3pJmQ8ZY1XEL4e7THAL iTbbYfqFIO/sn22LjYy8d07jXkJ31BrWv1UwSmdzpfuQ1b9FvtpQpe1aFsBiPntacO/9 WkjstAsM4RU7FTTYl8fZ8bLSLOZ28XVCLDNxv69mJYFzOiALEQcgJSn7cNiLyy+2RfpC u9rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vED+wGGqd5kparG+Kz5FXMuDu97xdxppkrBoe6c/wy4=; b=ViT3dHjDPJP98j+uS31u+pEwhn6oI/iEIl1lbepsMC6766taWcaE62UT9PJxIVj73M zNKA4MVX06O6+CJc2yz8PvzUtfm8xJnTHlswA9rpQ4P2l+KyKgxOqrDVM+OQlT7WucD6 ccoMjgKRrSIqxc66bDmzF71mT5awni+pwejQJ/oLK3kgiRDj4TgeekoE88bGA7CS5LN4 xIFQoB2c3KwyCXycCTAKRj88iq6X+kpMMZ+PxpFSBw/4X3/nfP5Ss4gPOc3VtlKInget bC8kKvioN4HOYO8ndPk+O6MpHeI1xdA3GaMlgSnGapuKW/yu/tVKriy5ESdNuPBBpndC t+aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sPQ17iO9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b11si7391847ede.89.2021.07.09.03.45.55; Fri, 09 Jul 2021 03:46:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sPQ17iO9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231415AbhGIKow (ORCPT + 99 others); Fri, 9 Jul 2021 06:44:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:47704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230024AbhGIKog (ORCPT ); Fri, 9 Jul 2021 06:44:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 38B9A613E8; Fri, 9 Jul 2021 10:41:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625827313; bh=Wbz8BIqkDGOGe5Y5QXz3JddAMSpth4TA47h5iTOOx2g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sPQ17iO9T6VggNrBhlpXzDCb5hK5vS/GJIskbl3lFNvECA6eO7gtZmzSZFsLKSeF9 Rk2KbgAA9OGcAAzeCXjMHLT3iu4W1ZOfT+QbkBKznuUp27T9Loq89MZ2YE2gjjrS8B hSKmRaRokYv5weAr++FwQHNY4lZyktgWz0/Hh+d4pEe9TbyXXtr3Srfk8On+zRlDBb XzUSX9QEUsXpmFMU5+6NuiBYO/E4R54/80C5yJ9ZUwc1tOa/h0EA2xUYQkLxc0vXs1 rrBtO2L7l3c283uGK1gUhJcopaveApsAD1c6Itb2B45tDbiQFEGCim7H+mXDKJD8In hWe8CIb1SGNOg== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1m1nx7-00B5FS-4z; Fri, 09 Jul 2021 12:41:49 +0200 From: Mauro Carvalho Chehab To: Manivannan Sadhasivam , Rob Herring Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Kishon Vijay Abraham I , Rob Herring , Vinod Koul , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Subject: [PATCH v3 1/9] dt-bindings: phy: add bindings for Hikey 960 PCIe PHY Date: Fri, 9 Jul 2021 12:41:37 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the bindings for Hikey 960 (hi3660) PCIe PHY interface, supported via the pcie-kirin driver. Signed-off-by: Mauro Carvalho Chehab --- .../phy/hisilicon,phy-hi3660-pcie.yaml | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/hisilicon,phy-hi3660-pcie.yaml diff --git a/Documentation/devicetree/bindings/phy/hisilicon,phy-hi3660-pcie.yaml b/Documentation/devicetree/bindings/phy/hisilicon,phy-hi3660-pcie.yaml new file mode 100644 index 000000000000..bed290059abb --- /dev/null +++ b/Documentation/devicetree/bindings/phy/hisilicon,phy-hi3660-pcie.yaml @@ -0,0 +1,82 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/hisilicon,phy-hi3660-pcie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Hisilicon Kirin960 PCIe PHY + +maintainers: + - Mauro Carvalho Chehab + +description: |+ + Bindings for PCIe PHY on HiSilicon Kirin 960. + +properties: + compatible: + const: hisilicon,hi960-pcie-phy + + "#phy-cells": + const: 0 + + reg: + maxItems: 1 + description: PHY Control registers + + reg-names: + const: phy + + clocks: + items: + - description: PCIe PHY clock + - description: PCIe AUX clock + - description: PCIe APB PHY clock + - description: PCIe APB SYS clock + - description: PCIe ACLK clock + + clock-names: + items: + - const: pcie_phy_ref + - const: pcie_aux + - const: pcie_apb_phy + - const: pcie_apb_sys + - const: pcie_aclk + + reset-gpios: + description: PCI PERST reset GPIO + +required: + - "#phy-cells" + - compatible + - reg + - reg-names + - clocks + - clock-names + - reset-gpios + +additionalProperties: false + +examples: + - | + #include + + bus { + #address-cells = <2>; + #size-cells = <2>; + pcie_phy: pcie-phy@f3f2000 { + compatible = "hisilicon,hi960-pcie-phy"; + reg = <0x0 0xf3f20000 0x0 0x40000>; + reg-names = "phy"; + clocks = <&crg_ctrl HI3660_PCIEPHY_REF>, + <&crg_ctrl HI3660_CLK_GATE_PCIEAUX>, + <&crg_ctrl HI3660_PCLK_GATE_PCIE_PHY>, + <&crg_ctrl HI3660_PCLK_GATE_PCIE_SYS>, + <&crg_ctrl HI3660_ACLK_GATE_PCIE>; + clock-names = "pcie_phy_ref", "pcie_aux", + "pcie_apb_phy", "pcie_apb_sys", + "pcie_aclk"; + reset-gpios = <&gpio11 1 0 >; + #phy-cells = <0>; + }; + }; +... -- 2.31.1