[{"id":3676107,"web_url":"http://patchwork.ozlabs.org/comment/3676107/","msgid":"<CADSQSY1rAnZ69JAjosV_AWBw9OL77dyzHkewW5YGvpCZRwXq5A@mail.gmail.com>","list_archive_url":null,"date":"2026-04-09T07:44:43","subject":"Re: [PATCH 1/2] dt-bindings: rtc: nct3018y: add nuvoton,ctrl-reg-val\n property","submitter":{"id":85937,"url":"http://patchwork.ozlabs.org/api/people/85937/","name":"David Wang","email":"tomato1220@gmail.com"},"content":"On Apr 9, 2026, at 15:23, Krzysztof Kozlowski wrote:\n>\n> On 09/04/2026 09:21, David Wang wrote:\n> > Add \"nuvoton,ctrl-reg-val\" vendor property to allow optional\n> > initialization of the RTC control register (0x0A).\n> >\n> > This allows platform-specific configurations like 24h mode and\n> > write ownership to be defined via Device Tree.\n> >\n> > Signed-off-by: David Wang <tomato1220@gmail.com>\n> > ---\n> >  Documentation/devicetree/bindings/rtc/nuvoton,nct3018y.yaml | 5 +++++\n> >  1 file changed, 5 insertions(+)\n> >\n> > diff --git a/Documentation/devicetree/bindings/rtc/nuvoton,nct3018y.yaml b/Documentation/devicetree/bindings/rtc/nuvoton,nct3018y.yaml\n> > index 4f9b5604acd9..0984dfb77170 100644\n> > --- a/Documentation/devicetree/bindings/rtc/nuvoton,nct3018y.yaml\n> > +++ b/Documentation/devicetree/bindings/rtc/nuvoton,nct3018y.yaml\n> > @@ -24,6 +24,10 @@ properties:\n> >\n> >    reset-source: true\n> >\n> > +  nuvoton,ctrl-reg-val:\n> > +    $ref: /schemas/types.yaml#/definitions/uint32\n> > +    description: Initial value for the control register (0x0A).\n>\n> 24h mode is not a property of a board. I don't know what \"write\n> ownership\" is.\n>\n> Best regards,\n> Krzysztof\n\nHi Krzysztof,\n\nThanks for your feedback. Let me clarify these two points based on the\nNCT3018Y datasheet:\n1. Regarding \"write ownership\": The NCT3018Y features two I2C\ninterfaces (Primary and Secondary). The TWO (Time Write Ownership) bit\nin the control register determines which interface has the authority\nto write to the RTC. We need to ensure the interface connected to our\nSoC is granted this ownership during probe—especially for factory-new\nchips—to ensure the RTC is writable.\n2. Regarding \"24h mode\": This bit determines the internal data format\nin which time is stored within the RTC hardware. Setting this ensures\nthe hardware's internal storage layout matches the driver's\nexpectation from the start.\n\nBest regards,\nDavid Wang","headers":{"Return-Path":"\n <openbmc+bounces-1799-incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","openbmc@lists.ozlabs.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=a9/FfOpA;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=openbmc+bounces-1799-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)","lists.ozlabs.org;\n arc=pass smtp.remote-ip=\"2607:f8b0:4864:20::729\" arc.chain=google.com","lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com","lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=a9/FfOpA;\n\tdkim-atps=neutral","lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com\n (client-ip=2607:f8b0:4864:20::729; helo=mail-qk1-x729.google.com;\n envelope-from=tomato1220@gmail.com; receiver=lists.ozlabs.org)"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fsywp5pHqz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 12:56:10 +1000 (AEST)","from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fsywm6rN1z2yYK;\n\tSat, 11 Apr 2026 12:56:08 +1000 (AEST)","from mail-qk1-x729.google.com (mail-qk1-x729.google.com\n [IPv6:2607:f8b0:4864:20::729])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4frsQC4Q0Lz2xld\n\tfor <openbmc@lists.ozlabs.org>; Thu, 09 Apr 2026 17:44:18 +1000 (AEST)","by mail-qk1-x729.google.com with SMTP id\n af79cd13be357-8cbb6d5f780so44430885a.1\n        for <openbmc@lists.ozlabs.org>; Thu, 09 Apr 2026 00:44:18 -0700 (PDT)"],"ARC-Seal":["i=2; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1775720660;\n\tcv=pass;\n b=iLBhTTgg+fFzaSZdMubA99X13zZydGWPz+vVs8uKAhPxd8jih7bOR6JTcEERFHOfD4vjLze4kbrbqPm0IdMqZ+dpizGpSLKbIUHryZq7KbiG4ARhYNgwA6kOHm6K7jcR5mapQASn/WKNlOJhpK7VyEcIGUqr81lxgEOaUnIOMOD9uOeF54k6CWEf8G+TvhQVDlDh54whPUEMysdodYqQyrg+TbspR3bUe35NOEOy1Ne3alTKpGH+zyS7b/2MO4Srih2IafduEPqIMjMJN1YXaQebDgGmG8dRAV+Y3R9S9Ef31XtNf6RZE9gzuUYMvXVBcj88FLXNaZS9Hclg5qVk8A==","i=1; a=rsa-sha256; t=1775720656; cv=none;\n        d=google.com; s=arc-20240605;\n        b=IHw36c7Ql8JnzNKBCPFfpa2G1hSOD61c2cOjCKk+jepfvcMKMBIOpPVuBKmGjpllNI\n         cCC68k+/8gqDLdjQKP7wJubog5+8qLjxkVuVQTQb7O2yCr4JcM12t1u1sMGnodyUmD7r\n         4wWkZxlTDXA8vnOj34Cq1Z5fpeAGLnFyPi2sYC1SAnSaGTjjseXBA17osg30aopxkJTX\n         p3xkbmocxzsaPdk/EzJ5LOhNgyMapZweP5FZ+S7NdjLH8PDXlkipw7CNARwQUnmK1ept\n         MG5I2CGX3jCz8zpkylCqEt49OTpTNlHnzE55WjZd6pHwuqspDaCQoAfi0CmSXUB8ufPl\n         ojGQ=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1775720660; c=relaxed/relaxed;\n\tbh=mjKb6EN/rzrknJzk+ZEcHNzKcWRM5K86to8xhtDCCyE=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=d1Z31QpDJHlR4AL48N7pGytxImp19HH5y8pQcY705QcGGKv4gmbrUZEs6NeDc2itjOUOZPUsq7k6qBjr2HlQhy8VwNbHbs3EvloqVq/uVdx0cOr4pdd+uqHuOXRWJaNxJ7yoMt2zZJ97B4t/SL/6I5wFWFYip/yrI8Zmtvq3gsXUgM+xh1Fg0Bu1l8R9MRQ1m5KK504E0kqQdfMH6dkIJ61hFhZYlQdyezcEhUmlZOB2h9zFYtJD1WUIPtKJhK0RNqG2hGGr3EExJGi1snQuhg4twtUTEZX3j+0F4rVsQvve01dKOfHS5yV5VMAaZt1Pxl9eVWCr9xEAEAks+rwT9A==","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:dkim-signature;\n        bh=mjKb6EN/rzrknJzk+ZEcHNzKcWRM5K86to8xhtDCCyE=;\n        fh=0ehFB0r56ydAs536Wk8+Kvw13A8s5WPcRsMBRujtBWQ=;\n        b=Wr3/UbT/pdw2lRUjm1cAjm2c2T1T7tzJKDCDIsnuQSfB/Ze4S5F+YHoEJu0Qd0wnGD\n         4+8zu8NKI7ls6dsddXZWXH/foWfX0L/+43VAFa5ca/+crpJ8nka1B6JjhrpMI8NghitY\n         w5pVs+lVj3PlPlZPE285Z6Y9dx9p+Zq/NRBLW0Y2GuK2umdOWZQuBJkwz7mQKm3ecIA2\n         el+XrYWHywZkgxO81I49BVITvHFvISxRlRI4DJCc9syh3s3n6inQVJi/CpMQNNpcSyJQ\n         ddV/5tqWDkxBgDLS6IsO+2YHjj3GWR9Hq6FvhHi8/ThT66fH8ixsVZJHnNI+1BYdeJsj\n         TpcQ==;\n        darn=lists.ozlabs.org"],"ARC-Authentication-Results":["i=2; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=a9/FfOpA; dkim-atps=neutral;\n spf=pass (client-ip=2607:f8b0:4864:20::729; helo=mail-qk1-x729.google.com;\n envelope-from=tomato1220@gmail.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=gmail.com","i=1; mx.google.com; arc=none"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1775720656; x=1776325456;\n darn=lists.ozlabs.org;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=mjKb6EN/rzrknJzk+ZEcHNzKcWRM5K86to8xhtDCCyE=;\n        b=a9/FfOpAGCG5at4Iot5WXjY9DXeCs5oyCzpm2Nr8a32ESt8CDgsQJ/hetePxkHwKZz\n         0jzLkiPD1082HVtu3jRTlwr26wSqo1mTGyViBUk74l/J0+MPrDVbbQNF3VXnqPJpXsT7\n         7UC16sJs5lWzrVShQVtnfGI0DSZx+lnggEiqTKkB/aY61vHXmdnxfwNaGWj7/WLtmZSS\n         JB0KS4b7b7bA2+hS/spM6mqzxWiAqu/wMvGnCXwGAT5KbCyEe9O/bHzs7q7m84E2MBUX\n         4kBnLpK0YHhBqIkl19BZTh48qaRW7BGB7/jbSuxzLCCS7hfxFFqKjGCGOXHcNfEhEQ24\n         mnWA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775720656; x=1776325456;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=mjKb6EN/rzrknJzk+ZEcHNzKcWRM5K86to8xhtDCCyE=;\n        b=qrdk77ySwWHR8EtfbDo6/ryyShqa7i4lZgATjnj/f/cDY2sFzAXJ3TLi19srxndVEB\n         PIYQJE5Y9F5zY9G0e7XOQKhuu0VzNIey5ImQSveZ5dVjpSr5ucNrNoieHIxcwuaUg8QX\n         foaZBtwPaKob/UPK048xuuGKMpuSc1SzF38zG4qitOu8nFu13W8HYuMnHht2K9ypaJBk\n         3ELHY5lvlyLfQgG99kz1pj20/0uJ/eFp8lyGm8zFSUi7t9yeUVGLtmmy6YBhlb6CJT28\n         GdAf0zGIs1wTWog2w2wIZkslepnoEqeq/aq1XkUn1BZ1Uuhew+awwdPbsjx11mtGEr0q\n         21FA==","X-Forwarded-Encrypted":"i=1;\n AJvYcCX5cely9wl1SeJSjR3wnV7Igsozq/ZpmmPptcQJv7UdTBvoDS6ZkdVABHH2YoV2o4rZyxK1odPW@lists.ozlabs.org","X-Gm-Message-State":"AOJu0YwF3QXaMrY4av1YxH9e5YEpRdQOcTtbzal4poGArTYUDDmcJ8i7\n\tsG0TWT9wduvd24JGm5e8K33nnrEpuiPfUsNESoVJpE4DddxWLFbRsbI6THfT7aN3FtkUybhpTYx\n\tQOl3OD8cE2Vk1WElTHsU/dykrfca08uI=","X-Gm-Gg":"AeBDieseMXrSSMSC5DiTPf3ad9SgTLPwSCJY5igikgCvhi9vJNb8JXAmf/spOOp/Zzt\n\tlUa9k2feo16r3yczoF5PUtEnNih9pu1jLBI2FhbK7bf9R/qwIoS0/um7cTcKKXv2kKCLxvCr9dg\n\tOOzrbE6hIAmHu+qd+XoYCJpcejEZbJmc9lEAdPWXAHpZlif996KMQAf7bDASZW8BFiohgIxxBoD\n\teqYInQpGOfjyPVE/gHDMqtRJlIify8N1HftIOhw4ke9iGNi/Fc6edVnu/IDfMnTLMi+Q7db/ygv\n\t0uOD66MyheHeW50qA/I=","X-Received":"by 2002:a05:620a:448e:b0:8d5:26e2:661f with SMTP id\n af79cd13be357-8dc3d65d215mr363217385a.42.1775720655867; Thu, 09 Apr 2026\n 00:44:15 -0700 (PDT)","X-Mailing-List":"openbmc@lists.ozlabs.org","List-Id":"<openbmc.lists.ozlabs.org>","List-Help":"<mailto:openbmc+help@lists.ozlabs.org>","List-Owner":"<mailto:openbmc+owner@lists.ozlabs.org>","List-Post":"<mailto:openbmc@lists.ozlabs.org>","List-Subscribe":"<mailto:openbmc+subscribe@lists.ozlabs.org>,\n  <mailto:openbmc+subscribe-digest@lists.ozlabs.org>,\n  <mailto:openbmc+subscribe-nomail@lists.ozlabs.org>","List-Unsubscribe":"<mailto:openbmc+unsubscribe@lists.ozlabs.org>","Precedence":"list","MIME-Version":"1.0","References":"<cover.1775717959.git.tomato1220@gmail.com>\n <ba0845c590eda42a28b3799a6f40294ba74a726e.1775717959.git.tomato1220@gmail.com>\n <a1e24b69-b90a-47d7-b952-bca45fcc6281@kernel.org>","In-Reply-To":"<a1e24b69-b90a-47d7-b952-bca45fcc6281@kernel.org>","From":"David Wang <tomato1220@gmail.com>","Date":"Thu, 9 Apr 2026 15:44:43 +0800","X-Gm-Features":"AQROBzCF7F3D8qQZzH4nVF7DtpNul6eHMhQM5j4hlrJJj6BRCmL9I0ox9rpAVNY","Message-ID":"\n <CADSQSY1rAnZ69JAjosV_AWBw9OL77dyzHkewW5YGvpCZRwXq5A@mail.gmail.com>","Subject":"Re: [PATCH 1/2] dt-bindings: rtc: nct3018y: add nuvoton,ctrl-reg-val\n property","To":"Krzysztof Kozlowski <krzk@kernel.org>","Cc":"a.zummo@towertech.it, alexandre.belloni@bootlin.com, robh@kernel.org,\n\tkrzk+dt@kernel.org, conor+dt@kernel.org, andrew@aj.id.au,\n\tavi.fishman@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com,\n\tventure@google.com, yuenn@google.com, benjaminfair@google.com,\n\tctcchien@nuvoton.com, mimi05633@gmail.com, openbmc@lists.ozlabs.org,\n\tlinux-rtc@vger.kernel.org, devicetree@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org, davidwang@quantatw.com","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","X-Spam-Status":"No, score=0.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n\tFREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,\n\tSPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"}}]