Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp1216177lko; Tue, 13 Jul 2021 19:49:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNczqUBf/4YZa6gqDuJtkKOgQjh2WEPIRuJJgtczujpMWxt+hGf5fIXxbw7XS0JqQTEZcx X-Received: by 2002:a17:907:d09:: with SMTP id gn9mr9516039ejc.447.1626230985065; Tue, 13 Jul 2021 19:49:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626230985; cv=none; d=google.com; s=arc-20160816; b=KlZvzdNfCDU7C5XqATENpezYi4KmZSOxSIOTjJ3jysubO6++RoBjNAv5Hub0Sb5BVB EBEqitD6Y7a/92QdzoQU9MKK8XutdVXZwoo1I8lfu8wNE7/vc7LqlUuJHloRsiLpz+/L fscKZRJwg5mZMvPPy8YGr7Zp8k7Jk3rngikngZrxPkriGLX6Kspud9ra4cVPrVyLHby2 bRU7pwqvszSt9YYo6BxYasqxSNJ8nFFv9Ei0tX93uXEv3Pis0+ZM6u03Q1pbFyZQvFrM uNUMD7Up9JDOtO3VqlmWXsGvFLEckoK2A/mItDkXbZxs6jbJ82CqMFOSjbf3yk+UVT2i dJiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=0Vdibdlzv5rYDH1Iu+VB2cu80QABZ2EylGkmlCLDsMw=; b=ucRu18uNAsCFTSvqEsYA03qV4ldEAoT8c6I9x5QjCEU3dyRxLoBAPW5Sq0EX5XT+Hh 3kRbrvVqINUBCP53e18k8CXzLYLwLmnhaU7MSrjbGV4ENi8zTWPXntFxfw8CdojttsAP /X2KKY43Q2p1kf7dkkOxQefCNXU4PJxuiEaYgYeRi3KYkgyuxVjH14cfw2lgAAHHmmmt sSnjEjKgdJxd9l6wNlIk8VTxaQ+VKusIEGE14qHUQwVVWmAUj81En2Q4Z1O2CzbW+ht4 e4asHqzDyuXWLH5E0SruHjg3zR4dPH2e3Svx811Ra8SoOaqwqRYkFg9to1xdxIq3BHUe fqFw== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p13si866003eja.744.2021.07.13.19.49.23; Tue, 13 Jul 2021 19:49:45 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237528AbhGNCuw (ORCPT + 99 others); Tue, 13 Jul 2021 22:50:52 -0400 Received: from mail-il1-f178.google.com ([209.85.166.178]:34756 "EHLO mail-il1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237501AbhGNCuv (ORCPT ); Tue, 13 Jul 2021 22:50:51 -0400 Received: by mail-il1-f178.google.com with SMTP id e13so123578ilc.1; Tue, 13 Jul 2021 19:48:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=0Vdibdlzv5rYDH1Iu+VB2cu80QABZ2EylGkmlCLDsMw=; b=kptj+nLmCIQe6XE+I47WD/3i/HhDF9/dIgIYf2ZXbijighVaD7lsue3lpblwkyc7IA jiQmYlo0XzGDHHuuUWr/82bIVVj9A6IEZS9GB10hiLqAAn7kakdyHAf5YSyGrqGAfNV0 uMJhs6nFxDtZYdyQKShxyLdaI6XV30zHPsHX/uSdIKxpspeXdHbdmnTlCmeIOUEZN5Yb Xy0bjvi4zcdjFe3mVvVJwGLm+F0Zec31+Idi79G1alHmYzwsCXg9PbBT2saAJAym/uZR D5vwLFoCyaVTJjfEEDaRnxNZ7eg50yW9/+/N5csbgriMA+hq9lN8huEPO2v35Md3wRjT Ijtw== X-Gm-Message-State: AOAM531dNjKUWy65vD8O61vz/IFHl6m44kgsM+B+W+CKSXdkH1kryENh TYtWzs2EhnLjMm4kpX2iBg== X-Received: by 2002:a05:6e02:f05:: with SMTP id x5mr5034884ilj.268.1626230879666; Tue, 13 Jul 2021 19:47:59 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id t24sm426343ioh.24.2021.07.13.19.47.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 19:47:59 -0700 (PDT) Received: (nullmailer pid 1362752 invoked by uid 1000); Wed, 14 Jul 2021 02:47:56 -0000 Date: Tue, 13 Jul 2021 20:47:56 -0600 From: Rob Herring To: shruthi.sanil@intel.com Cc: daniel.lezcano@linaro.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, 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 Subject: Re: [PATCH v4 1/2] dt-bindings: timer: Add bindings for Intel Keem Bay SoC Timer Message-ID: <20210714024756.GA1355219@robh.at.kernel.org> References: <20210628061410.8009-1-shruthi.sanil@intel.com> <20210628061410.8009-2-shruthi.sanil@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210628061410.8009-2-shruthi.sanil@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 28, 2021 at 11:44:09AM +0530, shruthi.sanil@intel.com wrote: > 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. clockevent and clocksource are Linuxisms. Don't use them in bindings. > + 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. I don't think all the child nodes are necessary. Are the counters and timers configurable (say on another SoC)? If not, then a single node here would suffice. > + > +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 { The unit address here is wrong. Should be 'e8'. > + 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 > >