Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4127225ybg; Sun, 7 Jun 2020 22:54:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziDDGXgUBElfWXPYuIL6oXK0ocl4n+HunwoUaGmmbmcjo0oZ7J4uSzRyaOm31u9S1PiQP5 X-Received: by 2002:a50:8707:: with SMTP id i7mr19995526edb.180.1591595667229; Sun, 07 Jun 2020 22:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591595667; cv=none; d=google.com; s=arc-20160816; b=qWpGNi3Y0/93+/98kBK9g4xX/9o9igza0nRSS67xlWz/YK/d+fBNtfRG1Gy7Y2SuOw FQlUyTIrKTSalwlPTN1dzKZvkhLvj4jP/ZQFvIbCtaOzpcJYcFwWPy0uvYhuSY4Fiv3S oIJsbjahgIKRoDMVH+LCTm078B4qj5zB/ol2JEnnvhD6HETtL69a0xh132CTXkfIyQY8 DHUQmwDp8S3eyDTKAXr2dCERtEpzFlzLbAs6YAxCt1TBWDf7cMw2gGUWt4xP2tJ95svq wLRkIRWFeaMCkOP03RWxYXgWljR9vZXcDepIN8eBlkm4SxH1dA3YmUaCE+2rNqwjLmEX GbUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=b8lcI2I3N9lluYteYvp1X+45ghfTFXLCiObhFwZMKsA=; b=ovJTTcvt4F2cM8CRkS2X19978hQhyQ8BTjpIw/nellCWZfHxGkhlUPsL7LdKP3bK/k Q0t/qbg8l1fk9qXklBiV8rFkXgahItEKjLeIiAoK7GB+8D8bKvLe/3SjhfEb0pNk8JgI fkoIV6jUP85u6zF66g5QwuzLT8T5vph1iRnF9nHSxUVhnUc3w0huvIdu3wCykusac/9H mU51ozpKyG4r2h1luGe5VGQyV0g8Un00HtxJtEA86GBM05TSfvsFXnkeY4/fWUBf22bt H+Zr2d2RS0WTwpjdk8/WmB3NR0oGzKN0z72eCFddogrkTyO009s2VVKL8SjTbYWhEBRo OCNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l4si8550892edi.316.2020.06.07.22.54.05; Sun, 07 Jun 2020 22:54:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728773AbgFHFvj (ORCPT + 99 others); Mon, 8 Jun 2020 01:51:39 -0400 Received: from mga06.intel.com ([134.134.136.31]:55798 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727905AbgFHFvi (ORCPT ); Mon, 8 Jun 2020 01:51:38 -0400 IronPort-SDR: WUpWyfku+0hQkCrROXrV5HkZMx9UvrpTJLhlwGitt0IAQy8Zir+muy+YUmssFp40Z7npxfEr/k bmOyBWQdL8Ew== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2020 22:51:36 -0700 IronPort-SDR: T08PTBvy0gmbb2ptjSJgeqp5fdIRUJ+0bHd7T/Qp6vvGbgWtGeNFvQOgWIXg3pRXpQz2R665JQ hsJwhiKiwDfw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,487,1583222400"; d="scan'208";a="258594814" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by fmsmga007.fm.intel.com with ESMTP; 07 Jun 2020 22:51:34 -0700 From: Dilip Kota To: wim@linux-watchdog.org, linux@roeck-us.net, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, robbh@kernel.org Cc: linux-kernel@vger.kernel.org, andriy.shevchenko@intel.com, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, yixin.zhu@intel.com, Dilip Kota Subject: [PATCH 1/2] dt-bindings: watchdog: intel: Add YAML Schemas for Watchdog timer Date: Mon, 8 Jun 2020 13:49:39 +0800 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add YAML schemas for the watchdog timer on Intel Lightning Mountain SoC. Signed-off-by: Dilip Kota --- .../bindings/watchdog/intel,lgm-gptc-wdt.yaml | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/intel,lgm-gptc-wdt.yaml diff --git a/Documentation/devicetree/bindings/watchdog/intel,lgm-gptc-wdt.yaml b/Documentation/devicetree/bindings/watchdog/intel,lgm-gptc-wdt.yaml new file mode 100644 index 0000000000000..83dc39a5090c1 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/intel,lgm-gptc-wdt.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/intel,lgm-gptc-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Intel Lightning Mountain Watchdog timer. + +maintainers: + - Dilip Kota + +description: | + Intel Lightning Mountain SoC has General Purpose Timer Counter(GPTC) which can + be configured as Clocksource, real time clock and Watchdog timer. + Each General Purpose Timer Counter has three timers. And total four General + Purpose Timer Counters are present on Lightning Mountain SoC which sums up + to 12 timers. + Lightning Mountain has four CPUs and each CPU is configured with one GPTC + timer as watchdog timer. Total four timers are configured as watchdog timers + on Lightning Mountain SoC. + +allOf: + - $ref: "watchdog.yaml#" + +properties: + compatible: + enum: + - intel,lgm-gptc-wdt + + reg: + maxItems: 1 + + clocks: + items: + - description: Frequency clock + - description: Core clock + + clock-names: + items: + - const: freq + - const: gptc + + intel,wdt-rst-hndl: + $ref: /schemas/types.yaml#/definitions/phandle + description: Watchdog timer registers handle + + intel,timer-cfg: + description: Watchdog Timer id and CPU id + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32-array + - minItems: 2 + maxItems: 4 + items: + minimum: 0 + maximum: 3 + +required: + - compatible + - reg + - clocks + - clock-names + - intel,wdt-rst-hndl + - intel,timer-cfg + +examples: + - | + watchdog@e2500000 { + compatible = "intel,lgm-gptc-wdt"; + reg = <0xe2500000 0x10000>; + intel,wdt-rst-hndl = <&sysconf>; + clocks = <&cgu0 31>, <&cgu0 136>; + clock-names = "freq", "gptc"; + timeout-sec = <30>; + intel,timer-cfg = <1 0 2 1>; + }; -- 2.11.0