Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp796517pxp; Fri, 11 Mar 2022 15:23:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVpwICEng9i9uYpIIsntwNFWtSQp3qv/EAkg4vxQTzZjQyH0FmwRjyEUhYPVZ7vQqxB14H X-Received: by 2002:a17:902:b697:b0:151:4c2e:48be with SMTP id c23-20020a170902b69700b001514c2e48bemr12425054pls.70.1647040980037; Fri, 11 Mar 2022 15:23:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647040980; cv=none; d=google.com; s=arc-20160816; b=jYDNgYj1vuMfdG1jwyTX6GtUvfoA0lLF3Ice0jBdS4UlLCwcvThn0Hc2MdOzyslM4a l5RpNGnYwLXNo5vXW6HLC9p4Ford+ban//JBO4Oq8zQ6uxCMFZ6REAnWka4kevpEWpI9 cGFeWsYQrX1WbvOw9VG5EV/md9/Zgvx3t7cN8wCEBcXO1J3opMkYoCUUKf9Sa2Zy+bVh wrNalkG4MmcXRdzygMbcW7Q1mwyBgnYyS21jS3PQYH9A7vhcPgTU/I/8ZLXUmVhSpoCY QwECT8XtZzTbmAqbqn77hyQ98X0ALFEVqPURDZMmy0cRO/eSa3iPEmTpURkIYg2Hj9QY ezzQ== 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=tkEp0QvSB94NbzjFVWM1JYsBpw2WIxFvuwExLgZ9OL0=; b=Eo/0U+B2c2ZM1yk9akUGoYsEMWpCwsq9634f+sE/zIszwL2gHQxL9CKUVETV81ScdJ jaNN6SBVler/E0gXzexYyf9JkCGnnFuDxNJk//ohirRtZ+rWs4zK230DlLBGvhExG8dq U5WVYb6cTZXOgnNchb19CfhoAheHyRZiTVV9OxD1dA8mM9yOMsXBRyhSqvhbXobV6yfX TT5z5e8hii7mZdSqTsl796L3PH7p8YPUus6X2wN2JHI98fLDvI90WZ3bjsArFs4yQIE8 cN6+5SjKjKZnNFGGk/OV2aD4eHLUoswvehRGsAvU4iAVlQ7ICDi6e80ClhrfpiY0j0bJ AqQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q15-20020a056a00150f00b004f7948d14e2si2364906pfu.253.2022.03.11.15.22.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 15:23:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 71C8A3AC091; Fri, 11 Mar 2022 14:09:24 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346619AbiCKPlO (ORCPT + 99 others); Fri, 11 Mar 2022 10:41:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240607AbiCKPlJ (ORCPT ); Fri, 11 Mar 2022 10:41:09 -0500 Received: from mail-oo1-f54.google.com (mail-oo1-f54.google.com [209.85.161.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65C761C1EE2; Fri, 11 Mar 2022 07:40:06 -0800 (PST) Received: by mail-oo1-f54.google.com with SMTP id n5-20020a4a9545000000b0031d45a442feso10931931ooi.3; Fri, 11 Mar 2022 07:40:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tkEp0QvSB94NbzjFVWM1JYsBpw2WIxFvuwExLgZ9OL0=; b=Foo2A62Z32SHWog2/Uj1JsAbnu8kGciv2zJd7gdAk6EEf+UzPVoasEP6dRLDLAoLd3 4Zllx0JoXQ4By6T46IpxOgm8joXTmbsGDNWvzxeWpt9eo8E8EEG/r6QjuOwjOA8Rny8p lvLv8xjnBiiN0687KJ9x8KAsSMk6Kb0KFhmUDZNWlPhWya1Pv0EkEnm1ZBKUrTbB0m3J s8Pkwnq2PKR0VcsaV0kZ6AIBynB+cgNDjgJC8ZjJtTVr1qWu/vTIktxsNNLw+zZm/BH5 f/OuEUgx3cvEQn+8A/1gOP0hAVpXAXavA6jWF448TEpabgbkje0k0jxf+VGLLUItyVhm 2RwA== X-Gm-Message-State: AOAM532zUBwVCX2Gk7LuB1ub2w8IgrTHMFWp5ji5dU78Hws1K1ypbZSP /+Ktcx8k1OcKm+Nwo/IxMMQWhr0R9g== X-Received: by 2002:a05:6870:a986:b0:da:b3f:3279 with SMTP id ep6-20020a056870a98600b000da0b3f3279mr5640539oab.297.1647013205688; Fri, 11 Mar 2022 07:40:05 -0800 (PST) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id w20-20020a056870339400b000d75f1d9b83sm3524647oae.48.2022.03.11.07.40.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 07:40:04 -0800 (PST) Received: (nullmailer pid 3849774 invoked by uid 1000); Fri, 11 Mar 2022 15:40:03 -0000 Date: Fri, 11 Mar 2022 09:40:03 -0600 From: Rob Herring To: nick.hawkins@hpe.com Cc: verdun@hpe.com, Daniel Lezcano , Thomas Gleixner , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v3 05/10] dt-bindings: timer: Add HPE GXP Timer Binding Message-ID: References: <20220310195229.109477-1-nick.hawkins@hpe.com> <20220310195229.109477-5-nick.hawkins@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220310195229.109477-5-nick.hawkins@hpe.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 10, 2022 at 01:52:24PM -0600, nick.hawkins@hpe.com wrote: > From: Nick Hawkins > > Creating binding for gxp timer in device tree hpe,gxp-timer > Although there are multiple times on the SoC we are only > enabling one at this time. > > Signed-off-by: Nick Hawkins > > ---- > > v2: > *Removed maintainer change from patch > *Verified there was no compilation errors > *Added reference code in separate patch of patchset > --- > .../bindings/timer/hpe,gxp-timer.yaml | 45 +++++++++++++++++++ > 1 file changed, 45 insertions(+) > create mode 100644 Documentation/devicetree/bindings/timer/hpe,gxp-timer.yaml > > diff --git a/Documentation/devicetree/bindings/timer/hpe,gxp-timer.yaml b/Documentation/devicetree/bindings/timer/hpe,gxp-timer.yaml > new file mode 100644 > index 000000000000..1f4e345c5fb8 > --- /dev/null > +++ b/Documentation/devicetree/bindings/timer/hpe,gxp-timer.yaml > @@ -0,0 +1,45 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/timer/hpe,gxp-timer.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: HPE GXP TIMER > + > +maintainers: > + - Nick Hawkins > + - Jean-Marie Verdun > + > +properties: > + compatible: > + const: hpe,gxp-timer > + > + reg: > + items: > + - description: T0CNT register > + - description: T0CS register > + - description: TIMELO register Is the spec public to know what T0CNT, T0CS, and TIMELO are? > + > + interrupts: > + maxItems: 1 > + > + clock-frequency: > + description: The frequency of the clock that drives the counter, in Hz. > + > +required: > + - compatible > + - reg > + - interrupts > + - clock-frequency > + > +additionalProperties: false > + > +examples: > + - | > + timer@10003000 { > + compatible = "hpe,gxp-timer"; > + reg = <0xc0000080 0x1>, <0xc0000094 0x01>, <0xc0000088 0x08>; Based on the driver these are 4 bytes, 1 byte, 4 bytes in size. Are there other registers in 0x80-0x95 range or do these offsets change in other chips? If not, just 1 entry covering the whole thing would be better. > + interrupts = <0>; > + interrupt-parent = <&vic0>; > + clock-frequency = <400000000>; > + }; > -- > 2.17.1 > >