Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp336789ybh; Thu, 12 Mar 2020 02:59:33 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtEh2PIZdL/9wr7HlF437Q4c4UJycYvzcPa+9BLkTR13sqMORnlNGZYkuvQ4sYfWnNZBuOt X-Received: by 2002:aca:58c1:: with SMTP id m184mr1868904oib.154.1584007173254; Thu, 12 Mar 2020 02:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584007173; cv=none; d=google.com; s=arc-20160816; b=Qjdo4Hc3qxYqy7mFZ9nW211SdnzkHJJ2vaGQ2WVACp//5rmtL5e+dwp+YtwoDbTUCl yXO5CtvBgk/caTo2W5MJbqNrMCyaeoUxXn4UVpjkvwJ7wS+HHh5/9GaugLIY35G7ppSe TJn4Du7rq+Wl6tkKDd5X4oICZwd/0+1xFE15Nj0qvUM2ZS7fAphvA53GxLD6UifSNP9n lgkgY/1SZeLWr3oYD6eGlOcnEsOYPaylb3ZurxRJwT91u4UTyh7nKLP80xogCyykGrFO CFpUUToU/GNFLdQGUhxrJ6DyyxhqPbafeb3hVQyGxqWcnlEG+VBojpE9LiyB+0Xu6hbE R0gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=7XS2rSf9do7vLAHsmt3lKnrTGG4y/3+r+6Om922Y3Ys=; b=0y96jptXh9FnYMRVSPX/lKSSX32z/FsyykzGmbRzxBGWaSuZjz4rjUoYPKENCRCeIK qe+pDVbPF+qfcVzQoqml0pW53yy+zvyzt6MMur5rwWsQ/1di8wJ4v+H+IggAHwabeopO HRjft8ySNb5m/mKOk1wwQY+QH8QLOkzr34tNpHd5oYv9QB34xzPOH9OTzpSQGY3HUHPu jnqSYfw/zEN5OpOYNDlED3vMRBVQQ+12q57KixD1vAC+UDCGRFJ1OiGTrKszgcQ4niHe ywiltQ9/9xYSoHiR1o4Sx1a+Xg5j2p0RUqKk6Xklf+6dYwotMevt0O2fRKVrOwFRBVMJ s89Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AyulOqRn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si2499852otg.266.2020.03.12.02.59.20; Thu, 12 Mar 2020 02:59:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AyulOqRn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726875AbgCLJ64 (ORCPT + 99 others); Thu, 12 Mar 2020 05:58:56 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:37998 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726817AbgCLJ6z (ORCPT ); Thu, 12 Mar 2020 05:58:55 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 02C9wT4i003925; Thu, 12 Mar 2020 04:58:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1584007109; bh=7XS2rSf9do7vLAHsmt3lKnrTGG4y/3+r+6Om922Y3Ys=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=AyulOqRngq8OXqFkwBn72rJjV6K5rT5qbX/iVnHNLIz5yACZwBsOR2Lg3TwtVIypd C8gslIozumgOF1UnkY2PbNjv/HE0PlH6Ka7tpJfDt7gARUk8XqX+J7wU1mM78fbN8n MOyhfhBltWprcY+eCgr6vHS5ECp87y1Vw+0ZZCYQ= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 02C9wTZZ104222 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 12 Mar 2020 04:58:29 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 12 Mar 2020 04:58:28 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Thu, 12 Mar 2020 04:58:28 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 02C9wOR6089783; Thu, 12 Mar 2020 04:58:26 -0500 From: Tero Kristo To: , , CC: , Rob Herring , Subject: [PATCHv4 1/4] dt-bindings: watchdog: Add support for TI K3 RTI watchdog Date: Thu, 12 Mar 2020 11:58:05 +0200 Message-ID: <20200312095808.19907-2-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200312095808.19907-1-t-kristo@ti.com> References: <20200312095808.19907-1-t-kristo@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org TI K3 SoCs contain an RTI (Real Time Interrupt) module which can be used to implement a windowed watchdog functionality. Windowed watchdog will generate an error if it is petted outside the time window, either too early or too late. Cc: Rob Herring Cc: devicetree@vger.kernel.org Signed-off-by: Tero Kristo --- v4: * changed license to dual * added documentation for missing properties * added ref to watchdog.yaml * renamed main_rti0 to watchdog0 in example .../bindings/watchdog/ti,rti-wdt.yaml | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml diff --git a/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml b/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml new file mode 100644 index 000000000000..e83026fef2e9 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/ti,rti-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments K3 SoC Watchdog Timer + +maintainers: + - Tero Kristo + +description: + The TI K3 SoC watchdog timer is implemented via the RTI (Real Time + Interrupt) IP module. This timer adds a support for windowed watchdog + mode, which will signal an error if it is pinged outside the watchdog + time window, meaning either too early or too late. The error signal + generated can be routed to either interrupt a safety controller or + to directly reset the SoC. + +allOf: + - $ref: "watchdog.yaml#" + +properties: + compatible: + enum: + - ti,j7-rti-wdt + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + power-domains: + maxItems: 1 + + assigned-clocks: + maxItems: 1 + + assigned-clocks-parents: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - power-domains + +examples: + - | + /* + * RTI WDT in main domain on J721e SoC. Assigned clocks are used to + * select the source clock for the watchdog, forcing it to tick with + * a 32kHz clock in this case. + */ + #include + + watchdog0: rti@2200000 { + compatible = "ti,rti-wdt"; + reg = <0x0 0x2200000 0x0 0x100>; + clocks = <&k3_clks 252 1>; + power-domains = <&k3_pds 252 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 252 1>; + assigned-clock-parents = <&k3_clks 252 5>; + }; -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki