Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp410542lqp; Mon, 10 Jun 2024 07:49:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuWxOYLnqGIiTja1H1FbUxGa2z56SFs40ytKVkB4q6bAnMNeIhyi6Oy0ZzAfAREBJSwTnuh/Ydv+ZnUHRQqoPAg8Wfwuk1IeY7MWHBvw== X-Google-Smtp-Source: AGHT+IFvOoK4gm3fprCcYp3lWRQmfRO9yx44FhYibrZDjnf2NXfwHlGMLqxPLI0fQZ0NYOsOgQeI X-Received: by 2002:a2e:a793:0:b0:2eb:d9c4:ae1a with SMTP id 38308e7fff4ca-2ebd9c4b183mr45824591fa.40.1718030985879; Mon, 10 Jun 2024 07:49:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718030985; cv=pass; d=google.com; s=arc-20160816; b=DDM5Ed1m45UBo3VNdpk+6UBbieTHuYEqmUc6XN32uIURYfxFwerxdY5JCwz6ax+iD+ X/boj8/19A/QCwPA1BQUu7Udp6wOveHnVQF7UoO2hF3jPvDiHnWH7DggsYOFbeBMqaZn VhHLgXcxORLhKJbInJBCgurQaGi4tIJdBXA4qLcduLuQFTpfH11LEeZF4cUpsAn2YE4C JS+PtaVcyFU21nOPtrxzjk9BSlZQGXTwo/BVfLu7y3JiQyIODQ15fLjCTYNUXbCu7LQA TwpxeSNyAGyLPqwPvEPb22DIoY13r6FryQAhNG3dM+pkmSVI2kKgPzzvV4+Tearxa169 BbDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ULYcdEgvqixrq+r3kLkXHhlKiFvqSQXsJbA+0Kdbv7g=; fh=fnFs3KdOj8EAtif6E/NslCiR3/8mDUX15fWEuYw0yAE=; b=jLtwmuDL8KHy3XFPlO/sjYdx410OIQOWQZCZ5PpwPhki1LSj1r0ICFhmzsK68bi3Hd fzqF0JxXFVEzyS1T81r346yBBZ2APSgV/2E7kxUe3mT69xO20GNghIuzMl9bbIBVhasq 5Aor/j0BBMEBKtBivtTkA5ohqtlcxbrZXuJairHEHHZmENlEqeyvQMZbbRASkusH7B1F k2UKdTJ6ILVnP7VHPH1CD9+YtGGugNwqtvHNMrzLqFndnygNDuIaVtPAFu6ka1uMG+qq 9BDwC9eBdMTbnjNXxx0KEH0gw2RQC0Oe3a7s7AWTpAZySVt143c4Pu7MJuZfC1oaJ9LI TWDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=n3aPCcTR; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-208393-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208393-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c6bf423adsi2509381a12.692.2024.06.10.07.49.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 07:49:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208393-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=n3aPCcTR; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-208393-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208393-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com 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 35C051F21238 for ; Mon, 10 Jun 2024 14:47:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B772C13A89A; Mon, 10 Jun 2024 14:47:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="n3aPCcTR" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 4D6AB7440B; Mon, 10 Jun 2024 14:47:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718030848; cv=none; b=evz5tKK5kzYg2Is+v1+8rSLSQu01VT40T35vY+tvAEHos0Jmj80bnqSXPkDgKKl0rb1J63CWEr0IKYCtyy4g3uG8XazJx/iE/OZ7Qz/mMgPm+V96MlS8vqMe7Cj8yBezbXDqEaS01IEwr+n3Md4ah5ous/y/zURKn9QB9j+ibog= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718030848; c=relaxed/simple; bh=OMs5HIO9iMwqvjCnkpK7JpkCnz4FYRqCknG4vhvfXxI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=oMv2ChoagivEtw7rdcG9QjavSIJE1XUBndmchINN/gIrTOayOCi+COOy5UJIpZ3U0iKYo1AqTHjICuPLh8O6oERfj0TRu01Vdg8boRQbMsHbxEKP8Ya3emIzLBRM+Zn73cUISuPI9j7hr2GeUxBSwluaLFPBWk6LtMGEdNwk35w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=n3aPCcTR; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkbJj096192; Mon, 10 Jun 2024 09:46:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718030797; bh=ULYcdEgvqixrq+r3kLkXHhlKiFvqSQXsJbA+0Kdbv7g=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=n3aPCcTRhIPWbHuDuWUV2JoGRmoxPi8000nlmHRmJiOe02+PrHQgPrmW9w/Vy+Tzg fvON8BbLVa5bP27RWaDqI+a8XZOX/eBfvSSFiVI0lUKWp7Fw1AMMpYhAVBIafds7Hx S7OYv8LZnwLCyk7k1yUfhQkTr4sQUnG6QTxrFJG0= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45AEkbxv013133 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jun 2024 09:46:37 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 10 Jun 2024 09:46:37 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 10 Jun 2024 09:46:37 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45AEkbZo096515; Mon, 10 Jun 2024 09:46:37 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Breathitt Gray , Nishanth Menon CC: , , , Vignesh Raghavendra , Tero Kristo , , David Lechner Subject: [PATCH v4 1/8] dt-bindings: counter: Add new ti,am62-eqep compatible Date: Mon, 10 Jun 2024 09:46:30 -0500 Message-ID: <20240610144637.477954-2-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240610144637.477954-1-jm@ti.com> References: <20240610144637.477954-1-jm@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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, so removed from required section, make it optional for ti,am3352-eqep compatible, and update the example. The clock-name also changed for TI K3 SoCs so do not allow clock-names property for the new compatible. While we are here, add an example using ti,am62-eqep compatible. Signed-off-by: Judith Mendez Acked-by: Conor Dooley Reviewed-by: David Lechner --- Changes since v3: - No change --- .../devicetree/bindings/counter/ti-eqep.yaml | 44 ++++++++++++++++--- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/counter/ti-eqep.yaml b/Documentation/devicetree/bindings/counter/ti-eqep.yaml index 85f1ff83afe72..54611e06064a2 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,35 @@ 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 + power-domains: + maxItems: 1 + +allOf: + - if: + properties: + compatible: + contains: + enum: + - ti,am62-eqep + then: + properties: + clock-names: false + + required: + - power-domains + required: - compatible - reg - interrupts - clocks - - clock-names additionalProperties: false @@ -43,8 +61,24 @@ examples: compatible = "ti,am3352-eqep"; reg = <0x180 0x80>; clocks = <&l4ls_gclk>; - clock-names = "sysclkout"; interrupts = <79>; }; + - | + #include + #include + #include + + bus { + #address-cells = <2>; + #size-cells = <2>; + eqep1: counter@23210000 { + compatible = "ti,am62-eqep"; + reg = <0x00 0x23210000 0x00 0x100>; + power-domains = <&k3_pds 60 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 60 0>; + interrupts = ; + status = "disabled"; + }; + }; ... -- 2.45.1