From patchwork Thu May 9 14:06:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13659781 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.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 5DFCF15B130; Thu, 9 May 2024 14:06:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715263621; cv=none; b=DH99+1BjqVbtnNqtG/xznkcj3JkX4pn41/2tf7YBkb+Ub2EC2jVINAgF/In7JugW4oOayN0D7bn1m1G/VnMO9NwUGp+RFfEpibZuymOui7YcEjkYmNB1e/7r56Oma21QMmWol2DHaF0LhOeKePPx+tKF3AlP0pGZpTRivDxWjL8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715263621; c=relaxed/simple; bh=lQ8brj1TrE1qzkIXEeU7rBlmiZmuSyA8wkw7ixpriEY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bBJYWtcmP94H8PCL6p3DBw4JCoHJlTrOymmYLj5TsWCx/UmlKFoabExLxgUjOYR1q1QceNclID/SwH77F6NPTiV4Jkr8tfgY30efsnAUUmme83+V5qvz3evT9C0LOXJm9ARl8tk2LpcKQ9M5T8NEUKH05ncnLx928nPoGdafdYo= 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=O9zFzdJ1; arc=none smtp.client-ip=209.85.221.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="O9zFzdJ1" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-349545c3eb8so503051f8f.2; Thu, 09 May 2024 07:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715263618; x=1715868418; 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=wbWVkqkhZ2d0PkibWvpex0qMFtjGLxAjIIoCdT+E/c8=; b=O9zFzdJ1ePt7OmtEF4iw1PQZA+mnrd39dCiDlIqgwtIViSP0JaeX84lEPMeBiR+jLn H/WMApXbHtAtN7HHSIIdhodVL+r0QVQfkepB9tR8FW5rDslcRYOSmf5539hK0FGLYYCj oItvf7hcHNmgb6ry7uGgXUJlhdRGkEbx6i5J8F3uRtYJANB4hzdQnxju26QATxHdbrm1 KrCQdlTOV03rEL0ORFi2ctqWWvPYWObqHZaLDpwqbg+8G2B26sss+rU1wejJ9hITrqyT rJInFeeYFQ7O/mOGr8ymgRzIM997YkxS7A7gAk6/4ZN4A4BjHmnIxg7j4Osa2ybxFfjQ f9zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715263618; x=1715868418; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wbWVkqkhZ2d0PkibWvpex0qMFtjGLxAjIIoCdT+E/c8=; b=r5HJUgLyHc/ZkrBjDOymOISouqvYTItlRNgw8vsyGjguHGgk9VrhWBhfABZvbilTla EsrGtB4TF09tHjw7LfRrHfAPhbKIrv2G7vWWl0zNF1WpWYMl+5QIyOvfzyqzadnRgYA0 Ves699QhdAuFKcQHrCWqjVXz4kpgP2w2NyzcHz1VDkPOa5FX68GiAn7iO71Spi8ELpIw kx/Jd0PwYjoRE8E6OA4bRT8qbt2FcSCk6p3nZNPbpd0u2L1nSj+xZKQy4Vge4GfGF2Ay 3OINQDVvO/oyRKucuUVk5MGd/exFSrPYFCQypb1IOXlPzcQsz8vNh0xAcSYoClzMT81r mMBQ== X-Forwarded-Encrypted: i=1; AJvYcCXevddLPmAZ6TwZ8I4vS+ACfvuzKM/qVK2mgHLubUoHlzR/3t1VMdfQ0katFp1kZDX1jh6/6gpC3YOV+EkIRB1WKrECyfOuzyBOAmiRgS959P0c3ZsOxPqKE2TVYtUg0q7ur4T53Rdy8jfz+BnL0xa7mT01QICewiR0Y/9dbT4vLCYCiA== X-Gm-Message-State: AOJu0YyIWG5fc65Q7pLlpTtn9K8nakRC1hBDy/I1noa0IgHWr588AeNc Bm2Z6BMflWP44vdk6evs6Nk6WFxBdZn7T09UGe9PhrvwiUuOFxA= X-Google-Smtp-Source: AGHT+IGJGV6bFqKBadGxqXhAzkF2pE6cCKZpD95eQc6VzdGRYvOXM2SRAFICzVxoDStLNZJ7jxAXuA== X-Received: by 2002:a5d:6e8c:0:b0:34d:8c1f:3194 with SMTP id ffacd0b85a97d-34fcafcd7afmr3768024f8f.35.1715263617622; Thu, 09 May 2024 07:06:57 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:b44:d8c3:6fa8:c46f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad058sm1793311f8f.66.2024.05.09.07.06.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 07:06:56 -0700 (PDT) From: Alex Bee To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Alex Bee , Conor Dooley Subject: [PATCH v3 1/7] dt-bindings: display: rockchip,dw-mipi-dsi: Document RK3128 DSI Date: Thu, 9 May 2024 16:06:47 +0200 Message-ID: <20240509140653.168591-2-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240509140653.168591-1-knaerzche@gmail.com> References: <20240509140653.168591-1-knaerzche@gmail.com> 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 --- changes since v1: - added ahb clock changes since v2: - revert added ahb clock .../rockchip/rockchip,dw-mipi-dsi.yaml | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml b/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml index ccf79e738fa1..ccd71c5324af 100644 --- a/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml +++ b/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml @@ -15,6 +15,7 @@ properties: items: - enum: - rockchip,px30-mipi-dsi + - rockchip,rk3128-mipi-dsi - rockchip,rk3288-mipi-dsi - rockchip,rk3399-mipi-dsi - rockchip,rk3568-mipi-dsi @@ -77,6 +78,7 @@ allOf: contains: enum: - rockchip,px30-mipi-dsi + - rockchip,rk3128-mipi-dsi - rockchip,rk3568-mipi-dsi - rockchip,rv1126-mipi-dsi From patchwork Thu May 9 14:06:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13659782 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 0394315E217; Thu, 9 May 2024 14:07:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715263622; cv=none; b=YpwVrNA5vbI+Gw4gAYYph5TvLXxiQOUBBNzpSHQ8I6z+yNT+bh3ADiobnjNM48HzCAu7YpagV5vrWCnEo0JJ0egRoTogQLoSj3ntm9z4v6Fxqx8r05YLACWFTm5K2w0a7WVsn678/bgx6EH0v8dAJ3S86fhttaFrLtVLu/AvB2g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715263622; c=relaxed/simple; bh=SPjxVKOID7XKwG5rve07qItfubtI8Vzo5fgKLdhrNVc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P8h1SVE8Fc5gTZ9sQd5oymlnQAu86mo3OzsKtnPTynlY9k+W4fjxI9tG+/Y9KxFLUwSf/pSM90x564+gCcvKeBbqDinAEvhEO5UAUwhIlj2HS6VgPXJnK1stXYdDOBjriAdBxSXStKb8qQkV6eEQ8W+mXmJqJ6n4xKVjeHTwdO4= 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=b2hVylKv; arc=none smtp.client-ip=209.85.221.48 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="b2hVylKv" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-34fde285fa2so664120f8f.1; Thu, 09 May 2024 07:07:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715263619; x=1715868419; darn=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=CkypWPW9zjRDxFdsbSAq2JqA2c+afHrqHIvisMDjIts=; b=b2hVylKvoGviCuMGRn8xhYUHAlEQGlrYvfn0cS37HogYTcmLXn5VhHEQQUT974AnIH mPkQP9kdrmImtF9TprYqO+gZahEH1a8AKPDRkHdkxtT0J2TqWbeIcGGAYbBoHD6RPkWW 1qXzWRqbbH4d6xm9cieh3vAFF5SQwB0AMepV2y3wtaakmPSFVA4FieknlOlXN5JHAwLH 1pRUP6aCByLxrKV6pRCbizRRBK8yGm6QMQ3bTiAUU8UvGZiLmeCC0+1fS7pmsnsfUZOZ 54iVIncUqsQiII7t7WMgHmGSk7+gtZQBMm7ELKke7D6BOwOrSLTCApMrrK0BnWHpx/HP 1YjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715263619; x=1715868419; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CkypWPW9zjRDxFdsbSAq2JqA2c+afHrqHIvisMDjIts=; b=xGPtD44Z1cOF4Xn5tdfk3fo8ZW3/jMh4arIf/Nsb9Fwu83gY9fFbSELFWDKnH711Gj c3IRwg3D9oPxMgCfeB+TPN7QmyRSyKzF5DTN7mBjUKi1QP1Xel4V5+bAyxkjWELmdiaF nm0jHQZES9F8uVvYTWfMs4ShSGiHos/jaFJt5HjY3q3DJkywXRJ0iDVZSo0akQmNGBv/ V30uSpmh1LWiphGAVyewUYAAXzFzEvprc+F4u5RDyAdv2cMjwCuNisqucTueGbgpVDx1 yk/VXdBetpB7zIHyy2oFVr9zSaJwOlYg9N29qh4UXqza/nzRDGJ2e9NyYN3W0iUh0Lnw 2OmQ== X-Forwarded-Encrypted: i=1; AJvYcCUrKguegGGFwaMLJFTL8glNhH0FJMylAyxRboSKygOdNhM1NOw07Hkkn7X6mxhOpmuahv1EMrUZikLOMQJv+w5u1/k8cNPoo1nqoGpHIbBZA6az9va4KSeRTsMfv8dJrJNT5klH7SDp120GavVhx/toOb2SO8GGxxtqHi/XlUuaqjUJGQ== X-Gm-Message-State: AOJu0Yykuc+iNWovqkZOXD7VKvtNlD60yJb0otDOR9zbHavMeKJeSAzl hesotkrk/QwTPdDuMPJ4oz40/8Na3iTNtgH+BK4oHxtW1syXQv0= X-Google-Smtp-Source: AGHT+IFqb5Butmg/XL3s32gTYjgv+S8OXC4Ust9AbxM9joeLAhE7w7QJYm4NxRM4exE+Z+nqR7jOZg== X-Received: by 2002:adf:e904:0:b0:34f:7788:37ef with SMTP id ffacd0b85a97d-34fca244116mr4586628f8f.29.1715263619359; Thu, 09 May 2024 07:06:59 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:b44:d8c3:6fa8:c46f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad058sm1793311f8f.66.2024.05.09.07.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 07:06:58 -0700 (PDT) From: Alex Bee To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Alex Bee , Conor Dooley Subject: [PATCH v3 2/7] dt-bindings: clock: rk3128: Add PCLK_MIPIPHY Date: Thu, 9 May 2024 16:06:48 +0200 Message-ID: <20240509140653.168591-3-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240509140653.168591-1-knaerzche@gmail.com> References: <20240509140653.168591-1-knaerzche@gmail.com> 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 --- changes since v1: - none include/dt-bindings/clock/rk3128-cru.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/rk3128-cru.h b/include/dt-bindings/clock/rk3128-cru.h index 6a47825dac5d..1be455ba4985 100644 --- a/include/dt-bindings/clock/rk3128-cru.h +++ b/include/dt-bindings/clock/rk3128-cru.h @@ -116,6 +116,7 @@ #define PCLK_GMAC 367 #define PCLK_PMU_PRE 368 #define PCLK_SIM_CARD 369 +#define PCLK_MIPIPHY 370 /* hclk gates */ #define HCLK_SPDIF 440 From patchwork Thu May 9 14:06:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13659783 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 5C73315E803; Thu, 9 May 2024 14:07:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715263624; cv=none; b=r9VT9ukb1qz/W8ki0bUeabZ9TTgP3WIPI+YeS930IP3OH5K6rcjl11CNesIsASKDaTCnABwRRcA/DDFzxoYA+kSt7Cz+OV109XOMUIZonSrzS9n4TuBZU0aQEfhR0Cki3SVf7yFJxxS4w/vmIBYzBGO3WDnfHSeJPKrV5JBHPTk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715263624; c=relaxed/simple; bh=BqoenIEv/wpSJyCUmOCXUdukroC8lH5RwOBjFfONYf8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=O9UeR6OH6A6fz/dtsOWjX4k4OUDld6OiteOUcFO+ntvIueqr6KD2Wq8GB2sKLRIytneDcBdgoKIFnsOjVG5pOTnZEq0beIdfEj26F21dtKrALGV6CpqW8ksEOP/YuboIkK9BDuQJHEyqaNfiElf40JGY1PxWLwxYniuxED00ca8= 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=FIuDMcQi; arc=none smtp.client-ip=209.85.221.46 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="FIuDMcQi" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-34fde285fa2so664141f8f.1; Thu, 09 May 2024 07:07:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715263621; x=1715868421; 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=lAJ0ir3EvsiOixSkrLpbfd6IrLvM1qhtQ0lJENdLIss=; b=FIuDMcQiLdc0k+rk/Ol1cJJ4tqh0ElEq/6d82INgBqS6YkIcRhrYL5uI52lKsDuvS6 el99TtKG0RhEA/3DbB56QfgUhuJPYIVt46MA4+i2TRwsjccSaURpCnHgchQgK03Ms2FY KXoMwi77J3B4zCpTpjR1ubatF9AaBL5TRBjSreI9VNAiIHiKsvMBbi0qPo0UVRkh4eMJ HgNAPc6xjYh8e3ID5JpXSmlbco/2ZmA31KRIW4mRV5mdeebaQNuUJxLMOCsJ5hC00qn4 iwGAVRZVfRpgQ8gGoFFB5Se2vw/WqGfQpep4iIkrjTeRdQCq4E9CjMVaV24uvGhWZhDi VxfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715263621; x=1715868421; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lAJ0ir3EvsiOixSkrLpbfd6IrLvM1qhtQ0lJENdLIss=; b=wzdMwrSpq+2TjsfuzPmEf04Adhdrr1vCe+4Wv4dFDsKibtVrpe8XjP2oHlQj+fiIEh KmIXa2RQluJpJn6mluFokXdM2jk5uft7AfdEYQi65n1+Vj3eE1h/BRr+cYZSEWuSBlf2 x2prjKCSy2A0owciEMYUz/RZ7JrkGLhl9JoLWFDamAKe/niUv+jybgNKql5Wc150g218 0BGk6SuZOrTdGnuimQRzH65nDtLON83MhQhqwR9DEXU3T8W4/WouT1I1am3qzUhzgpyT 1Nrn2mGkTYrRZZWc6/OvGBpdcQR1UYGE5RlcopAPQYDev0/CEo5BT04b/CVpTW90BonU 9k8A== X-Forwarded-Encrypted: i=1; AJvYcCWPNtL04AXSCUrHy5fnFJkYsRtiaQCKbeuW3sV2nrUVGIN64JcKRt1htV/VvoXt0ZjIrbXvVUzNebOtbNcoxgjM57r5el0ixzVF2/FwhinqNtpdVKBvn/QNmjloN7+2lgiAi18AfvcUQ+O7YUZEGTg/GYXE+6J3GSuTSrQEBpcHjudVZw== X-Gm-Message-State: AOJu0YzOHyzhuT7po0qAfqB2oXaY6yKEfNyupovuW8VM4hNLL/GWXsda A4XzSlTYp4nxABUG2NpMgSneH/C7Ktwkd8Ymdgwr5s0drVrH4l4= X-Google-Smtp-Source: AGHT+IGDm2zqiPzTsp+rCVEziHjhfj96YGRsnuCAnq5URS0U33f4RSu428fC/l+DFwekkggv2NMBOw== X-Received: by 2002:adf:fa07:0:b0:34d:b4db:9927 with SMTP id ffacd0b85a97d-34fca6214femr4085933f8f.50.1715263620665; Thu, 09 May 2024 07:07:00 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:b44:d8c3:6fa8:c46f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad058sm1793311f8f.66.2024.05.09.07.06.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 07:06:59 -0700 (PDT) From: Alex Bee To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Alex Bee Subject: [PATCH v3 3/7] clk: rockchip: rk3128: Export PCLK_MIPIPHY Date: Thu, 9 May 2024 16:06:49 +0200 Message-ID: <20240509140653.168591-4-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240509140653.168591-1-knaerzche@gmail.com> References: <20240509140653.168591-1-knaerzche@gmail.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Export the D-DHY's APB clock for usage in the DT. Also drop the CLK_IGNORE_UNUSED-flag, as the clock will be enabled on demand. Signed-off-by: Alex Bee --- changes since v1: - reword commit message drivers/clk/rockchip/clk-rk3128.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3128.c b/drivers/clk/rockchip/clk-rk3128.c index 75071e0cd321..a20d1fd25e2a 100644 --- a/drivers/clk/rockchip/clk-rk3128.c +++ b/drivers/clk/rockchip/clk-rk3128.c @@ -526,7 +526,7 @@ static struct rockchip_clk_branch common_clk_branches[] __initdata = { GATE(PCLK_ACODEC, "pclk_acodec", "pclk_cpu", 0, RK2928_CLKGATE_CON(5), 14, GFLAGS), GATE(0, "pclk_ddrupctl", "pclk_cpu", CLK_IGNORE_UNUSED, RK2928_CLKGATE_CON(5), 7, GFLAGS), GATE(0, "pclk_grf", "pclk_cpu", CLK_IGNORE_UNUSED, RK2928_CLKGATE_CON(5), 4, GFLAGS), - GATE(0, "pclk_mipiphy", "pclk_cpu", CLK_IGNORE_UNUSED, RK2928_CLKGATE_CON(5), 0, GFLAGS), + GATE(PCLK_MIPIPHY, "pclk_mipiphy", "pclk_cpu", 0, RK2928_CLKGATE_CON(5), 0, GFLAGS), GATE(0, "pclk_pmu", "pclk_pmu_pre", 0, RK2928_CLKGATE_CON(9), 2, GFLAGS), GATE(0, "pclk_pmu_niu", "pclk_pmu_pre", CLK_IGNORE_UNUSED, RK2928_CLKGATE_CON(9), 3, GFLAGS), From patchwork Thu May 9 14:06:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13659784 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.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 96A3115EFAB; Thu, 9 May 2024 14:07:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715263625; cv=none; b=FuzBtFIHynWFGDsfG2ppPzN3TXCx70+uEUwK1N91TQlYbrPE19K71caKVbUqWoLNfC7UfYlGSVf2KryIBI0BLLrYv7zz4U88bJfJaX8KAMeUxFBa0+lMbX3v3I2LKZYFj6hxAdiDbKC62DhsE07AYMSKMgKKI8T1cn46NU5H2zE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715263625; c=relaxed/simple; bh=Wa/CC5sxZ9kY4yNvSPynmLSupvk0jkdpLrwDD+8O47c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KvbvC8A8sXDiI7xcOY6P4uMq3pB+6+XfpKCZxfSK2Waw1MnmciGMgGWe74he1d6IvUsh/ScLik/8KmUPR1I3tCqJ98HTOD/33TpkY9F4+g8e6+GZgx7IXDAAV/tUoN/QiErgmVp4uUj/HLblusuFgMj6dBTfAPg7PtX+GV04hzQ= 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=jLP1ffMg; arc=none smtp.client-ip=209.85.221.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="jLP1ffMg" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-34d9c9f2cf0so725665f8f.3; Thu, 09 May 2024 07:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715263622; x=1715868422; darn=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=W7sDaxG0HvtHzdSFKGwBhhlzSS8/ejghi2usyHe6yIk=; b=jLP1ffMgfLVHvSo5N5xjWrLjsQLQCnL9Lgn2kUBWFYfgzQqnpxH5MJZA+/oP/HO5a1 F8z12Ol9YJitKQhwfT/b9cHnI8zlugsmTTTzbQ1tdVbqOTU3P3sPzw7dyVuKSHLvca9m 6Zb7EqdXhI5VHbn9AcePwlLe/CvRfWJF5r2iwgLSWoAP5W3/oKYgSY5zK2bpZEf043xa Q2ztDcO8szB/tpFfycMDuAD5BPkF2ZcwNdUBbjBx7o+1rAMgrddrPEpiVrbQpurzjd+p a9NYbEnQK9yIixwWsx3JoVL6AZFl/9K/5cG49WzUW/qHDvZEPAa1OXiiHYm6UFj1iqgY RK/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715263622; x=1715868422; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W7sDaxG0HvtHzdSFKGwBhhlzSS8/ejghi2usyHe6yIk=; b=SUdDuDUUSNFeIpxmHHykxtS9/IUJr0epePHc5vDchg04jB7p07dujXI06fwtQdXyH3 xwKbkHmLOS+ujKm212CF3gbnI1AFwoJYtNKDB7ShG6wxGMKB7ezzueOZj8/Veyv2VJkQ JQINHxf5OnG0O165wF8tnB9vkOcIr6k8KAB3Ck+MPVXBxyejNlNMTySSZHw3lzlw3c+K 753AUPG3MCdc8gflVmNyGQqOWo6hgidgruUZ34SIBUxfvNiCEWbtnM7Wgs16Ilj6KxOh oQ/yz7BW3yF1cVbMCDiymZqVaOylTfl5QEsmfeYJpPK/XFgc8ugYx/LVdaYMdO8THgQI PejA== X-Forwarded-Encrypted: i=1; AJvYcCXvTvUvXd9KScQSrfMWbin9kLvzAgxoo2osYCG03sHy+ZNk7i3mfS5SY1XNSjkw1ueMfaz9Vi4yUq1BA2EZD4pnt5RGoJlYGSEWi5BUt9Tn7kXeNwc7T6XS7efIOPg2pcjPEZ73zfRKJBfy6TlRauaCkKAMbwZDtuHCWUViF3YDplTD2w== X-Gm-Message-State: AOJu0YwR5q6slP+0vud+yix68ODIszwvUmaBjjwoyTlXfqmW+hkygsXH pIoToitpKtbttNrBbpHsMasGB4WLWU9cIdvohp+KMqjQ7pXDB2U= X-Google-Smtp-Source: AGHT+IFljPNeI2NnGG45C+k3hGACkIN7MrrcjptnJgVqnmjgLGPcaqegGP1B5NCUyh20R+F22xanOQ== X-Received: by 2002:a05:6000:120d:b0:34d:8fac:9540 with SMTP id ffacd0b85a97d-34fca80df25mr5625135f8f.59.1715263621985; Thu, 09 May 2024 07:07:01 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:b44:d8c3:6fa8:c46f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad058sm1793311f8f.66.2024.05.09.07.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 07:07:01 -0700 (PDT) From: Alex Bee To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Alex Bee Subject: [PATCH v3 4/7] clk: rockchip: rk3128: Add hclk_vio_h2p to critical clocks Date: Thu, 9 May 2024 16:06:50 +0200 Message-ID: <20240509140653.168591-5-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240509140653.168591-1-knaerzche@gmail.com> References: <20240509140653.168591-1-knaerzche@gmail.com> 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 --- changes since v1: - dropped patch changes since v2: -re-added patch drivers/clk/rockchip/clk-rk3128.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk-rk3128.c b/drivers/clk/rockchip/clk-rk3128.c index a20d1fd25e2a..d076b7971f33 100644 --- a/drivers/clk/rockchip/clk-rk3128.c +++ b/drivers/clk/rockchip/clk-rk3128.c @@ -563,6 +563,7 @@ static const char *const rk3128_critical_clocks[] __initconst = { "pclk_cpu", "aclk_peri", "hclk_peri", + "hclk_vio_h2p", "pclk_peri", "pclk_pmu", "sclk_timer5", From patchwork Thu May 9 14:06:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13659785 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 CB32F15ECFF; Thu, 9 May 2024 14:07:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715263626; cv=none; b=jp8FT76fS37CQXX6Kq9oCSnttqIdrO+Zdb6c3oqMSJZ6LlnR6d0k4xfPhHqaknD6cWNDx9VB/ZlCXl/NI+CHC2THHY+omHtAH9/rybrw809ylasNUOJRrpIFG0X6mraBzkgwtTs2yZPGyUxlkSllI2yv4JdpPkQxItaXbrQAhHs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715263626; c=relaxed/simple; bh=w3PWZL8h5EAfK1fTlHXEzBZ7j3f7NIkCbUbKhL34M7Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iIeMJn9+BGRc1oY2ezmtia5alA0Wd/GtLIZzS3/S0K0FTv52RUPLzgnhH8uYthrbln8truPpEY8Jg7JQnDTuhu3cFupjQtBFa1xLCMWCpxG5qQERvcGI5OKCmELdlwcbUfjKHnj4ac+kJI+dlwFCX5hI7W2MTtaxPwOIGET/Pjg= 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=QyxXXVLi; arc=none smtp.client-ip=209.85.221.46 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="QyxXXVLi" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-34ddc9fe497so499439f8f.3; Thu, 09 May 2024 07:07:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715263623; x=1715868423; darn=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=gG8NnG9MCxt3FCrGHfY+CHmnXlhVbyAkGBrDmW81e5k=; b=QyxXXVLiy73/GZgGbNqg9Hm7OBK8aIQZ8BUcoyQO/d/Y3Yz1Mjxt9N7NvtlmSl7mQm GOGguMsNn5SWF4vlA0lsiYqPciEvTQ6CQr60CD61+lm+8d5nq0e1LrDcCCVhLqst3FOY pRIaLCZV3sIwnOJryCSnWcDlhAU7gFjUr+R0SVeiX6EqC+o5Hu2ZNbPPsM84IgvReKF0 ayTqkQ9UHqC19UCBYi6dkk6xZ8ZAuHq6h9zJS9vXfYVniDsC6bXYANtCJ96ZUOdlWabv CXUd6pwe3lZeje/iG5yd6FeLN2iyMKCPneCfcktjrEsmr3PfLExmegE3hxVjITFXF9+f Ha0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715263623; x=1715868423; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gG8NnG9MCxt3FCrGHfY+CHmnXlhVbyAkGBrDmW81e5k=; b=gveAwVxtzJk7+kLA/sjtiuBE0mjLX4qiJ32NvygS5j6ub6jE3grpJgftqIj9qc4BWP Xg10vVC53Iy9EIWPpqbbwMocyDJ47AoO1muIdI2ul2ZLLsbYb6SkB87EjZFRibXxG3OH 647rBfuqNgRZaLg/iLI4DayOSQ6+TYf8WDgVjMHA8g/b027PO3vWBvGHG7VVbiklTbQw yRLVwzNSarWADWJ7ozPYIvzuX4wNXQjM5Rc0lzaYBYSs+2osVDC0V90KLuPh6HaIXzLh r4TiQdKuWb3rPbdbSJgHu3T36lVfScsyZ/XdPyyWvpVDDyjoPYf2PhFLKWZQ0RswYK6r y3Zg== X-Forwarded-Encrypted: i=1; AJvYcCV0Ep4zQDHsZJiRSC0F2pzXZVTt6ZsJYLV2siMqf4Eyk21dvgObI6D4/MJIcsX0VtvoyCk/Ja9APy5E48g877KbFEXm0qJDc5CbMIGni812IV3WjkFyZMssGYqPvZWhUsiuou4TkZZ+Ogp2fbApaJzxec8XvB1UrCx5ITLuYwx7himR/A== X-Gm-Message-State: AOJu0Yz9HX5ae7wuGgH+gQxrQMuD5K/9Sn2R5eLwVTGglQ0Xfd9nvDAG hGu0I8GrFB5iviTBJtHp4lgVTGd4JUI/tWVtgDG8aBE3Ha3Slhw= X-Google-Smtp-Source: AGHT+IF638N9r8RenDUS5cIi1bm0ckYuTr7cNtt0tRexV/Fy7f9WgU1uTe9kWso6VR3HVhKQKBvSlQ== X-Received: by 2002:a5d:68c8:0:b0:34a:d1d4:cb3c with SMTP id ffacd0b85a97d-34fca6233aamr5597109f8f.39.1715263623270; Thu, 09 May 2024 07:07:03 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:b44:d8c3:6fa8:c46f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad058sm1793311f8f.66.2024.05.09.07.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 07:07:02 -0700 (PDT) From: Alex Bee To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Alex Bee Subject: [PATCH v3 5/7] drm/rockchip: dsi: Add support for RK3128 Date: Thu, 9 May 2024 16:06:51 +0200 Message-ID: <20240509140653.168591-6-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240509140653.168591-1-knaerzche@gmail.com> References: <20240509140653.168591-1-knaerzche@gmail.com> 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 D-PHY. Signed-off-by: Alex Bee --- changes since v1: - none .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c index 4cc8ed8f4fbd..58a44af0e9ad 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c @@ -153,6 +153,11 @@ #define PX30_DSI_TURNDISABLE BIT(5) #define PX30_DSI_LCDC_SEL BIT(0) +#define RK3128_GRF_LVDS_CON0 0x0150 +#define RK3128_DSI_FORCETXSTOPMODE GENMASK(13, 10) +#define RK3128_DSI_FORCERXMODE BIT(9) +#define RK3128_DSI_TURNDISABLE BIT(8) + #define RK3288_GRF_SOC_CON6 0x025c #define RK3288_DSI0_LCDC_SEL BIT(6) #define RK3288_DSI1_LCDC_SEL BIT(9) @@ -1493,6 +1498,18 @@ static const struct rockchip_dw_dsi_chip_data px30_chip_data[] = { { /* sentinel */ } }; +static const struct rockchip_dw_dsi_chip_data rk3128_chip_data[] = { + { + .reg = 0x10110000, + .lanecfg1_grf_reg = RK3128_GRF_LVDS_CON0, + .lanecfg1 = HIWORD_UPDATE(0, RK3128_DSI_TURNDISABLE | + RK3128_DSI_FORCERXMODE | + RK3128_DSI_FORCETXSTOPMODE), + .max_data_lanes = 4, + }, + { /* sentinel */ } +}; + static const struct rockchip_dw_dsi_chip_data rk3288_chip_data[] = { { .reg = 0xff960000, @@ -1670,6 +1687,9 @@ static const struct of_device_id dw_mipi_dsi_rockchip_dt_ids[] = { { .compatible = "rockchip,px30-mipi-dsi", .data = &px30_chip_data, + }, { + .compatible = "rockchip,rk3128-mipi-dsi", + .data = &rk3128_chip_data, }, { .compatible = "rockchip,rk3288-mipi-dsi", .data = &rk3288_chip_data, From patchwork Thu May 9 14:06:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13659786 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 9D45E15FA83; Thu, 9 May 2024 14:07:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715263628; cv=none; b=RkDwxm2SW0jSq1AR2B/pKjdiuk++WqBTJgr/pz528LJB/VIWbnuRG6WZbICGk4dmzLMj6Dmk9HkDWdEyCdl8BVsB3Sr8/dkqmKeKh9FQKoChqWczFicO8K4p9xeGDLBWn6VC6fGHrlfrh0DlgthV38LQmYCh0L8sI3r9V+YMqYY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715263628; c=relaxed/simple; bh=YPpzQcMQfowCq7PrIWevR9zUfJLG7X2QVg6gpF4OREc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TX0gJQfPfzEuKrzYblgKpxVS8Zl6k1sck/TXfcK+nO7C2tsfXirAL91gkwqDBzbkwMn3NnCfKJbys4IZzoaJTqfXIs7zFLcC78SNRGxiHXRjBTn5hUoUHklr3xBFb+EqmOHroX4XBQLvciKWjcC2vHtvP8dZEwRAtC1L5iDmUFo= 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=Jo4h0Fvi; arc=none smtp.client-ip=209.85.167.48 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="Jo4h0Fvi" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-51ef64d051bso1007363e87.1; Thu, 09 May 2024 07:07:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715263625; x=1715868425; darn=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=BojjtcE4PW8Jg2RRLDbuh20R8FtUvCT6KeHyvo0GHNo=; b=Jo4h0FviTLqfJUSnuP/TjSbQEDkNBorX1ITyzz5gi4Wr3LLbufEmehDdRgqvJWZDR1 x3JYZK++5Qq6dnwIz2G/NYB1XaU3OCwL9qBQWyEjzjyTbjVR+52lBQa5OubPYBK1MWwm wcHb2i9QHensNbG8q7VwD68I4f4rY9frdFub7NlzOeOJBCuGXgODuPugJZ+qYzHERiyM PyNjJKSmNwqcE9ylVbEHRf7inrcjLWwlkH8jjGPfsIjkChwL6sWQx17m+IKtbVHqjd6y 5rhI2mgDrJAPuRSymwyHg2gjaKC1/T7RrapPPGtSe47M0BUZ1O+czQ7Gt2kyTlX2WH6S W+Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715263625; x=1715868425; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BojjtcE4PW8Jg2RRLDbuh20R8FtUvCT6KeHyvo0GHNo=; b=ZlURm4pPx7qm3zKQaIK9lUNG87OBfxdGDs0p0BhO8XOtXPZhxYXmitssT2gluuWQ0q dD4hYOxuyxtLfebGqUBhameURrRjsJ6jygzz4zYkb6EpstApvfJ9nvDe5EswNxpR+prn ka1fBlzc9YEuNxHClDeoBj44hLbgDlCEp+iEDW58X2RAurI8jzMbEfQwzQrWSkw4qx5q z0G8Iyilbq9vQuI+v84ucN7VLxttzcmU8CWfRqveblWbT1MzU9J7ZPYmQYqCeUb9xLMZ lmYbZwTgSU2RFSyqWeW49jeIzlA2Y1Q9x32L0jDwJ/evV8tsHvaNW/Su/RDqw+XXkZvh KWBg== X-Forwarded-Encrypted: i=1; AJvYcCXZuXVwFkoROKWwUb+XV80JQMOfIxbH+5W2yz/06wck+cZNRGGoz9PVQSVdBu45Kgstk+YijdMz0rDOExacqGG2S2mTrNJQHuI6DjSaRMAP6J/gcHJ5GP0I2C1A24EgG+VK2kXTT80+JIRmO8npgT9IMql0bbICZWu5jQOk9X5Joh4afQ== X-Gm-Message-State: AOJu0Yz+qfekPvW+t6tFHWa6ZEM7EZsKlA/grW3ekJgBKCFcomJrFewH vP44w8FyigtR5pV41CUmuOok2iRrQjZI3BPdwOTYAJH1chQPlHg= X-Google-Smtp-Source: AGHT+IHh+dso5MhBn431TAWM/uD/cNhYOwNyyWPRjGSzNSz1xBMrETqF5hbahKDBfppAyPHSKftcWQ== X-Received: by 2002:a05:6512:40a:b0:51c:c1a3:a4f9 with SMTP id 2adb3069b0e04-5217cd48861mr3707317e87.64.1715263624613; Thu, 09 May 2024 07:07:04 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:b44:d8c3:6fa8:c46f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad058sm1793311f8f.66.2024.05.09.07.07.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 07:07:03 -0700 (PDT) From: Alex Bee To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Alex Bee Subject: [PATCH v3 6/7] ARM: dts: rockchip: Add D-PHY for RK3128 Date: Thu, 9 May 2024 16:06:52 +0200 Message-ID: <20240509140653.168591-7-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240509140653.168591-1-knaerzche@gmail.com> References: <20240509140653.168591-1-knaerzche@gmail.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The InnoSilicon D-PHY found in RK3128 SoCs supports DSI/LVDS/TTL with a maximum transfer rate of 1 Gbps per lane. While adding it, also add it's clocks to RK3128_PD_VIO powerdomain as the phy is part of it. Signed-off-by: Alex Bee --- changes since v1: - also added SCLK_MIPI_24M to powerdomain - reword commit message arch/arm/boot/dts/rockchip/rk3128.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index fb98873fd94e..fbd95bb08cd3 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -216,6 +216,8 @@ power-domain@RK3128_PD_VIO { <&cru ACLK_LCDC0>, <&cru HCLK_LCDC0>, <&cru PCLK_MIPI>, + <&cru PCLK_MIPIPHY>, + <&cru SCLK_MIPI_24M>, <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru ACLK_VIO0>, @@ -496,6 +498,18 @@ hdmi_out: port@1 { }; }; + dphy: phy@20038000 { + compatible = "rockchip,rk3128-dsi-dphy"; + reg = <0x20038000 0x4000>; + clocks = <&cru SCLK_MIPI_24M>, <&cru PCLK_MIPIPHY>; + clock-names = "ref", "pclk"; + resets = <&cru SRST_MIPIPHY_P>; + reset-names = "apb"; + power-domains = <&power RK3128_PD_VIO>; + #phy-cells = <0>; + status = "disabled"; + }; + timer0: timer@20044000 { compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer"; reg = <0x20044000 0x20>; From patchwork Thu May 9 14:06:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13659787 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.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 8922815FCF5; Thu, 9 May 2024 14:07:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715263629; cv=none; b=csj3q9jObOUOSWM3nfGZqKDVRHITRx0hBEGJZq2UOzh4KXHdehXkGVHGgJMGmdz7x5+LSaktsxoZK178TG2y8ImcjBhlBuf/nHAPnYVgjVppuaWO6ynmdwX3wfcQb5GV4vM3zgQF6rNf6Pt090sS1vHkbXV/CJ6UW8y2ynZ7+XI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715263629; c=relaxed/simple; bh=4iw+1FN3xerg0geYMZmU/8ZVwOpVnO3MzjaALXgnI+A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lyOSgKwA9r7SWHov5YKfX1f1tOavaeRWd5/PMbo5rMGtoEhRRoYzm0xlaRM3qgMUzp3tnkZpLe8uC9xVg/u8itmCyt25mEKcSjOEycGy21X+YQjHn03aVT2LOkjc+ojQftvnsWX+ENZeN5nmd7nocmCLdiBTZQUVUv+mYFhNneU= 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=HauHQHsB; arc=none smtp.client-ip=209.85.221.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="HauHQHsB" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-34d7b0dac54so538993f8f.0; Thu, 09 May 2024 07:07:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715263626; x=1715868426; darn=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=nuIg0rxmudwavGYdewcr3VwDoFHinfP7P23xo/y6UpU=; b=HauHQHsBhH2hsobMWO7Sv28uA2N3mi28xF8mMp+e369xwq+ODyUPzr2uKZY+ma4n7k u1atdGiFLInoduJaJARJOOaI0vDQi+qxZLP/kEbSCxyFoiQihEPrkOwvzxbKKPfnDAUY t3WUHgOb7d/X7O2KoLa/Sgdt8A7QheiSqRaWsNKkbYkfsUKh9Rive4Sz+FZL4TyzHHzS laqksPKVJB0R9ldQ21Q+9uLgkQhb6UZaA+VK1RKO67ossVoJjfADjQ/VAHerlB3vmMXl Z2u0ikRVfe+G3t6q62AXAN2H+uSYFLZpJonHuHliu2M8vU7GDV1fDFX8xTn9JNlDzBjY it/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715263626; x=1715868426; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nuIg0rxmudwavGYdewcr3VwDoFHinfP7P23xo/y6UpU=; b=anNgrxNm98KkuqJ+iRq1qC2jndP95NS0YEXxVgy+2i+t2IYMwyffyn/XkeP5yNw2xp oTNWPr3RbEPGP8zTBThbZdEuppVqMj1iPXGAh+bLvKCbFI9BvK01jFuit8oasVpfUrN3 wcczm8xmHYn6xCNldWZkYwVeTTjSbXoHiq+CbuMZyGkttVsy8vikewQlPCQMKi3qEna3 QhUXg4XB8hMkiTKPWXNEpDk/Gjk9vrMf5ysq0MervdAXg3SLXQcr0EnEi3aOgeUytAl5 VA6PaBhSMWl1QRk1zY8Idz7Df+38xHZGy3M3XNK3KiBW8fPsEidiUJsUG4CUaZhlH/NK fjag== X-Forwarded-Encrypted: i=1; AJvYcCWL3ThgAI9c05bdkdYA0Z+/2R+GgUaPLN6micCueSeIsGYV0ql/uT+zXROFnVRO7WGaiYXgNW6kD5ZjdYXWLrFqTM5jXe330DKU4D6XEcEzgolWIbLDuzObf3kyDHhrvVDNwAFe0kAj4bduurU7DXdIAsYNKERBhmP4Xvm46HcPSehcVA== X-Gm-Message-State: AOJu0Yz/hqXhzTH8FvAvKk/I/1yLAZRFuiXWAXD8xo0ROg5pyU1L0Dmy TENMheQOf5WS6FCVv2RnNo5QhJFKijqTRatVJRMazIX3y3DYuOE= X-Google-Smtp-Source: AGHT+IGrYuifyNXu2UQb3DwjWFh9xvmk2vwwMGUSyNdVTWC6BwXLa/x62uQHm8HbCp9cEY6jEZx1eA== X-Received: by 2002:a5d:5604:0:b0:34a:6fac:6dab with SMTP id ffacd0b85a97d-3501812650emr2546256f8f.12.1715263625950; Thu, 09 May 2024 07:07:05 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:b44:d8c3:6fa8:c46f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad058sm1793311f8f.66.2024.05.09.07.07.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 07:07:05 -0700 (PDT) From: Alex Bee To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Alex Bee Subject: [PATCH v3 7/7] ARM: dts: rockchip: Add DSI for RK3128 Date: Thu, 9 May 2024 16:06:53 +0200 Message-ID: <20240509140653.168591-8-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240509140653.168591-1-knaerzche@gmail.com> References: <20240509140653.168591-1-knaerzche@gmail.com> 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 --- changes since v1: - added HCLK_VIO_H2P as ahb clock changes since v2: - dropped ahb clock again arch/arm/boot/dts/rockchip/rk3128.dtsi | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index fbd95bb08cd3..7f2bf3e51082 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -277,6 +277,42 @@ vop_out_hdmi: endpoint@0 { reg = <0>; remote-endpoint = <&hdmi_in_vop>; }; + + vop_out_dsi: endpoint@1 { + reg = <1>; + remote-endpoint = <&dsi_in_vop>; + }; + }; + }; + + dsi: dsi@10110000 { + compatible = "rockchip,rk3128-mipi-dsi", "snps,dw-mipi-dsi"; + reg = <0x10110000 0x4000>; + interrupts = ; + clocks = <&cru PCLK_MIPI>; + clock-names = "pclk"; + phys = <&dphy>; + phy-names = "dphy"; + resets = <&cru SRST_VIO_MIPI_DSI>; + reset-names = "apb"; + rockchip,grf = <&grf>; + power-domains = <&power RK3128_PD_VIO>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + dsi_in: port@0 { + reg = <0>; + dsi_in_vop: endpoint { + remote-endpoint = <&vop_out_dsi>; + }; + }; + + dsi_out: port@1 { + reg = <1>; + }; }; };