From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C63C313E1E; Wed, 3 Dec 2025 16:33:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764779636; cv=none; b=GnNt7HCygkk0oniAm9zFGpkRLzT94ppGFBC24ee4QRx9KYMTaY2nwW0EjLk9LJ1AswhCJMhdi67aFxQkOQESvC+q1ti8w08sWzvj2DJI5y83VEnorhcZZv5iVxiEqS/RsKCzuFzlirBytzfzEw0Kcxykl3Ms5bRZkiOmZ4aH2pY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764779636; c=relaxed/simple; bh=ch3pWST715Ega5L7b4K+tr60VDXx0fMjNzgUnwqumfE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ams+eRcTOWmEq6HiDZFyOSpzZg6EploPu+fBrpBtrJcEZCcic/cmErFWQlyiq4DIS9mv/ko6rGCbc2wHdHeLpNddZbNZu2QPDSd2AB1W/ZUO5xVbIpnICRG05IydVwFytQS1dds/R2W1a6o4wqT8fkKQRLBLo3eI84ilv92+ScI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S0Ca2aTr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="S0Ca2aTr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B685C4CEF5; Wed, 3 Dec 2025 16:33:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1764779636; bh=ch3pWST715Ega5L7b4K+tr60VDXx0fMjNzgUnwqumfE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S0Ca2aTr7W9nmHVHJtzJE1JU408Mm05YqYWShXDtUQ5NM1AB9fMLTl8jNObpgiTuO AaotCvQyqeoWiRSJLhvjWBxG2iHDm4llyFMEyM8yKNvyX1KE5l3rpQv1UQ+g9ev0Zn 0J4h7urLDHp+ITU9T9iTn1NoLn7g1bgzdvD+cWdg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jernej Skrabec , Chen-Yu Tsai , Sasha Levin Subject: [PATCH 6.1 283/568] clk: sunxi-ng: sun6i-rtc: Add A523 specifics Date: Wed, 3 Dec 2025 16:24:45 +0100 Message-ID: <20251203152451.071218150@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251203152440.645416925@linuxfoundation.org> References: <20251203152440.645416925@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Chen-Yu Tsai [ Upstream commit 7aa8781f379c32c31bd78f1408a31765b2297c43 ] The A523's RTC block is backward compatible with the R329's, but it also has a calibration function for its internal oscillator, which would allow it to provide a clock rate closer to the desired 32.768 KHz. This is useful on the Radxa Cubie A5E, which does not have an external 32.768 KHz crystal. Add new compatible-specific data for it. Acked-by: Jernej Skrabec Link: https://patch.msgid.link/20250909170947.2221611-1-wens@kernel.org Signed-off-by: Chen-Yu Tsai Signed-off-by: Sasha Levin --- drivers/clk/sunxi-ng/ccu-sun6i-rtc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/clk/sunxi-ng/ccu-sun6i-rtc.c b/drivers/clk/sunxi-ng/ccu-sun6i-rtc.c index d65398497d5f6..e42348bda20f8 100644 --- a/drivers/clk/sunxi-ng/ccu-sun6i-rtc.c +++ b/drivers/clk/sunxi-ng/ccu-sun6i-rtc.c @@ -323,6 +323,13 @@ static const struct sun6i_rtc_match_data sun50i_r329_rtc_ccu_data = { .osc32k_fanout_nparents = ARRAY_SIZE(sun50i_r329_osc32k_fanout_parents), }; +static const struct sun6i_rtc_match_data sun55i_a523_rtc_ccu_data = { + .have_ext_osc32k = true, + .have_iosc_calibration = true, + .osc32k_fanout_parents = sun50i_r329_osc32k_fanout_parents, + .osc32k_fanout_nparents = ARRAY_SIZE(sun50i_r329_osc32k_fanout_parents), +}; + static const struct of_device_id sun6i_rtc_ccu_match[] = { { .compatible = "allwinner,sun50i-h616-rtc", @@ -332,6 +339,10 @@ static const struct of_device_id sun6i_rtc_ccu_match[] = { .compatible = "allwinner,sun50i-r329-rtc", .data = &sun50i_r329_rtc_ccu_data, }, + { + .compatible = "allwinner,sun55i-a523-rtc", + .data = &sun55i_a523_rtc_ccu_data, + }, {}, }; -- 2.51.0