From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.181 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796300687; b=eQiWLRhi9OHv1BYP9lV0TVQD1Cu+9dnoQH1kDuQTsKjyMN9KjkGMYA7F2wd1ZTXUdxuP gra8xZsw6+29plpKnF1dSESvlFUvgCd95PoK34Vd28/CSUd/f1yoEKWng39aS9MJZ6e33 T/xRNErZl0LPNfiywu26dpt6HMWc/1bOcXc8Qt2gQqTVdlR+uZnKPh2aksTexsNs8pdCW 8j2o3vzJDeDrZ7Qvbi3atTplbysiHr86AiIrsr5w06oqTdJp/3fLASorpLArqtK4rQo15 xdN+80BM4jo90s3EYLNgeNfW9wQaKTPL+AhQWK/YdYwVBvqFuBeUYbQ2cIkr+A9PSTg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796300687; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=NGW8CX9zyzUPW/fFeGfQdofiGAhhHanBS+TgTMHqy90=; b=N+Ucj4lkacTFlQXeF9ftsgrrfI2suc9qq8nKadNBWp7i7E2mYgLV+p/L0sIHtmKZCYyH SQf+flj0YXHMvQbPQONm1PX90hzNTFdxsNSF0ssFMsogn949sKue4xQUrgB6GG7JtXUDC zXaf6MGjVdCp39JNYrr0UvRbCY15g1z/gW2sdzFmwom1/FRJfkBNcxjvtpXfcYnZCY0UU +gb4JXHN/R9Z21INETSwiMlOL+xJSmYy4sPn0PJVlLz5J68YAmVhs+RWvigY1Zw0gpL3S l/KcEjFIAXiEKJkhf1E50yQzYazJ+xzoy8FWGgaJQZyM1qR3zLABHtwXQ65MwrAmTeg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ArunRrTS; arc=none smtp.remote-ip=74.125.82.181 Received: from mail-dy1-f181.google.com (mail-dy1-f181.google.com [74.125.82.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E4D5606A332 for ; Thu, 3 Dec 2026 12:24:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5E4D5606A332 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ArunRrTS Received: by mail-dy1-f181.google.com with SMTP id 5a478bee46e88-33bf40b0c8bso11710946eec.0 for ; Thu, 03 Dec 2026 04:24:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796300686; x=1796905486; 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:content-type; bh=NGW8CX9zyzUPW/fFeGfQdofiGAhhHanBS+TgTMHqy90=; b=ArunRrTSexlDizQTh7/yQts/RVn0Qs5iQ43jhg4wfP6HU56WvGA+xhtW40V/hvNGLO uldPvQnRdpqMn3ESw8jqjZ6Riumctfif+sjYheuKR4hiAWlBbhouP/lNZuW9gmiDX6z9 RPVKWJWsJYY2KLoWmkpYxyxccCYoV86oYkVMTUqAJ+aI/xMWJk6ou0d/Eo7l1OyzX/vF mPOUyROok5EnNKyIOU7QIMpn5OYpBJho7ff/GhG+yYFSItSLZHEUji2j8N23rOsNY59+ n+eSHRiA1w9qfuld5ps7Hq60HjQ69l8qb8qzbapDBnsZPYvsqaDVD2HEZtfp21zhT7nO 0Xsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796300686; x=1796905486; 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:content-type; bh=NGW8CX9zyzUPW/fFeGfQdofiGAhhHanBS+TgTMHqy90=; b=BULi1WRgP5zYE99NC4z8aBXRGT3b8tn7w6AeldK+fU7wQwVvIZ0InAkz6w5IkeEH4+ ewxVM2cWX7otpwLr1cn+vkr2Aqqk4DgtZ4UrAio2JowyECCzb+6WNe2AebnSsu46QPRZ fGF6QxDHfCJuLYV6R5w2+Hdls3AXn8hHYHxNpCz104kR/nTc0Pa6NabD4TU7TIQsGtO8 /WPAT8cHEGNT5bu3Ik0tXsYz7lVIxq8zTfZCrgCBKMfqxFrAYCOIynjFUM1ovk3C7wX3 gfBeByfZpIJC58pR9ul+yiolLoeYomrjNTJh0YT/W5Lx1juSyvgOe/Hvh5tleSACsLdn Zx6Q== X-Forwarded-Encrypted: i=1; AL+hErGE2pm4RerZZOzenW6k8qVvaRDzU79XnB3CT80wzo2XABO+JGsyaZJn3I4/zIiU+uEs086LeaQvKiWM@vger.kernel.org X-Gm-Message-State: APuU4Z/kYGQwxYpcyr/n/wo57BBPKlTZU4G37isXy2WJHHe7Ksw/t2pi 2I2L/sb6COQ9j2BGUZW7ZZfRkwzvhBy2k4IEz07nN92CMjQhdBgxKYgx X-Gm-Gg: AZFdTZezohOu3srcMHdv67TDdS+g/oQnZJag0oy9BKDQQW2yHf5uo+5kzvJMp113KgI T54fWp9/Y7GtFFP5P81199emQSRgDEDNtXyUaHH+roWQF8cNpCG4vKGSfK5Cuq2O0PWYohLeFs/ SWEoIHqDASgtWnTM6jjxbEvd9BmDlXNMht5r1p6ifaY2+rzXpQjrxgZxQbSHhnC5l0bi0Bvw0p5 GnY8AY3n7ZVZHEDpnAsxw3g2XB18q8SQPlf7lYfxD/l9d+gemL2JrEt7xhsWtTtGstf+QG6OigL FKxsUPAUyuB0Eo0sYbiaNdy7azbMOvJpcIGCiSKdM86wlPKKiDmNnlW0PjJ8hQ2XewFpBpHw7nG W2fWtZDeKuV6a7icoPTzW546ubyQGc/XS1j/KL6ILLoBDOCI7iRTh+F1tSJGLfBWkgJAQr3+bCv FOSJ0hkd3jVPUKpcd6LE+M4GX3O+Bh7YpAHg6r/gPpO25Mg8g3dYAYM7jK9wQhdzkiK6hH/j1HF AAGme6O9eHnUeySLtN64qysgItdS9O2suQlFk4FKltle019KcX6Xk0q8knCj8Z3eUddEOnaS8Xg +DKEKd7/wkEYTYyFdGA8HuXHfYNhTnolvOemOp/gKjYa3HyeQYzcC5w+AMztsFTxf0QwFwcMXNm F6AW9A2RI/La0xmWaWcEFHw== X-Received: by 2002:a05:7301:c00f:b0:387:7d6:a91e with SMTP id 5a478bee46e88-38707d6aaecmr15071271eec.6.1796300686500; Thu, 03 Dec 2026 04:24:46 -0800 (PST) Received: from localhost.localdomain ([96.44.128.241]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38567abb870sm108777099eec.25.2026.12.03.04.24.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 04:24:45 -0800 (PST) From: Weihong Guan To: Srinivas Kandagatla Cc: Weihong Guan , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Ondrej Jirman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH 1/2] dt-bindings: nvmem: rockchip,otp: Add RV1106 Date: Thu, 3 Dec 2026 12:24:11 +0000 Message-ID: <20261203122416.682071-2-weihong.guan@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261203122416.682071-1-weihong.guan@gmail.com> References: <20261203122416.682071-1-weihong.guan@gmail.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The RV1106 OTP controller works as the RK3568's, behind six clocks and six resets: the RK3568's four (otp, apb, phy, sbpi), the arbiter's the RK3588 also has (arb), and CLK_PMC_OTP / SRST_PMC_OTP (pmc), as Rockchip's own RV1106 device tree lists them. The RV1103 has the same block. Allow up to six clocks and resets, and add the compatible with its clock and reset names. Assisted-by: Claude:claude-opus-5.5 Signed-off-by: Weihong Guan --- .../bindings/nvmem/rockchip,otp.yaml | 38 +++++++++++++++++-- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml b/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml index 7e4d5e1c4..0db99a365 100644 --- a/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml +++ b/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml @@ -19,25 +19,26 @@ properties: - rockchip,rk3568-otp - rockchip,rk3576-otp - rockchip,rk3588-otp + - rockchip,rv1106-otp reg: maxItems: 1 clocks: minItems: 3 - maxItems: 4 + maxItems: 6 clock-names: minItems: 3 - maxItems: 4 + maxItems: 6 resets: minItems: 1 - maxItems: 4 + maxItems: 6 reset-names: minItems: 1 - maxItems: 4 + maxItems: 6 required: - compatible @@ -174,6 +175,35 @@ allOf: - const: apb - const: arb + - if: + properties: + compatible: + contains: + enum: + - rockchip,rv1106-otp + then: + properties: + clocks: + minItems: 6 + clock-names: + items: + - const: otp + - const: apb_pclk + - const: phy + - const: sbpi + - const: arb + - const: pmc + resets: + minItems: 6 + reset-names: + items: + - const: otp + - const: apb + - const: phy + - const: sbpi + - const: arb + - const: pmc + unevaluatedProperties: false examples: -- 2.47.3