Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7250rdb; Thu, 21 Dec 2023 00:45:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IE22Car/QeL1AsLYlS9qsvJ0Z04+2c6vVkLCehsCbrOIrMqG9zrt5txXmD0IFi62y2uieO0 X-Received: by 2002:a17:902:d501:b0:1d0:4cde:6e33 with SMTP id b1-20020a170902d50100b001d04cde6e33mr14361743plg.56.1703148300170; Thu, 21 Dec 2023 00:45:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703148300; cv=none; d=google.com; s=arc-20160816; b=bgPuwTacFbMV8kYGqyozkibtm/Dnt2qokvD2ks8DG0o0ZTkhizDrEihk8jShskOQEt XTGzysuiIxKuk3J5vI4ca4kwG1dyKN7mkrGhlO5FxAyptaQX8fecV4YKKv+p1M8XDZ+O pTAOmjE80Czdk+06mV34cnv8oKoXiducabCL5MB9TxcRHxmFUfKlQN2F4boBtC5Fu6op SJlG6j5JNsrivMTWP4nbUeu6gCWGtP4aUOQMrPAAdjN3V568Y5Hdo0rXi+evSfNQybOu KejOV8bjHzql7ZWImUZ8VfX4CV69UBC0/pkYwENu6QFLAfGQXcc4G8lbzXBPNiQPVfQN fFfg== 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=8EB3giAkLuA2leao6mlJhFV1a05eymamL+PLbIkpWOU=; fh=1hGy3/+7ZlXW/MW9bAOPKeT/N5MKKeosuqMXtK1dXUo=; b=uKsnptRhHR8+Sg2wtaji8K5zU60De+mmLNKtM90ofGIoLm283qmZB4oTU4wysLHWl8 +uajKwzFnRn5dy0iocjQMf+iICO1PXJ+3RnuazmTftjdrVGm9uxKpjgFCn9a+7Hn54s3 aF7ttdvCKwCWTg6DtGvKaxcXrWTzIhbKoKY7MnClIPAVSIMIt2W6WgGzfu0UH6H346VM FTDZAVer5r+4TayTh4rQMupLRO3/qSD/uinwM8hehkjNvzLHHLCvgAYD1Ya4dsKs7n1E sbFj5tsVfqpR0BHnDpRKIGlVw8g+nFdKwUTIk3vdB7ZxMs6dkpQp6VjlSbwh26pPk3zp QHqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-8009-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8009-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 4-20020a170902c24400b001d3f5ea1a7csi1149243plg.53.2023.12.21.00.44.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 00:45:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8009-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-8009-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8009-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CD946286850 for ; Thu, 21 Dec 2023 08:44:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6E7B17983; Thu, 21 Dec 2023 08:44:33 +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 8A32018B1B; Thu, 21 Dec 2023 08:44:31 +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 ex01.ufhost.com (Postfix) with ESMTP id F203D24E269; Thu, 21 Dec 2023 16:44:29 +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; Thu, 21 Dec 2023 16:44:29 +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; Thu, 21 Dec 2023 16:44:23 +0800 From: Ji Sheng Teoh To: Xingyu Wu , Samin Guo , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Paul Walmsley , Palmer Dabbelt , Albert Ou CC: Ji Sheng Teoh , Ley Foon Tan , , , , Subject: [PATCH v5 1/2] dt-bindings: watchdog: starfive,jh7100-wdt: Add compatible for JH8100 Date: Thu, 21 Dec 2023 16:43:57 +0800 Message-ID: <20231221084358.3458713-2-jisheng.teoh@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231221084358.3458713-1-jisheng.teoh@starfivetech.com> References: <20231221084358.3458713-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 | 40 ++++++++++++++----- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/watchdog/starfive,jh7100-w= dt.yaml b/Documentation/devicetree/bindings/watchdog/starfive,jh7100-wdt.= yaml index 68f3f6fd08a6..e21f807b0b69 100644 --- a/Documentation/devicetree/bindings/watchdog/starfive,jh7100-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/starfive,jh7100-wdt.yaml @@ -19,14 +19,16 @@ 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 + oneOf: + - enum: + - starfive,jh7100-wdt + - starfive,jh7110-wdt + - items: + - enum: + - starfive,jh8100-wdt + - const: starfive,jh7110-wdt =20 reg: maxItems: 1 @@ -45,9 +47,8 @@ properties: - const: core =20 resets: - items: - - description: APB reset - - description: Core reset + minItems: 1 + maxItems: 2 =20 required: - compatible @@ -56,6 +57,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