Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1215217rdb; Fri, 19 Jan 2024 11:38:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNruC+nCq1i0yJBQGIIulzXkxmnSo/yIdK3ODjLd053byUQ5vRCb01ty0Xjcd2SMf7i2Jn X-Received: by 2002:a05:6a20:c206:b0:199:3b3f:25d8 with SMTP id bt6-20020a056a20c20600b001993b3f25d8mr352833pzb.61.1705693118178; Fri, 19 Jan 2024 11:38:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705693118; cv=pass; d=google.com; s=arc-20160816; b=SXH9ivrvYFoMSH28I1FUzGNjQSY7c2tgRtt2jwSIDz8nH2n2Ig95fHQFNwkamN2nKk iDj2205pbQooiH8uK5fsQZq1IFEUp1zvuD8baXzal5nRFhiBhE1E4pj+wozmqvgtXxyH PBbfZIjc64BF5q95fl7Djc/CYxEHK8txphdLE+LAfmsiYFHjkdgyyJSFZPo7tfHK2UPm eRgIZbUGNC81X8t46zM4QwKmXF7jvSMVkBj3bGxcY/QJ/TWyquhLDTGucOgd9bdN1v6d 8inTS4sQ5TqaLfsMfzbb2mP49BFhGlzS214p+snWVwwWfKE1pBf1DC/peo/na33EhZnA wQyQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=R5HagKBlWiYdLVMJ5gVcMbZVTaEsL6v8sgBebBADxkw=; fh=Urcef8n7zd40M+rUinLIxs/24e11jrUIqPRzjykypx8=; b=gk/VYgDw2TAWQkqhfCKLDR72nElIV+wa9D0vU2YCIsam4m0hjttquIFMQ6ytpwR9YQ lGIrVr36Cl9qgVQvhx/Sz3E76s//g2bLLVACe8h8SLXk6wwiDzss9PGqfd8u81KBcwoR Q9dIlpG0oc9RWjlbk1I/KBVAOawT4cXS3GfPsVumHNs10GMe40C10qirAn9bbEZM/V+l DU97iZf5DRkLKrvZclPv6VE2/+uZCXCtMKwfswiPDlxP6JBb9T0InPT470QtRpcAKAIg ezzKszi7yyjoGlRnQLQ4jdbupUeqH0yamT6vejoa+IW3cpAheXe47POYg3gwNi0C/411 37aw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Y7esV1ww; 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-31519-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31519-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fc27-20020a056a002e1b00b006da2ee05030si6323677pfb.222.2024.01.19.11.38.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 11:38:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31519-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Y7esV1ww; 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-31519-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31519-linux.lists.archive=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 D0CAB28710D for ; Fri, 19 Jan 2024 19:38:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2915B56B67; Fri, 19 Jan 2024 19:38:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Y7esV1ww" 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 EB8C71E4A8; Fri, 19 Jan 2024 19:38:12 +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=1705693094; cv=none; b=aXFNFLQl/Em26Jl1MpRJtdqNEvofqeKDUBXNwej857ry2FKGA5GMiOMNph15BvQuyM9wdHJYT4hcqUYa1uCTbHRc0zWx6uHYBV8DSHVSpU7iEYydHiW3W6KhPN6Jgd98aCjtFI9VcbuQlx22vTdkZonyoAY+i5jAj5PNSZUdPX8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705693094; c=relaxed/simple; bh=UiKN/wzt2VTmVDCklnrDfyuyegL48RVt7U2udrBOTgo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SH1a5yE6Q3gHJKv6T5vXTY9pqS2aWeGLZDQepj+pvXKDKhJYXFtQU6CevRsfaaw49/GNvBpwY2AkaFEIbCiVAIzCmbzOu04E8A0+cgHyX0eXk6+nxr9YR0ncJp2si+EnDUgYjcrnnh/qLp1iUdFFSAGSWMtsE/6ISzS5XcQ80RU= 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=Y7esV1ww; 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=1705693091; bh=UiKN/wzt2VTmVDCklnrDfyuyegL48RVt7U2udrBOTgo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y7esV1ww9FoQwrw6eE23ZrECWdlVd6hxgSo5ucA047ZlPDkVwLqejHHeT/MkkALxx JeC6QdY5IIQg+2DfATdq0jZ7p9T4oaXCq8F6CAC6TD/zXAiYOmu6O+XJwWOeBgm5R+ YnEj/qOUV79GykMJBV/2i2msA9yRplfM2Pszm3w1XyyF7w13Tk+3e+QtMdTyWX1RNb zPnM0Nk+hVC6q9VaRX7ZnYoNfSJf0kBgdVuyKfouAgbA9dRepyNCW2Ml0FMkfkXw5/ oyUibKwmOWkxjJ5zlzYJM+uKvfbEMjdRY9nkFc6ufBNaC34OzFWNoRL8iwRwjLBAUy nRfGe8JwfyJww== 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 205CF3782088; Fri, 19 Jan 2024 19:38:11 +0000 (UTC) From: Cristian Ciocaltea To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Philipp Zabel , Johan Jonker , Sebastian Reichel , Sascha Hauer , Andy Yan , Algea Cao Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH 2/3] dt-bindings: phy: Add Rockchip HDMI/DP Combo PHY schema Date: Fri, 19 Jan 2024 21:38:02 +0200 Message-ID: <20240119193806.1030214-3-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240119193806.1030214-1-cristian.ciocaltea@collabora.com> References: <20240119193806.1030214-1-cristian.ciocaltea@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add dt-binding schema for the Rockchip HDMI/DP Transmitter Combo PHY found on RK3588 SoC. Signed-off-by: Cristian Ciocaltea --- .../phy/rockchip,rk3588-hdptx-phy.yaml | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/rockchip,rk3588-hdptx-phy.yaml 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..dd357994ba1b --- /dev/null +++ b/Documentation/devicetree/bindings/phy/rockchip,rk3588-hdptx-phy.yaml @@ -0,0 +1,96 @@ +# 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/DP 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>; + + hdptxphy_grf: syscon@fd5e0000 { + compatible = "rockchip,rk3588-hdptxphy-grf", "syscon"; + reg = <0x0 0xfd5e0000 0x0 0x100>; + }; + + hdptxphy: 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>; + }; + }; -- 2.43.0