Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp132664rdh; Mon, 18 Dec 2023 06:29:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IHdqILupobsNPs072U76YQCvPB3pCXQ7sERpAI04936zmGo0mWld3Jd8+nUBMWplVsIptln X-Received: by 2002:a17:90a:7102:b0:28b:7a03:4d35 with SMTP id h2-20020a17090a710200b0028b7a034d35mr558120pjk.48.1702909744166; Mon, 18 Dec 2023 06:29:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702909744; cv=none; d=google.com; s=arc-20160816; b=TN8jFXDrOLQb+rUgwMsaV2LFhJEbOqpn/qK/A+I+kpxylksl9n2k56m5zsl+82Ska2 pNcl9rXQxb9KnTUPVMdf6Yi8IgbzbKo+t8tIvyNUytkvqy+bvvGJcG9wbY2ZCH9vnxqJ 3C88/YBG+XBozO9mhImoRyVEUQ5WfhgC8yTx0ZO1JsWY/J2kmUfHtNEZz3BQRcvc10u1 aiifh42oMtpOB2IwuJWfCutb/SaLT7GqjYaLaF45GmYX+sGLagyYg8qQZBqUI3RYEhBF PU91Sb9WjFxcX0hqlXJpAgJ7t9xnxxkr8wqf1r3lpMkhkGuIChfs2Lr6l/AnLKyYIk0/ 9vjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=rpetGMWtiPsp71JtL8btJ5ynGl2HkSqRpzMNYABb/p0=; fh=PP3OOEM6qTHXd7ijYU+T0zRFKLi4EnMiNloGeENIp3U=; b=BqaXNIkQDC/JIJuydin8ENuAkwB7azUa3NR7LkLrXuh+hk02W/eh9R3wa91KX50qib u4yuWkDLf4f8525Jd50OUVLocOsRPiBwcPWb07OEp/Z4mFVXMvqIPqbLNlRihAcONeSH aVw/fgdt1tGzSl3Wtx/n0W9xdAd08aZCUGuEA8qhC8IWvTYv5435DkuB938JS6DKn0ER v3j02VOh23DTIaeUMvFUf63jYvwRH41JP3Fy1ETtWkdtQ9qYIMqURBTuXdJrAlAEn/gW HrJ3ysvUs1A/NSQtiXn4Yc/ya00jRfkaSju1aQWO+2Zs5jgIhKx756gOavGH7OgJeGMe qBIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3833-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3833-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h15-20020a17090a130f00b0028b41d97813si4707784pja.98.2023.12.18.06.29.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 06:29:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3833-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3833-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3833-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4C3C9B21E6C for ; Mon, 18 Dec 2023 14:27:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A29CB129EFB; Mon, 18 Dec 2023 14:27:35 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D25F129EF9; Mon, 18 Dec 2023 14:27:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 6CC4E820D; Mon, 18 Dec 2023 22:27:25 +0800 (CST) Received: from EXMBX072.cuchost.com (172.16.6.82) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 18 Dec 2023 22:27:25 +0800 Received: from localhost.localdomain (202.188.176.82) by EXMBX072.cuchost.com (172.16.6.82) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 18 Dec 2023 22:27:20 +0800 From: Ji Sheng Teoh To: CC: , , , , , , , , , , , Subject: Re: [PATCH v4 1/1] dt-bindings: watchdog: starfive,jh7100-wdt: Add compatible for JH8100 Date: Mon, 18 Dec 2023 22:27:11 +0800 Message-ID: <20231218142711.961120-1-jisheng.teoh@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX072.cuchost.com (172.16.6.82) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: quoted-printable On Mon, 18 Dec 2023 09:41:07 +0100 Krzysztof Kozlowski wrote: > On 16/12/2023 02:48, Ji Sheng Teoh wrote: > > Add "starfive,jh8100-wdt" compatible string for StarFive's JH8100 > > watchdog. > > Since JH8100 watchdog only has 1 reset signal, update binding > > document to support one reset for "starfive,jh8100-wdt" compatible. > >=20 > > Signed-off-by: Ley Foon Tan > > Signed-off-by: Ji Sheng Teoh > > --- > > .../watchdog/starfive,jh7100-wdt.yaml | 29 > > +++++++++++++++---- 1 file changed, 23 insertions(+), 6 deletions(-) > >=20 > > diff --git > > a/Documentation/devicetree/bindings/watchdog/starfive,jh7100-wdt.yaml > > b/Documentation/devicetree/bindings/watchdog/starfive,jh7100-wdt.yaml > > index 68f3f6fd08a6..ab077f64a83e 100644 --- > > a/Documentation/devicetree/bindings/watchdog/starfive,jh7100-wdt.yaml > > +++ > > b/Documentation/devicetree/bindings/watchdog/starfive,jh7100-wdt.yaml > > @@ -19,14 +19,12 @@ description: isn't cleared, the watchdog will > > reset the system unless the watchdog reset is disabled. -allOf: > > - - $ref: watchdog.yaml# > > - > > properties: > > compatible: > > enum: > > - starfive,jh7100-wdt > > - starfive,jh7110-wdt > > + - starfive,jh8100-wdt =20 >=20 > What is happening with this patchset? I asked about one specific > items. you know - comment is written under specific inline quopte. > You wrote in changelog "Drop items in compatible field.", but I see > oneOf gone! My bad, I've interpreted it wrongly.=20 Will rework the compatible field to this instead: compatible: oneOf: - enum: - starfive,jh7100-wdt - starfive,jh7110-wdt - items: - enum: - starfive,jh8100-wdt - const: starfive,jh7110-wdt While reworking this, I've noticed reset field with maxItems alone will cause dt_binding_check to fail with following error: 'watchdog@12270000: resets: [[4294967295, 15]] is too short' This is fixed by defining minItems and maxItems as follow: resets: minItems: 1 maxItems: 2 >=20 > I have real doubts that you ever tested your entire solution with this > binding. Where is the DTS? >=20 Currently, the DTS is still in internal and yet to upstream as it depends on [1]. [1] https://lore.kernel.org/all/20231201121410.95298-1-jeeheng.sia@starfivete= ch.com/ > Best regards, > Krzysztof >=20