From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FC4319E7F7 for ; Tue, 7 Oct 2025 15:20:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850436; cv=none; b=FKr3iK62cnaRf72ngwQkaO+dxWd3fBODZZXljG2TSWBggvuN29zy0l30dGv1soGR7AX6o5KycxsEuPvuuqEiv3Cj20eMfyRqsq0KvgiPwbDiselmGz29Sr46L7k57j9i0Eh8ikKsVnvlpNOGbee5E5M31AecAyDdWlqrsFvQ5d8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850436; c=relaxed/simple; bh=LV6IZ1OP840ITPrupOk+Wki9i5gWp0VJ5yqfl3JC/7Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jHYZ64dZNN/diijqFkz7vOkGilh899cYbq1Gs5gK7K/uAQFj1zNzLoCZRWN6Hzr1ZJdh0aFwYFHEoztYV4UFvwikZadMdj+uCFWpn2NHNHY6sKsOuPaoN2MpS0kC7kpmWjw34uBfHrVDKvgAxNaknDbvs4jITfun/Wl3F44fGrQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=OtYxFXSy; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="OtYxFXSy" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=9Z1z6oOVLC0b9Cu+eBarnjYpBn5/LEhm2wDLTybPm8M=; b=OtYxFX SySewh0woSUZxbr35phOzU4emSjF6Qr08yz4KKXZm5ntWiPirb0nHsfOC5uwiALn n1tA3HJ5kQFyZJCsbmpWuf1hYsOVQglCTiVs9mVZ5FSGIwhJeYIwQSobwqDpSByJ gr/kkkWtlj3Hto/GkOdQTf+DIY39o8lsYWhwPwZoz46XCLkTfzwsX+m2NdpZ3c9w 754ggk94YRHsFXAC9/U6QknUFr9cTim48WL+l3pGp0sfizsoWwSfdXiwk53zpX/n k+cT5cREGE1Ki/ao0YQv36cWC1PcingD7/1nJ0sPi9uW/xgszajzRIoM8xOGcq7k kuQYObAfRSnmzw3A== Received: (qmail 313212 invoked from network); 7 Oct 2025 17:20:27 +0200 Received: by mail.zeus03.de with UTF8SMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 7 Oct 2025 17:20:27 +0200 X-UD-Smtp-Session: l3s3148p1@Wu2YG5NAaMoujntU From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , Guenter Roeck , Lad Prabhakar , Wim Van Sebroeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 2/5] dt-bindings: watchdog: factor out RZ/N1 watchdog Date: Tue, 7 Oct 2025 17:20:07 +0200 Message-ID: <20251007152007.14508-9-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20251007152007.14508-7-wsa+renesas@sang-engineering.com> References: <20251007152007.14508-7-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Renesas created different watchdog IPs but they are all handled in the same binding documentation. This leads to a lot of conditional handling which makes it unnecessarily hard to add new items. Factor out the RZ/N1 watchdog to make handling easier. Reviewed-by: Guenter Roeck Reviewed-by: Lad Prabhakar Signed-off-by: Wolfram Sang --- Changes since v2: * none .../bindings/watchdog/renesas,rzn1-wdt.yaml | 48 +++++++++++++++++++ .../bindings/watchdog/renesas,wdt.yaml | 6 --- 2 files changed, 48 insertions(+), 6 deletions(-) create mode 100644 Documentation/devicetree/bindings/watchdog/renesas,rzn1-wdt.yaml diff --git a/Documentation/devicetree/bindings/watchdog/renesas,rzn1-wdt.yaml b/Documentation/devicetree/bindings/watchdog/renesas,rzn1-wdt.yaml new file mode 100644 index 000000000000..0efc9a92fa51 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/renesas,rzn1-wdt.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/renesas,rzn1-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/N1 Watchdog Timer (WDT) Controller + +maintainers: + - Wolfram Sang + +properties: + compatible: + items: + - const: renesas,r9a06g032-wdt # RZ/N1D + - const: renesas,rzn1-wdt # RZ/N1 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + +allOf: + - $ref: watchdog.yaml# + +additionalProperties: false + +examples: + - | + #include + #include + + watchdog@40008000 { + compatible = "renesas,r9a06g032-wdt", "renesas,rzn1-wdt"; + reg = <0x40008000 0x1000>; + interrupts = ; + clocks = <&sysctrl R9A06G032_CLK_WATCHDOG>; + }; diff --git a/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml b/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml index 8a25e0c6271f..12ba07781763 100644 --- a/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml @@ -13,11 +13,6 @@ maintainers: properties: compatible: oneOf: - - items: - - enum: - - renesas,r9a06g032-wdt # RZ/N1D - - const: renesas,rzn1-wdt # RZ/N1 - - items: - enum: - renesas,r9a07g043-wdt # RZ/G2UL and RZ/Five @@ -134,7 +129,6 @@ allOf: contains: enum: - renesas,r9a09g077-wdt - - renesas,rzn1-wdt then: required: - power-domains -- 2.47.2