From patchwork Mon Feb 5 11:24:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 196747 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp809317dyb; Mon, 5 Feb 2024 03:26:40 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWM1oDrICxlTW4dlpyzILc7RvfYH0JtOP85bQEl/byOlKeDm7zb7Dwq30YaZ26Gj8clFADfT7wNA0cD9EOuCbv+/rCr2A== X-Google-Smtp-Source: AGHT+IHY5RxBDO3I2SyJYu3kQVLzuMj3f0I+O5zXwfybXG8lE7WhOBUKm8tffvhwz/ZatLeZHMQX X-Received: by 2002:a67:cd05:0:b0:46d:25bd:d25 with SMTP id u5-20020a67cd05000000b0046d25bd0d25mr1078040vsl.21.1707132399949; Mon, 05 Feb 2024 03:26:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707132399; cv=pass; d=google.com; s=arc-20160816; b=gar2aLn+bI76iUZ5wzoChrVCOkW9L5BSnxayhFNP/JSTLxsc0qW++U4xYDJIunS1qy vlq29awPM0Ic4rgpJecPfM995yh2ckhUepqw+fkIgA0PdHpU5WBL093lHJTKLYFEU+Dn NHy+Jp+n23I1FUljhwvaJslMu3nM5eK5hR3Vu2zQyqA1BOvwTDDRqprAtOX7GXEnqAzM itpNXB2L52dq1cwbNEvE18+DsH5B74C+H36vrWa9tV7QJaczPB6LRcqxSYCQE/qCmn9z l+1SQgHRKYxNt8eFwh1a6K5UfvhrYRN0hi5ZGMUQk+NKHB5L1OQybHXjK8w2zsfH0hnr +Vaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=MjhfLiZfJFOjWGDzg0zAsKP1ZI8D6IfFfX+W4exX2g0=; fh=/twLUi/mCE0xhVODXqdJg7nbEH3J24AWC4IvCa2llgk=; b=UOfK3K4krAbPWbL+8mygjTLq9CYjnVeLnFv7SH3sHm6b2yoeYx1LKyWjJJjlySL5BS K3kQ4vMwIwPicr7UoP4sG9WmJQdQp6XUjBnErMIGjVTvz4tUi9FuBNGppTDlUgSg/oHt QB3jOOT01ovWriMYCB66Z/NoYSDD3Ne5q6Q5M1cneW3AUY/ddN4ZFxFKKtPfma42dfn5 H9pRv1uOS8avvMCzdaTBIzfVLvfi0xm+MK3FdU1Dv3chIsdAG/1TXmNoYkTO5qg5iz4A 8MqyF+tdDxm/qnMN21dWnBNQZyXHrl2YCwHNXYmgfEKZ+csIicXHLdQV/FcJFSRqVzR0 53+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=AtMev8Xg; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-52480-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52480-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=1; AJvYcCVBMItXOCjv7llGCpdyEbvQZePTbWdDwNiO2rlRPLesnlWvc7vY6MRMAhHETgXr4tsAJTWNOMb8tPd+ktPmiHq/6Avw/g== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o9-20020a0ccb09000000b006889961da29si8387710qvk.491.2024.02.05.03.26.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 03:26:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52480-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=AtMev8Xg; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-52480-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52480-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A38391C21B09 for ; Mon, 5 Feb 2024 11:26:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51AF619BBA; Mon, 5 Feb 2024 11:26:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="AtMev8Xg" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 455DE18651; Mon, 5 Feb 2024 11:26:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707132367; cv=none; b=XJWb9ZhVFq8jSiJD56lUSaZLmXXju7IeIEdBbsV3tYpk6Txmn73jMwD8MjHu/ZrSD/7rJW6gW3FSZRjtvcc/EB1A7UJDOsuZkMk+oNpb8KMnRRY1sFnUHzJlRa3PbbSrD517sJBHAYbPUhje0dD+bmsSEUueKvlqWN9hb7ImYKU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707132367; c=relaxed/simple; bh=9n3Gic4Taw5jc7/r9ee+Jjdb7R2zyYi3FlEMHzbzlOw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=M1C564CJrFQZ7M8TyU9M81vvdYsz59xUJlaMeqo/jIoamxu+h24JbOPYL/j7y5W9lo3JFtk0fZ+NgvtFr2MNuJJPAKgejHNwZYY6ysP4XxIukF04Co36sBZdUKcPMfXxNUfosm7ZyWpG6N7TK6SqKkqN26aTM18/ShEUveVPmIY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=AtMev8Xg; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1707132362; bh=9n3Gic4Taw5jc7/r9ee+Jjdb7R2zyYi3FlEMHzbzlOw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=AtMev8XgzDIaYmz7FCo8/rhE2QX/fdii3lFAfMZScSoOBGltId+LBWwKET5NvIPRT TQDOqppoozW/fR1m+wTdWRVlXO8jWwUWFDVWc/cM45MzzCs+Lh7G4a3PTrTDsEMSUX 9xHimtvzbCc/QdwBSE1v6cNMfc/AL5glbjP09kGg6+RLA14fXQT5nMHYueXk8Q5jkz o1lViQJOezwGzAYs8UcTIJh9Po0n/QdN9SrEy/wq3kVcx2/ouNzI0AiCwuX3j36pLn uGEqW8pBPQomDg2K0fGzXgluAtR70R248qLNfUNH3w+gAsrST+8rJbq9d+BWZsJQIR eamakIctd74rw== Received: from localhost (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 1EDEA3781FEA; Mon, 5 Feb 2024 11:26:02 +0000 (UTC) From: Cristian Ciocaltea Date: Mon, 05 Feb 2024 13:24:24 +0200 Subject: [PATCH v2 1/2] dt-bindings: phy: Add Rockchip HDMI/eDP Combo PHY schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240205-phy-hdptx-v2-1-a7150814c047@collabora.com> References: <20240205-phy-hdptx-v2-0-a7150814c047@collabora.com> In-Reply-To: <20240205-phy-hdptx-v2-0-a7150814c047@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Johan Jonker , Sebastian Reichel , Cristian Ciocaltea , Sascha Hauer , Andy Yan , Vinod Koul , Kishon Vijay Abraham I , Philipp Zabel , Algea Cao Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, kernel@collabora.com, Krzysztof Kozlowski X-Mailer: b4 0.13-dev-a684c X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790058063311415855 X-GMAIL-MSGID: 1790058063311415855 Add dt-binding schema for the HDMI/eDP Transmitter Combo PHY found on Rockchip RK3588 SoC. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Cristian Ciocaltea Reviewed-by: Heiko Stuebner --- .../bindings/phy/rockchip,rk3588-hdptx-phy.yaml | 91 ++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/rockchip,rk3588-hdptx-phy.yaml b/Documentation/devicetree/bindings/phy/rockchip,rk3588-hdptx-phy.yaml new file mode 100644 index 000000000000..54e822c715f3 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/rockchip,rk3588-hdptx-phy.yaml @@ -0,0 +1,91 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/rockchip,rk3588-hdptx-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip SoC HDMI/eDP Transmitter Combo PHY + +maintainers: + - Cristian Ciocaltea + +properties: + compatible: + enum: + - rockchip,rk3588-hdptx-phy + + reg: + maxItems: 1 + + clocks: + items: + - description: Reference clock + - description: APB clock + + clock-names: + items: + - const: ref + - const: apb + + "#phy-cells": + const: 0 + + resets: + items: + - description: PHY reset line + - description: APB reset line + - description: INIT reset line + - description: CMN reset line + - description: LANE reset line + - description: ROPLL reset line + - description: LCPLL reset line + + reset-names: + items: + - const: phy + - const: apb + - const: init + - const: cmn + - const: lane + - const: ropll + - const: lcpll + + rockchip,grf: + $ref: /schemas/types.yaml#/definitions/phandle + description: Some PHY related data is accessed through GRF regs. + +required: + - compatible + - reg + - clocks + - clock-names + - "#phy-cells" + - resets + - reset-names + - rockchip,grf + +additionalProperties: false + +examples: + - | + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + phy@fed60000 { + compatible = "rockchip,rk3588-hdptx-phy"; + reg = <0x0 0xfed60000 0x0 0x2000>; + clocks = <&cru CLK_USB2PHY_HDPTXRXPHY_REF>, <&cru PCLK_HDPTX0>; + clock-names = "ref", "apb"; + #phy-cells = <0>; + resets = <&cru SRST_HDPTX0>, <&cru SRST_P_HDPTX0>, + <&cru SRST_HDPTX0_INIT>, <&cru SRST_HDPTX0_CMN>, + <&cru SRST_HDPTX0_LANE>, <&cru SRST_HDPTX0_ROPLL>, + <&cru SRST_HDPTX0_LCPLL>; + reset-names = "phy", "apb", "init", "cmn", "lane", "ropll", "lcpll"; + rockchip,grf = <&hdptxphy_grf>; + }; + };