From patchwork Thu May 9 14:06:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13659765 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 5F317C10F1A for ; Thu, 9 May 2024 14:07:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 19FC610EA54; Thu, 9 May 2024 14:07:02 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="aZlDbvvR"; dkim-atps=neutral Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6DB8910EA54 for ; Thu, 9 May 2024 14:06:59 +0000 (UTC) Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-346359c8785so651579f8f.0 for ; Thu, 09 May 2024 07:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715263618; x=1715868418; 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=wbWVkqkhZ2d0PkibWvpex0qMFtjGLxAjIIoCdT+E/c8=; b=aZlDbvvRsVifX9/2Lkae2KDEENlWF/sA+wnPWqPB9lNzhYsaXUr+Yfh9gz11AIBTQP fEAIkl19cebOtQRyHySlVqX9vSMxWprW6PxHQHvlZ3AGDXz7Vb0Dd7b+ywImxFN0ar05 RvlC6NK5//MmU6PypnpEXCz1B3/nEWHh4LMCvLBI8jJlj13kaJVXddthnBGHHaPYkQ9R lc5OFFkMrpVxCOsMrPrlR2hSakRu/W7aV2TgDkK2YYcQq5HKJEpPxeojPEaz/mdRlQZC nLQ5f78ZnCefdClqxeXjS8gx0pkzHf0yRpPqLdBQBFQNbE0n6HgGEFwmrnW90KfzaTAl jIdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715263618; x=1715868418; 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=wbWVkqkhZ2d0PkibWvpex0qMFtjGLxAjIIoCdT+E/c8=; b=CoC02GFd6qHleoEPxpmJTcICg2Z1NgDQzcpveytxdaTlxyDFOS4z37fQ39nNfoT1pc ThkzuCiRRHVh7jX5zK/9eXJ7zscZeGLy5fvEU5SOviydFz0gM5LRBrru3377nQ4FfSVU 4uGc3hfyoKIz0wDDhM/IX9/4mvVmWSZDYssLPYqKrVBC+50s5pzNFE/C9MoZ4xoU7YvF h4HfDDIh2fBOplTRUTI6AFNarJnnQ1A2ypw1atosbAx2geN6vTx+t4A/Y5ZQ80t1Rlps vwXQgMNYK0EeHXGmNDeoKbkm3w7u+pKUJRFwQRVk0LOPqT+B4+RW3KICF/dRsGd08MT4 qQig== X-Gm-Message-State: AOJu0YwqFP6ur3R1+TP5ikN7bK5qK6fR2xpCn86CCfq0YRL6yQ2NkDZj nuKkLP78s6WvZAqsADFwqigJgyL3ZbML/vVjytIHsqlvWb70yfY= X-Google-Smtp-Source: AGHT+IGJGV6bFqKBadGxqXhAzkF2pE6cCKZpD95eQc6VzdGRYvOXM2SRAFICzVxoDStLNZJ7jxAXuA== X-Received: by 2002:a5d:6e8c:0:b0:34d:8c1f:3194 with SMTP id ffacd0b85a97d-34fcafcd7afmr3768024f8f.35.1715263617622; Thu, 09 May 2024 07:06:57 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:b44:d8c3:6fa8:c46f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad058sm1793311f8f.66.2024.05.09.07.06.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 07:06:56 -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 , Conor Dooley Subject: [PATCH v3 1/7] dt-bindings: display: rockchip, dw-mipi-dsi: Document RK3128 DSI Date: Thu, 9 May 2024 16:06:47 +0200 Message-ID: <20240509140653.168591-2-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240509140653.168591-1-knaerzche@gmail.com> References: <20240509140653.168591-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" Document the MIPI DSI controller for Rockchip RK3128. The integration is similar to PX30 so it's bindings-constraints can be re-used. Signed-off-by: Alex Bee Acked-by: Conor Dooley --- changes since v1: - added ahb clock changes since v2: - revert added ahb clock .../rockchip/rockchip,dw-mipi-dsi.yaml | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml b/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml index ccf79e738fa1..ccd71c5324af 100644 --- a/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml +++ b/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml @@ -15,6 +15,7 @@ properties: items: - enum: - rockchip,px30-mipi-dsi + - rockchip,rk3128-mipi-dsi - rockchip,rk3288-mipi-dsi - rockchip,rk3399-mipi-dsi - rockchip,rk3568-mipi-dsi @@ -77,6 +78,7 @@ allOf: contains: enum: - rockchip,px30-mipi-dsi + - rockchip,rk3128-mipi-dsi - rockchip,rk3568-mipi-dsi - rockchip,rv1126-mipi-dsi From patchwork Thu May 9 14:06:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13659766 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 46BA2C25B4F for ; Thu, 9 May 2024 14:07:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D533710EA6C; Thu, 9 May 2024 14:07:02 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lqmT7McJ"; dkim-atps=neutral Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by gabe.freedesktop.org (Postfix) with ESMTPS id F206010EA54 for ; Thu, 9 May 2024 14:07:00 +0000 (UTC) Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-34dc129accaso625442f8f.0 for ; Thu, 09 May 2024 07:07:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715263619; x=1715868419; 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=CkypWPW9zjRDxFdsbSAq2JqA2c+afHrqHIvisMDjIts=; b=lqmT7McJxZiYjyMrrKEwpFZzhuU9CwQR9UCXHhVtfc26mmGzCpwK+l11Eie36Q/i0C t1blfH4Pr4ufHRuZWE4p5Gha770aKk0bSRzKo2qLUPXzsh7rCpgk3NR2Q9GiIjuMaT2J DOg1Mtcn99Vbq8jOlpPLgssOZPfzgy+wGQd+ErI1S2e6VBJ6x5WfcuzEwJZvB8MNfiE6 lX8kq7msXBcVBgXKZRjSyu5RogNcUnP5uH568FGFc8caN6Bibxt5C5jlkOIKjoF5txGx Xn0y1t6xXrDJdzj4Oibhq0t4i2w/Yn38Poyg/IJaoA5TQYlVjQKCgI9cRzpsfq76/BRV v9/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715263619; x=1715868419; 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=CkypWPW9zjRDxFdsbSAq2JqA2c+afHrqHIvisMDjIts=; b=LYLCchitdiirAgxHTWs8/dyWl9ukFuePfZp03bUO4TKKxTOrecfbDI2sMzop8H0YkR oMLDU5S67rbpuudPSIGEFFE6tgm9Xkhc56u0x6LaQlGp1m0gW4mesREUMQhyQOBdI3Gq y+U4bg43oxdFzHEntjx7NqLDPLkETKfSTDtVA24i7HdvBb2Tkx0LzbKKa9LGp9I7XJVR s6RIRCOrE+9afzJscqmWjqmowCgoLrZ90f3w/zhaBwsFk1qMaol1u4o0p54i9jMWl1z7 TUulJzkVGWxBzX4XNyNvTvrvEOSDBvWz07T0LtPieLV/6wSW5gNLz0tW+FW0sWbZ4MWx mr1Q== X-Gm-Message-State: AOJu0YyOsoElSZI672n49Wz6PjDEJ20jbsKcA8q9NmhSJzFNEXWlrU5F FaOBl9dmfNwaN3BpNPIlm/1Uaq6Q7l404Kju9NrdPr1uC2eCO9E= X-Google-Smtp-Source: AGHT+IFqb5Butmg/XL3s32gTYjgv+S8OXC4Ust9AbxM9joeLAhE7w7QJYm4NxRM4exE+Z+nqR7jOZg== X-Received: by 2002:adf:e904:0:b0:34f:7788:37ef with SMTP id ffacd0b85a97d-34fca244116mr4586628f8f.29.1715263619359; Thu, 09 May 2024 07:06:59 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:b44:d8c3:6fa8:c46f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad058sm1793311f8f.66.2024.05.09.07.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 07:06:58 -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 , Conor Dooley Subject: [PATCH v3 2/7] dt-bindings: clock: rk3128: Add PCLK_MIPIPHY Date: Thu, 9 May 2024 16:06:48 +0200 Message-ID: <20240509140653.168591-3-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240509140653.168591-1-knaerzche@gmail.com> References: <20240509140653.168591-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 DPHY's APB clock is required to be exposed in order to be able to enable it and access the phy's registers. Signed-off-by: Alex Bee Acked-by: Conor Dooley --- changes since v1: - none include/dt-bindings/clock/rk3128-cru.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/rk3128-cru.h b/include/dt-bindings/clock/rk3128-cru.h index 6a47825dac5d..1be455ba4985 100644 --- a/include/dt-bindings/clock/rk3128-cru.h +++ b/include/dt-bindings/clock/rk3128-cru.h @@ -116,6 +116,7 @@ #define PCLK_GMAC 367 #define PCLK_PMU_PRE 368 #define PCLK_SIM_CARD 369 +#define PCLK_MIPIPHY 370 /* hclk gates */ #define HCLK_SPDIF 440 From patchwork Thu May 9 14:06:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13659769 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 8B272C25B10 for ; Thu, 9 May 2024 14:07:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E293510EA97; Thu, 9 May 2024 14:07:09 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WzHO7Ivu"; dkim-atps=neutral Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7FC2F10EA6C for ; Thu, 9 May 2024 14:07:02 +0000 (UTC) Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-34dc129accaso625457f8f.0 for ; Thu, 09 May 2024 07:07:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715263621; x=1715868421; 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=lAJ0ir3EvsiOixSkrLpbfd6IrLvM1qhtQ0lJENdLIss=; b=WzHO7Ivu5FYSBQuIctyaRE9qneBhhLKFUlfBmi1pBFli4EnLhzlwn7Ffxa/1GvJsf9 ObboNmyfHqnWh7hmhmdvsbBZeFoIxOQ65X6lFy8ZbtFke01DSowJsHcUJv6wfjhoT/z9 TfMtemGoD2tgA/fLW30LCRY/j+u1FhbE4gtrr7j9Anh3aCgB+rUBK3bnhc4Jl6Pm72TO PMgr7FdHMY4bf+93NOtPUilYiArN4+8u4DpR+zceqR5Fbnxx3po7Qz89P2VRCyvW4GNw LKaRZigAR/7IIjgSQgN0oQWn5HiQlYb6bNrXeVJBQ0bT7exEqg9Am+Twq+mDU/vTRzvx G0tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715263621; x=1715868421; 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=lAJ0ir3EvsiOixSkrLpbfd6IrLvM1qhtQ0lJENdLIss=; b=GQ05k81jfYXn4JmCbk0FqkspVQyVH3LHxEmifey0Tuttfil7SPVXqFxRssoGAdXmpC I8wt0Qchw4YkQn+AfbKektbTBAhbZxQSdXZEESUp2MFANrw422jY+Ca5oJs1uhTCSd22 iFDQZkOpH2h3jZQ/I1rndbeifYMMuwDNzZblRfdep4EvFHe5NZE8XXtfAK64SQ7DQEef RnmXUCjQ6/jE6MoXg5VIsh835sLCuDVDRQquzq53k3GUNVaQpoLK5jBto95be9BibJq5 ZIMNRJmeXsIfzHUalg5hR00wgGLjD6ES5jc3j/5HJ5HJmAFrtU8fGiM0rW+pM8vWnkT6 1btg== X-Gm-Message-State: AOJu0YzIyV6/mJ+KpJSv3vioJfJTzJceRaMrMcT4NmlUhXAilBiKjlSA uZ4124gf0lGnlqZBaFBUrRyIs75/M+gD/IRdeQRN3UhdVPO1VH8= X-Google-Smtp-Source: AGHT+IGDm2zqiPzTsp+rCVEziHjhfj96YGRsnuCAnq5URS0U33f4RSu428fC/l+DFwekkggv2NMBOw== X-Received: by 2002:adf:fa07:0:b0:34d:b4db:9927 with SMTP id ffacd0b85a97d-34fca6214femr4085933f8f.50.1715263620665; Thu, 09 May 2024 07:07:00 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:b44:d8c3:6fa8:c46f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad058sm1793311f8f.66.2024.05.09.07.06.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 07:06:59 -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 v3 3/7] clk: rockchip: rk3128: Export PCLK_MIPIPHY Date: Thu, 9 May 2024 16:06:49 +0200 Message-ID: <20240509140653.168591-4-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240509140653.168591-1-knaerzche@gmail.com> References: <20240509140653.168591-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" Export the D-DHY's APB clock for usage in the DT. Also drop the CLK_IGNORE_UNUSED-flag, as the clock will be enabled on demand. Signed-off-by: Alex Bee --- changes since v1: - reword commit message drivers/clk/rockchip/clk-rk3128.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3128.c b/drivers/clk/rockchip/clk-rk3128.c index 75071e0cd321..a20d1fd25e2a 100644 --- a/drivers/clk/rockchip/clk-rk3128.c +++ b/drivers/clk/rockchip/clk-rk3128.c @@ -526,7 +526,7 @@ static struct rockchip_clk_branch common_clk_branches[] __initdata = { GATE(PCLK_ACODEC, "pclk_acodec", "pclk_cpu", 0, RK2928_CLKGATE_CON(5), 14, GFLAGS), GATE(0, "pclk_ddrupctl", "pclk_cpu", CLK_IGNORE_UNUSED, RK2928_CLKGATE_CON(5), 7, GFLAGS), GATE(0, "pclk_grf", "pclk_cpu", CLK_IGNORE_UNUSED, RK2928_CLKGATE_CON(5), 4, GFLAGS), - GATE(0, "pclk_mipiphy", "pclk_cpu", CLK_IGNORE_UNUSED, RK2928_CLKGATE_CON(5), 0, GFLAGS), + GATE(PCLK_MIPIPHY, "pclk_mipiphy", "pclk_cpu", 0, RK2928_CLKGATE_CON(5), 0, GFLAGS), GATE(0, "pclk_pmu", "pclk_pmu_pre", 0, RK2928_CLKGATE_CON(9), 2, GFLAGS), GATE(0, "pclk_pmu_niu", "pclk_pmu_pre", CLK_IGNORE_UNUSED, RK2928_CLKGATE_CON(9), 3, GFLAGS), From patchwork Thu May 9 14:06:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13659768 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 C3DFAC10F1A for ; Thu, 9 May 2024 14:07:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 895F510EA96; Thu, 9 May 2024 14:07:09 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="dmGSghZb"; dkim-atps=neutral Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by gabe.freedesktop.org (Postfix) with ESMTPS id AFFC910EA96 for ; Thu, 9 May 2024 14:07:03 +0000 (UTC) Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-34d9c9f2cf0so725664f8f.3 for ; Thu, 09 May 2024 07:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715263622; x=1715868422; 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=W7sDaxG0HvtHzdSFKGwBhhlzSS8/ejghi2usyHe6yIk=; b=dmGSghZblw/OmynoUti6PPa7I91jokCCvjHGS3Pk8+H0uIyUUC5l4o0HXD1sFH9wHl AoA6dgS1tArscyo15e4XoHQOTAiD9ZQps5G3qCVXeuMX4RGzLiqwIKV+Hdo2uYlN/U2l XAgC1OGq9K4Z750d5B0Z4stw7toQHdSZO7Wch1cxj9Ve0dKgqMgq+0EZKxHq40wRuvOv aOwNVMJ5tmnFKaGRxyHJkL9rZpIlQloaZ5AKnyvHrPrRpZKNlHomO/0SR9OI9Ox3wDOt ZF7/tSEB6jdrIHHVOE6XTQC9jXYZ+fuuzyB0//m1AnTvUKJ0Hs7KLGq45uSifeCtsJQq vcVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715263622; x=1715868422; 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=W7sDaxG0HvtHzdSFKGwBhhlzSS8/ejghi2usyHe6yIk=; b=ZtTBw3lTl7l57ZiL/T2lv4rERS7Qh70Hx+m9G3npH8amSvp3lwuiuxOUjnfR0SRTka cuVpXSc4aaGixPOpqCEHQKlBwFXJZTOHexe24+yxayX9fetJ9z+3yQQh39X2DEFskbnG p2Ha7P5pOggpIHnOSU+Zvwr0mAvmF65WwIs0Bk5z1DQ03IgS2j0nC8sYAPIylhOUlwZn /oO0K2iS3a6ZjKlTvzKzWX9hk5N4TV8zmr1xr2NlYUiUjrFuS6wxJnbP7ZVMXE+sF4lD 60aMGig7y4VHNg67IhVAqlhJyoZ6VdbJ+O9lAhqVlfzPKUgfyO5LLkm6+/0VWAxUTCE9 5q3w== X-Gm-Message-State: AOJu0YzHTAJxLJib44tIH8nhQnmOLg1yXVssOa8YnJLchpCVwKaVUsBg NkIRj+8shxxhzIiOOZxoXM43qG1hvfSRuy7YdvX03tfSPU21skM= X-Google-Smtp-Source: AGHT+IFljPNeI2NnGG45C+k3hGACkIN7MrrcjptnJgVqnmjgLGPcaqegGP1B5NCUyh20R+F22xanOQ== X-Received: by 2002:a05:6000:120d:b0:34d:8fac:9540 with SMTP id ffacd0b85a97d-34fca80df25mr5625135f8f.59.1715263621985; Thu, 09 May 2024 07:07:01 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:b44:d8c3:6fa8:c46f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad058sm1793311f8f.66.2024.05.09.07.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 07:07:01 -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 v3 4/7] clk: rockchip: rk3128: Add hclk_vio_h2p to critical clocks Date: Thu, 9 May 2024 16:06:50 +0200 Message-ID: <20240509140653.168591-5-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240509140653.168591-1-knaerzche@gmail.com> References: <20240509140653.168591-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 DSI controller needs this clock to be enabled in order to be able to access the registers. Make it critical for that purpose. Signed-off-by: Alex Bee --- changes since v1: - dropped patch changes since v2: -re-added patch drivers/clk/rockchip/clk-rk3128.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk-rk3128.c b/drivers/clk/rockchip/clk-rk3128.c index a20d1fd25e2a..d076b7971f33 100644 --- a/drivers/clk/rockchip/clk-rk3128.c +++ b/drivers/clk/rockchip/clk-rk3128.c @@ -563,6 +563,7 @@ static const char *const rk3128_critical_clocks[] __initconst = { "pclk_cpu", "aclk_peri", "hclk_peri", + "hclk_vio_h2p", "pclk_peri", "pclk_pmu", "sclk_timer5", From patchwork Thu May 9 14:06:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13659767 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 16054C25B10 for ; Thu, 9 May 2024 14:07:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A0F7610EA8D; Thu, 9 May 2024 14:07:06 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lsePVrKl"; dkim-atps=neutral Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0AC2A10EA8D for ; Thu, 9 May 2024 14:07:04 +0000 (UTC) Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-34de61b7ca4so600047f8f.2 for ; Thu, 09 May 2024 07:07:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715263623; x=1715868423; 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=gG8NnG9MCxt3FCrGHfY+CHmnXlhVbyAkGBrDmW81e5k=; b=lsePVrKl0s3wgxsPzW+0V0D6qdnC4y3NU5iuGppOu0IBeKYmKbzyIwBboR5o7T3Grb 4dOyZQtSGyz6Qi9mQJOSazHNT90lPGAm2mutectLmCtbnSYIsmo05KPMCyitWZRHc1tv 36nDz93k5h/u7SJqMtBpNpxzfQqDqkK52Bglf0nWcT2lOeCSvDUaxT539wAkoYN4rOK7 OuhaYtEyDzzyIMYNskEX8y7Uita2n0FSdstVXO/ko4yqdfbQ1/fL+q+l0aXDJ+6NP0jp E3mGGlvg+YZLORBKrjS9spgQx5lqdYalAECl1AVKKLhKdNyr7wGq4+rvBeExZznJnvsW r8FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715263623; x=1715868423; 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=gG8NnG9MCxt3FCrGHfY+CHmnXlhVbyAkGBrDmW81e5k=; b=i8jqgBqxyatZd5urj8B1NZWc0vqi4g3xS9id6Vb/VDGGzTcQnF0XfZyVFOl1ubUh5E qPeyrJk/DQDSkyEt2R+x3dh8W7TBJ/HHCdzDJ4QHUSoyTmYMz5EUJfilZZOi5pgXH51T ejqCZTpSILkWt+1tDUfcGRRn3SIKkdc+gbnzRqOQSpA9uMn64AZtSA+o6KWbZ8gK43Oz YadmGMveZjuQbMAaabbV11HW2xzy+f+l0lJ+ZOY7hOOxAsH3I1Itl6YxCiv4zHdDxHzh 3oqFPGENTw/W1rb0q+H1a8x2gg8f7OPBhLNIlV4HyYbTZhLyxCs6NkyA9woglXczHWgf OIyQ== X-Gm-Message-State: AOJu0YwZ7V+Uijnti5AJgqzUpz+yIcioKPgbrZ33HSs8Z3wmSZkFr6JW pNvAUl2lYE8eaElPiCyo1snnmrZXHg0jzCalQkVh9+o7E8s0gjM= X-Google-Smtp-Source: AGHT+IF638N9r8RenDUS5cIi1bm0ckYuTr7cNtt0tRexV/Fy7f9WgU1uTe9kWso6VR3HVhKQKBvSlQ== X-Received: by 2002:a5d:68c8:0:b0:34a:d1d4:cb3c with SMTP id ffacd0b85a97d-34fca6233aamr5597109f8f.39.1715263623270; Thu, 09 May 2024 07:07:03 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:b44:d8c3:6fa8:c46f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad058sm1793311f8f.66.2024.05.09.07.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 07:07:02 -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 v3 5/7] drm/rockchip: dsi: Add support for RK3128 Date: Thu, 9 May 2024 16:06:51 +0200 Message-ID: <20240509140653.168591-6-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240509140653.168591-1-knaerzche@gmail.com> References: <20240509140653.168591-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 DesignWare MIPI DSI controller found RK3128 SoCs supports up to 4 DSI data lanes. Similar to PX30/RK356x/RV1126 it uses an external D-PHY. Signed-off-by: Alex Bee --- changes since v1: - none .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c index 4cc8ed8f4fbd..58a44af0e9ad 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c @@ -153,6 +153,11 @@ #define PX30_DSI_TURNDISABLE BIT(5) #define PX30_DSI_LCDC_SEL BIT(0) +#define RK3128_GRF_LVDS_CON0 0x0150 +#define RK3128_DSI_FORCETXSTOPMODE GENMASK(13, 10) +#define RK3128_DSI_FORCERXMODE BIT(9) +#define RK3128_DSI_TURNDISABLE BIT(8) + #define RK3288_GRF_SOC_CON6 0x025c #define RK3288_DSI0_LCDC_SEL BIT(6) #define RK3288_DSI1_LCDC_SEL BIT(9) @@ -1493,6 +1498,18 @@ static const struct rockchip_dw_dsi_chip_data px30_chip_data[] = { { /* sentinel */ } }; +static const struct rockchip_dw_dsi_chip_data rk3128_chip_data[] = { + { + .reg = 0x10110000, + .lanecfg1_grf_reg = RK3128_GRF_LVDS_CON0, + .lanecfg1 = HIWORD_UPDATE(0, RK3128_DSI_TURNDISABLE | + RK3128_DSI_FORCERXMODE | + RK3128_DSI_FORCETXSTOPMODE), + .max_data_lanes = 4, + }, + { /* sentinel */ } +}; + static const struct rockchip_dw_dsi_chip_data rk3288_chip_data[] = { { .reg = 0xff960000, @@ -1670,6 +1687,9 @@ static const struct of_device_id dw_mipi_dsi_rockchip_dt_ids[] = { { .compatible = "rockchip,px30-mipi-dsi", .data = &px30_chip_data, + }, { + .compatible = "rockchip,rk3128-mipi-dsi", + .data = &rk3128_chip_data, }, { .compatible = "rockchip,rk3288-mipi-dsi", .data = &rk3288_chip_data, From patchwork Thu May 9 14:06:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13659770 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 5CC13C10F1A for ; Thu, 9 May 2024 14:07:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 05F9E10EAA2; Thu, 9 May 2024 14:07:10 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Vi5FQc14"; dkim-atps=neutral Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) by gabe.freedesktop.org (Postfix) with ESMTPS id E831C10EA96 for ; Thu, 9 May 2024 14:07:06 +0000 (UTC) Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-51f60817e34so1124288e87.2 for ; Thu, 09 May 2024 07:07:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715263625; x=1715868425; 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=Vi5FQc14RvL3sOQumPYaqUTk48s0ehcZNymanTToRY/V/s3eImrZlTb9AzMtUTDNzQ XPsZfKN7JQVEDR2LLJ3Dq6KZ2TiXiumFN+qNLyILHxE2CXUU8LKZJlrFyWRYqGWP/6Cj 7+n6lwVZSKIZhvDYSX7jpNg4QaL2E9cDnArrwkehRBAaKmY49C/sUOGzZ+z+SRG4jzwX KfRbzvsbcG60ey4f/DD1btVQ4QYqHpJ9b7e4wJWEbpupSKMX7TYjXFLjnOTDBpTz/VAC V8Ovbv+fY9zqxZ8i+CUncG3uG5WjLvUo0Ddop8KJQuoz20KmW/vnObXRzPTVwgB47dno Oe5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715263625; x=1715868425; 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=EIQ40PLqrbRU9M49bAVF6MJrA9tpFQjviCDg827qwJgjfcFyZQLNBJwwZKrPCvCdZ+ ah+xPg+s28ITUZ8grdq881Vl0VTW10FFCm1YhqZy+lxmhJsVavzFphw6nOD0Ch81TVql SmisA02kZDMQmYyN6nHjtVDFvnsiF2B47SHT9m5qL10GkYwa9r8MD0lCFzX2FJFZYMw+ Rw6AawpDfZQQRfPKCkt8DeUq6kIVv1LzzwjW9PWw4Uc6I/DtxDevaHFBljHFRCjUhAux EuDjMQp9++teJ93STdmgBjN6QWtfbO/NP2s/AzyGXYgXgL1NC5fh9gP8d2PfOcRrzTDh o33Q== X-Gm-Message-State: AOJu0YxLg73+oeKsjmxl0rbN/nX2jjcn/IFt+peWS0D85o49ZuMa+T90 VUgrM7aTOtcJs9jHJrprQmGqfp4mDcX8RUeXfb/CJg0f4pozpOo= X-Google-Smtp-Source: AGHT+IHh+dso5MhBn431TAWM/uD/cNhYOwNyyWPRjGSzNSz1xBMrETqF5hbahKDBfppAyPHSKftcWQ== X-Received: by 2002:a05:6512:40a:b0:51c:c1a3:a4f9 with SMTP id 2adb3069b0e04-5217cd48861mr3707317e87.64.1715263624613; Thu, 09 May 2024 07:07:04 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:b44:d8c3:6fa8:c46f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad058sm1793311f8f.66.2024.05.09.07.07.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 07:07:03 -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 v3 6/7] ARM: dts: rockchip: Add D-PHY for RK3128 Date: Thu, 9 May 2024 16:06:52 +0200 Message-ID: <20240509140653.168591-7-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240509140653.168591-1-knaerzche@gmail.com> References: <20240509140653.168591-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>; From patchwork Thu May 9 14:06:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13659771 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 D2A5AC25B4F for ; Thu, 9 May 2024 14:07:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 012B110EAAD; Thu, 9 May 2024 14:07:10 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WD3ja1Su"; dkim-atps=neutral Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9D6FC10EA96 for ; Thu, 9 May 2024 14:07:07 +0000 (UTC) Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-34dc9065606so486695f8f.1 for ; Thu, 09 May 2024 07:07:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715263626; x=1715868426; 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=nuIg0rxmudwavGYdewcr3VwDoFHinfP7P23xo/y6UpU=; b=WD3ja1SuY6UKh+3XA70+Qn+I32Cnh36E46WAr7UeyR+6jeJt4frKRfHanB7CwhGFu8 6f5z7JhBYbhWY2CNd7pmQbS6u5Kr160zVXh3ZU4AWcPex0jjm3nfugUPHH+uzRkL1CJD C/RnTKBaMr8+a6WowKOW3FUiuJ1msdq7GOd2YKdcAZXgNr48nJwW84tIeaqiqE0QZSvl xAjfrxO2PKvttQN90ZxMPZ+Xb8EF6JWRaFy77D+hSVB4HWck+SeyatIGkJkU4qjBR9/f jL8pROUYyrw84DkL7DmUzHAyAYNb/55tpNJstelS+cg2n3fpHY2wV5WHByx0VL0FiTXz 9eVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715263626; x=1715868426; 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=nuIg0rxmudwavGYdewcr3VwDoFHinfP7P23xo/y6UpU=; b=MQz4ounf75UiM3RCJpvCjxwYGc+m5tMndltcfHuj5p1dq/SGKx3iKO4f7IDeGkFU06 PhVjSyI7SFvD6UlqB0o/2bHJhvo+9Twqx5aVMJtGv2EUdq1kQu5LLHnHKVPV9k8BYTuC IdukpYEAQ5x3nG9fEIQ2/BVyLJwHCl9d5C7mG3UYRTNUXHucmEHjStWlNmpkppbSwzSm v3d2Dhmd7KSAseoP4UlQi3zGcUr6xQ2DT9D5oD7k8XdXawfCSficMuv23n1ruAzm9pFK NycQaYuJBqeSS9nfnTmAZKWL0EwRAicSjwZ1+aV7w3goVwfcMeqmfQcwL8o+zjE5B7QK fXQg== X-Gm-Message-State: AOJu0YyqysUfB7EMUM5I494RT2pgv11uKl+LVOm2F1r7wDmhXDXPy38w XMZf7UfPh+pUx0lQMkhVcBw2TmBIiQ4VD7px5ZaNeaeNUryDzts= X-Google-Smtp-Source: AGHT+IGrYuifyNXu2UQb3DwjWFh9xvmk2vwwMGUSyNdVTWC6BwXLa/x62uQHm8HbCp9cEY6jEZx1eA== X-Received: by 2002:a5d:5604:0:b0:34a:6fac:6dab with SMTP id ffacd0b85a97d-3501812650emr2546256f8f.12.1715263625950; Thu, 09 May 2024 07:07:05 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:b44:d8c3:6fa8:c46f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad058sm1793311f8f.66.2024.05.09.07.07.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 07:07:05 -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 v3 7/7] ARM: dts: rockchip: Add DSI for RK3128 Date: Thu, 9 May 2024 16:06:53 +0200 Message-ID: <20240509140653.168591-8-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240509140653.168591-1-knaerzche@gmail.com> References: <20240509140653.168591-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" Add the Designware MIPI DSI controller and it's port nodes. Signed-off-by: Alex Bee --- changes since v1: - added HCLK_VIO_H2P as ahb clock changes since v2: - dropped ahb clock again arch/arm/boot/dts/rockchip/rk3128.dtsi | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index fbd95bb08cd3..7f2bf3e51082 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -277,6 +277,42 @@ vop_out_hdmi: endpoint@0 { reg = <0>; remote-endpoint = <&hdmi_in_vop>; }; + + vop_out_dsi: endpoint@1 { + reg = <1>; + remote-endpoint = <&dsi_in_vop>; + }; + }; + }; + + dsi: dsi@10110000 { + compatible = "rockchip,rk3128-mipi-dsi", "snps,dw-mipi-dsi"; + reg = <0x10110000 0x4000>; + interrupts = ; + clocks = <&cru PCLK_MIPI>; + clock-names = "pclk"; + phys = <&dphy>; + phy-names = "dphy"; + resets = <&cru SRST_VIO_MIPI_DSI>; + reset-names = "apb"; + rockchip,grf = <&grf>; + power-domains = <&power RK3128_PD_VIO>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + dsi_in: port@0 { + reg = <0>; + dsi_in_vop: endpoint { + remote-endpoint = <&vop_out_dsi>; + }; + }; + + dsi_out: port@1 { + reg = <1>; + }; }; };