Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3324944pxv; Mon, 12 Jul 2021 14:51:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7E89gyfDFN3M1txf6B8JlOZjMB3VLps8OiJXmjLd4go0j7OK/ZJLLjT+UWZOkJ0p7iFHO X-Received: by 2002:a17:906:1284:: with SMTP id k4mr1350499ejb.25.1626126668933; Mon, 12 Jul 2021 14:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626126668; cv=none; d=google.com; s=arc-20160816; b=J6ofP7eMPAi6LPqHXUiPcI7bLmtOmPbaCt5KgpGr9Po6zyqGYuml+H9lYz5XzIuGkj Ybjf8ISnl1jxIukh7Lk4wLHmyGjfKazvg7Y+p+n/3PcAqaJzGjrOUOIrJ/XUZIbs8hTr 3Zt3+Wygnsyhqr+SuKjE5C6yoGLwoHZNDPaHNX1124f1CNnio5zBODChDZ/Ra/7nv9OH TCfkdgNsuBevQerWdj3+yBMvkjgPmbtGYv3whmadoRbDNrpslzXjOrKEs7130hjadNLa txh0ORjUMxWD6I8bMf7TrnpTn/vBjuM6gRZNhE2rlhqKFbSmL8JK5YJqNrPB4D2aH8iu 0LoA== 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=3aQ5yCj9S+1sC7yzsgYIL309gZ5HQ6ykOtKuJdJZx5I=; b=Ocf98Ht2BzhvBIcTKLppaXRYVgUD7fEMrPqaU3JCPXSwK+v+MyNU6GkpTW1mA7Qnkf M89XpA0Wp0uxMiKUxoXURXR60ZKouaWspPfEIDMNcGxgw6hSwQ06HaUctXrmV5lEkGXk Tw3W5xccwNXmbVjZGoAnOfvX90Nt2ro+BMODoWnBTmPsxvwyXxmMRRPbxuTOBqq2qZST tWCz5JtgS6aGomynHPr5NiJKtoXV4dhY5nvD2ISS5oShHYrX4EUhZ3B2fpH5vKhyNTBf x6rlIkLNQTyc52jVZpjxeJDXquDw0aL+2eaMl1hkFwTt1RLu8m8ZECwKgtsKtd5i5iVl 8TYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n9tCIeZR; 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 f2si19371875edl.338.2021.07.12.14.50.37; Mon, 12 Jul 2021 14:51:08 -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=n9tCIeZR; 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 S231420AbhGLVtv (ORCPT + 99 others); Mon, 12 Jul 2021 17:49:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:51698 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbhGLVtj (ORCPT ); Mon, 12 Jul 2021 17:49:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7915261279; Mon, 12 Jul 2021 21:46:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626126410; bh=beQ/nlrqcVJKSEttIL89uLGSbQ5pFqjunHiG0KZXdfc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n9tCIeZR1TuGdinDml4bYGTVruKMlEkbU693sBjXCW1de+8wp+0ufOzPDBVm8/ZNr qm8FNfqjGTElc9whDyUsXcp4LAEmmxcPfaOy+PlQE+fiWcfkuRrYixf8Z/Xg4Z1rXD RhAQnQOtM9prREugYkEd0Nd6BkCaktWukJcQ2aoRoFssSlgCJ/DAPIWMyRVnY0DnmN frk8fatnqCTsRvuUe5O2VCCT17yIL9v6YSJ/wpcHpewaWDZY/eW7kcPaxIbwkSn2q4 zy40Un1TvkXmWkgY8V9xP0E1+BzW6l+WSrFGU1JF5F+nZ54Cmn8GeV4Efd1bTJyJ4A KJ5Ebu7Jd6lNg== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1m33lI-005VRB-5m; Mon, 12 Jul 2021 23:46:48 +0200 From: Mauro Carvalho Chehab To: Bjorn Helgaas Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , "Manivannan Sadhasivam" , "Rob Herring" , Kishon Vijay Abraham I , Rob Herring , Vinod Koul , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Subject: [PATCH v4 1/8] dt-bindings: phy: Add bindings for HiKey 960 PCIe PHY Date: Mon, 12 Jul 2021 23:46:39 +0200 Message-Id: <390e7fc0cd6fa4217f5d67c74f12ea101fab3f6d.1626126198.git.mchehab+huawei@kernel.org> 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..81c93e76cef4 --- /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