Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4346001pxv; Tue, 20 Jul 2021 01:15:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNKm2HS00qLipOXL5Xf518M8V+hUwX4wHryBtSmm6h9m8lu2c+WoU8HXzQNSMsHkh7+gBC X-Received: by 2002:a17:906:d20a:: with SMTP id w10mr21106695ejz.426.1626768937690; Tue, 20 Jul 2021 01:15:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626768937; cv=none; d=google.com; s=arc-20160816; b=d5f9GoG8MGxdf9gjQMUQ7yqy7a6sF5CtLz7tQiaTSBiLgax3DEX/p0bhUaANtiZ4mz J5wiBz+WhPRy7ZnMpJ5D9hT4orfeSg1FIqCzu5L8sRXEDAMI3dDrcze1lb8xJTreGAiZ NKhXLE7Cw0OsguTbwfxtR80sEactmuubxA/rLW+c5o9WWf3RyqF93n4ghzm9EZw4WmPi rHtv3AQsUELCiO37OR6vS89pwmlhlLL3YVBmdX/qy+z4NOTBz8nNchwRT02rOKUfytzq oC/NAtEKO4zStbDrkhqnPzU3J89G0qFm0eeVDkEGJDTy7fIhHp36BCMzqhajYAfmZ8V1 5ywg== 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=v5oNxWB+hUxj5n1LSEQsaG3vA3v5LBCH2hYv+VnG9T8=; b=B9d84QlevzsPKBzisfLVAA7z6a/nhufuna2nX7c/LWkRTOmSDsFUjX3bV1k6QkW/s4 W/NPIoeMmRk0wY0g5atwjaqGR0QQBKt5VtZ1M2+MwWh298goHnoxUKSMs/tJUsmy3FMl rW7GeFfRybPwQAC2PVRQLGfmwS+3WaDu9stsL+gjrTXLfbmIhgmslT2Ul6fgybqLSRpa tuTIS/GEM936GuFG0lazZF+hX9taIFE/t701Fut4B8LRtRWyyDZcT3vJ6+PTNG1lQAsu fwFo6Yz2Vh/WWCOhL+IiXnJheWIubQmlRkRboN1vsIYJbNitWSzOwCchoXLLTTXxD7ob f5aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZmeraAyg; 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 j23si28599208eje.21.2021.07.20.01.15.10; Tue, 20 Jul 2021 01:15:37 -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=ZmeraAyg; 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 S234127AbhGTHcq (ORCPT + 99 others); Tue, 20 Jul 2021 03:32:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:49058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233097AbhGTH2l (ORCPT ); Tue, 20 Jul 2021 03:28:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 73681611ED; Tue, 20 Jul 2021 08:09:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626768559; bh=69owpJSeKLLbkKV1UESYM8I5uYDlltnRXTuUGkqjmK8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZmeraAygguXGQpxcwp72aIVVCk5NtCeP+IXsDnyPV28hyH+fVBVASHqM0knnH/8Hh EEzTZ5QgTt2Co85dm78hXqQZWiJnS+9X5pigfywnqtl9Ejex4yAp/EEL0TrQLTb8VS pwpVDWwwCX/2dFKiCny0bdbV2lkIDhdWvrs4hfocj9I07sCSo4PQTnkHdCLRcXJfTx my/78SylQrGlb2XNneOWTTqo0h6qDv9OTjP3xRYnZ7GEfboaq0ISzjoKZjctt2qHWK qVDFn0sMPqwa2LKmsvH0KRB5tQDyU5M7SHvpO9Vwj3TWe0gfRmer7FJU3ONGP8TV5a iu0OIjUqL/Chw== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1m5koX-000eTR-L3; Tue, 20 Jul 2021 10:09:17 +0200 From: Mauro Carvalho Chehab To: Bjorn Helgaas , 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 v6 5/9] dt-bindings: phy: Add bindings for HiKey 970 PCIe PHY Date: Tue, 20 Jul 2021 10:09:07 +0200 Message-Id: <04943d3dff73e2fd5c9336540cb31d70ccf7b9cf.1626768323.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 970 (hi3670) PCIe PHY interface, supported via the pcie-kirin driver. Signed-off-by: Mauro Carvalho Chehab --- .../phy/hisilicon,phy-hi3670-pcie.yaml | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/hisilicon,phy-hi3670-pcie.yaml diff --git a/Documentation/devicetree/bindings/phy/hisilicon,phy-hi3670-pcie.yaml b/Documentation/devicetree/bindings/phy/hisilicon,phy-hi3670-pcie.yaml new file mode 100644 index 000000000000..f88b6b7496bb --- /dev/null +++ b/Documentation/devicetree/bindings/phy/hisilicon,phy-hi3670-pcie.yaml @@ -0,0 +1,98 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/hisilicon,phy-hi3670-pcie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HiSilicon Kirin970 PCIe PHY + +maintainers: + - Mauro Carvalho Chehab + +description: |+ + Bindings for PCIe PHY on HiSilicon Kirin 970. + +properties: + compatible: + const: hisilicon,hi970-pcie-phy + + "#phy-cells": + const: 0 + + reg: + maxItems: 1 + description: PHY Control registers + + phy-supply: + description: The PCIe PHY power supply + + 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: phy_ref + - const: aux + - const: apb_phy + - const: apb_sys + - const: aclk + + reset-gpios: + description: PCI PERST reset GPIOs + maxItems: 4 + + clkreq-gpios: + description: Clock request GPIOs + maxItems: 3 + + hisilicon,eye-diagram-param: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: Eye diagram for phy. + +required: + - "#phy-cells" + - compatible + - reg + - reg-names + - clocks + - clock-names + - reset-gpios + - clkreq-gpios + - hisilicon,eye-diagram-param + - phy-supply + +additionalProperties: false + +examples: + - | + #include + + bus { + #address-cells = <2>; + #size-cells = <2>; + pcie_phy: pcie-phy@fc000000 { + compatible = "hisilicon,hi970-pcie-phy"; + reg = <0x0 0xfc000000 0x0 0x80000>; + reg-names = "phy"; + #phy-cells = <0>; + phy-supply = <&ldo33>; + clocks = <&crg_ctrl HI3670_CLK_GATE_PCIEPHY_REF>, + <&crg_ctrl HI3670_CLK_GATE_PCIEAUX>, + <&crg_ctrl HI3670_PCLK_GATE_PCIE_PHY>, + <&crg_ctrl HI3670_PCLK_GATE_PCIE_SYS>, + <&crg_ctrl HI3670_ACLK_GATE_PCIE>; + clock-names = "phy_ref", "aux", + "apb_phy", "apb_sys", "aclk"; + reset-gpios = <&gpio7 0 0 >, <&gpio25 2 0 >, + <&gpio3 1 0 >, <&gpio27 4 0 >; + clkreq-gpios = <&gpio20 6 0 >, <&gpio27 3 0 >, <&gpio17 0 0 >; + hisilicon,eye-diagram-param = <0xFFFFFFFF 0xFFFFFFFF + 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF>; + }; + }; +... -- 2.31.1