From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 492B0C4332F for ; Thu, 13 Oct 2022 00:42:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232156AbiJMAm3 (ORCPT ); Wed, 12 Oct 2022 20:42:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232159AbiJMAmO (ORCPT ); Wed, 12 Oct 2022 20:42:14 -0400 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24AA6107CFF for ; Wed, 12 Oct 2022 17:33:20 -0700 (PDT) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-1321a1e94b3so654097fac.1 for ; Wed, 12 Oct 2022 17:33:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=qKk00GZ788naBGTxoT5GM72rM2lKT+rrPq0Zst2EeZk=; b=R0vTmFqSXzH7GlHiD/WdG8Fg/fzkiLCENmLCoeZIFYsFDCg9qNK6UZyeufN9Enm5tK VtJ+DY0v0kKovOyZ1Y9u4o8RAkHjijLbeLmP+o3NHj8x6krSZ9Bv5RfK016Hz9XWK2ol 0hipL9pepUV7SO7rzMd41iECRnTZLJfT8sohvCy/Irt+8bTFCVFWYaxidnr0xQwEoFbT NY7QZvdGGs7a6J3csxQEd71LZuCzvGIy9vtIiTUQG/CkK1N1aq+UG9vicUr9BV6HIYZX ZFMI0hV+U+b1iymFxpleXGNpyD7MmiBUJONQao5MR9JhUpq4iMM8HY9kkUFAhIwre6kV fJKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qKk00GZ788naBGTxoT5GM72rM2lKT+rrPq0Zst2EeZk=; b=ZOYPEXSqTVmKb9G1sVOhqlB1RPc2UqX3+oeRbY9iBDmKdh9fJkVVZRvMjChWmodgt8 LrT0qyZIyVePmpgydwWvyUmR8O6MvVFrukfJFjGYDjdOlMiuGq+tOzduMD7dbPeYvD8R Iawv/tghP5afIurYgIJ4I9THNUgbnVQGxow/uAI12NbmR9tXq3K8eThhaBLMqStrbP83 YFxJDghC5AGD9HJUdH/tM64SB3dOs1qVLLJWxQrvsv1ZYfU95JVLxsstqBv267R6Mg+X kEKlMKFOZatsy7cwWVwJkF+Q0FKi/tnKzpyykZ7q1szBLdx7OYOuVwTmgfg6/5u8S708 YAwA== X-Gm-Message-State: ACrzQf0YN4xp2E5h2fead9Wdb1eTZX/FKY3bgCKAY3igSaoT5CcRQueQ C9GAyqQeyiZ90VAGMMA3trltSPoXH4ZgkQ== X-Google-Smtp-Source: AMsMyM6r0jgBppwpsnKdoP6avayVNk2JuobRx5dg9qTljduaWYK6GJTGUF6rtzxoZoRHc39ZOFdNKQ== X-Received: by 2002:a05:6808:ec4:b0:354:475a:c101 with SMTP id q4-20020a0568080ec400b00354475ac101mr3425156oiv.56.1665620643659; Wed, 12 Oct 2022 17:24:03 -0700 (PDT) Received: from fedora (69-109-179-158.lightspeed.dybhfl.sbcglobal.net. [69.109.179.158]) by smtp.gmail.com with ESMTPSA id r4-20020a05683001c400b00661946468c6sm4975880ota.31.2022.10.12.17.24.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Oct 2022 17:24:03 -0700 (PDT) Date: Wed, 12 Oct 2022 20:24:00 -0400 From: William Breathitt Gray To: Biju Das Cc: Philipp Zabel , Rob Herring , Lee Jones , "linux-iio@vger.kernel.org" , Geert Uytterhoeven , Chris Paterson , Biju Das , Prabhakar Mahadev Lad , "linux-renesas-soc@vger.kernel.org" Subject: Re: [PATCH v3 4/4] counter: Add RZ/G2L MTU3 counter driver Message-ID: References: <20221006135717.1748560-1-biju.das.jz@bp.renesas.com> <20221006135717.1748560-5-biju.das.jz@bp.renesas.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SqBc1oHt8iHqXeCa" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org --SqBc1oHt8iHqXeCa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 11, 2022 at 05:55:50PM +0000, Biju Das wrote: > > > > > Looks like something different is done when ceiling is set to 0. > > > > > Would you explain what's happening in this case and why it's > > > > > different that then else case below; in other words, what's the > > > > > difference between RZ_MTU3_TCR_CCLR_NONE and > > > RZ_MTU3_TCR_CCLR_TGRA? > > > > > > > > RZ_MTU3_TCR_CCLR_TGRA --> for triggering counter count using Z- > > Phase > > > signal. > > > > RZ_MTU3_TCR_CCLR_NONE --> No clearing. > > > > > > Does the Z-Phase signal trigger a reset of the counter count back to > > > the ceiling value? > >=20 > > No, It resets to 0. >=20 > It reset to 0 for forward counting > and resets to U16_MAX or U32_MAX for backword counting So when counting backwards, will the value reset to the ceiling value when it passes 0? William Breathitt Gray --SqBc1oHt8iHqXeCa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCY0daoAAKCRC1SFbKvhIj Kw+6AQD8Olun4md/v+SivFJKnHrGwUlm2lGVYLpvgzcUSvjLBgD9FEOJYC9CnFSg 92ucwlWAtepEnfFNv8/uFnwBPDPvGgU= =VZzI -----END PGP SIGNATURE----- --SqBc1oHt8iHqXeCa--