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 668452C21DF for ; Thu, 9 Oct 2025 10:45:18 +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=1760006723; cv=none; b=ob2Tu1XG2HGj20+pWdaCNt8DnsSxxYA/RFM0SzdoCEy/HZAUtFHy8saVPl0LRgn5cFl9bKuyVsN4fflk4ZqjoWIiaAPKetD8/B5/hdsDhtLZmNGUwe7GFDkYD3DrCAag1sybLsmggQyd76eiyhMS3TW9mBbB/ubGTjlk0LB07jI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760006723; c=relaxed/simple; bh=Zf6blKH4XzMw/69rTr31IF6yuofUPcC0F1BhJ/DgoDc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LytbtcuGuSBRAUMNAwdKVbwrTz0HrCiociXgYqLVehtzaLl5+Oj1BORe0zidJGJuwRlGvU8/Lz5jMHpUeGqi67PbRAEKOM6IWa8HVo7hJE4wh+Mmbwq64MyMhN77OQG4sDeqfV6XRsY+MA00eCxYUOlxDtxm1rmSdLQusvNKs8c= 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=Bm/atVCk; 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="Bm/atVCk" 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=CaavXzA3b3ujY7ayzZi8P7ZO6L3qABX3YgDwmIee+JQ=; b=Bm/atV CkkyiVfSxGL2maOYr3R67OGJKSfeHWx1L2m5/O5+wLLJBZqXe29TkaguEwHSsAuJ s0c/NgsvFyKMcrZHswjXEm+Nu5ThdQhYpUD3wfz20UAuqizqq6NFiKrE5zpCspdg sIS54nw2xfPgg0MVfcSXFJ4k/nM4BLa6nfxZu8KT3DeBWc2n3u3eMxgOcyEet7XB MiWU4lSBmdnnDomEPl0jFCZ6G44c5oCJjfRWX+jlJ0FebeSej5SZmiUqYcDF4mnZ fOJampplc7i11YHKOpgWFc64P5Afe+cE8FPimeV9B+M9+AszMAT8FXQBu29M6qRG G2cnn2jbrUtdW44A== Received: (qmail 1043303 invoked from network); 9 Oct 2025 12:45:16 +0200 Received: by mail.zeus03.de with UTF8SMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 9 Oct 2025 12:45:16 +0200 X-UD-Smtp-Session: l3s3148p1@3F8kf7dAcK0gAwDPXwQHAL/S9V79e5yL From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , Guenter Roeck , Lad Prabhakar , "Rob Herring (Arm)" , Geert Uytterhoeven , Wim Van Sebroeck , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v4 1/5] dt-bindings: watchdog: factor out RZ/A watchdog Date: Thu, 9 Oct 2025 12:44:59 +0200 Message-ID: <20251009104500.69787-8-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20251009104500.69787-7-wsa+renesas@sang-engineering.com> References: <20251009104500.69787-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/A watchdog to make handling easier. Reviewed-by: Guenter Roeck Reviewed-by: Lad Prabhakar Reviewed-by: Rob Herring (Arm) Reviewed-by: Geert Uytterhoeven Signed-off-by: Wolfram Sang --- Changes since v3: * added tags from Geert and Rob (Thanks!) .../bindings/watchdog/renesas,rza-wdt.yaml | 51 +++++++++++++++++++ .../bindings/watchdog/renesas,wdt.yaml | 7 --- 2 files changed, 51 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/watchdog/renesas,rza-wdt.yaml diff --git a/Documentation/devicetree/bindings/watchdog/renesas,rza-wdt.yaml b/Documentation/devicetree/bindings/watchdog/renesas,rza-wdt.yaml new file mode 100644 index 000000000000..ba922c3f7b10 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/renesas,rza-wdt.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/renesas,rza-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/A Watchdog Timer (WDT) Controller + +maintainers: + - Wolfram Sang + +properties: + compatible: + items: + - enum: + - renesas,r7s72100-wdt # RZ/A1 + - renesas,r7s9210-wdt # RZ/A2 + - const: renesas,rza-wdt # RZ/A + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + timeout-sec: true + +required: + - compatible + - reg + - clocks + +allOf: + - $ref: watchdog.yaml# + +additionalProperties: false + +examples: + - | + #include + #include + + watchdog@fcfe0000 { + compatible = "renesas,r7s72100-wdt", "renesas,rza-wdt"; + reg = <0xfcfe0000 0x6>; + interrupts = ; + clocks = <&p0_clk>; + }; diff --git a/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml b/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml index b6e60162c263..8a25e0c6271f 100644 --- a/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml @@ -13,12 +13,6 @@ maintainers: properties: compatible: oneOf: - - items: - - enum: - - renesas,r7s72100-wdt # RZ/A1 - - renesas,r7s9210-wdt # RZ/A2 - - const: renesas,rza-wdt # RZ/A - - items: - enum: - renesas,r9a06g032-wdt # RZ/N1D @@ -140,7 +134,6 @@ allOf: contains: enum: - renesas,r9a09g077-wdt - - renesas,rza-wdt - renesas,rzn1-wdt then: required: -- 2.47.2