Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp941525rdb; Fri, 1 Dec 2023 02:53:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5Zecz1Os7bj7GQT1kDf8df1hYSgVgz4HcNyajWbKpJwZAF5lm7MbFLYJ/8dsu8ExXauUq X-Received: by 2002:a05:6358:2255:b0:170:756:abc2 with SMTP id i21-20020a056358225500b001700756abc2mr2495211rwc.10.1701427989345; Fri, 01 Dec 2023 02:53:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701427989; cv=none; d=google.com; s=arc-20160816; b=SXYaTQJv7eTlxYAl1m15Bx+4+QPG+i3OZuO5h9bJSHiuUV9o0fOTI/Ny167Hmg17pL 90JRfdp2SNGIXTgFljNu+Tf8DucYxa4GJnp8jOiMt6MNrP2rnMCaEmitArcqOha/lU/u TwaGLrKho6+TVYzEqn5o104kwg+6Y0OlgLFu0KSs8qfGYYtFCn/PtVw/kuIB6aBiZ6Sb IfYHSLjLGzWmlYDT6t8/gg49G6RW8Bz3jTwPPZJgAJdjY30JF+PQpsEEHJz96++Pm+L9 ubj53SjQ3rxG+kkn6MKmgCAk0hsGVqDsGc7lD0yKp9ZAUb3xcqpBo70CJAQuTMCXhz+g NeWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=EPPjCjEyQ7LQsbGcHDUqeSz6SGan1iKPVohEhD1PB3c=; fh=tlqlp//vY1dJszZmJJg2QlJktQpZnUYn7pQTXQO5Ctg=; b=zmVGSr83I3ju13RksrmSdZe+/UJlOxwmeAvB0jF+z5CbkUG4dkVl5d2AFD3OY4u6Bj s0/evBqBLel2CCKDKAoF4c7AEOjpXkW1zdvn8d9HTNRSDEnDr2YJFj6wcrfx2iSbwFmf xLDojZ9MFKf6/2hi6PTuZyTs8ERqNMw5s8Ne7DG9BkppPN8XcVNl4eiAoDmSchWiXbMB NvU8QfFklEtTGUQWdStNV8880rJ3bshGvzGKi45wNwSeMFXZ0K2gXxfnYr0EttXigfGH cp5f1cBQ9wR2tN9NHSePnRIONt6wFW7ituREfQkgY+IBbURfe3CF54UOq2yqpmcs7i5w Z+UQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id fc16-20020a056a002e1000b006cbf2bc6eaesi3170555pfb.188.2023.12.01.02.53.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 02:53:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 20AAC8069F21; Fri, 1 Dec 2023 02:53:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378354AbjLAKw5 (ORCPT + 99 others); Fri, 1 Dec 2023 05:52:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378350AbjLAKw4 (ORCPT ); Fri, 1 Dec 2023 05:52:56 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D6D210FF; Fri, 1 Dec 2023 02:53:02 -0800 (PST) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3B1AqFGZ1299709, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 3B1AqFGZ1299709 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 1 Dec 2023 18:52:15 +0800 Received: from RTEXMBS02.realtek.com.tw (172.21.6.95) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Fri, 1 Dec 2023 18:52:15 +0800 Received: from RTEXH36505.realtek.com.tw (172.21.6.25) by RTEXMBS02.realtek.com.tw (172.21.6.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 1 Dec 2023 18:52:14 +0800 Received: from localhost.localdomain (172.21.252.101) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server id 15.1.2375.32 via Frontend Transport; Fri, 1 Dec 2023 18:52:14 +0800 From: Tzuyi Chang To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , Stanley Chang , Tzuyi Chang Subject: [PATCH 1/2] dt-bindings: phy: realtek: Add Realtek DHC RTD SoC PCIe PHY Date: Fri, 1 Dec 2023 18:52:06 +0800 Message-ID: <20231201105207.11786-2-tychang@realtek.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231201105207.11786-1-tychang@realtek.com> References: <20231201105207.11786-1-tychang@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-KSE-ServerInfo: RTEXMBS02.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 01 Dec 2023 02:53:08 -0800 (PST) Add the device tree bindings for the Realtek DHC(Digital Home Center) RTD SoCs PCIe PHY. Signed-off-by: Tzuyi Chang --- .../bindings/phy/realtek,rtd-pcie-phy.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/realtek,rtd-pcie-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/realtek,rtd-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/realtek,rtd-pcie-phy.yaml new file mode 100644 index 000000000000..44ff23f698e6 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/realtek,rtd-pcie-phy.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2023 Realtek Semiconductor Corporation +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/realtek,rtd-pcie-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek DHC PCIe PHY + +maintainers: + - Tzuyi Chang + +description: + Realtek PCIe PHY supports the DHC(Digital Home Center) RTD series SoCs. + The PCIe PHY driver is designed to support physical layer functionality + of the PCIe controller. + +properties: + compatible: + enum: + - realtek,rtd1319-pcie0-phy + - realtek,rtd1319-pcie1-phy + - realtek,rtd1319-pcie2-phy + - realtek,rtd1619b-pcie1-phy + - realtek,rtd1619b-pcie2-phy + - realtek,rtd1319d-pcie1-phy + - realtek,rtd1315e-pcie1-phy + + "#phy-cells": + const: 0 + + nvmem-cells: + maxItems: 1 + description: + Phandle to nvmem cell that contains 'Tx swing trim' + tuning parameter value for PCIe phy. + + nvmem-cell-names: + items: + - const: tx_swing_trim + + realtek,pcie-syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle of syscon used to control PCIe MDIO register. + +required: + - compatible + - realtek,pcie-syscon + - "#phy-cells" + +additionalProperties: false + +examples: + - | + pcie1_phy { + compatible = "realtek,rtd1319d-pcie1-phy"; + realtek,pcie-syscon = <&pcie1>; + #phy-cells = <0>; + nvmem-cells = <&otp_pcie_tx_swing_trim>; + nvmem-cell-names = "tx_swing_trim"; + }; -- 2.43.0