Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3231224pxv; Sun, 27 Jun 2021 23:15:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykpdk/w7YNk9hOjkMLWnuP+7QsLXBOh3fOx/ZsLEpjTXD1joQJ9RIMhE9EOJCDm4btteCu X-Received: by 2002:a6b:b215:: with SMTP id b21mr19331156iof.165.1624860933156; Sun, 27 Jun 2021 23:15:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624860933; cv=none; d=google.com; s=arc-20160816; b=BkakQ7QHoUTS4QMvXHFy5OjmE/ElR9MErlytRMhyjJyDEbwXxl5+ch/YKXr9sJV2s3 iIXYHq0VGpuqdlvGlLKqLShGa+JoI6PIDhihdTAK+IFEmuXToOo+KaI6T8AHCNehHGaz sg8a7xIM7P3wfTKmiunnPW9OhWAPM7VyHvWLAHMmRckjEOtzc2JQ5BVWQmQ/E/86hMyz KalC4dpSj5QXpUE2oJSNcbssmuB9qPsWgHjT238V6kH//Y6HBDbjUlwugysJrphpM10n S2H+GCb9IJHwh29RMrQbpYJFXBkcJsvdvM77Ei7PPqUbYsf5srumaBcVkbMM9n3ocOKl 4wAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=k6LPYXMRJK4W+NPMKhwbXEHodyvxrVnZqd4QKEwL7/U=; b=c5Fy3RxHk+wqFkeAPWFhG0Yf/Nm4+7vF47YeveoyLiVbZkK1GoNB5SNkIg95pCgguX rWERIv5NTUtnAoqvVyu9UMdUzLcRbfgqu2wPUPsbEKQrpeHJJxUng8Zar+MVeJMmCx7I fFL2RYJ2kY/XVPVqjXQj3r825TSzLF/qlJxN8i/cscH7M3jhZS5jzGmVpRf6Uy+uLxEu jvPN7auRe37swTT2fONZ/SJ8gPwQnCn2CW7hMG6vbGaH1h4rmE1UrEvbUamCCi2p8rvA nqi68olHdxy16Ca8e/+Q7kgcVyWAdBXsrUvVATbV7p6Q3VI3Wr4K+t4hKmreNIWGjA9b gWhQ== 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 y5si14904392ioq.102.2021.06.27.23.15.21; Sun, 27 Jun 2021 23:15:33 -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 S232281AbhF1GQn (ORCPT + 99 others); Mon, 28 Jun 2021 02:16:43 -0400 Received: from mga07.intel.com ([134.134.136.100]:60982 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbhF1GQn (ORCPT ); Mon, 28 Jun 2021 02:16:43 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10028"; a="271751104" X-IronPort-AV: E=Sophos;i="5.83,305,1616482800"; d="scan'208";a="271751104" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2021 23:14:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,305,1616482800"; d="scan'208";a="407607360" Received: from bspteam04.iind.intel.com ([10.106.46.142]) by orsmga006.jf.intel.com with ESMTP; 27 Jun 2021 23:14:14 -0700 From: shruthi.sanil@intel.com To: daniel.lezcano@linaro.org, tglx@linutronix.de, robh+dt@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: andriy.shevchenko@linux.intel.com, kris.pan@linux.intel.com, mgross@linux.intel.com, srikanth.thokala@intel.com, lakshmi.bai.raja.subramanian@intel.com, mallikarjunappa.sangannavar@intel.com, shruthi.sanil@intel.com Subject: [PATCH v4 1/2] dt-bindings: timer: Add bindings for Intel Keem Bay SoC Timer Date: Mon, 28 Jun 2021 11:44:09 +0530 Message-Id: <20210628061410.8009-2-shruthi.sanil@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210628061410.8009-1-shruthi.sanil@intel.com> References: <20210628061410.8009-1-shruthi.sanil@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shruthi Sanil Add Device Tree bindings for the Timer IP, which can be used as clocksource and clockevent device in the Intel Keem Bay SoC. Reviewed-by: Andy Shevchenko Signed-off-by: Shruthi Sanil --- .../bindings/timer/intel,keembay-timer.yaml | 170 ++++++++++++++++++ 1 file changed, 170 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/intel,keembay-timer.yaml diff --git a/Documentation/devicetree/bindings/timer/intel,keembay-timer.yaml b/Documentation/devicetree/bindings/timer/intel,keembay-timer.yaml new file mode 100644 index 000000000000..24c149a4d220 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/intel,keembay-timer.yaml @@ -0,0 +1,170 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/intel,keembay-timer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Intel Keem Bay SoC Timers + +maintainers: + - Shruthi Sanil + +description: | + The Intel Keem Bay timer driver supports clocksource and clockevent + features for the timer IP used in Intel Keembay SoC. + The timer block supports 1 free running counter and 8 timers. + The free running counter can be used as a clocksouce and + the timers can be used as clockevent. Each timer is capable of + generating inividual interrupt. + Both the features are enabled through the timer general config register. + + The parent node represents the common general configuration details and + the child nodes represents the counter and timers. + +properties: + reg: + description: General configuration register address and length. + maxItems: 1 + + ranges: true + + "#address-cells": + const: 2 + + "#size-cells": + const: 2 + +required: + - reg + - ranges + - "#address-cells" + - "#size-cells" + +patternProperties: + "^counter@[0-9a-f]+$": + type: object + description: Properties for Intel Keem Bay counter + + properties: + compatible: + enum: + - intel,keembay-counter + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + required: + - compatible + - reg + - clocks + + "^timer@[0-9a-f]+$": + type: object + description: Properties for Intel Keem Bay timer + + properties: + compatible: + enum: + - intel,keembay-timer + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + required: + - compatible + - reg + - interrupts + - clocks + +additionalProperties: false + +examples: + - | + #include + #include + #define KEEM_BAY_A53_TIM + + soc { + #address-cells = <0x2>; + #size-cells = <0x2>; + + gpt@20331000 { + reg = <0x0 0x20331000 0x0 0xc>; + ranges = <0x0 0x0 0x20330000 0xF0>; + #address-cells = <0x1>; + #size-cells = <0x1>; + + counter@203300e8 { + compatible = "intel,keembay-counter"; + reg = <0xe8 0x8>; + clocks = <&scmi_clk KEEM_BAY_A53_TIM>; + }; + + timer@20330010 { + compatible = "intel,keembay-timer"; + reg = <0x10 0xc>; + interrupts = ; + clocks = <&scmi_clk KEEM_BAY_A53_TIM>; + }; + + timer@20330020 { + compatible = "intel,keembay-timer"; + reg = <0x20 0xc>; + interrupts = ; + clocks = <&scmi_clk KEEM_BAY_A53_TIM>; + }; + + timer@20330030 { + compatible = "intel,keembay-timer"; + reg = <0x30 0xc>; + interrupts = ; + clocks = <&scmi_clk KEEM_BAY_A53_TIM>; + }; + + timer@20330040 { + compatible = "intel,keembay-timer"; + reg = <0x40 0xc>; + interrupts = ; + clocks = <&scmi_clk KEEM_BAY_A53_TIM>; + }; + + timer@20330050 { + compatible = "intel,keembay-timer"; + reg = <0x50 0xc>; + interrupts = ; + clocks = <&scmi_clk KEEM_BAY_A53_TIM>; + }; + + timer@20330060 { + compatible = "intel,keembay-timer"; + reg = <0x60 0xc>; + interrupts = ; + clocks = <&scmi_clk KEEM_BAY_A53_TIM>; + }; + + timer@20330070 { + compatible = "intel,keembay-timer"; + reg = <0x70 0xc>; + interrupts = ; + clocks = <&scmi_clk KEEM_BAY_A53_TIM>; + }; + + timer@20330080 { + compatible = "intel,keembay-timer"; + reg = <0x80 0xc>; + interrupts = ; + clocks = <&scmi_clk KEEM_BAY_A53_TIM>; + }; + }; + }; + +... -- 2.17.1