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: 13659774 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 EDF54C25B10 for ; Thu, 9 May 2024 14:07:26 +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=5VPUwjbxH0fYHEPZETO5bCHcDMYRw/qTuilK3det5lw=; b=kSIdTRYYNbp7qD g/6QcTr3K3908I+U5sGXtkqa1OOpFh3m2z9ThZLnHRkFFWPIu5Qt+xvAhGshELcPDTYDJ4vdx/E8R 6TQ+bBQYLyI3xB9k8Yf3+BYG73YhL93eo7x+28or6gg2fmtvV/y603Qy/lS03QprYD1BFyesfogMF rQzEhXqCK+A+mTGjp7arZ+hHC4dT2/p74Fa/v+PthDyR54E+FLXlLWK5lWFBpDoyXJ+XhJXAG/f4G xHzFCV+6TzA2zUP+NKkDsm7OGNQ9Gv3ChPM908IcC8gFKBVloqCsVza9z0/1sncVxiqnT6dJ+ockV b/hcwqe7L+XWZwm1Iyyg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54QR-00000001fDf-3831; Thu, 09 May 2024 14:07:11 +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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 13659775 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 A9989C10F1A 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=LJflfyjCYK4ujLnCHDU+toRLaG1f299LJC3bcqamNnQ=; b=WpYy5scwIxXd90 HdQuRlDxQMw3TVeMr47GBY8jTbbT0Ssk6cr5QAPcfRFP1D7snFON5j3u5kswPfBI0/Uq3DN2ipt+C PQCaA/joTolL7CSJmav149Un4+TGDW2SktNErzbnBVjTWHi8lFePEwm/gbKQRQKRJd8vpb5IydPtL 27oplULnQpl+1oqwRYZRmgjzJmCfgLZBKn7i8eD2B31VC7ayFczLirtlx6hC7Npblc43f4zqn8o8u Xufbt1e6Gu0i8cxvqQJEwBCaBpP2tR6z8sz/Vq1tJikGeEhKrCn39udazwOLBzMuHsGQM6WB2NLTv Ki5gqSZUJuUQr895mVVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54QX-00000001fKB-2Drl; Thu, 09 May 2024 14:07:17 +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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: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: 13659777 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 C87E0C25B4F for ; Thu, 9 May 2024 14:07:40 +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=hWBNgbFNnJNYVyW5I5EC8gBLKKImkYgAJuXy+Ik4lbs=; b=FameT6vlTQouTu lHljDHIGwdOhJSuSGQPqpDq7ma5HsKNzVh/fgDSdnP8OhcQ4+LlPfC7W+v8+u4h78+qFb62QQD7Oq HV2ilMlvVrO0rnm8zeye64GZp9781lDlSFFyNIPHV/73hgEaJF8tqa+POCSMQxzwRjUXXQAoLRonN q6i1HVJFWy/WTaa887XhFOSmpaO9PTzcEUF0L/Yy2hBNLpYj21EK74fVL/kXyrvl9YEiDq6ftN0yD OV3ff2YvxnnoBoFRoVX4wi8mAp00eUPYYWjskmrKe0ss7FpTxrJLPc2lR0xYVXm9hC5QWMqNTwn2B NDveYBNlViOPsLTNHIjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54Qe-00000001fRD-4APN; Thu, 09 May 2024 14:07:25 +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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 13659776 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 0DEEAC25B4F for ; Thu, 9 May 2024 14:07:35 +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=UVtEVSaABmEVhoIAGwcWQnDJcKXBULN2W5Uydw0jPks=; b=OEq6NuC4WzmyPM Uvs55xWsF+0xrYciKKuRAgKBvuGeaoG7oukIp+0xLXUHTUQ4kwsQ7WDLYsxIeOVC0B/bl3b3VeHqW hKtOGkpaGHsX7fEfBB4Qm96OBPjDMv70JaDguRfdhswcpYYqlgdUsyO0MjskJVNanMBmkCskwWgw/ 8q2K74w6NsIC/Apt0mhCVXRhxsE6m8Lv/nPSKzaS+EWwoSsQtqGpFxDKhuUqGxWu5YMGm8F1a/9MN zEzGbxyOOuOBuTOdkQdaUdUp/6O9A1YFb8FPGTtNrJv5MEMavWyDguPYhrps0hXOdmOT/wDma7ggb YJ1374H0Qlex0rmOpo0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54Qc-00000001fOs-0FTp; Thu, 09 May 2024 14:07:22 +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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 13659779 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 20A26C25B10 for ; Thu, 9 May 2024 14:07:47 +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=nz4SqbKY00z0EAAxbXmQgK1DALX4IxIp65EngY8BHQQ=; b=1aX/BPSgehgdfB I7WdJY+jH0rkDvWw9Fc8V9Kdfs/iNqklK3Nzzykx/xNXGjcEkG2RXhz6hXgBNt6XdNZaEs1mMrJwq //aDRMZ0oiduMrmzVejoWA0uKaHBcSYEp1dTVk0tbAs/AVz2wOPCdR0ewPekSfWYEA8BHx+D5u0vm u2KA9YsU4+S3doi14l7eA2VpDub80cdIuNqJBox/yiT20QhoWMmrcZpy9lzgirgpA0A4CNMFG+M7W q+enftfpRLMkZ9WW+GqVrSkgCL3424dNNXw8zmRBcTjyzWFYqpNVDIA2VTN1JUnNH+8OVG5reVa/J XCC4gp/76luXyRqL0b4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54Qp-00000001fb7-1kVe; Thu, 09 May 2024 14:07:35 +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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 13659778 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 A75C6C25B4F for ; Thu, 9 May 2024 14:07:46 +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=ID8kKhwImSIXwq/J6heS4XynbfU72D+4AD5ga4+FFGw=; b=ndsPHyJxGw9NOZ kqr9qDZJQlaoPWBKhbgbuIywsEjk53cI5PF/3j6+fQFS8cHPwIUrPKbDc+A6glfTob2meVIRoMicL lc/lxj2xuRwnVLYoQ4fBEq4lEYX/gupvKJ5GyqBZzBaIOw5/j7ekAT9wR0YBxMnQT3Ptd0eyysSH5 xlHNsxHGOnr+Mrm03AeoST/jp8/2T1FRpyyNN70HKMqF4Ax6LhiV1LtUqK/CC0XYci+x9L6J3YSYJ 80ua6pYJyb31unn9PWJnPioK0PYCuIt7sr16MtvllOlpwLdW9Fvh1Za1qN2hrY4yjUpR1/mDd7NZb AO5le/P+xb586j8KjJew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s54Qj-00000001fVT-3FR6; Thu, 09 May 2024 14:07:30 +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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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>; + }; }; };