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: 13655959 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 8AFD4C25B10 for ; Mon, 6 May 2024 19:44: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=Be/XsOTsRIV6n9l3n6sZ1eWMhczd8TyKobUm2jTDTZs=; b=SusibikikBmeAo AiFCPpdnFr+zUNJwxRMVTOyRGcVgTKjKs4a3wM+IVwEy08f4x/rrJdIYHEeI3B/ppmSacmO9zcd0o Lb1ZYR4JMuZnrtGzeWhFUpeW/LoFU/5I6DH37c/p/50XfT+2U0tfZBLEkRdlCpFQ9ldIP03z/3gru WP0csdgvR1SvTUClssmsc5nCJZ+6YusZQ2CEKtpn1fz4q8bGj0UFeMi7VMGCLk0tDNrh3s70VBg35 CRFNdt8jB3A1VfCt7cjRHh7065SSg9Wi8k+hXIRCj0MkH2WW3XrUQEsSbKHt5ZlRxc1p5AgczBhjL qp20zxh6Cv+CPKGYeDZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44Fq-00000008YCi-2CWQ; Mon, 06 May 2024 19:44:06 +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-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 --- .../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: 13655961 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 6CB72C25B4F for ; Mon, 6 May 2024 19:44: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=QakXZr/VyUgqbjnHqbGDaBF91cTzGdovPgpukAIqidY=; b=191jPbtv+kF3pD ubY+tkWIfKovLh4Lt+36u4ik3phoqPFzM0XegHRqLiAeY3LRNKrNfjiZVnWfcbS1lLM5xXQMOth55 O7+gOC8ieZ7F3tVArb3Kj1TzEQ/Msx47dXxz84on1sEW+mntf0Q9eZUJJeEuBS6TdtSLE2KTf/aOd 0z0HQJe6Eylq5/yapoUqCsACuzjHwtAiMcNfohRX4IvgjW3XkomkB5jE9HhN0C0YM4bt5+b38zKXm hbb1Z6E9gfEhRXXkIe4VGKEcOlc4sx8onL0jig4HfRG+llpmOyxE5IPxYMXgQn3xfeM7tf0/U22qm mmmzfBDWzG48enobDZaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44Fu-00000008YFz-0yrz; Mon, 06 May 2024 19:44:10 +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-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 --- 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: 13655960 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 F41E3C25B4F for ; Mon, 6 May 2024 19:44:23 +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=NjgfKcIwwC1/CLGsJmLHpDTlNxZy5778YoVUdEUV3xc=; b=K5jP1y+dGwHDh1 2q6PfBjujqtRjgDVMUC45X0JfRP+PwSe6aaC32wzmhUoRLJn4dqnxui/9CfrsjET8lOf/xNmGmXw6 igRuF1w+pKsmDTMYgjQdkG3Ry66eCLzMOIBtYxAbhNp7HkdH1GOAFdVeDd4wqOE3UE7AtmP+IQ6yp wbkqWIX+CtJetDpeAPjGe9GyDgl42PmfmtJ1GNakgeUqko4PsfmjolXiySunUCcN2JgJi9Gjsz8CF GuqcZs9/VlmDh7z6hwAmYuas/3INrI8CALSCrleMr/oHLipRroxwJNxVOoJzIkvfIj6cuknTXA5vL KWbU5Ka28WJWj7nLWDew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44Fv-00000008YHh-3sgY; Mon, 06 May 2024 19:44:11 +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-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 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: 13655962 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 B5E29C25B4F for ; Mon, 6 May 2024 19:44:30 +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=fgvKLBbkAQL1cJhF/GcGomkpLuk1CeWehFwKagAUPMY=; b=3PJloq8p+TIce1 DrtJ73IDEyS+YJDTW392zBd0X1rbD43fRf89sTrk9p/W9j21Pyimnhne6N2dzeT6bjBZP+4m0Yrgn l1C36lujIAAJomDJdE+CuPGUmTkMExJatE3RyC9uM20j/b4G4p7ysYip6C1ltpFsWSSJIDYQSyje8 KlJSlhHl7yRUd18VgLuUDcqdsZIvpm8Hj2OwzK6NnbFZFGm1NIs+iuJF2Z9JlED+6mrz4A54/9aTY ie5k7jp637+opmE4yjfAqWiQUz6a5JJI17fRkak5kOvZATt287TBoz1W2QhLZC9gV/bTdSdSwrbeO 9evWUpqQL1n5bD/3U0SQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44Fy-00000008YL4-295m; Mon, 06 May 2024 19:44:14 +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-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 --- 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: 13655963 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 22B87C25B10 for ; Mon, 6 May 2024 19:44: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=U6qeWdqUkgv/NY04vYdWkau1BC0nVKSDLGgHM1aTW3c=; b=Z32kq/PPyoljCV 52FceTe8irVH4BbM+AfGLBSXHgjGAqcUUTJG+pTn73JUVb7xx0eW38fBKNMsPzdVVqWrxCV3Ibqi2 FGF6nY1iu2rWViBawhkCsFjjhOFe4HJ3WLbVntvhPmijbZvCUqAsRT/EReLl4tZ2OQ0y1ZcSH9Y2A GqZy7jWHND9jN0t3I5KW15ZS8Wu2qtXjXyB8GjJZ8WUEcvRY/7vxtaWYb9wR//lWgqXbRjH24zzo2 smUHLhvdFpnVZPw7G52BpUtKhcZT2GIRdtE03XNnWyBMSQJreoH4uN7MWzFDHLmShzr4k1Z/KhMWq U0+iq6bqGSXCF7Wwgqfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44G6-00000008YSB-0GVI; Mon, 06 May 2024 19:44:22 +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-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 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: 13655965 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 47E02C25B10 for ; Mon, 6 May 2024 19:44:48 +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=/UYcDdecK3RlDrfC0FTTcqsm9jHHSQbdoMqsTmkmzLo=; b=yc33OTA9ONgHr3 F2LU3qGxpaWSOI+Cd1Ut6wuxyLiY42Jb86h+uob3I/oPCvKfzoKV3tevaJBBpDMhf7bZo/kCPDtRD m8aVZBOYc23X49H1fF+iNolBHBXt0/ejdeFo6LHO2ZR/Q9eZhkJzgbBbHMniqoXvbAzIphcQPCE2r q4y2rmyj+SXar+K1kuooklN5cikZCQt/YX5dmQkpFsZ4tqdOeeuMHLU2XkrRbInHo811YNI35YlRQ woe3JBvz6Yvtm52YKwM+fZZZgi6Sbs+n1/JyMRN9fAaD3caNTd01CszIpvxt62emCCF0p4VxDUF+Z BfFJWu85knz8w7HzoMJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44GK-00000008Ygi-2NKK; Mon, 06 May 2024 19:44:36 +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-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 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: 13655964 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 66CBAC25B74 for ; Mon, 6 May 2024 19:44: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=HCT20t6f5nk3kiF9kbz+JB36U25DWV8yoooFff2DFmE=; b=I/i62LnSOrlN49 NO4Z9gVRczB17y3hwo71r3wzpb+8ujd8AGuvDDVpUJZDAtPucn6FfS+xSV6Kj8Wq4kXuQPMwEtAob Stn7QDOxW4bB0Ls9fsijix9EWfsU2xdfC286FCJA4j+0PKhHcLArwKI27cVXqlRzVk7LVcDyEDt9G BMcxINnJYyc41KLhX0ESzvrkpXeArKiWPRzr4jM6lo62HLjJiJvLrvnQAlclvSTBS+18Aw0mr7mwV YpQxcfiGHUzczLR0nE6B4k7sT4wp7IrMuPASzrmGEo5CLrPs82z6fP06S8xW4IKxS3eNCrLPWRtri TLb1wUxTEKIcqjqX8rNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s44GF-00000008YbM-0PnL; Mon, 06 May 2024 19:44:31 +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-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 --- 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>; + }; }; };