Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp804538lqb; Fri, 24 May 2024 13:58:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV72qe5Brk34Y52LJsLlcaDWOXBYDlNLcB8Wn+53rKzfb9ssLp5I+ZKkwnjyPiBNTTGndLd3ePH+9an7EtqmEEux9vLZJjAyY1b1YjktA== X-Google-Smtp-Source: AGHT+IGmNrmYWVUq1LmsF8iWj0wCeOPEIF1ip6be0t8BzeI1lXz10+cgbDDkYqwabxCnmit7/+CQ X-Received: by 2002:a05:600c:1ca0:b0:41b:97c5:ccc7 with SMTP id 5b1f17b1804b1-421089d16e5mr29304315e9.8.1716584304983; Fri, 24 May 2024 13:58:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716584304; cv=pass; d=google.com; s=arc-20160816; b=GW/FNl9Jaq67Ofylkn26er1EtZniBGrAkC31GKQ8gKCXrcrMWUNrqHbYIdD0BxaixF b5CVUo/KUQVO2hdV4v6q/9k2zlnNwogJSW/blJNRarBl6GGt8D5yuSAj91oFdC3dwXJc ZMP6lpUqzME6+baXMWIo3rBsrLejfvvzxkm7Kp/Q+fkmGKJB70LrENHkJ5Rslew5Y2je wAwNPo3/QbBWfaqG0viltR6P/M4XfO+AW9KD79YlfygUhGJJGh2IzNOFjc12fOjd8DVg y2ZnBPxStRnNCbGp+COdaz9CAPYh9IuyuzQ17/Gw8CZV6gEG/NeOuE4qfg44ZpBd6tEJ h+7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=t2DOCJNyKvOfcOpBuODL8F4YyXgFuY85iOz3SlWrWOg=; fh=+at+eRnAv0jsQzZjlyoR7JT8nCeKUBR3K/UdUz+ffKg=; b=DVBd/CnlxqKWPGYJokJEfxyMejyZiCGyKUMIdPTBd7efkh6RUFzH1AQ/aJMSy04+qr bKDSBvgfGJCMOmHYTgxI43IWGoS4KPTwxClPd6L4jJMDKvJOulPliPicroGmErrlAgji 0ugTzRl6+H+f5zH3ia3T0lzFAivOifdXYicn4gL+NuyBd3uH/xyhT++ubcXkgHJ4o5FO STAcrTzAOtm3a/KghCnMYBSmO/HlHg/a71zZZPINQ3gRjTG1qVROaZJ1EGXpk9UQJjf0 RLoot2paP6sYAjpIExOqWg4fbKotoibgv7iyNLeKPXwDJf8WN7+WQOLi83giMqrPBS/K i9yw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=c7iiMxL5; arc=pass (i=1 spf=pass spfdomain=lechnology.com dkim=pass dkdomain=lechnology.com); spf=pass (google.com: domain of linux-kernel+bounces-189130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189130-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57852330ffasi1223091a12.136.2024.05.24.13.58.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 13:58:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=c7iiMxL5; arc=pass (i=1 spf=pass spfdomain=lechnology.com dkim=pass dkdomain=lechnology.com); spf=pass (google.com: domain of linux-kernel+bounces-189130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189130-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8C6A41F20D44 for ; Fri, 24 May 2024 20:58:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B94E84A53; Fri, 24 May 2024 20:57:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=lechnology.com header.i=@lechnology.com header.b="c7iiMxL5" Received: from vern.gendns.com (vern.gendns.com [98.142.107.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F8EC7442A; Fri, 24 May 2024 20:57:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=98.142.107.122 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716584238; cv=none; b=Ke3GTL5hAglecUaiuyX+ZUrHFBErlBm9eUByQsnlY3WCmc4gB6gbx+B0JWwCYs5wVdmuVfgIjEYJ9VHLRi5LQEalGODZhTB2o+XznHnwDFnItbB9JZo85Dx3VvqHxS0L9S8QHuN6c8n/2IwthNXJM3pRySpy1rH1J8V61W2B7JU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716584238; c=relaxed/simple; bh=Y46nXxlcFgBHM6KViWljK/mrz7E2aT075oMJjZi2WQY=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=IFrsovovEZpa+esb/wLBQ7WzNDzazy6K3F1GEpCjCUZz3NVmEhq+wYTAu+0M40tYsBOoAt15QYUQaQDcxHcqizH6/+dFoz00HGyF+WLQLKtUJ/JSMVcLfaGh41b4s6Lx/TJAS0X1jzrg0BhU+uGDMPv3ELl/PYam9lS6JljMzmY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lechnology.com; spf=pass smtp.mailfrom=lechnology.com; dkim=pass (2048-bit key) header.d=lechnology.com header.i=@lechnology.com header.b=c7iiMxL5; arc=none smtp.client-ip=98.142.107.122 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lechnology.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lechnology.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:References:Cc:To:From:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=t2DOCJNyKvOfcOpBuODL8F4YyXgFuY85iOz3SlWrWOg=; b=c7iiMxL55RaSq6FjgjofpJVK3J ZqhA0nDpMj8SZvzTPrYxvac9owiaU9xPm7Q4Bu+HrVOkkmFo6xUPSTlhUMvXcNJ2mhH22pqj6y/jD jtBamNqpPA1XbB86PvUY+ZIrSPWsSQECJb6pHFHR3weU9iwDQzlqhr9ZI7EOoH5B4/Lvx4/exiIka 2i5CPKXcbgwGeY0XeBOPLlxd5sT9suJxQGxb2RJ6xMVlx4++97XqtWH57Q6ygTtyUo0nJkiJikyi1 zf++IMt2P+lFttamkwDY/1hrAGYoXgNSx67EiJob0XkhgPC9leogG7JS9s+Ps6xAPoeQptP4Pwzy1 q3c3QdWQ==; Received: from ip98-183-112-25.ok.ok.cox.net ([98.183.112.25]:42048 helo=[192.168.0.142]) by vern.gendns.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96.2) (envelope-from ) id 1sAc1o-0004Bn-1a; Fri, 24 May 2024 16:57:13 -0400 Message-ID: Date: Fri, 24 May 2024 15:57:11 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/8] dt-bindings: counter: Add new ti,am62-eqep compatible From: David Lechner To: Judith Mendez , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , William Breathitt Gray Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Nishanth Menon , Vignesh Raghavendra References: <20240523231516.545085-1-jm@ti.com> <20240523231516.545085-3-jm@ti.com> <2956d10b-d2cf-4019-adc8-d8053e435767@lechnology.com> Content-Language: en-US Autocrypt: addr=david@lechnology.com; keydata= xsFNBFFxkZ8BEADXzbnj9t8XSZYxKJGHdHqYgEBVzRElb3+f11qhDZKzVCMsn1+AN+PlHqC7 VrCWLsWTSY7WsHB2fW3aXaoidtac5FYoX2IXAun1Sbv15NcBdapImkMv6zxhAyWz6LqPfdCp QV+3x6qwUPFeLHdmew8mkSq56qTFgDQr9oQhsrXKHkXFD7aIAf5bM6janQCHgGTVDraRDfEO rV9rj7Wu/SfjUCVSCvW/SuWBa3IXTLNgbrNwBfo7Pl/tHuto0jxkVCIJ6J3xa85BKMw1WjA+ jKzh12S6KWrLUfhEUt64G9WJHiZOnVAjxgCR7TUahVM2OQHcp49ouG/JZsGNniulXH4ErA2O Wt6seUEx8XQIm48H96RWgKrwKJ+1WoLEmUcYOJDZUcguMZVc3Astx8aSaRjf6IRBO8XlJSJV OorkguvrTQBZJfjoicuFx7VlpdMggMZayv0cqEvzZMSHUt8DCUG74rLhtab9LCg/9wdCwqyE JEi/8jaV7JWxwiCmzVpw0mHn1DiUlp5kapZT+Hart0Gc1WW915psA4G6KneisFM5DJe+S5mn dUJb5IttTOx37jQQ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4GyTil33pnBXEZp29nh7ev4VJ96sVvnQFzls3motvG+pq/c37Ms1gYayeCzA2iCDuKx6Zk ybHg7IzNEduqZQ4bkaBpnEt+vwE3Gg5l4dAUFWAs9qY13nyBANQ282FNctziEHCUJZ/Map6T dzHWO6hU1HuvmlwcJSFCOey8yhkt386E6KfVYzrIhwTtabg+DLyMZK40Rop1VcU7Nx0M In-Reply-To: <2956d10b-d2cf-4019-adc8-d8053e435767@lechnology.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: On 5/24/24 3:50 PM, David Lechner wrote: > On 5/23/24 6:15 PM, Judith Mendez wrote: >> Add new compatible ti,am62-eqep for TI K3 devices. If a device >> uses this compatible, require power-domains property. >> >> Since there is only one functional and interface clock for eqep, >> clock-names is not really required. The clock-name also changed >> for TI K3 SoCs so make clock-names optional for the new compatible >> since there is only one clock that is routed to the IP. >> >> While we are here, add an example using ti,am62-eqep compatible. >> >> Signed-off-by: Judith Mendez >> --- >> Changes since v1: >> - Fix eqep binding for new compatible, require >> power-domains for new compatible >> --- >> .../devicetree/bindings/counter/ti-eqep.yaml | 53 +++++++++++++++++-- >> 1 file changed, 48 insertions(+), 5 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/counter/ti-eqep.yaml b/Documentation/devicetree/bindings/counter/ti-eqep.yaml >> index 85f1ff83afe72..c4bb0231f166a 100644 >> --- a/Documentation/devicetree/bindings/counter/ti-eqep.yaml >> +++ b/Documentation/devicetree/bindings/counter/ti-eqep.yaml >> @@ -11,7 +11,9 @@ maintainers: >> >> properties: >> compatible: >> - const: ti,am3352-eqep >> + enum: >> + - ti,am3352-eqep >> + - ti,am62-eqep >> >> reg: >> maxItems: 1 >> @@ -21,19 +23,43 @@ properties: >> maxItems: 1 >> >> clocks: >> - description: The clock that determines the SYSCLKOUT rate for the eQEP >> - peripheral. >> + description: The functional and interface clock that determines the clock >> + rate for the eQEP peripheral. >> maxItems: 1 >> >> clock-names: >> - const: sysclkout >> + enum: >> + - sysclkout >> + - fck >> + > > If we are making this optional for ti,am62-eqep, why add a new name? > > Also, we could change the description to say that sysclockout is not a > great name but is required for backwards compatibility. > >> + power-domains: >> + maxItems: 1 >> + >> +allOf: >> + - if: >> + properties: >> + compatible: >> + contains: >> + enum: >> + - ti,am3352-eqep >> + then: >> + required: >> + - clock-names I just looked at the Linux driver for this and the clock name is not used in the driver. So we could probably just deprecate the clock-names property here and not make it required for ti,am3352-eqep (and not allowed for any new compatibles as suggested below). > > What if we just add > > else: > clock-names: false > > since there is only one clock and not worry about the name? > >> + - if: >> + properties: >> + compatible: >> + contains: >> + enum: >> + - ti,am62-eqep >> + then: >> + required: >> + - power-domains >> >> required: >> - compatible >> - reg >> - interrupts >> - clocks >> - - clock-names >>