Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp749717pxp; Fri, 11 Mar 2022 14:07:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvV26AbXCeNVJwMG9N88sCUowMfVeY4/hCtz9ePX4yY4WxoW0MGhXoZmEGJvvknbxz8YxS X-Received: by 2002:a63:4a4c:0:b0:375:6898:f6b6 with SMTP id j12-20020a634a4c000000b003756898f6b6mr10345222pgl.83.1647036479625; Fri, 11 Mar 2022 14:07:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647036479; cv=none; d=google.com; s=arc-20160816; b=o4+wDPCa65MaOf0FJJzBAW9jc9jcd9W/zjqyuKLoOVRHDRsgAKj+YH5MnIQGDfHNjN kDaISvl4HJ8wddZrIxSn/AUAqC3XnwTtm0lpgkYrna84L6mhmrGsKDC1egC0Pc9XxgB3 JKNdjKzVnZTBpKq7sFeQlx9QMMoVv4ziPiBo09Sel65aLRovqVqG2xplpWx3SlaplV6x sFfgxE/LK9zqzHIPQJEErdspdhNOSsSZgafEPCnvDdPhG82c4cZigmudavCvRxy/1sdF mIcRPAk6dWpgom6vYMcQ2aZFro+ijWJr47+DM5/gPxIuKWXuKydlVRq71CVD3Z2ogYRA LDEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=RfqNtSnj7KKKappRytqaJ2yaBytssi4EFd5mt0OX61o=; b=rWpe8TwZrRrt+n0vYQ9D8ivxwk1B85oL+gFKBut+DPujDh1mvO0UTdX1so19f9PPI8 vc/kyw628H1P+wbHl1ef4sYczURq2P5Pi33Hbr1lHH7wbkHGpjJbPF2sxUTrt9JI45VY NMz2X6Wga3bx4Ts5GQw5F3AKT+Z0DWgvdo8yW7yDeqyJQJrX225C2Xd/6On9ZWDoKYpe Zo//wAoa8l2IvwIGx/LTKODawE8tcc6eNvb1c+hTfvbeB2UkPFRaOZ/bO7W3kp2ImCb3 fJcnvrbWHmAb1HvUAeGsdjk5R3tkSjsy/PoW9L75ZYVV0Xy+Eoovtjn8q7t2FNFmGhMY XPKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=iTKMULHw; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s2-20020a656902000000b003808c37fab3si10257985pgq.658.2022.03.11.14.07.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 14:07:59 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=iTKMULHw; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 943F8282D35; Fri, 11 Mar 2022 13:21:16 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350608AbiCKRPA (ORCPT + 99 others); Fri, 11 Mar 2022 12:15:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242080AbiCKRO6 (ORCPT ); Fri, 11 Mar 2022 12:14:58 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 431A21959D4 for ; Fri, 11 Mar 2022 09:13:55 -0800 (PST) Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 14F9E3F323 for ; Fri, 11 Mar 2022 17:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1647018833; bh=RfqNtSnj7KKKappRytqaJ2yaBytssi4EFd5mt0OX61o=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iTKMULHw0VSM/mQTOwU6K9A/dmM99yp0YiRjgxKj4kksoYJuKQElBd1PDnjGTd/9V biME75E4YyMee/jn2jX/XwAl7HNKsK5o5Kg+Xfy4Y3cIYW2MF1tpeqRWc6UOSA/CYn eyh8Ked5z0NAcVRakGtznLrNj/jMkqMA9p2xiN35w8tV3Mvs4lqrOcKMI7Ed0R+8bi 8bVpgJjaJAI+pPdT8IZPRIMLo4S7HWxaxOrw+/6j6EFfNeP/zFaE9pW0U+AfcRuTuN wnDqTCjLNIVEotAtz0AnJWDpIfidQxU+VNpOD05D0HhsfkUkb5AOcptE1y0js8Y5cT cgmL/BZAVfPrw== Received: by mail-ed1-f70.google.com with SMTP id s7-20020a508dc7000000b0040f29ccd65aso5219254edh.1 for ; Fri, 11 Mar 2022 09:13:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=RfqNtSnj7KKKappRytqaJ2yaBytssi4EFd5mt0OX61o=; b=CZHdE4M9lplEpHFLsGCE0D0BNgcqisBV/KuCKgdAVVCuWiKhQVWqiKtn4t1ycbOZN0 fNTf9BvJRtyGI6u7ukXp6Fs4an9wv1+7JcHoauwvClHjt3puwnGw184Gi2uO3prUR8ua EN0socQwxMD9iPJ/1gYUHfhV8rJx+MUV/93ihAalZn78Mul1/LThhxzK2FuzV5Or1nEL c+Khc1YPx3s7cJxp2FzjqNkwMzVE5gJ8MjtamWC+mns07uG1rklGuuO5jmOdIOUX0BpU 8ZrgtJhlaTOl75QJM+c601f5c9S6+O/nfZvHjVit2eItmF/MEK3ShvQdgjklxfDjWCFR 0Gmw== X-Gm-Message-State: AOAM533v+g/0h9ITVS3zrmDLFdNdf0IjMnu8Lmu0SAlonSVSjyDQF5w1 /hoDDMo3zwd0ysNzMvp7hR7EywMrQfcOATqkaYfVnkn0juZZC1zj0vFkjzbynB2DuteqPVZTzFh M0yjm4zvrhnoAm2W3OmymrypkntedWVOFMWSrcn4dEw== X-Received: by 2002:a17:907:97c7:b0:6da:b3ba:6d9f with SMTP id js7-20020a17090797c700b006dab3ba6d9fmr9858771ejc.256.1647018832687; Fri, 11 Mar 2022 09:13:52 -0800 (PST) X-Received: by 2002:a17:907:97c7:b0:6da:b3ba:6d9f with SMTP id js7-20020a17090797c700b006dab3ba6d9fmr9858747ejc.256.1647018832433; Fri, 11 Mar 2022 09:13:52 -0800 (PST) Received: from [192.168.0.148] (xdsl-188-155-174-239.adslplus.ch. [188.155.174.239]) by smtp.gmail.com with ESMTPSA id hz7-20020a1709072ce700b006db4bd52016sm3254706ejc.144.2022.03.11.09.13.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Mar 2022 09:13:52 -0800 (PST) Message-ID: <9cebbeb7-3914-6a7a-def1-06b5ee71932f@canonical.com> Date: Fri, 11 Mar 2022 18:13:51 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v3 05/10] dt-bindings: timer: Add HPE GXP Timer Binding Content-Language: en-US To: "Hawkins, Nick" , Rob Herring Cc: "Verdun, Jean-Marie" , Daniel Lezcano , Thomas Gleixner , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" References: <20220310195229.109477-1-nick.hawkins@hpe.com> <20220310195229.109477-5-nick.hawkins@hpe.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 11/03/2022 17:22, Hawkins, Nick wrote: > 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: >>> +INVALID URI REMOVED >>> +xp-timer.yaml*__;Iw!!NpxR!yaItMPvjqEf3fKyp1xDQAzawRQDd8uDGTNKMlVPpn5Y >>> +56IUABMYbali7jonBl20K$ >>> +$schema: >>> +INVALID URI REMOVED >>> +aml*__;Iw!!NpxR!yaItMPvjqEf3fKyp1xDQAzawRQDd8uDGTNKMlVPpn5Y56IUABMYba >>> +li7jmX565-G$ >>> + >>> +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? > No it is not, should I not mention the register descriptions at all? > >>> + >>> + 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. > There are other registers in this range that cover different timers/clocks, for the most part between chip generations the offsets remain the same unless there is an architectural issue. > Can you provide a quick example of what one entry would be? arch/arm/boot/dts/versatile-ab.dts and actually 90% of DTS... it's rather a challange to find such fine-grained iomap. Best regards, Krzysztof