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 55149225417; Mon, 2 Jun 2025 14:05:21 +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=1748873121; cv=none; b=LNIyFEgkavbhgC16kDgXzEbEEVPShk9hVrKZhjSH09/l20K9IedAAVvuEgEYLQW57VOJXwO+at/1bQvKKQPLaJoufB7lw47I25daFJFtnb0Ktm1ajRkAm177YCcauughQo0Ay1SnMqmk5Lj8kCjepll9GYYPOA0kLkIcoim3+yc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748873121; c=relaxed/simple; bh=zdlEEGG8CpnvJn2+oQ1IRLDmGf4f9YQ2ennw8L7p5JM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=X5djARp5DhdHV0lqnGPp3yJZyEfaCKa1fddw7oSufRtK9oJaAKRRB7YCu84dIvWlYlGhuvNHEjTK29ZHXyCrWMOUsKtSu63F6JdhFRArI4qbAqub92E2uVAccVj8q0GWV+UwgDtmVuJD0y3KOVnhYdeTnrSVlVY/xbq6dbjKLMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gI0a/mlh; 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="gI0a/mlh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B748EC4CEEB; Mon, 2 Jun 2025 14:05:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748873121; bh=zdlEEGG8CpnvJn2+oQ1IRLDmGf4f9YQ2ennw8L7p5JM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gI0a/mlhXUK2arp5QOfRGMCP0y1j8+PZsfqTK/vX98EDxalmM3v8bnLW8mRjKzDCx mNPkt24cT3LpZI354QGPDDtWz4b4+TVcAWCHnxaCbnF8Hr9jmpbsTrlGbAqIVOLKmY tyAQXUiULM3PllvfP5IC94Im6z+tZEOl3f91sNKk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Heiko Stuebner , Nicolas Frattaroli , Srinivas Kandagatla , Sasha Levin Subject: [PATCH 6.6 014/444] nvmem: rockchip-otp: add rk3576 variant data Date: Mon, 2 Jun 2025 15:41:18 +0200 Message-ID: <20250602134341.490766902@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250602134340.906731340@linuxfoundation.org> References: <20250602134340.906731340@linuxfoundation.org> User-Agent: quilt/0.68 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.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Heiko Stuebner [ Upstream commit 50d75a13a9ce880a5ef07a4ccc63ba561cc2e69a ] The variant works very similar to the rk3588, just with a different read-offset and size. Signed-off-by: Heiko Stuebner Tested-by: Nicolas Frattaroli Signed-off-by: Srinivas Kandagatla Link: https://lore.kernel.org/r/20250411112251.68002-5-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/nvmem/rockchip-otp.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/nvmem/rockchip-otp.c b/drivers/nvmem/rockchip-otp.c index a0252ac867bf7..c6684ab14e742 100644 --- a/drivers/nvmem/rockchip-otp.c +++ b/drivers/nvmem/rockchip-otp.c @@ -273,6 +273,14 @@ static const struct rockchip_data px30_data = { .reg_read = px30_otp_read, }; +static const struct rockchip_data rk3576_data = { + .size = 0x100, + .read_offset = 0x700, + .clks = px30_otp_clocks, + .num_clks = ARRAY_SIZE(px30_otp_clocks), + .reg_read = rk3588_otp_read, +}; + static const char * const rk3588_otp_clocks[] = { "otp", "apb_pclk", "phy", "arb", }; @@ -294,6 +302,10 @@ static const struct of_device_id rockchip_otp_match[] = { .compatible = "rockchip,rk3308-otp", .data = &px30_data, }, + { + .compatible = "rockchip,rk3576-otp", + .data = &rk3576_data, + }, { .compatible = "rockchip,rk3588-otp", .data = &rk3588_data, -- 2.39.5