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: 13659758 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 6278AC10F1A for ; Thu, 9 May 2024 14:07:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xlqHfNAM7dDosZGJt7d1wM1Nbhw7l0tZ+aRQJNgICks=; b=r9GxABN/4Vw3Ww F8mk1IV4uxvYHvwDopDOYcbVAXwhSJ0pwIsLN/nS/EHUKK+WmL8xShdN8lSZsEvHgW9xZxPLWQWmx mOYhFB6DHi2OVKm53+KMpIGjNKbrn9oh/Mum+FV0y+w/rNwJFyaKFlfP05KH3o01od16mZJVXFALG pTnaySQIGhkXwNJQ/wV6qqv72CfwCxsAiytyqi9RqPcayo3xgJBsN9BNVmM5cJJCbdU29ET1G346M ELN81+yZmSWOR513E9crc1122cL2ouRHwc9m1DyJ+y81EAV6ltll1KbyzVXhze+NSuuxKNQqnYu9Q ByOfhALH6kKmjEZ8Hrjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54QV-00000001fHU-1iyx; Thu, 09 May 2024 14:07:15 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54QL-00000001f2X-02jR; Thu, 09 May 2024 14:07:06 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-41fd5dc04e2so3658385e9.3; Thu, 09 May 2024 07:06:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715263618; x=1715868418; darn=lists.infradead.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=d+KEPrDpMFNRG6o+quZ9ErgI9b/YlGipkDXwkxwcM2e6tlPIcakT628xEiIb0Wqbbx KXcr/ViscGvG8naxRdq16XwbJSfh8Ey3TxD0rMpxgxuYXU0qsWuOW6CJ2E7uM8jRPOko IdiJVxecxkN1+86HtI1Qk2O4Zjx98tdShYh8J9qqAMfE/cY0gTceQ1hti/RsNtZNHry9 PyiE40Z2XEtQTh9VFLBvw2FLkX5r8qt+o0EmjlRfkBoQEZaUyOzh+Wn5wLwbaAv9R9oz yV3vfiPzKgn7VuZjFBKK1DTLuAXbr+YEs7FA4acLFnn4LnfaNIqkh0paIMwUNusGShCc zFjA== 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=P6OOpDaQ0Q3z+NJwkZywbNfu+3gMpHgMnB/kHwSSyYGe8nYMrgrecCjIhB78qHxEzV Gx4IjqKfq0aTvGyJtu7ut/HjN0miMwPjq9+2bnQkPHfFxGN/aMxR2meQkx2MbK/rIRZy TPgpZobOR7qapwDMwBAbdQ9SAmZa159XlnbbMGUlSGDBJB1vomMTW8l6zOqkT39+CUvK Fq7BU/pmCp7U/AA5D0npsphyDLPw+wiVjM9ongU2q/B9tIdyIP/MudTOLPxZG1UIzRCT nnyPgU3CrCa6nrH8jV03+YXDLlhxHLYXtNn7+8zh6z61m6artEb9vcO1CdYrH+bFOKuh MgBQ== X-Forwarded-Encrypted: i=1; AJvYcCV0O7NnHuaRlZ6z1rb1FRg7GgSMVaZkk+VtHBetQm86k85+32suTY/At3K7GX2+A5LEa5VPCNfpNIlB9/Sjdys7tbE4c9UjMyUBFlcNs8W5dLXcrPsq+bcXl0IjDNa1ej2cXXHKpelRJCUbyMSIh7lC7yT1ya40+ac= X-Gm-Message-State: AOJu0YwFE89O3F/dLNe+foEc6OFpWJ1sv4u+MoVzndJBPU8vY/9gmg5V Re/F4bbpoQmeYJSP3f6bMzOqGeBxSfYhilwksmMjPTwO118BOnE= 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240509_070705_074311_DB5456EA X-CRM114-Status: UNSURE ( 9.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org 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: 13659759 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 EBDBEC25B10 for ; Thu, 9 May 2024 14:07:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RH3j4FP+/nqBSjcY1G4g2YtcN70rAD3DpK3beGxPJ6E=; b=GrhcAq8KoHBj+R MC1Our1BEvy/w6wKdW/NTxMkmWSrSEN3JMimWoHwUw/ZKBZ55GEt91WZWPNy23Jx6lxcbg1pgYvXd ZjcSsTmasFY47uPbh1nbaPonhNWi83UQaCNXEDtplsVNqG57uLgvuYohLQVfY5aryJIWREQ6I7hVR gBWm7gWiO2afiW99ft630o9XLnFULVJlwlbJpSxTK8pREtxpel6uQqDAvNfRYsBdBhAIGW4LiUdpZ nPn7z/JTj76J9yq7DWY4/mqJDivRnXMQLrA8+ReW2lsHuqw4yqEZheKjGWl9baQ2o+wCfq1XUBdcu XjwYKzqigoMVmDzDH93g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54Qg-00000001fSO-0lxX; Thu, 09 May 2024 14:07:26 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54QP-00000001f4b-2n36; Thu, 09 May 2024 14:07:11 +0000 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-34dc129accaso625443f8f.0; 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.infradead.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=IYIUk68CCi0xq9mNg/48t9nFWWUN50Ga/38xFfuHaIelEQOVETYwpv9RlCbWKHjvyX XRK8IWhVzBaG7b8xXEju/UGuBIwWDMHJjRtvfcs1ZAKrCH9QJm8G5Shncu9ECteEaVbE FtXZMECfCboB/vc+CmGc3JY8Af1UuRjWGDKuc0ZKmVznaa5KIHgqYroD8s/XFlgcHtHj A/NFd+Um6qzehqNokwIFECL638reTIggdaE1s6WIkK+je15dTGaJv5In4qqcge1YAGeY ZrBb2NlH67jME2stNphBDxyy2nLmprMxvJrNl6AwBfZ/Wsfk5yZmoKY9x57h2st+EeEB 9uqw== 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=APgJeH9ST7Fh0T92R4sS8kGX2uL4Tw+1QgjDBBY9uitQ6kBx/GNlBtfcAaG7JWij5D YtC91poT/yCMWiqa8CJDf/TXLyngQiQQkTL62L3X/reW43LS5j/ndfIHBSvN5LmV6ChF FkOckWHgSGUCK+onymnFVzZKADcCMGkVPQsfXKY7qo+ou3DtklSQXgKgXmOPd8B4asfw PHx2n9WuHGWIEaS+qLQWIf/0cfSnt/ZujCSYAvp1RGMX5oEOaF8JJ+E0GSDYzhUQCOWP 5J7ShheEHjbbzkulWPlu8CLr4wPR46aycuq/FJAp5REOW4YOPddXDP5cUl4HbboLbJPG Di3w== X-Forwarded-Encrypted: i=1; AJvYcCVfPWYe4VzDbQO3wl36deorhmdq9QM7P1As+5JDOTlxlWkFx4txyBjdVRtAEcdPyhCoYxZM0RDPhva33Jkv+IoFI75f9qxlnqUTV97DrsN/NdZ/OzzvQgUspznuHpC3SCvw5rrHtP/abRi8hrITJJjM1hiDxK5WFsc= X-Gm-Message-State: AOJu0YzcXN1MWPIGLJ0wDOF2SjdmAaPjfsoKuWpoU3yAJgFjXdD0KiHO T9E/nwSOOxin/6+YvYiWv+VXkps5s/7gRlLC9NENgLsuRiaQKdM= 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240509_070709_801777_8B4D59E5 X-CRM114-Status: UNSURE ( 9.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org 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: 13659805 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 CD886C25B10 for ; Thu, 9 May 2024 15:16:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=W37jaJgdZwjZ3Oe+NhP5ZzbfNpCPF7PU8RObF449rqI=; b=ksVL26DvnBBlwj mlwlLg1lPp3G9G/Yp6mTMCYFf0L9Fg/k8K4kFyRlTeWYIYiG6GSCoNwY63KjaszE0aDoHCiEqQ9Rl SDLzI3AWWzeh5IUhHLYxFm5Dz+5NS6UXnIoTeeSJuHhZr2caDX5ZmmZTDcfOIs4mDkaWI/bTMWbyT ahbbcgroz8n+IaMVkJzWFieYVTWZ1HhIOoftsHnwvALgTZBGv3z2olRyaJl/NX7MPiw/VFrLY++7v UYSt4Nqck9o54Y/d0+35OrKC044WIXQvXCYW6z3oBmDh6QzId0Z2aFTl2Oz/QGUPDz9lQXGK1QHcV kr98jLdmPHNNv8bZHlyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s55VV-00000001rAu-133j; Thu, 09 May 2024 15:16:29 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54QI-00000001f5D-101b; Thu, 09 May 2024 14:07:03 +0000 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-34c8592b8dbso700028f8f.3; Thu, 09 May 2024 07:07:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715263621; x=1715868421; darn=lists.infradead.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=l9YVvA8OeraO4YEAQWr2N9elhTqMES5trG5G3pmHvyQv62/V53vZkBVkBBp5X4RBr3 zbfuwkDdHyu0RGMawroDVPn8RCBN9Q7li5eljIgwc05vOgDmthmEgZ2bFGzZt65uUpkA BYrFMWQOXMomlBptNTbpo9/KWXD41uGmwpa9olmm05QoATyKiNOsm3MT1/VbQJ6lIHjp mpNfL4+XExfmNRYjGdKljAdvdtKdnFuOmlgRnKIvMtAJ39Yy6DUVY1T5Oy0KTAgawy01 rbK5zGHjzpLw65Flf3HI/jxGT8fWafN9nYeORphufFCFL4Ik4B8wgUwlYYWYrXqmb3zw NZpg== 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=jd8rfzqcdvTvwHgjLe4PqRE3uTeVVMuTjGQpJhxQhwrS4viQ/hSjI5shcpSb/kV1y/ 5ei7n1qAMFHssxe9WVwcTMgw4tEXF1vWvuQJGrrT24xh0mbe29DPkSo1n8e/d8oxDjdL dVsMuE+OSu6/6RvpJGoYGvTPwnQd3C1h5h7neLJJDEpLCuvHp/XTa0yTctXHXgM9CdeK SmxT3xzPRALCUgiUeyWEzUS4pxLnbRLV5GOl0ur/GHPye7nB5omZd3ul/+6ZAZNPuAHO qxvtCOvJ5e2oIerZ+I9iUks9Kq09A4xn1/fRv5oBYrqfTZG5lFg/i46GTDvSqINZe3Aw xspQ== X-Forwarded-Encrypted: i=1; AJvYcCUTz/4jwzXDREYqgwkXsJEPEV7sN6me2gsapaVwUcbOTgfj4f5ekRyjJrvigqxaXU+O4M2nTHJtEfiMsj/KuBgmv7Igc6QEEXj8xO3yhupLAefiXCN6QYPQL4MnEbdPie6lkGIp5giWao9FSVO0Qy5e6CZnezJT5DM= X-Gm-Message-State: AOJu0Yz9dzsmbwn54dVTK/B1VIn0plbOby2fU5XdnH7JxGj4mAut/cs/ JYyV2fLsRbvE3/XiHPX+gykc1UGI8CqRsAlhiyDAl8Rc94PEagU= 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240509_070702_282717_8D06565D X-CRM114-Status: GOOD ( 12.53 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org 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: 13659760 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 68B53C25B10 for ; Thu, 9 May 2024 14:07:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EcmzP41ZdfjBAHfrJoX7ML+Su36p+kH0X83sJOlOF7w=; b=lo40ylbIThXfr3 GqfRbUZnkg6NV1ZS16R4qM3JfcDorgVBqBfQr1bvJGr+OaTHhXRBaFuNU+mxrAwXybYR77khtQcQC EXFxN91PZwOc1/lK0V2xeSc65Y5KKULuylMtk3k864hameQ4iSh+GvQ/jnpPIWORC62C6c/jSKfPd nqajdv+H+LU38G8IC145+sJIpoF1KbvPhc+a6lbIj3P8GEX0/A764BcVNFE1rot8ePJKXbfCCXzdy 0N8QQeYRv/tNUo7+6VQvowEQKFolNhzmWfYujTTT+OiNoQgbP1Pdw4TxvQxv2cj1WF7/eKTy8RW5/ YZeP4ijBeR3g1pdvF0TA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54Qm-00000001fYV-48pH; Thu, 09 May 2024 14:07:32 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54QP-00000001f5m-2gDD; Thu, 09 May 2024 14:07:11 +0000 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-34db9a38755so785212f8f.1; 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.infradead.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=KDuEgFP2l5mKxoaHk0SYjGqvmI68l3OUEJstDKGBXsIwVxOsfaBkKcL6I92n4HznwT nKWflkTtoe+agmblVC3w9lbwKn9bbAI3LgsTFRoAPsW+HTQIc559ZWchpzuNV/bSiSwB A95uwxsOVqqKJVe0csZGxvlfwZytHGlF8YQp9MH2kwtN047sbGRTPOQxI0sURJojluXD kTOEi4Se5k0fP5SdRyDry1D+mtExKi9Dtw8axxgNuZnCgV/9OaqSmelzOIcvso+HV5gr ubHbC8ys5RZ2rLY34tQi/UUTR3ym6dCvVWsi7yqkI6/joQZxKLE3THjEWdUV+TnI8/2Z qnpw== 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=BUswH3rTvv+xnRWOZFp4KNcesSaCIyGd8eCv2mcRuvMLrH2p8xUKOg5qgAFoKC7riI 3+bJz7BcFwt6DrpHJy3voMxv5bHtsDDIHEAKEXSvhPAw00hUxwMxVxBlVY4fA8pjnABL IeQ0/tKTNfCt1yZmhQo9ov65YoD/jx1TI5cszVE4slne1PpiVSmpczUEYLcd/wTUmJXN S7N5BOi1LaTADu20anLe85teenBx1cYSFWRX58NUlxlX2v0ULMIZozAYKoPC4/uQWWHJ ZzLW/huIKQRgtn2VmQ+FEmvOrjlUFAQHYSQm/K4Bk9aC8s6jB4M5wyrZjwWK+9ii0/lD KfOQ== X-Forwarded-Encrypted: i=1; AJvYcCUMZehgG4cMPtap1fWehh+/DLh5Uy9zhI3Cwf8Gn6XPC/MgtxgdNyVrXnvtvaY/qHFldBPPmVkxGIjRlB+HYFti6W9CiroYhVZIhAGQ7HFAH9/iE9UzcZ5dgv2P87zIis6I8NJ+QXuLiWJ8ugyVlUQV9SWvMU+F0rk= X-Gm-Message-State: AOJu0YwGOVebOcYYuZDch/UcSAqkhi1NM149H5s4F4vek12g47Rg3dQ9 t3uoU1fsei4To+l4yqxxiRSqMui8g3aQbW75/ZSXgdR8rKkxw8c= 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240509_070709_801898_F2D547AA X-CRM114-Status: GOOD ( 11.07 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org 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: 13659761 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 78486C10F1A for ; Thu, 9 May 2024 14:07:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rKH9tULUAyXmcmmTS8GpIlvkpgJbTKsc2MW4uHQV6h0=; b=my8hziUcLQcS5I C3vRvUw0uVhUZEqB8SUBPbSs7XJLPi6Fgi5xhtWpFEtKM1i/hzLnshbbqx1eH2BTYwL7fU+HhrJxs y8J1okqW243J/kj1OmZgPOHSHqZXIfwyFgptLr25oSBeGQqrzCVInFAAHQQvKYeZrIpjTtgl+GpDL MUTWVgwd4Ow25mqI7G1YOF6oFMehtnaUPi5B5oQwCXyLwzudgIY09bZuSIlmQknu4rXgfLV9nGm8l ksENQ38D6IPqR3zW/8b84kQRV581V8paVAL0NVOU14p930pDPKHCJUW4RNJ71pswuCCvmf4EquR0R I79TrhczGmrrlTseZPHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54Qo-00000001fa0-16rJ; Thu, 09 May 2024 14:07:34 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54QP-00000001f6N-2lJe; Thu, 09 May 2024 14:07:12 +0000 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-34d7d04808bso638003f8f.0; 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.infradead.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=nIIuqEeSr1/P31m9jzxjl6NjlEOAVdqkMwyxJBypBOI1vaz6OOxQ3vQ/JTdN7zeV5M 2uQXaccCFJP1bxTn1obIlxasOxGxw3aee8+8mj5Lbh2Eg5UJi4+RYvMD0D3G/ioY82xf Hf15106jW3oMb2plLUDc8Wgf4/YpXTXNlbZmL1+TjIjizjyvoK6iFzPMhyv8FF2G3A8N TliuF8GdasYc1S2Atm5SodpFs9eJ/tIhcfiKXpLGm41udSXU8snaPrCGw1jtYLgyn8H1 2WqMtvtM6Tr7ixlTgbDqVekmhd70yfSHt40IKcx2WqFIk/bAETuUyiFSaeomrdtdmyKs g16w== 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=G7ivVD6u0qgbgBEDyPtKXaK3Tv3asX/xsx7+O2WUEVB2zGa+Npjlz0Cfdm7gtu1bIJ OAMWUHYL/gCXqqFrNlV4mcGzPuLy/ihMHETitfKxZbjE2YphRgBbnaKid/KVyyMzZ7// RkZtt9opeWnnMT1t7YnZuvRJCTAX2w+8CeeUZRgsAUd8nrTyVr+8Edoz2Fzd9I5Vd+XS QdMxCWEWkEYSVkTDub+VuygzG4BUlOher+1pOLjDFXVziD19rgpI/TTf2EHVXhwPfgXy P+jmxl/HuXY5iZLEsC9PMQJ//LJf8UiCsmWh0GodvDqsUD14racrdfvI59x5SfLhB+MM m+vA== X-Forwarded-Encrypted: i=1; AJvYcCUje6U5mHoEEktKoxNVx/o+Ocp5rW4SxYzldLgrHFFYS/kmIEnnBcgpYSi85Ek1zFOGzYt1I19k+41J0aFNXijD7B0r5MZmb5T1rcNShhCevmaGM9kYEuW9tRV830NyBHw0Ogr/ISsaqViBwPd7o79wcL3DnemjhsU= X-Gm-Message-State: AOJu0YzvnjLyl837hPYQJ6Eab8IQsE1V5beEPOKFxiZMP2TdFqaaA3Kr WEQloWO6RGtv1d2k5KEeTZxIqnrN3YQPkAo0ohdK+FsZnSLIyOA= 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240509_070709_866703_14AFA844 X-CRM114-Status: GOOD ( 13.00 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org 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: 13659762 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 68369C25B10 for ; Thu, 9 May 2024 14:07:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GO6IGAe6/o58Mq0BIKC35TidwbOnH0Ek/gCxZ+nh0aw=; b=erWhcKUQ0mqsaF 0OaAqoF20WaLnBnPjgfJXVQWT7gTFqBI9gjiV0ndyk/dxNv6NqB9eJO9tiUpIVuyBHNF1beuP8o53 QGBC3qRX7lPR8hdJa1JUF7hEsZgc3iuIvfufC/daXk5gUImlmzeDhWUBRoG8nTRuDDaXC/I3Ganf8 bKr1oX02gHYKXkWojMwlF0Sikzw1IIQ++u+r0bn8SHq4WUkiG8VlqrsCiiduKEDsV/OgV6zNB1tWW F81PgwqUHjXG6gRwe3bSjmmtjurLQ4nJsNIGlNB1tZMYLaLlyH9f7vHGPst8kSlTzQFEgX3JNH5BB kWpqzL89sx0YUvI/ME0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54Qt-00000001fei-2qCY; Thu, 09 May 2024 14:07:39 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54QQ-00000001f8E-1474; Thu, 09 May 2024 14:07:13 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-51f60817e34so1124287e87.2; 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.infradead.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=M6eSanCUuPvVxP0FaX0As51nXgg541G0efGv9T0XmpLh9hYKsZ/Kgfiin/bwUshDJs NJzgujYJHk5rBrfqNOZR7HoTaY3wmEOyMovn4A9k2Gg7U+iz2PJ33C1wLb5oslJr93jc SpWf0ZpKFMsZDx46+r9R6pCmu05hp9wbyCGrUHgfpCGNS3spbAVq9lgyALltAOW4h1/L oLR3LgfeJcnx8Cl++kWsBfVYEm0xse2j3njeZ1zBJC+urqYylZnOGrP+Mml9TpIrAntS 2opOowB0G6L42O+BS4Ci98oc2C/YgymhztaawhxHnqm7fu+GqHl2ZLvXO1S/3a8BMHhY aDyw== 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=lPuClECj2eDt++3J5lnMbaP7sWrMCfDKDJSiZi0nZy3hl3Jtsdsvmvzu+XCLQt4iCe z6SqcKQvAHFDI4s3oh6bapWhP3doJI7mMY6BUeJ/6eTx9zN0Cv2OMxoNk0G3hNreqZkC F/UHGl7PiaH+rg7udaV9LlSNSmDOqvavAzDNiIbiLa07V1/rZtJgKcARsEtPJ/shaNuM EJMUfpdCdn7pmHVdxrteZ7Cm/qqBtJ/XvSSXnExWbmkYe7EbB+L5i6106QLI0mG0d4MQ 7DrxiqnoOFNvhklX4Y/taZOS/dOEWDxjHGdHS8FU/KQCWUmdIzd37fHyiLeNL49ZPIFd XKvw== X-Forwarded-Encrypted: i=1; AJvYcCUs6XKWCQgWnjW6f1+XTo87kAmE06eMYrUQ/gP/VLLWturcSIrwDX/8TQoHomMSKXnrszPxo8k6qDch6daVkU5myTcVXVraXBeIKzqkH8CBFZ5zT61ambe/kQAKxsBWAd6TFupJ7GdpT+f1Db8/RxuPOpKLJGM6HaU= X-Gm-Message-State: AOJu0YxBKsG51pAGN8dPU8zcKnVxdFU9PX7YXrnj9ppDwvYPHt+VQZ2Q cxO+vWr1ULer/nXXz/nxs6tsjyxfoRaVNvFKoKxX3+uZyDdQZn+Z8eyt 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240509_070710_402571_CBCE2D85 X-CRM114-Status: GOOD ( 11.52 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org 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: 13659763 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 56EDDC10F1A for ; Thu, 9 May 2024 14:07:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UBye9gqeV/q+xZ/a43qmtX/iSmO/Op3/NhqBmvkhCMg=; b=l7GD7wSOPLNhtl UNKPDs9zC4F489GqJl4nO4CaM/aP92ADPspNWAuxcg/TWq1bEAdP79xlKWBfbFQw25FQcX/9zvsnc d7nKWftFogVTvYY5xaWZEfSb3ET41GMGHGSURfKrriF9lpQ6QSweHTp3V/DIQbf5B/9Kr9Bv0xjpZ O1S+utmJfQBscBKFZuznpNw//sHRmSZZiWagOrmE8A1Kq1OlJOLDkp8nnXUAYszelBn8OQZo3Y/+G GdK+MGAELotHOTxdmmQUNDSiuelNZdxrpxv0OtIC04loeq4WI24YaUtJILQXIaDifPoWXlUbWHKQa 8FRvRAutVYbTyJ2MY0Kg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54Qs-00000001fdi-0vlk; Thu, 09 May 2024 14:07:38 +0000 Received: from mail-wr1-f50.google.com ([209.85.221.50]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54QP-00000001f9c-2ygi; Thu, 09 May 2024 14:07:12 +0000 Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-34dc9065606so486696f8f.1; 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.infradead.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=N1Jgp5s9qX2NVv2u/rl13xzGdjwHbjOXgfayRuRoeG1LHrRRAZEs3CCga3Ukg4gn/j qhh1Zh2XwnHhePLdiJfhBW757dDqrKODZhBwQB5xZ38Zp5bFeV2VbUWhdXhors7rLa7x 1hMsl7GjH6nmguw1q3bQMtPF5P4m/0qk+7LWgd6kkKcFAQNg//Ml+kA34Uk76c0RGedT FAGFv2wkiO8cOeYcmzhJfXL5ETYx8eH0X4UkmsdJkxOILzTZTc5lgsOrZDWkDZxVftGS JPmmpCPx/2q9bEKBtEaabr0Ge8ca2mK8NotiyOW+5wu5nxl5FJzbuyqhH79vfzIlJt/C ldUg== 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=KztCw5sSPip5ShSAmNO7Yuu09qknzrCHiFUxtIOCIXs2gUAg0YdRLZxORXsjEvBMZj JLHaWClHjiRJqr9Lpjs5Ei6tX0LeNmZ3MEOPsrJA/xQ0QO1JN0Evye6M0bjbOugNZwPN ZR1yynLh0rMeJ/B7+Jd2Dhgn4NUB2vf0i8Nb+wfmUSqgDHoSwtOH/jAqhrkubjjgVWsH Y31ADruYeuIQkZnISoFVRtJtUeYUSZRWO9VDE3o+042+QSX/LWgkm/34XPRyTNl4J2y5 6oFNeOAJY016H/xjH8at196OrqBTuF3QihD75Av84xpkLHcxP1iuGW3aeXI7Z4ov/I+9 IDXw== X-Forwarded-Encrypted: i=1; AJvYcCWAxxnwrKnZWFYO0AqAQ423nvDbhqOQGYZQl5PiMNssxj2OAyMCPdIJnSfMVgNflvtmTiJmjqxx9fezidfOaqkWIuf8w4h88FFkL2dIkkAxRhuAjGP9OT3HBB2FNXQ34dWfad7ChUW57WjuWSMSad2RoDfm6P3beCM= X-Gm-Message-State: AOJu0YzzAoqgWerBvHgniVGeuzCvAaZ4n+TI514YBNelkmZBPqbdJoKJ wS1kkQ6qu0ckXP5YbtSaUzi9Cv3VeKRpGCCF3vPx4rNAjl4E6VE= 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240509_070709_868796_16EE648C X-CRM114-Status: GOOD ( 10.92 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org 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>; + }; }; };