Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp809651lqb; Fri, 24 May 2024 14:09:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7bTRzBgpaa/QLj71JMU6CU6KKMG1EKyx7jCBvxQzXp3UFpFXCUiGaI/mQe2Ke9bcKZE6mn6Hs8L5KBkFXk0MaCfrUePECnADl15X7Tw== X-Google-Smtp-Source: AGHT+IHSghbjq5z+oJb4q7EC1KBL55MGW0vVBlDxdbadklmqqZExM/RxFXDiOqQ+3ChJGuth3n0e X-Received: by 2002:a05:6830:157:b0:6f5:a8a5:be6a with SMTP id 46e09a7af769-6f8d0a866f1mr3658113a34.22.1716584961283; Fri, 24 May 2024 14:09:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716584961; cv=pass; d=google.com; s=arc-20160816; b=A1ZShZQesjqbsR919HkUyUpAAgVSv8QGr3yYhJZpU3UO6t4sJ3Xox/4pHSv+Lt9Jah A4jNd1H0R6U0/1z2TktYMhDK49FSA8NDV7vcnDMm5C2znGKUfSBalbXe951Res1cYYhc T3Vhw8YMFYUdE0MoULkeIt+cnMQY0z2Qa72AvyL0X0WuTSA4gp2qVSwPl4CEM6067hdC HqGvSSe4YS8nznKdz/m0yjWPJWyXhHLQHh+3Qu8qgKmnHfnM+gM8S8Wqq0124AZ/vNJ+ hmx1I3RIE8EarRH4qBT0/0AxZc67kKRv5oPvXPbHn2fouXsMXWAByDBEfZXrZwjoTDVY tMnA== 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:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=KyewEcE8FUbohtQZVy56twaOPLhQly4poPy63a3wihY=; fh=+at+eRnAv0jsQzZjlyoR7JT8nCeKUBR3K/UdUz+ffKg=; b=ikVVdkbmNnC3TKUBKbnxpAkrrM/pyVvkoUaOI9oAb7wA/bLxbvzYuzSvttnibqKKZB XUItH5N0FyUsm2hCEdNiG5b/8S6riog8Q48q5YjTUL18vL44Sjd9EyvgLomERo2qk8Ek tz2HVMFh2mDT29D9xBdQwHV421U6iTDb7W3SpwJXcZ6V14ompyfpUP9m4klj4REbV6wg dPMKDP6exCt0Y5+lpoH17kNUvgS0o8tQSuLO3fBBOH8NXgZT3VczvNRXn9j7KWagWtuM 8KWECMp8qNLKz5bx2X2I6uM4pJCsHDBSkl2JXmP29SHIKQ/Mi5Y7Snm/sHBcLMqNhul+ 4WoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=q3RYErGP; arc=pass (i=1 spf=pass spfdomain=lechnology.com dkim=pass dkdomain=lechnology.com); spf=pass (google.com: domain of linux-kernel+bounces-189138-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189138-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43fb81a2759si11115201cf.605.2024.05.24.14.09.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 14:09:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189138-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=q3RYErGP; arc=pass (i=1 spf=pass spfdomain=lechnology.com dkim=pass dkdomain=lechnology.com); spf=pass (google.com: domain of linux-kernel+bounces-189138-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189138-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EC2A81C20BD8 for ; Fri, 24 May 2024 21:09:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E42585655; Fri, 24 May 2024 21:09:12 +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="q3RYErGP" 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 ADF4984DF5; Fri, 24 May 2024 21:09:09 +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=1716584951; cv=none; b=imhX7Eh8VayDxt9OysSfdpd56ci4uOowQWSBL4WgXHygIDy4sjV1q9v+VKm3ewmqt1qpIYegfaHCGZH/1W7V0pR8bQ1DykFNl3e2gMp02PiQmtksSX3mpRDMyJEYpRkgPMeTbcGWibg3NXN0a36J880PxghjbaH+mgjNHh50DwY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716584951; c=relaxed/simple; bh=+AfAfmcGyubRjS8VGKQM7xZOGPjk0Yaif1TR7c9+BD4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BGfFe5KczToAnV+BWXxFh9NHOUaH+WkT6x2uQ6NCqqeD9ykMrA9uW6YshH+g/rWZw8Liia2Selt90ebCG5pjhXppK/xbSKpkPy0cty84ZmhNWL2KRpGV9/a45T8gSpZroc81mZjQW21Ef8FXHCKJ8aofI574cy40D7ibN4vefCY= 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=q3RYErGP; 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:From:References:Cc:To: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=KyewEcE8FUbohtQZVy56twaOPLhQly4poPy63a3wihY=; b=q3RYErGPEZD5wmL6KWykDVahhs 6KWIPimgJLzDomnsWBrlUiOtuCcMsEFiKHra6F/XZ7BLznS77CwQs+dweGzx5jMA12S4/Xbwp1KtW TmEPX37MCt8xO7VrVvY8dKCY+zOrBPvqYywATJ+pdQUUZu8cZwl9yTsOXgWFJ7JN+14/ouoep0qs1 0ycf56s+pFj0M5dYC4JZq18WVcnge6oadVdiJMYvbOq4Xlfs71HkWAfHcZLmS+/z0TyQ/C/ZrDJji 5E65u9D+StEMBRv9Z93C3oHwVh/0MOqnkphzAHYfNN6D8YkqwB0VD3+lQcOQuzcoo0gHp0kvYXvwB cnUrkZFA==; Received: from ip98-183-112-25.ok.ok.cox.net ([98.183.112.25]:34758 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 1sAbvN-0001uL-0c; Fri, 24 May 2024 16:50:35 -0400 Message-ID: <2956d10b-d2cf-4019-adc8-d8053e435767@lechnology.com> Date: Fri, 24 May 2024 15:50:32 -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 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> Content-Language: en-US From: David Lechner 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 dUJb5IttTOx37jQQi2igwlSBdSC/M+Zy3sb+DXYJUVjVxK56RGAnlSvjHUx/TkID6Vb6HXvm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CDuKx6Zk ybHg7IzNEduqZQ4bkaBpnEt+vwE3Gg5l4dAUFWAs9qY13nyBANQ282FNctziEHCUJZ/Map6T dzHWO6hU1HuvmlwcJSFCOey8yhkt386E6KfVYzrIhwTtabg+DLyMZK40Rop1VcU7Nx0M In-Reply-To: <20240523231516.545085-3-jm@ti.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/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 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 >