From patchwork Mon Feb 12 18:52:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 199999 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp106280dyb; Mon, 12 Feb 2024 10:53:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVmB0RddbGhLvHgZh17rcsTSZVemm9yEQgdbh5vgIC2/TZE8o/48+gngjLxwF2PcVtPdyE3w/XmjtvzQam7ykSDDFXPmQ== X-Google-Smtp-Source: AGHT+IE1M88cxvhRtoxyu9zVoQATRniSOl7ThbApeaf6rphUg5t1tQv46rdoWkQfv9/02WNhX/Jk X-Received: by 2002:a05:6a00:cd0:b0:6e0:4fb7:cf36 with SMTP id b16-20020a056a000cd000b006e04fb7cf36mr539805pfv.10.1707764023592; Mon, 12 Feb 2024 10:53:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707764023; cv=pass; d=google.com; s=arc-20160816; b=QsuKGi5xu3xISmmoWESVJ4xWpzumnNiaSJs975fO5Q/CCKitbBywUxO6alba9Irp7T hOihl6F+Ea9wETZsfUnpEctDJanuGQMwppBy1oWPSA7tmLngvnLVTFsHVEUGW5QUemdS /kbOOYN+E4200lgaAGFuYqh9dy6lWVTxFF3WUsUMwYF07te2aznyOi+L+ytkbLJC3BZi 7ZPfO6x9OuIaiCgImbuR5czCvOTD56w7y2R4ZCQ+GvKs5oub866I4ZpI63TdMIEMv5+o /v0PE8kGG9lBprrQrhdz3XFcW9a3UXIEFn+ozA5J+PgGS/mryxm49cZ/NXbh/5RbICiQ mr0g== 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=rOmzGRuUEhk86WPWIi/lYgwjEExoohwSOYaj80Nw5CY=; fh=QbPVrXEBwaSRLt8pnIXgTvM2XnWAG+PVN6B1dIrM0bw=; b=zLA1znDDKjYJ7wk/bQ7b/+E1YJhlqzL915IZzK9GvF0MGQ1B15ehoBg95aU2SvC1VR F76ADazqyPwwplUBPLpo3sPQ0fahtHzobVUwUcrN7M8qmpHzqqcVD0VarTUZcnE7Ta8Y drcERNTaU9S94D7a+wrVi3HUIE+b/iuaKENnOANohQkAxTP4dKqD89lmRxWCAjQ8mu+f iJ18sFTPJt4tpx9ZBUaZjw8QKiH/jAQCx0YoRVNcV6UZErMY4rQx9gOG13539f7ymYnQ KXJ7BFl+akriQotriao+VAQ7QkfgfasyFplRjtx524psXDmplSAiIxmJCLPJBG9QP5lj eRrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=YdZDBNMU; 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-62232-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62232-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=2; AJvYcCUrnTj/kj58ptNfReM3WCW2cumqnGbOsqstRE1FRj88qNb4rPmXCfh5MLWfcSmkuzgFLEWTBVmAD+Cl/sU5x2CuvshNdQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z4-20020a62d104000000b006e03c0c53d6si5300837pfg.206.2024.02.12.10.53.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 10:53:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62232-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=YdZDBNMU; 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-62232-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62232-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5F5912848A9 for ; Mon, 12 Feb 2024 18:53:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE2414654D; Mon, 12 Feb 2024 18:53:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="YdZDBNMU" 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 97C2940BF9; Mon, 12 Feb 2024 18:53:09 +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=1707763991; cv=none; b=ERifkllIUXACOpzxxpF9Lb/+YTUaBfuJjPy78NgawM/jfPUtOQXU3qkwVlibINVtLPjYq+ky/Zk2UBiw3apK49tsuCkySf3R+EY+/tnaA1nXxTowy9E2/fhj4jRtLMYG0Iih8sGGTHs9i0niCdDhJoKy9JzfDwy7qXLqPLkARJE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707763991; c=relaxed/simple; bh=L1Xv0upbYC1NK7GU2DwkbRMikhm9rpTORFzsKNFZn/M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KWSV0GIu1z5dloVEhQAn49tEmeAGtqk8RWcsWi+m/P8pDBMkm1GZ/tATjZcakV+pMAx+2jTxFCEkWQy+s+iiO9GzDzQ1nFh7mKsHb93rUks3TThi3qj69QhxZRoWLvaGeFt9qH5vAGDIt38o6kTCXcf8wh13G+E5C4w/2IFla1c= 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=YdZDBNMU; 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=1707763987; bh=L1Xv0upbYC1NK7GU2DwkbRMikhm9rpTORFzsKNFZn/M=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=YdZDBNMU/N5F7/Ba7DqZFY+ypriwyV4u2Dvqc3O8ZsLS8NF6lbMNkS05VkwsOqRWC iEaRgvEemdMbAOXuHgN+qDW8t5IlMwxhjWaQyV8xJna8vqQ6wy7YEJufvLvuAU4jUT yRkG9d3NxGo3K6R0YoXq+BbJF8JUQP12z9WR4JFxJQYqukUZ4r4gGTBpnvTow2S76n ZJ6lSlQiVjjf8PUsyMsNXGN49st6DDILGF3Xv3LjGp5elqQ1q6SiGaLXH8svwBQBFC 9677Dx/gQffmrAi10ru9OlaUnwT1QwFiFGKWnOy3acgE+n58T48rpcWr9IrdJ/b4qo 7aq3jC5tUwaqQ== 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 B67FE3782075; Mon, 12 Feb 2024 18:53:07 +0000 (UTC) From: Cristian Ciocaltea Date: Mon, 12 Feb 2024 20:52:29 +0200 Subject: [PATCH v3 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: <20240212-phy-hdptx-v3-1-2cde680cd024@collabora.com> References: <20240212-phy-hdptx-v3-0-2cde680cd024@collabora.com> In-Reply-To: <20240212-phy-hdptx-v3-0-2cde680cd024@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Johan Jonker , Sebastian Reichel , 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: 1790720368968803864 X-GMAIL-MSGID: 1790720368968803864 Add dt-binding schema for the HDMI/eDP Transmitter Combo PHY found on Rockchip RK3588 SoC. Reviewed-by: Krzysztof Kozlowski Reviewed-by: Heiko Stuebner Signed-off-by: Cristian Ciocaltea --- .../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>; + }; + };