Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6500241rdb; Thu, 14 Dec 2023 23:25:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFEx5tH3Xi7OGVUfYLu7BS2NabbB2jgfOAa99L2TbiNuz6CpTadsa6O7O0QVcK7Q5DhuUlT X-Received: by 2002:a0c:c20d:0:b0:67e:f44a:d0b7 with SMTP id l13-20020a0cc20d000000b0067ef44ad0b7mr4487348qvh.107.1702625157495; Thu, 14 Dec 2023 23:25:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702625157; cv=none; d=google.com; s=arc-20160816; b=oxqlj3ZZL+FtjpgtYUfwGTFePhIC1rQk5juoZIOTnFoFsqUVyQrXvmqRpRswLDv2LK TL4rUu5cC3zJNK6AhLXKs5QZM7wmK7xdxZ4T+x0HdpKawaTGFTFaB69+ciHuCTtl66L7 AKktva/fcurJyO2X54rQi7S79zpVD9zaKC7fX/3APjaPOSlUSM59ILhDcoA8Uqx2yh0D Zaf3yQniljrjSbv2hJGhVwsxwpjiGJOZAsGCFbnpuQSlHH76RI+zn5WZT2LCDYvQd4NC MpWNOZ5KkXCNZNiOFITsdbkkOLbxCq+XNJTRUlczB2Vu5EZ1YVOyCEs4upXG5TVQdDdP 43zA== 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=nsX/lsQlScUW2TPmC5wUBfZ2SX3b0XfCo43Q49L8ee0=; fh=PP3OOEM6qTHXd7ijYU+T0zRFKLi4EnMiNloGeENIp3U=; b=qlpR7R0sxGbkvrezDOdR4zSgKSlAjt+MGgK0adB91aSHh0akuH2e/lb10WDqPQOyrB TrXLxKIYQf/yJaAD7LbzaVQrm4h4wCPFzcUYW7qwa4SbjYPHBSizfVFCQ00BYH8kOjHM KRMnawjv/bUKrdlw4bf8HvXILFKmP8w4G/pWkRUDSx8H4GoUgMXSsUSUWU0WP8C+hbk8 00i7x5TTE6mGvNJo1wJ/okjj72LOiEE9XQAjI/9FX+xr0pS2kqZZvB36VogMrHQb56Sp UrDL9ZE86AUgrSgD3i1yXLokHE9ZXfhmEfcD5Zd0AssbsMcZmtROi4zJyY3jQSruCv6P zgKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-515-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-515-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c6-20020a05620a200600b0077da5e176f4si16564674qka.693.2023.12.14.23.25.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 23:25:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-515-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-515-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-515-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 432941C21A48 for ; Fri, 15 Dec 2023 07:25:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85D20D2F3; Fri, 15 Dec 2023 07:25:50 +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 CA46D16418; Fri, 15 Dec 2023 07:25:44 +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 EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id D06EC7FE2; Fri, 15 Dec 2023 15:25:36 +0800 (CST) Received: from EXMBX072.cuchost.com (172.16.6.82) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 15 Dec 2023 15:25:36 +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; Fri, 15 Dec 2023 15:25:32 +0800 From: Ji Sheng Teoh To: CC: , , , , , , , , , , , Subject: Re: [PATCH v3 1/1] dt-bindings: watchdog: starfive,jh7100-wdt: Add compatible for JH8100 Date: Fri, 15 Dec 2023 15:25:08 +0800 Message-ID: <20231215072508.3498476-1-jisheng.teoh@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <40b5d1a8-37d2-4c68-8d16-33c92c3e5716@linaro.org> References: <40b5d1a8-37d2-4c68-8d16-33c92c3e5716@linaro.org> 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: EXCAS061.cuchost.com (172.16.6.21) To EXMBX072.cuchost.com (172.16.6.82) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: quoted-printable On Thu, 14 Dec 2023 08:39:46 +0100 Krzysztof Kozlowski wrote: > On 14/12/2023 04:30, 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 | 48 > > ++++++++++++++++--- 1 file changed, 42 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..79082c5f9971 100644 --- > > a/Documentation/devicetree/bindings/watchdog/starfive,jh7100-wdt.yaml > > +++ > > b/Documentation/devicetree/bindings/watchdog/starfive,jh7100-wdt.yaml > > @@ -19,14 +19,17 @@ 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 > > + oneOf: > > + - items: =20 >=20 > Drop items, it wasn't here in the first place. Ok, will drop. >=20 > > + - enum: > > + - starfive,jh7100-wdt > > + - starfive,jh7110-wdt > > + - items: > > + - enum: > > + - starfive,jh8100-wdt > > + - const: starfive,jh7110-wdt > > =20 > > reg: > > maxItems: 1 > > @@ -45,10 +48,33 @@ properties: > > - const: core > > =20 > > resets: > > + minItems: 1 > > items: > > - description: APB reset > > - description: Core reset =20 >=20 > This is not valid for jh8100. Move it to else: part. Here maxItems: 2. > Sure, will replace with maxItems. =20 > > =20 > > +allOf: =20 >=20 > allOf goes after required:, see example-schema >=20 Ok, will move it after required. > > + - $ref: watchdog.yaml# > > + > > + - if: > > + properties: > > + compatible: > > + contains: > > + enum: > > + - starfive,jh8100-wdt > > + then: > > + properties: > > + resets: > > + description: | > > + Must contain Core reset entry. > > + maxItems: 1 =20 >=20 > Instead of both, items: with description. >=20 Sure, will use items instead. > > + else: > > + properties: > > + resets: > > + description: | > > + Must contain APB reset and Core reset entry. > > + minItems: 2 > > + > > required: > > - compatible > > - reg > > @@ -69,3 +95,13 @@ examples: > > resets =3D <&rst 99>, > > <&rst 100>; > > }; > > + > > + - | > > + watchdog@12270000 { > > + compatible =3D "starfive,jh8100-wdt", "starfive,jh7110-wdt"; > > + reg =3D <0x12270000 0x10000>; > > + clocks =3D <&clk 78>, > > + <&clk 79>; =20 >=20 > No need for new example with difference in one property. Ok, will drop the new example. Thanks >=20 > Best regards, > Krzysztof >=20