Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1105781lqo; Thu, 9 May 2024 05:09:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTvcGxZ3H2SI9juFy0N+qpJKdEb1GdtEV0kvi6wuNtOS2b45CgdZ22C6NUhQ1POBDGy+qwKux0buLZ1seIPiniflhsaLNvl39QLLomZg== X-Google-Smtp-Source: AGHT+IH4DQPejZor/pj8gJkC9QcqI+dB5zGBxf5lj+qLsI0TJhP3tSWVPsqHN2/8wKjhuOuoJZyh X-Received: by 2002:a05:620a:460e:b0:790:fd52:7c5 with SMTP id af79cd13be357-792b26f3692mr721664385a.34.1715256539945; Thu, 09 May 2024 05:08:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715256539; cv=pass; d=google.com; s=arc-20160816; b=cMwagtGzgNXTeCncgtCHvLeE8qcDgI4HWP2TYgKVAr9FnZXlYQrzNFzivRNEHUi6pd p4ilwadMKrpRDvOJirzqSnn/wfUh/uDr9utQ111FA5S14Tifp4fe7aG6XGSDCHixZOos ess66/W73WdFEsHaVuB5J2J4Rvl28EAEJtYsi4clUna3fvHEdoc1CR/L+S5FBqC8ZAth Qya56dOZ3E4QFDWQfj4HwSqetX9CNGfiAVpdCwO08uVXcB+9VAg7XdZ1S1x08JzhH4T+ gkGeAifmVLx/D4GOQ3sDlFyksKvVsvKLkQMAFp8oK3TebWhfZ6VqQHzMivYMChxQAUYl DMdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=BojjtcE4PW8Jg2RRLDbuh20R8FtUvCT6KeHyvo0GHNo=; fh=VsAWMkJ70QveD/hSNCnc7nBnZ9u6v+l6CRqgb/hCt8Y=; b=omfV7OHcOUOxpf6wv5Su9YPC3CyD3jG+nRhv+un4TaYPXX+1S0xa1qqUAmVp069ZfR UJK7gi+6eypZOGbJPC1qdx62H29a5md/jRYFICSRC11ja8rsrSgEZKZ13Na1mAfUbWwh cobbzW5Kj0AFwmrufDfxtAZqR0YrHZV+jDQS7Hrv7OmUJKGkq3s4iFFMQvf8N3CD7fNX l22fCX9ea1cQas/EUgi1mwlUwc5Ap6UEoyxd5ywGHdisJklMbP2oJMYv72FiXCzsiT9H C1eqVYW1vVoSOPYmOL4jOItiK9sKoccYs2tggQDSsvWQup3ktUPdplV9PlNtmbvZUR4/ lqVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iX71lo6V; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-174474-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174474-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf3651ebsi122915285a.660.2024.05.09.05.08.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 05:08:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174474-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iX71lo6V; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-174474-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174474-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9D1BA1C209CD for ; Thu, 9 May 2024 12:08:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2C8D14B95F; Thu, 9 May 2024 12:07:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iX71lo6V" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 BFA4114D29A; Thu, 9 May 2024 12:07:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715256450; cv=none; b=AJmV70vngM9BreLVfsfja/zJ1wrCOOQhpjk8tJBCFhr/uQLypWJ4+X9iEc1uTRpC/27DGAcDzl2q9Vd+G/mgLCirWiHQutRTSOi+hWkOvXKfHA6Zt9/WK2yKtV+9v5kOi1YE881MrJHP5ozqH6hp7q2rMZEdDyhjgXIn4G7agHk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715256450; c=relaxed/simple; bh=YPpzQcMQfowCq7PrIWevR9zUfJLG7X2QVg6gpF4OREc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=u4cXsqYg5wD5VBPXzWuNfjC3kKt4LsHO1wroIL9e3dSlNrljyX50vYYaoXZ2TmGz74EDTlE29HTlwkSOdY8209L9u38wOMsynF4a3Wd94rFwxdS+2o51vJXfhar4UyNXQwAUQajDdI2ac+pAiqyctdqY7Q+uwPSbymoz7gno8uk= 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=iX71lo6V; arc=none smtp.client-ip=209.85.208.176 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 Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2e4b90b03a9so9349111fa.1; Thu, 09 May 2024 05:07:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715256447; x=1715861247; 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=iX71lo6VRtiDvMfWyHTJTV7AG0OO0uYZBZ0IPLTze5XbobEmFzKGxUkQfcn1Sjm49y 0z6QqL3uoSW7TmBo7Pob7t+qqBALHIDENO0uvhWDFkLLBQ3fpDzNIn49VS5baJxl6vf/ HRFnqR3dW53RmqfqZaz5qVscG9hLa04siBfNAtRWBrR+EqDogKZ41mOkbBNAOJQAg5lk U+0OJUGUHsMqol1lDVo6jwHzvvGfoZBMlTftHRE4XkqQQWb62XQjiD/cCyIqClI94m9N 4OKMQXZdljJQMBh/o0BlhWniWjh1l3ToYfPD8ksAonawWnqVeEzB1HLgdtTatxoooap1 g+FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715256447; x=1715861247; 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=I3NMSC+JUKa4CpPvd8tc92k1nV//Z86bUlOq2DZ3lss/pbP1x3QzJnMfpDpVpUUXQx eybJqERneU1zx3SXsm1IyBSO504d6KEd8Jv2ikq34cn+KS1e8BvHNgKWP7Vi/DV7Sn47 bnNvgXDU3RT14n92rt+cNXQ4FFrdVhvkqnpjIvuqHojugATiZUKG/oae6KpFp/1/+ttT CmOIc4l7y4sxzQkjVJrU00xnDfzSRVkNBYBAirmsDCNKx5xvsDJrtUDvfh30wYAvHRKQ AisvJ8+4v9kGi7WE1th750rL/TWcaq/lK6Up9oigGIiaXmBkml+Mbs/cRUDlqpicSit7 udZQ== X-Forwarded-Encrypted: i=1; AJvYcCXMhTpd19WhAI4P5UKXozK04ssS9oi1RaNDWmRJAawkP1B9Fxd1Ja55Di+xzjVecjd8mg8fjmgX5jecv/hJYeoVV++GPn6PjSFsRoikMhYwAj73cXX96vcyk0isxE7wfjmc4CaI0b1sMR6INZwy1IZl+YHkD1V0FADHp+x32jx4ac7RKg== X-Gm-Message-State: AOJu0Yy39YqWbFwP2PAOIhLJIMXjDoO20t8lSlvJQigAx4lzY7dXK3kM yeuMX5STngu8qHpD+KKJXNKUrSjgKeWoeBLO5d8apzZDv12q7EU= X-Received: by 2002:a2e:9983:0:b0:2df:c0c7:9046 with SMTP id 38308e7fff4ca-2e4479ba923mr37325681fa.35.1715256446939; Thu, 09 May 2024 05:07:26 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:b44:d8c3:6fa8:c46f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fccce1912sm24112005e9.11.2024.05.09.05.07.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 05:07:26 -0700 (PDT) From: Alex Bee To: Sandy Huang , =?UTF-8?q?Heiko=20St=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 v2 6/7] ARM: dts: rockchip: Add D-PHY for RK3128 Date: Thu, 9 May 2024 14:07:14 +0200 Message-ID: <20240509120715.86694-7-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240509120715.86694-1-knaerzche@gmail.com> References: <20240509120715.86694-1-knaerzche@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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>; -- 2.43.2