Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1363421lqh; Mon, 6 May 2024 05:49:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUfvwztCM4S8XcARUtVpX71YdQ24CMNkQpXUnMCvW2E2KhDfLJyXd5lyKlVjvY3ls+R34QAp8VKVewx4chNw+/Ug8N/wHFON2Ey6NWZew== X-Google-Smtp-Source: AGHT+IFOA/D/9Zq0lK0GFq8RgKU3YpFYhI/YMNkoslx098j4n7eTRCmzEF4Sj+Ivufr5+wKPrj6r X-Received: by 2002:a50:bb0b:0:b0:56e:63d3:cb3e with SMTP id y11-20020a50bb0b000000b0056e63d3cb3emr6366911ede.41.1714999744144; Mon, 06 May 2024 05:49:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714999744; cv=pass; d=google.com; s=arc-20160816; b=0MKHMWAbxDDf0qsCpsWJ8rfceRwZ+N8wYEGnI/hrGECOTdPalZv8x020ObJoTIiDLa tBVsG7PKUArcxOa/VL2Amt0vOoCWQJ4Ol4H7c+MmNnA1gv4GYqfh8DX70ahwjAML42X2 wep3xTKf7Ro60ov6fQp+Hy1dCMZdkgJ4Ir8iW8mUxDz7qp6f1KbD6uZ6Li4Y/axkQlWo VqPJLjXLdPqQra+xVIk/M0VT9FHXDL3IedyLU33DT9+BgNCKsIp3keNDNDh4sHDws8nV 9KHPfImxRP+GsfRJef5JCeB6cvfDqYsfZWXcJMeUibHKri0HsFNVU4fGwR0hCp8kQ5Hf PyBg== 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; bh=T3kl1IWybwqMBoYkCefFyUY6DMtZTlgefMnILp+Cim4=; fh=kp5w/xnilFG3nMjeXpmuj4QLMC5c+vzmUEtMyubR/XQ=; b=tiJ34XPLHRegnLq9OcaIdcpk4aItoMwan+VFyD/nGGAG29CVGy9hGXEOjog9pE7yWa +OOretvIf0r0cQ5JkFtPFjHaNw1aheWQaS66fWckVo0ANfJFa0Zudtk4tn/iiGVFVX5+ rmmaj3qxCWFkX35/KopjmFfwSlz1SDlU6PP/ZtM1QJGR/gMtj73hefJZ6+mOXJHP2/Jz H/ybTcI8ujdg9GDIRD/Yb3CfXGJFekCKqsVq8wX7lOLSZhjdTWlRFt4+/G8xKEyIGoBW xSVzDuoqA8P0qvzQaAnsJamB0WkPp6voWUHT8WP/updcEgEWJ5LkuedUYwC1mDPz5xwN aoLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-169835-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169835-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v15-20020a056402184f00b005727c9a18a6si4702954edy.127.2024.05.06.05.49.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 05:49:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169835-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-169835-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169835-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id DC8F81F22EA1 for ; Mon, 6 May 2024 12:49:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD9336D1AE; Mon, 6 May 2024 12:48:52 +0000 (UTC) Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (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 EAEC153E16; Mon, 6 May 2024 12:48:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714999732; cv=none; b=DxRe299P42w0+8uWIH5sVVkl9GQXqoudMUClUMFsgTw+k5JPBS7UUT/oC191XWupJWrEvoS/IIJduoSreJUQIL1RXdxyfpHCIajk3gF1WjXoN72zL8ZY/VQ8Zt09kt1YrT8K+Kg/uVGi1ElOCgNGESlSGDuIu8j2RUBHzqeWBco= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714999732; c=relaxed/simple; bh=Og4HlXO3/GTYVOvdedpnxQxrFS61b0AKaryspH6D+bk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=G7gn6gbSyNC34ja/w5/cZSXat/nYPLMiE09ZgcStelUmAdEZGEal/FRJYOxmA7cPDNMli2/AGpvK5dBl2t6+kM93+gQDazEtd4LtWvl9upb0SboDI1X2d+XrrcJXDYbLSGsP/6Hy/MZebccqVIylSdZeS5qsm6CN4nYCjPcR+So= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from i53875b5d.versanet.de ([83.135.91.93] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s3xlt-0005vc-3T; Mon, 06 May 2024 14:48:45 +0200 From: Heiko Stuebner To: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: quentin.schulz@cherry.de, heiko@sntech.de, 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, Heiko Stuebner Subject: [PATCH 1/2] dt-bindings: phy: Add Rockchip MIPI CSI/DSI PHY schema Date: Mon, 6 May 2024 14:48:35 +0200 Message-Id: <20240506124836.3621528-2-heiko@sntech.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240506124836.3621528-1-heiko@sntech.de> References: <20240506124836.3621528-1-heiko@sntech.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Heiko Stuebner Add dt-binding schema for the MIPI CSI/DSI PHY found on Rockchip RK3588 SoCs. Signed-off-by: Heiko Stuebner --- .../phy/rockchip,rk3588-mipi-dcphy.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/rockchip,rk3588-mipi-dcphy.yaml diff --git a/Documentation/devicetree/bindings/phy/rockchip,rk3588-mipi-dcphy.yaml b/Documentation/devicetree/bindings/phy/rockchip,rk3588-mipi-dcphy.yaml new file mode 100644 index 0000000000000..01c13656de835 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/rockchip,rk3588-mipi-dcphy.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/phy-rockchip-mipidc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip MIPI CSI/DSI PHY with Samsung IP block + +maintainers: + - Guochun Huang + - Heiko Stuebner + +properties: + compatible: + enum: + - rockchip,rk3588-mipi-dcphy + + reg: + maxItems: 1 + + "#phy-cells": + const: 0 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: pclk + - const: ref + + resets: + maxItems: 4 + + reset-names: + items: + - const: m_phy + - const: apb + - const: grf + - const: s_phy + + rockchip,grf: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the syscon managing the 'mipi dcphy general register files'. + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - reset-names + - "#phy-cells" + +additionalProperties: false + +examples: + - | + #include + #include + + mipidcphy0: phy@feda0000 { + compatible = "rockchip,rk3588-mipi-dcphy"; + reg = <0x0 0xfeda0000 0x0 0x10000>; + clocks = <&cru PCLK_MIPI_DCPHY0>, + <&cru CLK_USBDPPHY_MIPIDCPPHY_REF>; + clock-names = "pclk", "ref"; + resets = <&cru SRST_M_MIPI_DCPHY0>, + <&cru SRST_P_MIPI_DCPHY0>, + <&cru SRST_P_MIPI_DCPHY0_GRF>, + <&cru SRST_S_MIPI_DCPHY0>; + reset-names = "m_phy", "apb", "grf", "s_phy"; + rockchip,grf = <&mipidcphy0_grf>; + #phy-cells = <0>; + }; -- 2.39.2