From patchwork Thu May 9 12:07:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13659693 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 024B9C25B77 for ; Thu, 9 May 2024 12:07:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8B7B110E661; Thu, 9 May 2024 12:07:34 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ZL7+LwIH"; dkim-atps=neutral Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) by gabe.freedesktop.org (Postfix) with ESMTPS id DBD6910E4E8 for ; Thu, 9 May 2024 12:07:28 +0000 (UTC) Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2e0b2ddc5d1so9194801fa.3 for ; Thu, 09 May 2024 05:07:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715256447; x=1715861247; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BojjtcE4PW8Jg2RRLDbuh20R8FtUvCT6KeHyvo0GHNo=; b=ZL7+LwIHXkco5MemxCslIZ6NeIkTDutEoHIvB/sV3ujJOUfkQ9sK4JPpyDeZAV1jfq 2Edrl5uCTzwrpY+i8bcNZx6Y87iiJS3ACiZ0Ed2j8BGLcEjedm1dgMQuiDNkT0JUuQx+ 2gZFf8DZ3/xDlqAPKSCqWroqMh1Svws9ZUFTP7dh1Sm4Qii+UN9Rbk+rhHnJzwYNJ3Gc IXtrIP7xGdPSWABUVLgQJC483I554RpKDlRaoyNdOR1GjxUIxmRjOjWzrbU/5hIIOgpq swGuUtRlWsh409fPlu44YB49QdhAaShMs3mZ3HGlTVdbwXbC+dqSGUoo/gSXmFxhsKfh G4tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715256447; x=1715861247; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BojjtcE4PW8Jg2RRLDbuh20R8FtUvCT6KeHyvo0GHNo=; b=iMMMc1taMQFNUsBf8ijwzjqHxXZsWVpDi9rRaFPJT/edz49BVSsamsm8tpoqbk6L1u s0blOAZA21R2jtPetDRRlP5No0ufUeApCfdMN20n+ro8poNUuVFxeTuYx3kqm8wlvOGD Zo9w3QKtyH4AM/wc76xZr65ev2PcTXO4dJP0cUkRJUOg+gy9hbZLO91M+rzvtR1gIFWL fNvV42C6VOJGQRnklXcTdjKgN6/+xAf8h3VgLiBS/f6YZNY4EiopIHoozpi0M15utVIH 1+Q3MBxdZRU9lbriQt+dHtSyrwdt4MQ2mxVEToDZr54LP2OuVyCc3AoCR1FYVLtCB05i uqtQ== X-Gm-Message-State: AOJu0YzatoysWlfbmGTTFrsr4k0R8fHdxA4PrGnnt3+tdK0uDzcQU3R/ YRtH60vjQCC3vcRHTSjJE6Zw7c6a6IAZUcqYP0WJomqBH9qYpY+pnww1 X-Google-Smtp-Source: AGHT+IE4TX6luDFQmraVbsCSCIhJfzYELnpsZujXaSoQ8waQa95ruXUBJvJ/gqlTIZi6yx2evpmhPA== X-Received: by 2002:a2e:9983:0:b0:2df:c0c7:9046 with SMTP id 38308e7fff4ca-2e4479ba923mr37325681fa.35.1715256446939; Thu, 09 May 2024 05:07:26 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:b44:d8c3:6fa8:c46f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fccce1912sm24112005e9.11.2024.05.09.05.07.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 05:07:26 -0700 (PDT) From: Alex Bee To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Alex Bee Subject: [PATCH v2 6/7] ARM: dts: rockchip: Add D-PHY for RK3128 Date: Thu, 9 May 2024 14:07:14 +0200 Message-ID: <20240509120715.86694-7-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240509120715.86694-1-knaerzche@gmail.com> References: <20240509120715.86694-1-knaerzche@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The InnoSilicon D-PHY found in RK3128 SoCs supports DSI/LVDS/TTL with a maximum transfer rate of 1 Gbps per lane. While adding it, also add it's clocks to RK3128_PD_VIO powerdomain as the phy is part of it. Signed-off-by: Alex Bee --- changes since v1: - also added SCLK_MIPI_24M to powerdomain - reword commit message arch/arm/boot/dts/rockchip/rk3128.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index fb98873fd94e..fbd95bb08cd3 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -216,6 +216,8 @@ power-domain@RK3128_PD_VIO { <&cru ACLK_LCDC0>, <&cru HCLK_LCDC0>, <&cru PCLK_MIPI>, + <&cru PCLK_MIPIPHY>, + <&cru SCLK_MIPI_24M>, <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru ACLK_VIO0>, @@ -496,6 +498,18 @@ hdmi_out: port@1 { }; }; + dphy: phy@20038000 { + compatible = "rockchip,rk3128-dsi-dphy"; + reg = <0x20038000 0x4000>; + clocks = <&cru SCLK_MIPI_24M>, <&cru PCLK_MIPIPHY>; + clock-names = "ref", "pclk"; + resets = <&cru SRST_MIPIPHY_P>; + reset-names = "apb"; + power-domains = <&power RK3128_PD_VIO>; + #phy-cells = <0>; + status = "disabled"; + }; + timer0: timer@20044000 { compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer"; reg = <0x20044000 0x20>;