Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7072998rdb; Fri, 15 Dec 2023 17:50:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvJ/0aCcdgBpQMtl3TenRt06PsL6jWOVVZFfJPPHEc4p4Ooyt8K9l2MFZ4ll8XEu2liPDK X-Received: by 2002:a05:6a00:1a8f:b0:6ce:513d:2e5f with SMTP id e15-20020a056a001a8f00b006ce513d2e5fmr15725649pfv.0.1702691401248; Fri, 15 Dec 2023 17:50:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702691401; cv=none; d=google.com; s=arc-20160816; b=Emi8RXyINqw+2jQKFN7YEhj+XuuivADCWvjSuA9psKI5xILUFOEfWSYXrWfqaAjVng vfbPDsMXBarOqsw0d5wesaaRC0pSeeoR098EkEEyLPVSU8cWMesqLTrH7CghMqlcpGh1 b/gP5wNtkuKGZQ3+cisTZW2sqvHxNDJcXfyNuR12q0Nmz0sOhH2buF0wPmiEI4Ty2kdn 0dWQ42WiA3ClKhxZNc2v7z2yfEFADcUc1nOzmzDUHjuzO41x7NXyjYOGLe5FCqp81V0N /oG2PrIIzPTgyiWX0GF0M2QgTQCDl61r3BkS/TjT+Y0N/70HgjB/Y3frdU7YpeOLl8Vb r5Xw== 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=ANJi72Ts1szYtU2sr91HC2DVINAVpRxNK8V4N9n4Jko=; fh=jwVIUMUQW/dlvsiazkX9JNTHHgOyH1wsqGeNTyTYaiE=; b=QBNyxy9vJXKDrS/K0vaokRTpsGDpPL8TQnxtui9FZ2iXdyPrKj89tC+A+RGrWp4ozz LrQZsgniqoZdpP6AXhYmSGYdcbDQE2lFbrQ9YjqRvfH8aNruox4VGfDheK1ZRDU+mA4J tCkDqu1dc0W/OB/9VSr0r/5qYqDf1sySfz5Lbc54XtxoWOi7bEKtY5oK0ynpagusC6nC q8Lm3CnXe81d89HUJE7QjiMWmJb9Yp+NHKXnjWroaB3wbBwTO947vrBRRjHnQ84QFUUN 6wMLfVJq1lGP1M9EryTygNNwE6iX2L+NaR+Mo5FCtkEU+Xv5ysOcX++RzCBaypnoWhvD /OFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1935-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m125-20020a632683000000b005cd8123afb5si13399pgm.547.2023.12.15.17.50.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 17:50:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1935-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 B936EB24491 for ; Sat, 16 Dec 2023 01:49:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C908920F3; Sat, 16 Dec 2023 01:49:25 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB2AC1C3F; Sat, 16 Dec 2023 01:49:22 +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 ex01.ufhost.com (Postfix) with ESMTP id B02D024DFED; Sat, 16 Dec 2023 09:49:14 +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; Sat, 16 Dec 2023 09:49:14 +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; Sat, 16 Dec 2023 09:49:10 +0800 From: Ji Sheng Teoh To: Xingyu Wu , Samin Guo , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Ji Sheng Teoh , Ley Foon Tan , , , Subject: [PATCH v4 1/1] dt-bindings: watchdog: starfive,jh7100-wdt: Add compatible for JH8100 Date: Sat, 16 Dec 2023 09:48:50 +0800 Message-ID: <20231216014850.1011344-2-jisheng.teoh@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231216014850.1011344-1-jisheng.teoh@starfivetech.com> References: <20231216014850.1011344-1-jisheng.teoh@starfivetech.com> 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 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. 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(-) diff --git a/Documentation/devicetree/bindings/watchdog/starfive,jh7100-w= dt.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. =20 -allOf: - - $ref: watchdog.yaml# - properties: compatible: enum: - starfive,jh7100-wdt - starfive,jh7110-wdt + - starfive,jh8100-wdt =20 reg: maxItems: 1 @@ -45,9 +43,7 @@ properties: - const: core =20 resets: - items: - - description: APB reset - - description: Core reset + maxItems: 2 =20 required: - compatible @@ -56,6 +52,27 @@ required: - clock-names - resets =20 +allOf: + - $ref: watchdog.yaml# + + - if: + properties: + compatible: + contains: + enum: + - starfive,jh8100-wdt + then: + properties: + resets: + items: + - description: Core reset + else: + properties: + resets: + items: + - description: APB reset + - description: Core reset + unevaluatedProperties: false =20 examples: --=20 2.25.1