Message ID | 20241220110558.3511994-8-kever.yang@rock-chips.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 741FFE7718A for <linux-rockchip@archiver.kernel.org>; Fri, 20 Dec 2024 11:15:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=waTfwYMO//lMhUoxpK7tcA25dsc8rH49wY/2wMMnFnY=; b=qD/y8nXnQqGQoJ ZkflCQsTtty+lcSPGmf9kVH/IQuinePL+hrm+Ga00XrsRfUNHOGAFEjlVabWYmhPj6hU3RqcKZnss nl2k13d5A6rR0kQ+kMRKZ5RL5GQouBWdC1AYYUUuRo7A0S/ONQxExOeyRAYYRpwFDmC+Wc0RCjeGV A516BJ4IL9lgsJPvPndudJ2vDxO3BaRVx1p96AvleQUXQt4mJtk1L/VfSOdMIbt97uoxB6gZcOY4I OKOov5+GzALmJrkxv/X8rZu7OVFS+wpah4CT4AGpD389pr+sZimf+TFAQCvBrs9tV1ut94dbqMmk5 CqRlqYN8cdu0ZxNLWJ+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tOay8-00000004jHB-45Ap; Fri, 20 Dec 2024 11:14:56 +0000 Received: from mail-m15588.qiye.163.com ([101.71.155.88]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tOapj-00000004fEO-17vT for linux-rockchip@lists.infradead.org; Fri, 20 Dec 2024 11:06:16 +0000 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.qiye.163.com (Hmail) with ESMTP id 657291eb; Fri, 20 Dec 2024 19:06:12 +0800 (GMT+08:00) From: Kever Yang <kever.yang@rock-chips.com> To: heiko@sntech.de Cc: linux-rockchip@lists.infradead.org, Finley Xiao <finley.xiao@rock-chips.com>, Kever Yang <kever.yang@rock-chips.com> Subject: [PATCH 17/38] nvmem: rockchip-otp: Add support for rk3562 Date: Fri, 20 Dec 2024 19:05:37 +0800 Message-Id: <20241220110558.3511994-8-kever.yang@rock-chips.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241220110558.3511994-1-kever.yang@rock-chips.com> References: <20241220103825.3509421-1-kever.yang@rock-chips.com> <20241220110558.3511994-1-kever.yang@rock-chips.com> MIME-Version: 1.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZGk4eQlYeH0wYS0xIQhlCTkJWFRQJFh oXVRMBExYaEhckFA4PWVdZGBILWUFZTkNVSUlVTFVKSk9ZV1kWGg8SFR0UWUFZT0tIVUpLSUhCSE NVSktLVUpCS0tZBg++ X-HM-Tid: 0a93e3bf1a1903afkunm657291eb X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NDI6Agw6DDIOPggsGFENSBQs AS9PChdVSlVKTEhPTUJJTExISEpCVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlOQ1VJSVVMVUpKT1lXWQgBWUFKSEtCNwY+ DKIM-Signature: a=rsa-sha256; b=UWmDRRqIwwam4OClGyr2mNiC+uSvj9VEBfVu7SRuT+aHTtGYtn+9zWNaLWZ2oM59Cn99Jim5Mg5Qw5KBUJLjSClQQrxIO6wMpBDoJCA5RY8P0sgwlJglS+faGo9qK4b6YOOjLtWlH28xaUXUVZ1gIOPq7NvYjttbTDq1oIqaVK4=; s=default; c=relaxed/relaxed; d=rock-chips.com; v=1; bh=vlTw8ucEItlFxpvsBPgpOAVij+6tEI4gYlpEt46V6aw=; h=date:mime-version:subject:message-id:from; X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241220_030615_485668_B7B93E90 X-CRM114-Status: UNSURE ( 6.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms <linux-rockchip.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-rockchip>, <mailto:linux-rockchip-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-rockchip/> List-Post: <mailto:linux-rockchip@lists.infradead.org> List-Help: <mailto:linux-rockchip-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-rockchip>, <mailto:linux-rockchip-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" <linux-rockchip-bounces@lists.infradead.org> Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org |
Series |
[01/38] dt-bindings: clock: add rk3562 cru bindings
|
expand
|
diff --git a/drivers/nvmem/rockchip-otp.c b/drivers/nvmem/rockchip-otp.c index a04bce89ecc8..6f86cf8ec390 100644 --- a/drivers/nvmem/rockchip-otp.c +++ b/drivers/nvmem/rockchip-otp.c @@ -341,6 +341,17 @@ static const struct rockchip_data px30_data = { .reg_read = px30_otp_read, }; +static const char * const rk3562_otp_clocks[] = { + "usr", "sbpi", "apb_pclk", "phy", +}; + +static const struct rockchip_data rk3562_data = { + .size = 0x80, + .clks = rk3562_otp_clocks, + .num_clks = ARRAY_SIZE(rk3562_otp_clocks), + .reg_read = rk3568_otp_read, +}; + static const char * const rk3568_otp_clocks[] = { "usr", "sbpi", "apb_pclk", "phy", }; @@ -372,6 +383,10 @@ static const struct of_device_id rockchip_otp_match[] = { .compatible = "rockchip,rk3308-otp", .data = &px30_data, }, + { + .compatible = "rockchip,rk3562-otp", + .data = &rk3562_data, + }, { .compatible = "rockchip,rk3568-otp", .data = &rk3568_data,