From nobody Sat Feb 7 09:29:49 2026 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.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 9638326F2AF for ; Mon, 5 Jan 2026 20:47:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767646058; cv=none; b=HaPLr7EWVAW89pE5tP3t3LpKxTczMaNf4fQqKv7uEvCBSrPhpx4+Lrch8ixht3qXJ34mhjWcRkXxp7Qkau+Rm4IzOmCsyyMzMZGVU2BgfpzHS+YzzBvKURiiDDCoY4h3/a1cIMQJX5SyRYBNZgOd/7b2vkkeD7OCAYhJZSR3fr8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767646058; c=relaxed/simple; bh=7nReUWnIK+5M7ZN5i+O5JzR7QSNdfOBwiVz/I8wLhmo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QcSyT4ykbmucdaRCUO8VkSTnejtJfbdNWvn7nx0KzaqOsa66NSPr1A2DVLoAO7zO6VeH0SbhNMxMF17M9dxdTHt9I84Q5bVI8SzjrIEAQR+5x6fpTBy4WqfvQCx/SnMeNz/yiUxvrKFStcKXs7zS5boyzwj4ygUpo87zyUpWLdE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com; spf=pass smtp.mailfrom=googlemail.com; dkim=pass (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b=Ou+qtwh3; arc=none smtp.client-ip=209.85.208.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=googlemail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="Ou+qtwh3" Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-6505d3adc3aso421173a12.1 for ; Mon, 05 Jan 2026 12:47:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1767646055; x=1768250855; 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=6P8LBmvGnTOHrkGqJNJYNGnVf7vFIplFOGVmqZklygM=; b=Ou+qtwh3TYFXodD4h9yJWXFsZWaCxMRwMI3axRft4ZCOXHryjNzwGCZ6L34L+nHnNR /qIYKcwejzREqIfH64Gn2q3mXennUY7S+r9rT5c0BHCmqR10fQvC4sZHfhaD3wU6Maly Fws2g3HVty9dNfrhceKsTmxJf9S1uf1LCRK+vIKeIgOPTJyP5Y62bgXTT0xIDPfyaj/q T7KBxkMUf1IegmwRE6BXkJNPy1xwJYSGnxkId0gr4wLZDgEvEtxA0G0yk7BsEAvj+6qS PHb5ZYwoXmehOHUttybPRWiJ2O4FPTGMPEF+A9i5Fir+DbWkf+rzAckZmo4u8DabhvXD vZDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767646055; x=1768250855; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=6P8LBmvGnTOHrkGqJNJYNGnVf7vFIplFOGVmqZklygM=; b=ZA5l4warEdvpBvGqtmWvn+rsYn9eRJ/I2IQpJ0WvzW9psFqkVPLtC8YXqsW4TkHEXm tXnbl3G+2GrJmC/jGVNxBaI+qECgaKfaczopwFyaQJrHG2zeHSbQJxnlQFX9G3v+l62U cRUdsE8CRNOz1OpC7zAULjPMtwx3ctIk31Bvhj6AQF08kA4mCQXa5M4ZL6d20rHF6hzc Kp8iIknA10vKvR+X1axqOnazWYVVZ+JMHFJQwhjF0R8zVcPkF6FbILqvtB0k1yWoGPDw f2E33JH/EoPYlNMQ+hudsFHnCBgWQJK8P4yiUhdYp3NSEES/iSw39OZEIzvpsC1iniJu rZXA== X-Forwarded-Encrypted: i=1; AJvYcCXEEC1wBpgySlmo+evIWGQTqsz3YbZWwKAUCPg/O/oY0D+NyjFqn+xOPn2fmQouzsWB3Fz6gf3+EtPFNTA=@vger.kernel.org X-Gm-Message-State: AOJu0Yz8tHyHfeO8wgbQVgpgZ+OLQjUnBO2DLGiCmggCk27GeR5J/jhP gakxEWSrDJwf+oE0uA4DjbtEpKmML1RaW1zbFVkLWoA2+iq8nkbiovvr X-Gm-Gg: AY/fxX7+M/WeWnbB5rCYmpH9XgBubH6Oc2h+0YIbnzH3iHoqnbo6AX1BMGBGqxb9LhQ 9UQhovove5IvUjbabK1LcFpm6N2k7JpUuEXRPJoQKIOYeDm8WNtEGZMPO6ZEq5qoFEMg/G+/S7S s3bYtKELYglgaeTeqjaNVmxXIqGPS+DEmLM0az6rfuF6RTADWbq7moBtuSKedRivMtl4s3blPng 00VEMwKI4wWsi4pNga17TLJl2gnKI8FASKPdQ29JPaQiaJ0bcZCEmsdaB2Eydb4/2SEN1v+/pMR 9W4rNsCzAYZ/lm3swmXLyW4n11qN0EPULaDyQchY1AKgpxkslUPlzcAq5HhEhk7yuAkETRn3dD+ U2XdkTPqYzJkhJXCImlgaioUQbKB36aD3AxCe7qh6NZumjy8KK5vazGkJGQVIUGmwgQblXgONDC tE3/rbPKinQ3Z9v6rp5TCIMdXfIMarAlW0K9z0MR0394SawjJEV03ITPim6YlOyPEFd1oNGPbsk GmIdbBiLBYNJb0zmRCzG8m8KwjQAEyYA4crxe8Tjg== X-Google-Smtp-Source: AGHT+IGG1LQBfEPmFlrxpYd8DB9+gcGLWD908SEefSfmMK/DBGdhRfme546/4V60Eq3pmIsZOVk88A== X-Received: by 2002:a17:907:944f:b0:b83:13c3:d495 with SMTP id a640c23a62f3a-b8426bb91abmr96266166b.37.1767646054735; Mon, 05 Jan 2026 12:47:34 -0800 (PST) Received: from blackbox (dynamic-2a02-3100-a8ad-5500-1e86-0bff-fe2f-57b7.310.pool.telefonica.de. [2a02:3100:a8ad:5500:1e86:bff:fe2f:57b7]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-b842a233ef3sm26240566b.1.2026.01.05.12.47.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jan 2026 12:47:33 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jian.hu@amlogic.com, jbrunet@baylibre.com, Martin Blumenstingl Subject: [PATCH v1 1/3] clk: meson: gxbb: Limit the HDMI PLL OD to /4 on GXL/GXM SoCs Date: Mon, 5 Jan 2026 21:47:08 +0100 Message-ID: <20260105204710.447779-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260105204710.447779-1-martin.blumenstingl@googlemail.com> References: <20260105204710.447779-1-martin.blumenstingl@googlemail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" GXBB has the HDMI PLL OD in the HHI_HDMI_PLL_CNTL2 register while for GXL/GXM the OD has moved to HHI_HDMI_PLL_CNTL3. At first glance the rest of the OD setup seems identical. However, looking at the downstream kernel sources as well as testing shows that GXL only supports three OD values: - register value 0 means: divide by 1 - register value 1 means: divide by 2 - register value 2 means: divide by 4 Using register value 3 (which on GXBB means: divide by 8) still divides by 4 as verified using meson-clk-measure. Downstream sources are also only using OD register values 0, 1 and 2 for GXL (while for GXBB the downstream kernel sources are also using value 3). Add clk_div_table and have it replace the CLK_DIVIDER_POWER_OF_TWO flag to make the kernel's view of this register match with how the hardware actually works. Fixes: 69d92293274b ("clk: meson: add the gxl hdmi pll") Signed-off-by: Martin Blumenstingl --- drivers/clk/meson/gxbb.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index 5a229c4ffae1..0788b9b1ed21 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -349,12 +349,19 @@ static struct clk_regmap gxbb_hdmi_pll =3D { }, }; =20 +static const struct clk_div_table gxl_hdmi_pll_od_div_table[] =3D { + { .val =3D 0, .div =3D 1 }, + { .val =3D 1, .div =3D 2 }, + { .val =3D 2, .div =3D 4 }, + { /* sentinel */ } +}; + static struct clk_regmap gxl_hdmi_pll_od =3D { .data =3D &(struct clk_regmap_div_data){ .offset =3D HHI_HDMI_PLL_CNTL + 8, .shift =3D 21, .width =3D 2, - .flags =3D CLK_DIVIDER_POWER_OF_TWO, + .table =3D gxl_hdmi_pll_od_div_table, }, .hw.init =3D &(struct clk_init_data){ .name =3D "hdmi_pll_od", @@ -372,7 +379,7 @@ static struct clk_regmap gxl_hdmi_pll_od2 =3D { .offset =3D HHI_HDMI_PLL_CNTL + 8, .shift =3D 23, .width =3D 2, - .flags =3D CLK_DIVIDER_POWER_OF_TWO, + .table =3D gxl_hdmi_pll_od_div_table, }, .hw.init =3D &(struct clk_init_data){ .name =3D "hdmi_pll_od2", @@ -390,7 +397,7 @@ static struct clk_regmap gxl_hdmi_pll =3D { .offset =3D HHI_HDMI_PLL_CNTL + 8, .shift =3D 19, .width =3D 2, - .flags =3D CLK_DIVIDER_POWER_OF_TWO, + .table =3D gxl_hdmi_pll_od_div_table, }, .hw.init =3D &(struct clk_init_data){ .name =3D "hdmi_pll", --=20 2.52.0 From nobody Sat Feb 7 09:29:49 2026 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 8368B207A32 for ; Mon, 5 Jan 2026 20:47:38 +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=1767646060; cv=none; b=mP6jlQbtDlrzcEg9cSYzI0AIFbStlBlSnUWdlnjxBIlrEy8UysSu077tVehSUcz43KU59YjtoqCWUWsshpY9Rw3asryUFLw7e1CL0/sf/GRPEy+eOQvWEduJsjiIHduN0PCjoZZ5OWaHZ+8AmDFgHid66Ft3zbJX7ngsbKiNW70= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767646060; c=relaxed/simple; bh=0VAR2uGUADmfTlwExvcLmIU6kRzgQsaMead1f1zEs5Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rCgMpEjFvXddKtCNWzQJgIE70JLk8thEh238xP5k1AOmrnV0T5nG2nw1tYdhPLaCL1OIF5nfzGe/vjLLPupODB3LGPceIbwemfp7zPk9COEIDiQ5nh498BKbOhB7LPMqEMG0U2a6m05ACO6jvlb2WX5uT47L5kfLN2MlvoHzwqc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com; spf=pass smtp.mailfrom=googlemail.com; dkim=pass (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b=l9bHp0RQ; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=googlemail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="l9bHp0RQ" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-b736ffc531fso78865766b.1 for ; Mon, 05 Jan 2026 12:47:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1767646057; x=1768250857; 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=hizUAH1iD19ouU6HKSD59ruDhjDWmQAYbT869eukFQc=; b=l9bHp0RQeHCXbzP2lQF2J4f2+zRH6j6lg/LpdNPDcoLc2GXiRqXHgF/GHv0UBIRsmS ta6wIgY5TWXu2Dvh/a56j18/bGVbx29D3z0pGJZeugsjAxlDf8JWuYnfIQZkyfUm1qwJ JFh9o1DS2WKGDU2Zy/QLRhU6aFkrdCHN3Iqu8znJSrR+6cu0cLa83sGk7nsFNybKrReH JtNNrz6Ux62jnErsg6cJ4hlkx7+2i6NDTocruYl9C9KZtLpnfQfD8TNVAqezkFNipiwt Oq8zHLQDY8MUJYP7Zq2kJsXatOm1mMHPW8Zql8sACfXijmE1Nn1ogERelKTfJLdMoYYz 4hPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767646057; x=1768250857; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=hizUAH1iD19ouU6HKSD59ruDhjDWmQAYbT869eukFQc=; b=dKuR+S9BNsxDlSFfK3XriTF/CVymStW8krUuy/o5Z00t1jU1/jtWekQoUH0qoNc+VL y3Tx0bB2hn/2Eshjlxe5zXxa0lG3eq+GpsRFPgEbZQgSq4Y+7+kTnTFmSDu6/8AiY4pX rcFrtCwqebx1oxb3On6/MUvR66YOl0vu4h9AlwskCmHNbDxNT/GMLLrO6KZewklL+fHU Bi96Z1f4qx1pn+uIe4JwGLbtHxA7AcC/WtwDRznruWylUtKusCWXcJQjYyjfaCYZHsCj Fm6o2I6nCUNyxizer98JdN5UgnPExIChUQAD5D1R9y/JHyny68my/ciBKfYfSd009a3j EZBA== X-Forwarded-Encrypted: i=1; AJvYcCWP5iCT0P2AwOoDLeHoscboTxyUp3Bz6G8bpAHUjuU0FfTttiTvQzhobP1xk3TuZN00T76GwrRgugY3uPY=@vger.kernel.org X-Gm-Message-State: AOJu0YzC+2alOcRd2Z13UlTbpEl9UYHVTkdwR2oQzkM1ug440L792JJO f1A4AWdRXPwECJqd5BhKU9t/pfxZ1tg0xWPnyV/45yxnzudUD3XZewup X-Gm-Gg: AY/fxX4PXV+XHc1Huq2ifOvHU4/QLKmk4wmPUrn1LQlyP9o1hA3IlHM+KIDSobLBsVv lNRjBz4KUk7yesbd87ziBIJPgFuBg8KF2ce+lZI9C3ptR1Tk2lpfnbfoMPyazkqHjXdSe+9Ozb3 Jlvvse4xEBxLylIZkNxJbWzo76ANQqJ2XayvOKP0cbo5gAUDkURYF33oAuP5FiyfGciIqXy4Mla 2N0ipNtJ8sW+aFreeQ6IlrYUuQUoKUe2aTU2XLvh1XpzLe/cflM7//7WYW7j3xz8cvmsGOt2Pd2 66niNH3UrfNv3ejtp13w0ZJX3qdsRXZmrywtmLvSJqYKgTbIFJZ0k9DS1EiylZ7V2EeIF6pUPV2 7pTaeOA8bP95oIed4Eu+Ij4yNjAJB9vPJu7TttXiVmL8sDcQTBfybYmYnINljxxp7awPVria/J7 1iHtCMKJE0xwXFdCwTQ4Afx41iFweQRl5FEFTu8SBbTc8hSBcrwyAy1sO3nw8IiNdE+FeeIg9pX v5dwNRKMuPvrbQ8ebKYckNBrExEXW/Dcy7xgWfmAQ== X-Google-Smtp-Source: AGHT+IHoFwU8UR+te3U4dWAJlcYcZOAjrsIoaFipeIJMAXppeowFkGiwsu7iqdcxUVE1fCrIPqg8ww== X-Received: by 2002:a17:907:3c8e:b0:b79:f965:1ce1 with SMTP id a640c23a62f3a-b8426bedeb1mr92268466b.42.1767646056667; Mon, 05 Jan 2026 12:47:36 -0800 (PST) Received: from blackbox (dynamic-2a02-3100-a8ad-5500-1e86-0bff-fe2f-57b7.310.pool.telefonica.de. [2a02:3100:a8ad:5500:1e86:bff:fe2f:57b7]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-b842a233ef3sm26240566b.1.2026.01.05.12.47.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jan 2026 12:47:35 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jian.hu@amlogic.com, jbrunet@baylibre.com, Martin Blumenstingl Subject: [PATCH v1 2/3] clk: meson: g12a: Limit the HDMI PLL OD to /4 Date: Mon, 5 Jan 2026 21:47:09 +0100 Message-ID: <20260105204710.447779-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260105204710.447779-1-martin.blumenstingl@googlemail.com> References: <20260105204710.447779-1-martin.blumenstingl@googlemail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" GXBB has the HDMI PLL OD in the HHI_HDMI_PLL_CNTL2 register while for G12A/G12B/SM1 the OD has moved to HHI_HDMI_PLL_CNTL0. At first glance the rest of the OD setup seems identical. However, looking at the downstream kernel sources as well as testing shows that G12A/G12B/SM1 only supports three OD values: - register value 0 means: divide by 1 - register value 1 means: divide by 2 - register value 2 means: divide by 4 Downstream sources are also only using OD register values 0, 1 and 2 for G12A/G12B/SM1 (while for GXBB the downstream kernel sources are also using value 3 which means: divide by 8). Add clk_div_table and have it replace the CLK_DIVIDER_POWER_OF_TWO flag to make the kernel's view of this register match with how the hardware actually works. Fixes: 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller") Signed-off-by: Martin Blumenstingl --- drivers/clk/meson/g12a.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c index 185b6348251d..19057d2dff47 100644 --- a/drivers/clk/meson/g12a.c +++ b/drivers/clk/meson/g12a.c @@ -777,12 +777,19 @@ static struct clk_regmap g12a_hdmi_pll_dco =3D { }, }; =20 +static const struct clk_div_table g12a_hdmi_pll_od_div_table[] =3D { + { .val =3D 0, .div =3D 1 }, + { .val =3D 1, .div =3D 2 }, + { .val =3D 2, .div =3D 4 }, + { /* sentinel */ } +}; + static struct clk_regmap g12a_hdmi_pll_od =3D { .data =3D &(struct clk_regmap_div_data){ .offset =3D HHI_HDMI_PLL_CNTL0, .shift =3D 16, .width =3D 2, - .flags =3D CLK_DIVIDER_POWER_OF_TWO, + .table =3D g12a_hdmi_pll_od_div_table, }, .hw.init =3D &(struct clk_init_data){ .name =3D "hdmi_pll_od", @@ -800,7 +807,7 @@ static struct clk_regmap g12a_hdmi_pll_od2 =3D { .offset =3D HHI_HDMI_PLL_CNTL0, .shift =3D 18, .width =3D 2, - .flags =3D CLK_DIVIDER_POWER_OF_TWO, + .table =3D g12a_hdmi_pll_od_div_table, }, .hw.init =3D &(struct clk_init_data){ .name =3D "hdmi_pll_od2", @@ -818,7 +825,7 @@ static struct clk_regmap g12a_hdmi_pll =3D { .offset =3D HHI_HDMI_PLL_CNTL0, .shift =3D 20, .width =3D 2, - .flags =3D CLK_DIVIDER_POWER_OF_TWO, + .table =3D g12a_hdmi_pll_od_div_table, }, .hw.init =3D &(struct clk_init_data){ .name =3D "hdmi_pll", --=20 2.52.0 From nobody Sat Feb 7 09:29:49 2026 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.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 4ABA9274FE9 for ; Mon, 5 Jan 2026 20:47:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767646061; cv=none; b=HpRtiQoPJzYWTk+vgXYXzTp1piZva/xQofLB+mnTVZB8Hw9Z3oXMXkIhzXxze9daK9fGrDKVKudM76cuvdku14RX0jL0eYV/J1Kqj1wYP/+mSny4VEBnSQjOBV9KoS2Kq6yApT7ibZ0PL1J+SzoqGalc/+BeFVa8L8M2pd480nw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767646061; c=relaxed/simple; bh=lZpRH2X0H7PicY/ye0cxWgd6UDfMRpb5kRZrYazmO9Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=k6JEqjwi6hrXOJ9Stx56n35rtaNGcBeOdmwPwrhOQ2O/jVgPvWYqPO+p6DmUhK2Aro2ihetkKraMn5SFwNMAlJNeFFyxsi97Vqmo12uc4wSsOJjK3ijU5Gt6U3sUXBAp28iBoZGGMWaNmV48nshjnGszMEbD/HAchdEAnKjHGjU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com; spf=pass smtp.mailfrom=googlemail.com; dkim=pass (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b=TaCb1ESO; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=googlemail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="TaCb1ESO" Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-64d02c01865so517960a12.1 for ; Mon, 05 Jan 2026 12:47:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1767646059; x=1768250859; 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=751CuOfDHWCSCZjhCuc+hswoKKu5SgRYZYXOY8EmB64=; b=TaCb1ESOKV9L6aMOoDB4B7NXSR/M5g94i2M7powFo/XjXDoeURA7wPT6xcHWQwofVH iARHzO07Xl1Wfu/8VAERc4xwPjJMsy+SGM6CwAZ/ve+AR/WekdrsIVJTHSNwSpNRWFMW 6wMWfkHj9mFZgyU0Cj1jZbeTYwbfZbIcTtrMRH5JU3Ug3ljfjLDkEja7A9/Iltf6xeYp BJhTGsaw9JZbEx8lQunYScTPs/vkeTTUDPnWCx3WjqdDug0cyL4LrDZIy2nnU0HwVDCC jz0GfN+Q4qFl7OQ421C7jzleqTutrsYm5omFeR48qy7i1Noq/cOICH2oR8xENnEw/kb8 bSow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767646059; x=1768250859; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=751CuOfDHWCSCZjhCuc+hswoKKu5SgRYZYXOY8EmB64=; b=gvLj/hc6HaJkx2uT5sgroYcYyU+VmVPEclK5yXZvcrIzl4CY90o55PDs5OHxdpZliE bdTBsWSWCNckGdn+L5t3CeFIHteIOS3gTghwjfJG6LYI6b13Oq+BXB7eWPPDC23W5hGu adZI+a6CnyylWQ3mPyu2aFhzyJf8yAGSOfEdgn71vd7BxdPq2tqx34Plfkh7j8gWvaAj V+nANjoCSpZEpPVzRH57XKlj0nPEUxKzLG8pIvV2ozMhrANE9eImzK1t9lzc5aAEyNVn 3ZiE0PlaCQcDlC+fWjAit1R1vjFPOqNM9TBOx/dMUtCVGvlFfp3bhUlo1hhVgQfe6gaD Wdug== X-Forwarded-Encrypted: i=1; AJvYcCUoHUSqAZF2ogjq3QTcdevYENXloUO4ocqC8BVZYt18Bmac40pbg79HsHxAuatzfWK4wt/h/kTf1ynndLM=@vger.kernel.org X-Gm-Message-State: AOJu0Yzuej5b9hresgV9YCNC7+PkhbBBq0iN9wBZpdzXLs7Gl6M4byHn itaUPWl7iinWIrLJGHDl+vUh6ReHGOQxcbAS09vSJRZxlOSpYN6rOWdU X-Gm-Gg: AY/fxX5uDfEm6iNrKqNc2udEgqBaxGbIjthERwOkDYZjFxLSx6eHvuqtENq1g9AkTSb yqckB5gZHThyNaUrj/lChJzODyMoct/t8TbsjC6t3bbcZ/xiHjb5rZYt67a/UwobtIcj2C7bL/o 6YL63bsVKG1o6ot2JDJUFN+6VyM0aRbdS30aO6CnSHU8C7RBL3QjPbQkYqBvtjFe1Nr5HGQyN/E 97qpgd4FtjnS/LCDb3JO1adXOD91lj3CL+opSgw4IfTx+tFZSbnbbA3O7YVFbWtn4po+yZ9JY2B vVepIiH8f2NQNwQjmcSHQrwEU49XWOoI6ANw5sFnaAImRO3ZkwBGpjLZfxNhV4u8ot1qm15Oz14 3WBNv22vFoOFMtbd8JJsTxS5+SZbRpIsCaQNJDlGYbwHLRNnlmf9vZswiAZoiXSsKdVhaV1y7/+ sVM/MWcexzGPM+GFOqtpjhJP8mWWdpqR+xKWuSZrNqxo5wzPwwqVtYIIV2UtiqHIxvuR92XmZgF FDdrFzYBFWcBd0FfL9TT/z0DW6X86TSfNL1ipIN+w== X-Google-Smtp-Source: AGHT+IHscVxlfHz208YtyaMmjqXOYh5awKkGUsfs0wVHVO6V3dthos7Mjn3E5Y2bxNVyJyfpmXuwsw== X-Received: by 2002:a17:907:2d8c:b0:b40:b54d:e687 with SMTP id a640c23a62f3a-b8426bf1761mr111212866b.47.1767646058523; Mon, 05 Jan 2026 12:47:38 -0800 (PST) Received: from blackbox (dynamic-2a02-3100-a8ad-5500-1e86-0bff-fe2f-57b7.310.pool.telefonica.de. [2a02:3100:a8ad:5500:1e86:bff:fe2f:57b7]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-b842a233ef3sm26240566b.1.2026.01.05.12.47.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jan 2026 12:47:38 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jian.hu@amlogic.com, jbrunet@baylibre.com, Martin Blumenstingl Subject: [PATCH v1 3/3] clk: meson: gxbb: use the existing HHI_HDMI_PLL_CNTL3 macro Date: Mon, 5 Jan 2026 21:47:10 +0100 Message-ID: <20260105204710.447779-4-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260105204710.447779-1-martin.blumenstingl@googlemail.com> References: <20260105204710.447779-1-martin.blumenstingl@googlemail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" There's no need to calculate HHI_HDMI_PLL_CNTL + 8 when we have a HHI_HDMI_PLL_CNTL3 macro that has the correct offset already. No functional changes, this makes it easier to compare the driver with the datasheets. Signed-off-by: Martin Blumenstingl --- drivers/clk/meson/gxbb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index 0788b9b1ed21..0900f4e44764 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -358,7 +358,7 @@ static const struct clk_div_table gxl_hdmi_pll_od_div_t= able[] =3D { =20 static struct clk_regmap gxl_hdmi_pll_od =3D { .data =3D &(struct clk_regmap_div_data){ - .offset =3D HHI_HDMI_PLL_CNTL + 8, + .offset =3D HHI_HDMI_PLL_CNTL3, .shift =3D 21, .width =3D 2, .table =3D gxl_hdmi_pll_od_div_table, @@ -376,7 +376,7 @@ static struct clk_regmap gxl_hdmi_pll_od =3D { =20 static struct clk_regmap gxl_hdmi_pll_od2 =3D { .data =3D &(struct clk_regmap_div_data){ - .offset =3D HHI_HDMI_PLL_CNTL + 8, + .offset =3D HHI_HDMI_PLL_CNTL3, .shift =3D 23, .width =3D 2, .table =3D gxl_hdmi_pll_od_div_table, @@ -394,7 +394,7 @@ static struct clk_regmap gxl_hdmi_pll_od2 =3D { =20 static struct clk_regmap gxl_hdmi_pll =3D { .data =3D &(struct clk_regmap_div_data){ - .offset =3D HHI_HDMI_PLL_CNTL + 8, + .offset =3D HHI_HDMI_PLL_CNTL3, .shift =3D 19, .width =3D 2, .table =3D gxl_hdmi_pll_od_div_table, --=20 2.52.0