From patchwork Mon May 6 19:43:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13655929 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 3FC91C25B4F for ; Mon, 6 May 2024 19:44:15 +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=hqVUihMrJXNn97rc7/gML4t3C/AdsxwuqU1z5uuoev0=; b=k1r7gLzHQ/dbN0 bgfaTyFtO39E6ucVBinosNdHrysMSonTakT2QpCjDvfboEaTuhci2WfDUWnQgxPxcelQ2KZ1aQE9r +u7PPorIaonaXs4QxVeCiCr7BJ797S0GRgOgXzYNtJEWXk4X3dt0SQ96tGFuBD/c8WuktLoXGW09O uw6sxfBY+WqKzQ4DHjBgGWCSDpNX6+lRoq0lWKxa/higrLiI0u2jcPWBH+NmOrPYFlFENxmoYruhK XJcFSUTO/8VFKlNYQKQR92F8Oo9kRHI0/UQ5A3ENiu6enngr2ZuffwPll253u0VsnbW8pHJFOhIO1 lku6N/CQ237fyaQTseGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44Fr-00000008YDU-2g5q; Mon, 06 May 2024 19:44:07 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44Fm-00000008Y95-0DEZ; Mon, 06 May 2024 19:44:03 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-51f1bf83f06so2789645e87.1; Mon, 06 May 2024 12:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715024639; x=1715629439; 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=hiy2vL57H3KzFyuIeojalhw0sromROUcEPl800VpgDs=; b=Rrder2MuI52lWOtoYr+73a8g7wKFHIMHA6GVzdgscT3ZZsdcphPvMVTRRaaqUm+mDD uQNfXvHaLBW/TUvNBl5Jim2MbybFD8iGbmnWpudZyXZYIsNFIPqMQD2HEfnRvwM7A+pw SLxQKCa5joji4HibU0O48JpNDwibHiwdKUIh3gTRNpPqkt84LRQYfjCu7byG7+DH9H8C 8fd5gJ1RGWEvN9L808BQ6TNOMzTgrvUB84U3s/4DSMF5o+kYN7jRJAHKXw2sIWrNUgZl OYo6J198N+GwmMEayl7F0vGu1virQYGWgudhnm2kZAwpmlwDfW8am1LT0V6gB9W0VNz+ UaQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715024639; x=1715629439; 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=hiy2vL57H3KzFyuIeojalhw0sromROUcEPl800VpgDs=; b=QPoUTdzICsTM6jYEwU7AsG/fEmZWvmI7CGbeAREOsGKId+257aQE4RXjQuUrcyhbPv uGBL53CvZNnvgoTZiOwBVDMVM4svWum93VpMgG9Bmm17+7fbLUbpfXPuZ/nq/BF0K+ED /wPjuaFHHjW1OuO4ecyD9ANzx3lxj1EADLDPEipJ8cqwOvOxxzI1bUaCaZTeseR//Ueo Mbg0If75wWnTQf4V9C9Jz9TDJukh4t4CHEcvJV7yuzGsIEbQWHRXeuKcxyt3kCAX2CDH +iSP4Ng4rkSYniRBiCGFcayvftvVTEEblXp8iIuX8aBWz/4lN8JK9w48sBJelyG86FAY ghoA== X-Forwarded-Encrypted: i=1; AJvYcCWoBb5eSg22roDNULr6kXks+xMsIRgm3tYaYiRnsDMvfYJESzD9iSKcnzST8iycMchR2qm35UfCgPScYTZJXwMSNCSxTPYugmAUl+Q1niwoU47RoilhHXSKvX4dxdtvWTG/zWsrb/7PNVTlFEvtaT48pkuQsLXj1Xo= X-Gm-Message-State: AOJu0Yw+1TocJ9VUPj/57P8hR3Tj60QMeNaRpEmMeSXa8Wu1Lh562ePW 10+357wtfOC0ZxMReXG0MJDMrI1Abr2g+ucvxLpALhmO7IUN/Fk= X-Google-Smtp-Source: AGHT+IE3JAd8h4TS07pAYS2PxovxmJduheJelK1ti9csXaOuNGCuxVp7c/O9qhjmBPiNhSTXCswuGQ== X-Received: by 2002:a05:6512:2090:b0:515:9abe:6c46 with SMTP id t16-20020a056512209000b005159abe6c46mr6362105lfr.34.1715024638800; Mon, 06 May 2024 12:43:58 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:1c62:e77:6753:5729]) by smtp.gmail.com with ESMTPSA id f13-20020a1709067f8d00b00a59d146f034sm1367321ejr.132.2024.05.06.12.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 12:43: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 Subject: [PATCH 1/7] dt-bindings: display: rockchip,dw-mipi-dsi: Document RK3128 DSI Date: Mon, 6 May 2024 21:43:36 +0200 Message-ID: <20240506194343.282119-2-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240506194343.282119-1-knaerzche@gmail.com> References: <20240506194343.282119-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240506_124402_110291_AAE453C1 X-CRM114-Status: UNSURE ( 9.28 ) 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 --- .../bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml | 2 ++ 1 file changed, 2 insertions(+) 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 Mon May 6 19:43:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13655932 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 9C44AC25B74 for ; Mon, 6 May 2024 19:44:18 +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=1pTZeubCTNYWc0ANyqFcAVGBF82YJRgBIFxyaRhx1Hg=; b=dXua2P1kcV6dAp Fo4xRNTz77NmfOq88t0H1fptSFuwOrVDCoW/tXbPt7ewG3EYzecJxja0wp7ijGsakTyDybHrvikpU fYsOoDW/v/vPOret2cQfWGdQxH3a8HyRq4SW9e3T6+j+PsySTDUFempMG2EosdVNbTMMBWhY91VgA mgI7lUgY1a626ueBitpp93rPwE18iBMhLDpGmz5g5Vl3Np1cKAIhKq6677kdS9pP0YRhIXalW7/G3 wpO+KWIFUL3pUv1/PzbHOKFyOSV+fV5fO3oV8WBkSZGCG2KLOd5m6jUimR1TB8EzvEcUMg3eB0ZOu VGeRW3IaVB/Xo0nvZdFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44Fv-00000008YGh-1A66; Mon, 06 May 2024 19:44:11 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44Fm-00000008Y98-2Tac; Mon, 06 May 2024 19:44:03 +0000 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a59ab4f60a6so492271766b.0; Mon, 06 May 2024 12:44:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715024640; x=1715629440; 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=yZPuZVUOkEjt2jKWfIEHf/5qiKMeNNTvIl6Wxm0Wr0M=; b=GuKgSOWauFcTbCtz3w/muBDnLdjy2ceEmHT3ghh9G6pdPW7OKYnjP2iStUL32IUjX9 6a1it6JvJ46YdAED9K4kvKuHTetHLQ89l0x8K5f6R/7TSQWs+qqUED1BZLlGU019V3sn p+ElIvzjJHCZAuV1jqQSvU07mga6uhDhelNIeQb3tsc5LCkLBHstizTbmu1zKJdHzUQH c5dpONgWp4/Z4QvYf9Ue1hl+KSzK8HEJcENoYISxXg1HvF4slsHMyf5AMT5qc/9mTqWU XzjuYzj0lgQNSo9rTo+N2/RfUW9XDcrogAjZ0aY9kdvErSaSPtASPlPKsx6BXqv0XDTf RM6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715024640; x=1715629440; 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=yZPuZVUOkEjt2jKWfIEHf/5qiKMeNNTvIl6Wxm0Wr0M=; b=X1hvHIaR4pNmduG5MCjE356QTaIXKeXjdQQLL7a5uSI71MaRJxwlRwmsTGtMKTRw8H VrVhPanP3vXTOzNxUbk8tbYs1fWIcmWgVcekysQFagwRO1asDbwp3LlcVqjvQmz+rIxU eP+peorhK0EBGvhED7itxg6Ng9jrmdaS1UcL5TwHWZihlNmvato12sJk57p9MSOE9Xe3 FIdEjFekdIi6xJQlQKFBxzYc7yhwRAgSqT8fFv8TfKkMdeRjIgD98g9YbmI4f1/UYLs8 7Lloelwlfk+uxET25A+OnEZjV1R2hBVYyFCLTF/6DGYw3QPVLamc1QAd56siAlB/RyOb VtiQ== X-Forwarded-Encrypted: i=1; AJvYcCVRNvN4OdcEDCKm9tIXbhcu+jvBspedjfBpbncYLB6kC+4WSsuXASZBDOb70J9L5hJHFN3HChagIh6ouczdY5c8Y4FdkD4M16cRfS14jMCR/xHStbx+BK4FadT42K++FVGcywTdB2newHpeiC9Jovx7ufnpphWcSaU= X-Gm-Message-State: AOJu0YzVR3yk27Dka2jldL76nvdcxi23tr9W4+t2KAFkKWTQXZDeNcKD zDC7ytjNIRJRIAFdwPlW4ZAnzMtdlRWltnpd2P55AEGIpDzCddU= X-Google-Smtp-Source: AGHT+IGnSZ98ZQbdnsdJyC90pRyVt1nr5YcSW20LHXMtpRatNPwIAZ0FaJwwj91H77v0m8hCBi2Kpw== X-Received: by 2002:a17:907:6e87:b0:a59:b9b1:a1d1 with SMTP id sh7-20020a1709076e8700b00a59b9b1a1d1mr7115835ejc.46.1715024639700; Mon, 06 May 2024 12:43:59 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:1c62:e77:6753:5729]) by smtp.gmail.com with ESMTPSA id f13-20020a1709067f8d00b00a59d146f034sm1367321ejr.132.2024.05.06.12.43.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 12:43: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 2/7] dt-bindings: clock: rk3128: Add PCLK_MIPIPHY Date: Mon, 6 May 2024 21:43:37 +0200 Message-ID: <20240506194343.282119-3-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240506194343.282119-1-knaerzche@gmail.com> References: <20240506194343.282119-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240506_124402_656790_9F92A66D X-CRM114-Status: UNSURE ( 9.65 ) 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 --- 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 Mon May 6 19:43:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13655931 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 A2A28C25B4F for ; Mon, 6 May 2024 19:44:17 +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=FzJnwiGcLgbSno3/G09Fr4rbyKCMWi4e8f1rjTm9TbM=; b=VRnig+fj6HDl0J hkou4Ar9rzc0Q6fCI5sO4RwJPEVJ1P9zCIJhiD/8eusbIU9c7G7gHfmuRsYON5mPZSkU23+2E6/2/ 6Po+s6LqPIdz4vEqJdVi4oqsCCfLiurkpOUSrcBE/ELLA3Q/Uuwk5XoxkvGgJoAdbnbzxFRVppJTq qUHdfBDcy8bvfjXqr9kXY7RCDPbtQbssSOirm6OX0MC4/oEeHw5dtzMFstoED0sDjp5TDUw0lXgnK yPzs5/Ra5kdr1FGJwzS9w7JVm6gneZbRZbTRzqFYNivv0YpeiTFdUZWKSmM5o3q9PWuEfh1e+q/8I fKC4hWF0U3o1bjjSFhFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44Fx-00000008YIl-0eGh; Mon, 06 May 2024 19:44:13 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44Fn-00000008Y9M-0rPQ; Mon, 06 May 2024 19:44:04 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a59b178b75bso370852466b.0; Mon, 06 May 2024 12:44:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715024640; x=1715629440; 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=PLmJpQfp0i8fR/OZHQc7F6SpjNiFbXRgibuQG4wYtJE=; b=J6Ikmhe8A6t3cQwggLuF+QrJ0obfpjpO2QmOH4Ttkr3ob5FX7aFg6Al7unSm1rLpCw F2MgiGZIe5z/xZQj/YUHohQrVpcjQDwfOMUTkP+GB7nUBuRB5OghY+UCxaP+THdjODeW yhSpAkIjSpVjPI/u7WVqfE99mEk5gJJCELVFJy3lY91VrAGSM/N8DsihfGJGuC/UN9m9 dhmZ8qBMD96XM5f8vB8Pkz4hLfqWVsZ9el2AtlORBoxYjx34aRyqs7YuwrKMlR7gaFnC oUyOcyVI/5o1Ati/kDf/Gt2a/6mEtuBxXozp1nyxBRZsxVrwZ/+qpuecpcLrbNUCFCfE E1og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715024640; x=1715629440; 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=PLmJpQfp0i8fR/OZHQc7F6SpjNiFbXRgibuQG4wYtJE=; b=RSV4DC4zPu4amwKIlTpAD1kZKIlbZ1CY9f5E9AGNfEcRtlrQQVRP+kxldqzx6N+lbS Df/KNIPpNoksooZuZRSyEYokPzSM6YuaDh9UXvIbOTFjDhQEi/CE80CdCvE+8vK471VT h7B83Z1n+9C9/6bUjmjYtqruhuT+XlZP6FMpW2M2Ml6MyJUfyg9mxmEjOAn58dG9JWWv Cb5mKjZB3ycebNpUPCZms/Sed2ks6KLuCOQscHKikDHjtxRy5X2q1bY6A3j/DHcFqcc+ udpDpWomRbq7JxRLPJKWzJACBndgG+N28N0vrvnZC38Ge2sbXM3bYSs3qqFgzDqo8T7J gPUw== X-Forwarded-Encrypted: i=1; AJvYcCUl13JgCKcTC8tIXoiq9sCoVWDvfIq22ibSwnvibpuYOdyMcjZxOgPvobJYvNHV/jANtyQfwI1/PPPBqvoAYE7X1r4wghmyszYXS3SypkRafqFMuGcMvh/Rdk7eMWdqsHwFse0Lmf35E08nuEAU+aXM0wSAuEZOiCg= X-Gm-Message-State: AOJu0YxQWONMeLeL9UsKhS9IGLfjQE6Lt7n8ejj0SYK4hkXiPhEY6maO 9XoyHRryUNuhHPpUHUeNqcejiHnJ+ILNl2ufGxwDG4BrrJuyJxU= X-Google-Smtp-Source: AGHT+IGDj+tvzGciAi1r06OdYCZHDNbAHnwx7wQTTzXXKYnWB5EWtuUN/+YC062uYGlKprlYMawinA== X-Received: by 2002:a17:906:65d2:b0:a59:a727:1e8a with SMTP id z18-20020a17090665d200b00a59a7271e8amr4215668ejn.8.1715024640454; Mon, 06 May 2024 12:44:00 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:1c62:e77:6753:5729]) by smtp.gmail.com with ESMTPSA id f13-20020a1709067f8d00b00a59d146f034sm1367321ejr.132.2024.05.06.12.43.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 12:44:00 -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 3/7] clk: rockchip: rk3128: Export PCLK_MIPIPHY Date: Mon, 6 May 2024 21:43:38 +0200 Message-ID: <20240506194343.282119-4-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240506194343.282119-1-knaerzche@gmail.com> References: <20240506194343.282119-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240506_124403_273039_8C58A995 X-CRM114-Status: GOOD ( 11.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 The DPHY driver requires to specify a pclk so it gets exported here. I also dropped the CLK_IGNORE_UNUSED-flag as we will enable the clock on demand. Signed-off-by: Alex Bee --- 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 Mon May 6 19:43:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13655933 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 B488EC25B10 for ; Mon, 6 May 2024 19:44:24 +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=kFXv9n7WC9xvokahR8u3QYDBOSMWGrkendoI08DWrLc=; b=qmB/XCADyVEuFh 4BpjDvymSH4kTI6P086YcSYMGXVg+SVtPHGYYlU1INOV0Nmo8rcb868rwFXK3cbrrrqOmRk0NJN74 x4Cye94kzlrRoTxbfx/jC0SdaD3EW0Vhg3Q4Anh9ti4P2LGsZvsE7DwxK6ddf8g6rW7PN8CMDSyx4 imjmdOZ811iIUJZbGE/EEDbVLUJFD0aceyz35bHlZByOA8gkrjWjgtLFdU9x5i+HQdQXr4ZEwGJd5 v82kG6VcKJ5FwkwtSR/ddnI9Y1KXGmSgOXg6TUNM1TYrWef3qdtImE1PW5LIDwQJFGYdwJ/laup5+ 6mD55a5Raotuejl2xiTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44G2-00000008YOh-1o0L; Mon, 06 May 2024 19:44:18 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44Fn-00000008Y9W-41Y2; Mon, 06 May 2024 19:44:05 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a59a64db066so565008266b.3; Mon, 06 May 2024 12:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715024641; x=1715629441; 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=C88NXh5dRoqqDkaBrG5x3LDrKI9aAW0uYwvaYAfrMG8=; b=X46t9EVDrXiJ5AqJCBbeaxctxUQ0iEMt1blIqCAqCOn9ZFLU+TYjFwmS/WZFkddEU/ +8t8zjpdvqO0VLjCl3I9qzpJmBRJYb5uhPllRVV8kJcvlo9MI+8W3Ft6DCV7rQaNlVAh WNmNuZoUmWfVbxFTRVqKngmdxYvdrMdjzV/i8pFiM454PN0U8APA2DyGpEunkOyvndDB 2R+gdqO6Dz+6XJ0lGHNyNaSNKmvbGL4DOyAkagtHsYzu/rqCGFeK7CckRT413yReHIHT OOnHfZELtWCFFA0PUDOqOmSr2NuD8kdXZ98BRoDW33ZgnGMOtshiG6ban6dhHLppD8E6 LCuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715024641; x=1715629441; 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=C88NXh5dRoqqDkaBrG5x3LDrKI9aAW0uYwvaYAfrMG8=; b=uULbjZFbisxYAskUGIkCCdqpN/eAXbcQXEg0q0Xgc8WtvcLY8sJBMAzQ5IWvjmbudE FPYQE8SlZc0uGKY0UDRTtx0eEF6TzoHaDK0MgKtsFXwscp5t9wc42u2Akhl+aNt6jqd8 pakkM54K3OYA6rA2P4XBT2Rk84lrNUjVvf6POT2/LJ1cfdRE0pnlLHdckbvIbpY3ah7p s9g/iyyTTU02PGMRWP0O/Cf8YSaQ73g+vSka7e4054n7C8srbPgpBBe3umTuu1Lhp/Ow XWXLOXP08Lf4AJH4ynNK9hFef6+5tjFDtlXA//FQtS54B0xgRg9ZWN8NflZrjD0bSBUK Q6SQ== X-Forwarded-Encrypted: i=1; AJvYcCUlwGrN6/6bc9GD0xXTN3vDp9JjGNzPwZltDp7gD0WHmFHUmITJFPCS2rETKRX4DF/rg3Onzob4Yx//f9iUZmdWsm5HH5DcvguaB0h94x2j8BdshlDyB467uLtGyT7++1lW/cQfb6VsjSttvJ8SSjMasv0hQYQTGfQ= X-Gm-Message-State: AOJu0YxD2TWZhBvzDsgbcmlpDwQzrKcNOqqOwRIlRDQynUeDj2z27JMI y06BnpSDUVqcRvjy49Q1+W8nOZ01kPVr27fonFx0x7vgbO1Tf20= X-Google-Smtp-Source: AGHT+IGXkpTxbAh5DwLseWHJnyaH5MLqujBbL8ZKSiMVh7SfVdr7KWTIModIbwpe+SyWgj9tViY0hA== X-Received: by 2002:a17:907:944d:b0:a59:ccc8:577a with SMTP id dl13-20020a170907944d00b00a59ccc8577amr3025674ejc.47.1715024641199; Mon, 06 May 2024 12:44:01 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:1c62:e77:6753:5729]) by smtp.gmail.com with ESMTPSA id f13-20020a1709067f8d00b00a59d146f034sm1367321ejr.132.2024.05.06.12.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 12:44:00 -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 4/7] clk: rockchip: rk3128: Add hclk_vio_h2p to critical clocks Date: Mon, 6 May 2024 21:43:39 +0200 Message-ID: <20240506194343.282119-5-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240506194343.282119-1-knaerzche@gmail.com> References: <20240506194343.282119-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240506_124404_051967_AFA7C050 X-CRM114-Status: GOOD ( 10.19 ) 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 --- 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 Mon May 6 19:43:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13655934 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 97EEFC25B10 for ; Mon, 6 May 2024 19:44: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=YMTobfxXjXumlLelwrEZjs/ypLl1sRCVXyCR2uO8q58=; b=BILm4vyc8yRWg9 ni4n8Sp+7GoSUfC8Na87qd0jsc66xtoBvl5x8l5pwLekXb1Fl6wcGmkxR1BpI5cKQ+fHL987Npgsq JS8noelwXC55QYSgBUw+OrG2TnwkpGKxaYkE1qwP7IRpiwRk4dcNYmLCFh5mBu0GhohdRuJKcoKBR NqGZipz0KWg6ZZw0t78G5ofw486LlvL3oJvXZHYDCZ6aiN0dCgj7QrT3JBUtiN/uoUt3GFCseMUGG qmkWP1czyAFxEbP8g5d6uwpRr8qzPZee1gTOZqzIbu5OG3NKnffO4kn1z8EnE+t/xLrgji7DQY6bj obkMq5cdK1fA853x0bhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44GC-00000008YZA-1dHQ; Mon, 06 May 2024 19:44:28 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44Fo-00000008Y9s-3ZA6; Mon, 06 May 2024 19:44:06 +0000 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a59a609dd3fso378547666b.0; Mon, 06 May 2024 12:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715024642; x=1715629442; 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=o57hgKIjAk0UpXtlYxOCbQQvJBzOwu3W7y/5J4X3WHA=; b=QRTiYbf5+0+zvWeLYfFS234tbPIvtGlgvXUh3cDUVssqtpcYtn1ddfH8AdxgUvp/QP biILc7d5r0GSvIDVDr5CBYjffXXePRJM943cTrT4RGqgxTfQpS+PtZYHd/fIz+lgEJGo ELP4hbI+9R8Z6bRMFwEYkSyfm0fkp3xdNw+vvHZoeQK22WfDYZJqnqF0Or/ZVuT+nGLC JAW6jwBYV7SXxuF4lR5TjNOsGHAMAzITroGTEU8bO9NiY6uBppQP3V89FHPkQ4IY+Ypo 2Lm98ysio8OP3rTKm/wg6rx5K6mkj1ycbz8sGHxTdmRrAUJ8QtMj0G/HVsOWbavzzviT Dm7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715024642; x=1715629442; 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=o57hgKIjAk0UpXtlYxOCbQQvJBzOwu3W7y/5J4X3WHA=; b=vEW+yi/52hOutYQSX6pOmqq0HAwbmGKXBAzFWvCfXoVs90tDp9/UBwtFuC0wY2tMgn AlLgIIdr9Fd0PL7AwQdKpJ5SUx6um8n9SokDeQuQwVhSZdQOeKiA0g+O8U9mYBqg08dT fuj3Ljm7W8bVp9JBiiPS4fxS2wNAQhWy44GD8VJ+GIR+3FT5OFDqxgBmo/JxgKw1w+sz x8rlLrkB/BtBZ5YZj+cDkkCdqGr4SpJXp0ZjYFzCAck8GitDccjBgE6k2m6IXqYFyfCX KZbM/ASzuq/N5XHFw+fIbiZyXToQ0mET61I20yPdfCG9LfIKe73SQ8WaGnC4jyAkxsmF TabQ== X-Forwarded-Encrypted: i=1; AJvYcCVjBCDG801sSUzBhYZ5CcQwXHoitSuLC6p/KM25XXhzmDG5qHfd7wQRMXhg8/NA8m2MFeoVspVOKwPKCKBm5h08uzFQSJpjSMoz4CMnyRKqRybCvW9N8EEBhZAqzWc9OIf0A+GhVmkks4z4kwbVjM65fK8adiyDGfI= X-Gm-Message-State: AOJu0YzZS5yHxjoUVMeh9xbTgGkvbd/35RH7/caYNjOix8fxPwHn1tiW e8Yw7kPUQVjk1zjy1hlRlssBT0RLB86MLGmfV9qJ1Nkur6V8OpY= X-Google-Smtp-Source: AGHT+IH0d83c7xTax7fuIOWVQkoiDle9wGyhCdq0/Z1yJWMYOpdTGsFWFrlzxl7C3Qi6XsSYe60iZA== X-Received: by 2002:a17:906:fa9a:b0:a55:5520:f43f with SMTP id a640c23a62f3a-a59e4cea3e4mr46264666b.10.1715024641987; Mon, 06 May 2024 12:44:01 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:1c62:e77:6753:5729]) by smtp.gmail.com with ESMTPSA id f13-20020a1709067f8d00b00a59d146f034sm1367321ejr.132.2024.05.06.12.44.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 12:44: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 5/7] drm/rockchip: dsi: Add support for RK3128 Date: Mon, 6 May 2024 21:43:40 +0200 Message-ID: <20240506194343.282119-6-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240506194343.282119-1-knaerzche@gmail.com> References: <20240506194343.282119-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240506_124405_195195_014BD1C9 X-CRM114-Status: GOOD ( 12.56 ) 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 DPHY. Signed-off-by: Alex Bee --- .../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 Mon May 6 19:43:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13655936 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 75C90C25B10 for ; Mon, 6 May 2024 19:44: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=1YAV5VrQQV/jFGUsdtTALAnXiQmMlgFR64SSTmNTviU=; b=bBsVju6hLh54Y0 U7pjcV+04mh+IHmEMBz/7/qsePk/QbWPEB7fg5CxP4l2HNcUR5JhGJF/GAhireMBHNyYRKEJHYi8/ ZL6wWEWrE5+BKYk3ENzcngTqmzVaJXOpVD37xu9HO5vGgi74HafmoEoockT1AWEn9cUgZ5iORH8vh m3FTbO/OoRK/xqanPgH/bPvhEyTzSKCLCl7RfyrGCud6jT6UeAf3PmAFrWfvKvtl5AlgY8Ed4uXOM smrsev5S1GcTBn5M4kZYnxf7ovuT92WSaqXaPduM3cUc9Rfkmc48Rov0oeJa9UyGTripfKVi2XQB4 ea1OPQ6ynhfvhcUq9Raw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44GO-00000008YjP-0w8B; Mon, 06 May 2024 19:44:40 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44Fp-00000008YAK-3gZI; Mon, 06 May 2024 19:44:08 +0000 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-a599af16934so568095666b.1; Mon, 06 May 2024 12:44:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715024643; x=1715629443; 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=cEUTDPQIQ4fyK+f9Y09kmkHPYR/zl3Q/hqRXE0mT1cg=; b=mE+gkmV/U3bMycugoZPhASw5AI8RsQhEebktK8T2WfyRvq0NaDZY8uJ359N3kjVPzu DQT2RRixQxlNEW4rnGaHraOdEoyWIsWRo3y/B1+Rrng0VD46C3S+/I53iBc7ROXRkeEm cOoVCtZhEfo2gQonPzjstOmL2oebwkec8ks7hGLbjAfqNJtQQo/jPDvISs7sz4ljQcPH Wv1PvU1FY8JjIVa7Fanx1vw4gm5TZ3tePHsSdEzYRMnWRlHwzuvxddezd5vzdfZ4QM55 /4sEhxzIevifo/6CryKooIHTzr/4Hgx3u2+l7Mab5m7aQagy3Bw3PAG+0f3i82sM4Ppw IRWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715024643; x=1715629443; 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=cEUTDPQIQ4fyK+f9Y09kmkHPYR/zl3Q/hqRXE0mT1cg=; b=TnbiBXvHnsrlDvCPJCArrklwLWyy8D5OTVTc2p736nK1BQiP1Ute/+GqimvdNt1MCB PbI9xsCdl7nw3zxMBJGrb2tCEWqJLj9WRwVd6mnvhfEktYZYmidYzDagLpXmhrlFUdUs 6f9YW9+N6Dt8q25LIgrr9ubsjsVM4ap/b+whgoS+4Od2ZwYgGHjng5PwS+r4TBQNEege JOcJY8VcOTEXsnu7NSf1ntRnEcY7A/38AVMMITxXaZouIfbvDWYdY36c891diof4h+7w 4XDJzYnoFQDDvO11CheSl7Oj0YTVKhLwI80N/NdcOTFljpJQAkq4SfbFq7OxyLGXxeQr 9Kjg== X-Forwarded-Encrypted: i=1; AJvYcCVyx9MOaaNUDHyY/Wm1aeUvuTYQPd5/nTaX2amNT2EVPN7d/SOvS8uzcmtaOSEr+fvIcDpxL4ZKq6s7kiOhpM4Eqn791jk//jzAg/quWu75SfV3aMq9DEQ8xG38JQE29+Ikk7ClxSRpisN20OA1NeovxR38EBAhMcU= X-Gm-Message-State: AOJu0YwSbv/W1cZ+2UhpVjsfkA5Q2XFZ3DL3WbIxmYWs5AMfnDbQM26F eM5TB6SSjmVYrLRTykxgiYqgJuWqL4N6DUpXZCZCL+GZ94xWHs4= X-Google-Smtp-Source: AGHT+IHbkPsuTTfkRPHSR+oNWlUo2rEkFOv/8jNjCTm2kYGpQR0wP36J0oX9tZl1Xf2xBVWgIuha0g== X-Received: by 2002:a17:907:908f:b0:a59:9edf:14b6 with SMTP id ge15-20020a170907908f00b00a599edf14b6mr5458036ejb.45.1715024642757; Mon, 06 May 2024 12:44:02 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:1c62:e77:6753:5729]) by smtp.gmail.com with ESMTPSA id f13-20020a1709067f8d00b00a59d146f034sm1367321ejr.132.2024.05.06.12.44.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 12:44: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 6/7] ARM: dts: rockchip: Add DPHY for RK3128 Date: Mon, 6 May 2024 21:43:41 +0200 Message-ID: <20240506194343.282119-7-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240506194343.282119-1-knaerzche@gmail.com> References: <20240506194343.282119-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240506_124406_118698_8BFE38DC X-CRM114-Status: GOOD ( 11.55 ) 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 DPHY found in RK3128 SoCs supports DSI/LVDS/TTL with a maximum transfer rate of 1 Gbps per lane. While at it also add the newly exported PCLK_MIPIPHY clock id to RK3128_PD_VIO powerdomain as the phy is part of it. Signed-off-by: Alex Bee --- arch/arm/boot/dts/rockchip/rk3128.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index fb98873fd94e..d16a9d03ba2b 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -216,6 +216,7 @@ power-domain@RK3128_PD_VIO { <&cru ACLK_LCDC0>, <&cru HCLK_LCDC0>, <&cru PCLK_MIPI>, + <&cru PCLK_MIPIPHY>, <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru ACLK_VIO0>, @@ -496,6 +497,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 Mon May 6 19:43:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13655935 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 9D7E8C25B4F for ; Mon, 6 May 2024 19:44: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=DjnXEoI5JLRhbNzTaWG0XOa0gS4NPZpLUZ1OSl2+JQ8=; b=vtZewfJ1FzAS3z tl8aKKbSfVLp4XKoK0xPUUtY9b98YYGp/OjvOW83BHWFxil4KJs2bhcVqP3irJvta9/5Q/G5Fou2G BZWK6FLg5+T8uP+H93iFKT/lPLpBZQmaTnndWrCnsfDWhd/MWkIh5LDA6mkmO6wv91lgf4mXqNImG 5fuW00X0MfUpg5+HuBW9NnWmY/RhhDTukwO+p6TQd8Bbhk2/feZNFzGitx3gma6fbf9kthAyiZT9q EA1Vl+RmRXNy2OABon9hjPhQyrAh/9SzlniqFqkdtuBwSQ93rpedwAuhilFs83e4xgdD8WtFF4twg bas2kA4o7R2+W1yPcxNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44GJ-00000008YfW-01Z9; Mon, 06 May 2024 19:44:35 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44Fo-00000008YAp-3g2i; Mon, 06 May 2024 19:44:08 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a4702457ccbso586119166b.3; Mon, 06 May 2024 12:44:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715024643; x=1715629443; 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=oPo30HLErisAcogmRAQBmaHjRdsPf6mxSQ2qeztK2Sw=; b=GdnkitBhxxD1+QdS7mbG+13l1lF+KHC5QaKTnNDe02jrhY1wOTcLnvVu4VhhgMeeYC seG2n9NtumqaKE1Km9n5aGej+fnzh3eVcOzFagOMEl67GL0QFgnkfUVwMguJ8W1E8c9D 6B1IxcsyMYq1qv3UTWmViKL6u1LLW1xlH47R6fzPH6AZrT3RQHItZvBAYY44nd2YDwZB YPTACcrFWjtjYJlmJPQYM698XVzAeaA+69mLMRf3OEqkCFJIOjyHauXraGGaNTWWIJSF iOIiqmODP7s+mvDsFua3kgB+SNrFnGqRC5oYLEQkJsNkeDebJf1swaIWtYuSjqjp0Sne qHww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715024643; x=1715629443; 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=oPo30HLErisAcogmRAQBmaHjRdsPf6mxSQ2qeztK2Sw=; b=Y/YgNZpxesSanx5824WCsBkJ4WSMOYwHtbyn3Wu9QMWY4NK8p8XhM3V0n5bz2Ij28r R2vbW8XpBleqK9bXjcOA0s04iunA+t7VpAktVBVago3DbdcdypNicrXv+SybkhpNyspR QSdEMRMTQ1g3VxzPhLsdY4bgIiiU8Tw5PMIACbt+jRmsZ8da+5ib4r4myD60nZgmQxFh U9O7vhQjbDgWEh6OgB+/VW4Mh3n33ejOb+gZZ5mgL+2fZBCIjGAw5+HntnN+Mg46SVVA ELG+SKOoIyvJXDezbnvrmvj/3CoGiJMyNXRH/oxzlzXKQBrpQmSiQwrtEi9ASkplALuw qxaw== X-Forwarded-Encrypted: i=1; AJvYcCX4ceCrenJHNzBc4HnbTuzTEE3h1FghmtpQF1Eqbya9Wfr/R9ErQK5OCSAbJWhv2IScPBC1ExMs1li04gU8KoiZjA2i56NEmc/qBOwUVpCfmzM4Hp753R88Gzy6DtkDQzSojI3UC+P9golvxIb5NO9p4TlW13GLAyM= X-Gm-Message-State: AOJu0YyPWfCBz5559Jy7uDZP7Z/DhqwnaLrUZwtCuU6yhPsPly24L1gR tgNxCe7aMBd9gWbjqAl7lM7OrX0yVLrkj2GJOdBl3Q7RNeEqNxQ= X-Google-Smtp-Source: AGHT+IHSrrVeS/vienMxLpjAA24SO1Al2k+NRtJh5keVZVgcxbiYBpQB1pEWoo3HKzaMNkd68QRWQw== X-Received: by 2002:a17:907:97d2:b0:a59:c9ad:bd26 with SMTP id js18-20020a17090797d200b00a59c9adbd26mr2965779ejc.12.1715024643508; Mon, 06 May 2024 12:44:03 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:1c62:e77:6753:5729]) by smtp.gmail.com with ESMTPSA id f13-20020a1709067f8d00b00a59d146f034sm1367321ejr.132.2024.05.06.12.44.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 12:44: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 7/7] ARM: dts: rockchip: Add DSI for RK3128 Date: Mon, 6 May 2024 21:43:42 +0200 Message-ID: <20240506194343.282119-8-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240506194343.282119-1-knaerzche@gmail.com> References: <20240506194343.282119-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240506_124405_282950_8A499298 X-CRM114-Status: GOOD ( 10.40 ) 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 --- 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 d16a9d03ba2b..93885338a80b 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -276,6 +276,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>; + }; }; };