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: 13655967 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D885B157E62; Mon, 6 May 2024 19:44:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715024642; cv=none; b=h1F5g02L0avPHl6YfFavYQs7Izw4MgMcmLZJbG0F5HnTJrhIDD/ZXrakdhRBjge+T9tjiPpyruYxGAC0GmwE7N6HRXez2Df32f85YE28GWtuEDxrDM1VrwbkQvRVFUdhrf++1SKzlKhUUWp0r4XacchU6M+p9OyxUBC6ITogjbI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715024642; c=relaxed/simple; bh=5YiE+uz1NsSlI6JfLKqXfR1/pbEwfjJl/75w4y4ipKI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VM664T7XfwU4AoJBIU8hxESrqihOp4wa13QcB5wnsaHcS8t9H06JeWc43JQTk4aO0KP0goSUNlcFTSKt1qPJcpT6c0EFLcTUkrbMYwOCO99NJ+pwmA0JXcw+jvS4qYD1WB91YTdOY0TFnFiv7Peb1NZJRH27fnyowMTq1m09ai4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=WwuNRY29; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WwuNRY29" Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-51f1bf83f06so2789644e87.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=vger.kernel.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=WwuNRY29YLdLTt/eo11B2Il23GG7zmLGcD/2UuPWYBLu8CybjSaZNy1SV+n3GhE3bf OpQ2GBi5uCiPHTgo+Hfc+CTbhiyGT9DhCPFcHPRlfYlAeroIBB1iaB1EpWcgB8JfdPfL iOxWGskPWZFptby/1IH/Akco1ptJ6+k9n4kc5Ti5oE4S78oy14+I0UfhPmBb2wK+Suor 6PYxKWKMJw60tjdl4lyGUx2kQF2jU//CqOXMxXV/QJSDw4RGdbrq/VN4+EuGPRW01bB1 hliWsIvgVsPxpbJ0s17Ti12R1OiHY1/o18Pe5mQtqf6BIL1yBA1G+YR/vUxhUBQW8iXz 2r1Q== 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=nSueDAReBJaANqQVRpeGOPcwZvh75PVZ4shOCqNsXxdbE8DPj3qCLqHIvw/Tj4QeY1 oQFAybqiU2zZ9+VP9EWSO8yv15fK0f+GFKgdQkPCR04HaaVX8VF/RmKMC+EBW9QRbjZR Eq/FBz9wb3G/Ls2ih2tLZXp3QjOtN4ex2hS5pEsX9DaNpE9wX3ybjQU61LrBywODkTg+ SzV2/OEpTEEMPJcuOYikok6pV7duzCEuBw8WMIPrxTjvgRCxMwtciEUciwx2UJTxBLtU qH3O9x2/E3I2jtnHz6E90brJQEL+htV+iCeKN5o1TFQhfwkt/p0oNEzDtarISa/h9NVn 1T0A== X-Forwarded-Encrypted: i=1; AJvYcCWF9dqaAOPAweNqfc3T0fY43m7IlCgEp+1gE/LDiN+n9qp7xOvWjZIFVLSbfMTo/M9USt2HHJzcptOgH2oghRpTLo2TsBiEMNJ/2tc3O9IfZKLytACoIV3+f91+yKHE++D1BI/5sGeoXmH1lsgpNJ6s6WcEMx622EEwc4EJTa+dTKlGgA== X-Gm-Message-State: AOJu0YyGXKUAmMaGv28TsMU3K1wfQwWeOYBGL3bOXCYCmzub6elRkftU veOZe92Dk8zF48DkOFp2TOObYvpICdVgkoPHeBrvgBDTPkMd1Jw= 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> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13655968 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72B4815ADAB; Mon, 6 May 2024 19:44:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715024643; cv=none; b=AjNpU87Es4TOU1L8IG7q+D5m4mVgwGr9bhdbve7tfmOD8mB4X+nyrktyAGUQz1va1876TjhOYMbBoQ8OLwm76e6DI2pmILeHvsRx3YFT5fiEUt9JWudvF8KBelHbwAdfOOB+tFSQ3DBnL8QIvvLuBVz1BRvv1D+xRg5FfhujW3o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715024643; c=relaxed/simple; bh=Qbc93fejeeZBPEaqXdGVDK++k4p6bvApcxXTPaLlrPc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=axVInxEBuUEr8q91YWJXNhsqIX46tQsAT5EDQm0sNwyiL9n/u1gNOLVlyog065TC394WB/Bgo22diTHdVMu9j/RQYHr6J5KpjG1tuJpxNxexJOsP7TkS1wDQf+YdFnnbfacm386wn7D3FP+XXnknmyqOT4Wy8RvAsBzHYbgtQzc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hNAmYELe; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hNAmYELe" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a5200afe39eso602682866b.1; 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=vger.kernel.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=hNAmYELeL4pSpoifk9A07W9HYR5Iukuj4Y6cRxxv+TB+e6rY7QN7zmSHgUkgkGXHcC WXhwxCEX0ZJ7XgGvGqo1nG1ZW66zs/A6EkSmktcfGwR3fk71T0d8UY7CAfeB/UVile+x oSD8D/ZL4OKSgU4RdfX8YilvvXXS7EjjrgMrEKCf/EZann6KI2S+G97GSIkbhnkTtvyZ /tTdOB5YKvPwQr3MH+BDPFdCYWDe4NlN5S5UsG/Zyptv5oIlBs6dBxMswYXltZtPCMi7 +G8hcJ41wtqXjzqdU6I8WISDiOeclpk1OoiFXvcdtQ5TkgyQ4ZXrOzb3gz/iwmzO7AkM oQwg== 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=Y8k9Lw6QauertRsEjEyr5iHtFXpypSXZcSEH4oKC4IbUAYsYqkFn6WX3lEWPsQolkq fKBE0tD1Gm4PUVLr+/pXimLcEFJJbX4tQpju2KmefS0GupV5BExglMFhS2xCpGvnaEYa VfOW8GCcy11EbeROnYbVahmzZNTVmCiEEWi5RyGYhuaY4O3IMnZ62bJR5RVSAAAhrUsM WKg2a4PWpqcCsIZlmVJK57VFQkrdxajPEiLRYEHz3YuFiu+j1r/0PBdniaG7EnNQBmWG j3ncFkTA4xFj1AvMZMetfQmVcrpghEzAOrafgLhUWgw0xpXDsDHFis1X8d7+josgDJXN lnUQ== X-Forwarded-Encrypted: i=1; AJvYcCW3xkKU+CQ0/KwAryDOhd2iQNso27Xx+7dXNqCuDeZ0g6bXvQ9NRom+NrKsRmqj3X2jUV0dPVRkQcFGAfb76gbvd1ffPvq4s3fnCosnVZHNgPNud3x9r/WfTU2TpU4tHN1Monh+y8GdOQ5PyuxYQyxb6+xFRfHcfq/a1z//lXulAwxhQA== X-Gm-Message-State: AOJu0YxltWA1YLQWcriAuxNk3WQhQBkRaiO6mRA8Xl2jHcia/Mz4gh/G ycmXGEgiWLi9izqrvle5YmDeg0ufl4smr5KPoBkBC5Qu5YKSC4w= 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> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13655969 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1AD3F15ADBE; Mon, 6 May 2024 19:44:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715024643; cv=none; b=eCfKLudvBSXeTeGc3CnEFE4pcqF5sntMnLo0UjrE7QQRX/A319XmclSQ1QvBLiZUM5q+dlNIlIjGmWX6i47LKKnsVKuIFFV/A9ejthtVjSk829V25GKJ8memfI78i+GH3P+RZN1Eo3o3fHJkct6OVzvjJRSSDonDmrTtj1mIRL8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715024643; c=relaxed/simple; bh=dI/u3g7LTMAIjInR6B7zv39It4pPEM6pc2Vvis9c1Po=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CgnvyGZUe/GfeURd1kCv7YLQJx8wK+3lSUG3qnOkr43/MrC6fflAK8iLpp/u7OtmAvKdhwL9DJwjvqQeKP2Zyw89bg+35YBhXhEQ3xXFWTGtCrJfHPaB15Icbme16NHVMTsY5gLxjcjt69kulk8WCoTSZKkRYe8bEB6rSQysAqs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dnhVr/2h; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dnhVr/2h" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a59c5c9c6aeso380248666b.2; 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=vger.kernel.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=dnhVr/2hTe4HuK8QrOMd99sfx//u4BAqb2WYJ99n4aSAKKAL85zEHLXw2aIoh0cBhB 1jNQE1pskEfTiDt6QqqaHod4ahffvBa4UY7BYMl5uUj6h1Sa67EPyLhg/jcZOush1mH/ ziTzdOIi0UyMlyw8mfhpjzcN/l6LynP2Xv6fdI3vm3TqPJAx9So3X7M+NK9qmN8HBrLO ZmfuOOfBLNd0L+zVN/gKhdcY3mkWAaz5qDaGn1quEOrCwuYvxFdYVmPsWJ0GNzRVjgJ8 qWbjqf2y6L/7re3t6oVFeH/auV4MHz3UZxPhxFDTpPyNAdXQeMzPcs+DmRVNKyxDiCLo IWHA== 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=ACekcqziCxpGZ643gvY/v0U1gUcvxQqbG2QZ6WWZ0mBnkroycEPm8Ly1LGY39Cnell 8EDzQH7ocQloTji7S/8DqSncvaOJvC0zAPtdCDWeM79k1FMk9RDDLhl9eIqDFvQa5Nxb 6qZLdlmLw8IzG7pjCSWND/RZjAoKPlJJHPI/D+8nSGjhn4zI+cXnJ3Io5Mf8ERPe34Sc 31cG2IbSJ9i5AlkYf8jEGbD1/+ov1JwlPDFP03WJglyjeWorS5phYQk7bh6RyXSCEw5l 7afKiH7G5bXfYqWMX236edCAdlb7HONaQXjGhSKAEyTwW/xUVWDTtePf5xN4kzd3/scn 5VCQ== X-Forwarded-Encrypted: i=1; AJvYcCVQQ4s1atK//KKNgJIRWfnsQB4XaWYPUV+i4+c504HoWS/PLZ0AIfB9CzceGzEEk44Jj1f+r0iBzkOIXYyvuGgQ21Ms7eqeuU6S3guawMfl3a1EcNr1z0B+zyyRtrQazkPCiRUHAlj/OFqHhcNERGFtHayALf0EMXQZByhNglXyOYgJZQ== X-Gm-Message-State: AOJu0YzBkcpskpdZOAqbzdLMPnUND3l1i00yhAmPByiyrLvBHjY9EJqa Xuk9nSy3aX3OStWTnPES/cb6Ak6RMv075afpy+9RfqGMOHx/Jw8= 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> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13655970 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C350715B0F0; Mon, 6 May 2024 19:44:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715024644; cv=none; b=T54FEwMLmkIXowdXVol5JWT/TFe9xVOKEt7PsRT/RNMl93Iz/Pf24io6b68Rj1WjjVPvTShSWDOylj4HsGxiuvIu4TuqCQaKJeFS1MCupucRYaW8fc9seNbCON1oq4yrbe/CvkRP5yNsZl7mF7riziGf4ii84g7NcWrEBZbKek4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715024644; c=relaxed/simple; bh=1mVwWv9KBGkg45dlhDTu4/yvnIkQ2Vcw2vs+0FLy47A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=u7vRr8LcASBJuhmBMugfWUoCYM3brpdSDkV7xHcVK0j/uD4MjRRFb+jCiJd2STWLvdBSry4OtpF29aTIJJi2sjjOmCi3bqquLokGD6kdDo43EFJPeg05adpsNIW4jzBd5Dzok+YOs8678ICy7gh8FlkKOHH8dyCZKykIlPsbtQM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HkclSpm0; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HkclSpm0" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a59a9d66a51so509214966b.2; 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=vger.kernel.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=HkclSpm0B9yjCRXQ0E1p4QnvCJF1gp8SIDYo5JPunRl7W/S+/UkeZhKl9gUKhUkw9T 0oyIexA5Oiw/aphtUQUHrzjCqmPnSap1tja6ewnC2dALvkWDXF275MhEFd5uJxJPjb3D 5pexRYnzQRaA6sBMY3NBGu44DoQIHMmNqSiD1eVT02f1LiHZ+eZUDLcSkC7SSv/xKMyC qnrJjMeZuIt84JOBqxBZTFhcG8sMfyjPfYc6I8L1ZdHuK7arKPogrR5woQjKJz+z7Zue MNoJuO/3UsgVXQH7t2VBXusXtA4NyeeMLqvZ77IBI2dahmip11VtUzbh+Bw/gLfaP1b8 5VFQ== 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=nYSDRc+lsZaio6F0lp08dHjIOZqWu6BGAFLyO9xDD3HkJtM0c2osB7d3CuyIAlwPm7 uzDaXhb9wW2cV32FMHwOEDL7R19bOOXYdVfKeJ5WqCpX1bwiEJvVc8rs0qXwkVR5/4gw rgtkp3XJFfGj/YKkdvTCJvkr/KqTbKMkWHfjOBZOq+huqnt937ZioB16YbgyiQIDUjdX bTLylcdFSuLBvoyWXArMdFOc5H1LeR1Y4UcTjOsEv5zPb+Qk2np6gowV5mQgmEmnLY1c 5EiHFlbUEtE06LyIp9mc4hHHEwzKu1nGf0aqWrfFMNljoFlDyJEPdsHqRT/osB+TJK+0 Uieg== X-Forwarded-Encrypted: i=1; AJvYcCVNQozD0c5UThfjqJm5c4FBPgLH9nRIRZPsXGup5yO6rnccVPspJdIZxaioqv5oTHCfa598uDIFdXk6Wf54NQ1Qsy5AfvX2xnua1AEOWsJ6lmQMnV7A4xFBppw5m25rXPtialMNGAnS0IPW7YX/ZF69J8zEhuZZALaGJYtN2NaIAdc46A== X-Gm-Message-State: AOJu0YxkmiODXFrlWv6TVTnD0h688Iymab5eW+vyJ2i4L37sVWIMnncb dJWYzRGmct7BmRTZglRN7UfNCERql3uHfh9/fjm+SzyGXPfQkJw= 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> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13655971 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0CD515B114; Mon, 6 May 2024 19:44:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715024645; cv=none; b=FtjGIwh+GFxiunuoYlKn694bJoSgSA8cbbBoiirY754YNemdo5p6nUIPNYG1grKAhBX5QKGHaovPcU+Kv66mpSoGmyqir6HEYEZIvsrfehQY2Y+ZvhxWvlTaLZhjCtuh+tN4r5f8Fqsb32yqDSsh9xMQKDD9wumhb8RHuPxWbHw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715024645; c=relaxed/simple; bh=91okPIgE1f7hjlZSo4vi6q4Pavv/7dZEBf88/PtHfNM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GA1eT+l1R3+NthF+K1St8WgKrNxcAdMq0qLr9yault3cBsjqiw+4lfUO7TuuOb697y5W84SyGGn1ZVPVXtfJyvktMqpVebHPKDO61BauD+hIq44/F8djxCigK/yHDFcECWkibpmBPRmbyjG30sh28VjUCePFhi+kLnde5a4crzE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gW+Ned99; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gW+Ned99" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a59a609dd3fso378547366b.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=vger.kernel.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=gW+Ned99KSVMEjBe+zEbixyGBi4PyAsBnXPBL0B/IfyiU4djFxOnhZLmUu5CYQN5aY CshVVO9JRT6bo/Os3DlTt6+nn2d/YjM8w2uZxRzHsxRu5cM6h4o8JYBbMcrqBzujbIg5 +XTAEN1LscOvJLZROl0ln1VCpmP1u1cJgjnx4FaVRzlhtstjSr7nJ1WqQFiQvRZbYsiW omTPM/kGoivJY+5WC0xhjxCEQvcNSMcwe4olqeHKmTqmD8vm5luCfUSHBH0Cwls3JE9L BGBbDHi1labnx0LvNmYHE1YOsy5JmwrWxUPn4d0PHhV22qQH6pTyszE1iXTSkyTVLbug YGng== 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=PAJhA1oXTjg/lgfxsZsLrr9sYM3ICHEp1/KXhd28+P7tVq3iPQmFtIQawtzwTk9py1 BW+AFo2FwavwK+qR3n4q32iSZej+gXaqlWf3ysNJ1P3t/x0YNMe+3pjWtd+eOEHoWY5b bGcL6nqv2IvV39JFnpp554oGz21tfos31Hrl0hhMpXv/KuDw8r38IDgkQd4aefucYGAC ukQKeRaVI18UISY1G0vvzzqJo7AeTIQqA9BmbxAonmNBABMigFPu5XgqKKr+s1grlK+j r5WWgBjjgqPNKtkO/PiCvahyDzTuvfSryIfsZICb6ghr228XLwyY6yEhmKrPtjUdUZhV KJCQ== X-Forwarded-Encrypted: i=1; AJvYcCWzsxTjCJzBwgU64wpYUHF2A2+LptBboNFrAyNzuutnguRjucfvCI1ZZve7wRLkXMtXqoYKmuYsdLi6Zhl2OU4BlAc9rbRz71F+TeM8fvysCO8PguJnBXT0Zs+HuO/micdrp4nkSL/B7PUk+Dx39D/H66b2P6NCcWm/j4u14xs4LO+LSg== X-Gm-Message-State: AOJu0YwGUnTK4eTCCt+TW8GZyhklZPZnSGWcTo9YymtPZoETz8vx+kff vuZpQAPYxBEi3odyXd9fhZFKTBsa4pROCe0X52OfSyddGgj69ZcK5arO 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> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13655972 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B0B015B148; Mon, 6 May 2024 19:44:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715024646; cv=none; b=KdphKRaH9dJnkxeT4/jUT+bdKaeVNb9MRA5Rvs2WLIysaaGEu1y2LmyB5hdoaupd6RtqkUE0cO7D1NS9v9ye38STVE4LT/yjVKcsQKtUUO0XEz6z2sOr9p6bxmsnhUvyTqep7ofViNHl1aphpREem+M9/o2u2DP6oVbDV6JBpqg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715024646; c=relaxed/simple; bh=LLeIBmxwK4RPKjPw0WCpx9wI7MnhMjy1XdXRdQZFEQk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TRp4dH6iPbz13HYs/+pLEnDQ+fXpOzZXs2zA8mTFwwH2UDbopMesyVhVx3OG969mVRElDhgZ+DRTg3MAEuWxtcl5qnHG3LV4AVyMOt4G+DmKbRbPj13HvTVjSBtaYJDY4u8ewdJfPfox7HRh6mXNDULde8rGIlDXm6voAnbpf8c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FbNTBhA0; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FbNTBhA0" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a59b178b75bso370859666b.0; 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=vger.kernel.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=FbNTBhA0XWZ956CsPXXuAf68HfAP1Dryplr6BwT8jeZyHR8YuZWioo5iGCyh3gP4KL 6eOCeQmo5s2epSM+j1JFSoLyK6lZSRITbTWLW/X2AlCVqA3WIbFo/eJTyp2tA75Q8A5b u50/Dqe3P31wsAx0Eq8TfU0GtqCD8NelqOARRPCv1SHQvQ69xfNeVTFbAn8gZXhAwtWp 4rEkDs3dahR072nZoDYestvPsnh55sjJT4TXURE+pWX2BqggY497tTz39www7Z39ImZB 6azEgeSebxOCGBvWoRto9P6xSb4zh6I4i+01SM66ee1knd1fISH/0h+Jyr9fTPNH7Amm 3mtw== 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=k60j82ZTsJ5Q1/qY9eYNZZPhLFqc+ovadMJ54T8lQ3DHv9S9gHBWCk418FyXcxk5cV eTSfiafxD0gbvb9CIpQjO/3PkfCAbgFa81GI3KQa09suwxtzCGb/dNLK2uTqIEdkbVSw qrLRmMacQT1/uhaOocF734zXI/+Y0tBP4AySmpQxdis3fsPtuDDm8gsJpiTToJGf+RwA u8WOjB+9rQQBzS05/7h/Y4Xyxvfl3maFgD7cZaUjUVl6duiax9aDS5DT187HImOJKS/S JEoQOgUcIil0ZcY3OrNvDrgiiQFakjKbfv0LQ95dge5x/g30sX5D5cXPfu7Gc1PwsFqC zW5A== X-Forwarded-Encrypted: i=1; AJvYcCWexNvqr2MNGBXi92F/lo0A5p8zkFTwPnjRFvMvELpRPKh+aF4F9NJ6IaXhTvmunNNgAM6iIkKDdWWB3462lC+2bWvqO4+epXv6Nt+CttsWZR8TNOwDNfx7ynQpGIEgDhATv8jp2iKZ0WrYEho/4vId7AIeWpLmIcJVhPvJNk7xdRjpZg== X-Gm-Message-State: AOJu0Yz4oCrIWtiaw47JX5svkmJD9lwrN8AIqm1pc3uMuXYeINE2vNpt sTmtJvurECaHjRsocB5e8MlMSXh7YduvKmZ60pbUc/pSPEFyMb4= 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> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13655973 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D14215B54F; Mon, 6 May 2024 19:44:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715024646; cv=none; b=DKSVOZBJ03xDU17dX8LVJqKH0cUJuoqf3NxldfDnxBkkIQ1nQZpwN0OfhCVmRH0HoeIRs0JGTO7XjQ6rq/tIGLqKLKPrD/Fv2D7W/1MWeuoWA3QgeAupzq4wR6E5v4Dlv+aCnMYxYl6ZLIDRmEyERsbWUz/yDlYr4o1sV+poFCg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715024646; c=relaxed/simple; bh=wjlH4Lt5S7mcx5jnJNpBQbgACYP+Lvxy1N0d55tJixs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Fo2z62Qgc+GQlREe9NZBIM0Ly/SNgzrH+dnpXp7sxolxjyMCNv0VcsEVrurjy3Q+56Hs62WLFZQwZolCm5atXAtk5xvbzvr+Flo348g4m5cGxPdDbL99l/B9yiClnSYcaCdOHtCipN7QHiolWNRWYHxg36ONxbXS+zwODUNxpIQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CRrVckZY; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CRrVckZY" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a59ad344f7dso434099566b.0; 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=vger.kernel.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=CRrVckZYvWMRFB+7wj0wLjfATPj6wWMI5TKwM2GCO/FiHm52/gn9bA5T+ms4dGa0db DU8TR/Ca6z8SyK+TODW3UiDV5k1ECNspInbj/yt3+ry/XxsFVDH10c3okf6i3QoHV2q+ ULFJIlbg+QSBzKieT755z/ekY9be7QXoI7MvHQmZOaRmEG+w8VERoK7JGnab33vfin8a 41YXDWlcIUjtOGT5TEkeLbKxrHuGpos5SrJybjBerU9PiE/8QHg0FqabZwyyOHqCwkkU AoGQo05EJ4uZR191/y/zZ3y83rRwggrfKoEho2R4IlpBApc6wkshh6VLhAveIkTyne9T P44A== 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=QxsLDWb97JkaxtenVreuWzQDNTZu+ee6ENgkqENRzL4q0qHlGg2rCyQ/Tqee9iSeXg u9LkVYDyPYbGOXhSEi/QWkvi6xLwtyrtzIhyWICPlrDVdeLpyFrB0xE0DjFgV+SSZMxo 4hLI8ywaayWoTu8dhJNV7n4yyGxQWmSils0XIA9E57pDR2p5XN0mnpZIZf6aSho4wYHg UuKd+d4Qfs1Zup0NHCD3OVaivZPhwyjRFPeh4XQKP71UF+iKMOGAnls38ecauBhII2KC O32CBbXiInxoQAIAXBh4N2BRYaeuKZKCRvPJ1AjckWa3d1Fw1+Tk7DMj9A3p6+x8Tspt +VyQ== X-Forwarded-Encrypted: i=1; AJvYcCWJitviFKZoQWFM8VjKQvyrQAb/16Xn+kaTddenYqhxbRe/CRgU39r5Jk4UkN8VXIY+uCnNXcsENZeX9Ssi7SnAImsxR7KM83HzrJC+dzyuBm4PL8RhXnNadRT1DN4x9V1avO9h5oc/38+TufKsExDj365UwKvTplnuft7cvUYIGj7wbg== X-Gm-Message-State: AOJu0Yxbbdbt1p6Y66hhGv8zsRzD0KHBlhSxyaEl2MTrM//M+UIjfDl7 IaYJ1DhoW3i5NlbmGfhOfPWmimdvEJe3Syiul7X6rgNZR3ImMig= 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> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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>; + }; }; };