Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1158224lqt; Fri, 7 Jun 2024 09:30:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX8sJQy1ghO3v6ttLPh8bw5eTM0jP8EHfMOAOhwnScX7A+H/r7LcxAuvwZtUjACOpflgAEOYYUyB1mHDnF9ALmdm2GU0PJ5isxkDL1zEA== X-Google-Smtp-Source: AGHT+IEFsae8Z1AGkzCe4buAl1nzSeHmtTc7/+Ks4OPDhd4T5odIHmv/Db38yyWuCthLA8kl4sh9 X-Received: by 2002:a17:906:6a1e:b0:a68:fb7f:47c1 with SMTP id a640c23a62f3a-a6cdb0f5421mr251347466b.60.1717777857469; Fri, 07 Jun 2024 09:30:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717777857; cv=pass; d=google.com; s=arc-20160816; b=bGnucObvShfp6sNtybOKUNvYg/v6p4W5cJBBZuccGRZGQjlQx0LVh399QhRc1Kr4Dh eZMUE8u0lfNfzehNH0GkR8pTXqpCwS3fSfI5v9lppMUmKfuOyorU76uhR2Y/IHcPGXZH eyXtTTSjsW1wBbaw8/2mPWaWLszBYK+ubFyLoBQy0tIRHpH1bO2uRFV2kNauwnP66qWr Ypez4qIWoLPDmKukFsRM+Tj6V6mgPr4kVeMypl9ONmxU2sDs4OhxuH2gmQopjtuKgqNm FJ9ffIHDMuVMMV49k4R6DcPBjJ+5F5BrdKaYgqTHwTNaypfxIBmgJybpJEt3iTXZ8VYR loXA== 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=bGY7Zuuv3RGwnT4Hrp+s+EvgozmstE7An3C3nxYuYHY=; fh=cVFFpQfLzsgPCJkX4d6tZHONlFPYb1OgIkkcJxf78/o=; b=onUlAXCNMUqUKod2xqbIqZQfUcvhzoL110DRIR8aCfGc3WgaxmI27Sf5QdqMbAFHcw a0toM3ty2bfWpNU7uT/1zUu8V2O/LkLwac6hHbQCrwVkaSUOHh70ABkp9GVHdv45gZqp iKY3ae5HHAACIi3KUMqt2sr22QuEXBRp4n25k/Ew3s6Xrw8wOxkPB09WXf+kcCBvc27C OSPUAMm5PEwcK8/fEv1zKlKb00b6A1uF8FqqsmHC4EvRGVtsOw2K8hOG/pIkrPRnUrYi I0NY/NTETkJnyakA2Zo4hvJkOfaBtIGC1Z4uXEE+foFl+zb23QvJGp5qSEfrADPid3Mv BRow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=krdDZZk+; 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-206478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206478-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c806db695si199837166b.462.2024.06.07.09.30.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 09:30:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206478-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=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=krdDZZk+; 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-206478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206478-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 34F361F2355E for ; Fri, 7 Jun 2024 16:30:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74ACB19DF41; Fri, 7 Jun 2024 16:28:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="krdDZZk+" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 352E819AA5D; Fri, 7 Jun 2024 16:28:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777736; cv=none; b=u8uNxsZu6OxNN/TJRbtG2feaUmzjrMtfW1oBRogQ/oC0T7knMnIUc24Vk+ng0BtRTXOsCJA+ewfjB16YN5I8vGeLmO+MmCVr2cdihtHpeBgB5ixpAVwuCZbrBc9AQg0JuP970L06G2aoZrxJDzQuoSnmwd1iBpLZ/2X9C1Sn874= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717777736; c=relaxed/simple; bh=v13/ViOAboDk7RvPyzOME/dPjIqeJIbFVdZVlzMR8m4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Gzt10d5bnPyL5WDchOPwRKBxx2YKvFd39JvZfd1y9I2D7UShjWgQIm/otnko/bjt8lVDCSwfJ865dV3lJheRcbADzdCaaGwz2wdg4X2tCNwcDtRee5c7utJdhqb5AfJIjqQMkWmW4ad99i8WYTFEK/RK6x+ygjR/urlGYQmGnUc= 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=krdDZZk+; arc=none smtp.client-ip=198.47.19.141 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 fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 457GRuwJ022356; Fri, 7 Jun 2024 11:27:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717777676; bh=bGY7Zuuv3RGwnT4Hrp+s+EvgozmstE7An3C3nxYuYHY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=krdDZZk+c0PM7FsTuaby3E9dulrWlwF2K8vtZlA0183V6n4K8kM6uYwbyQw43R/HM YSolA9h/DO4WcrhjlaKaWl1aiv/b9fYhl6cmR1LYLrDNpG7UVZnBFo5vgZ/68o6BPd gQFBhuoG1SaKi3oS76RtVpm4+kJk72M0YvtzIJB0= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 457GRuEG096165 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Jun 2024 11:27:56 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 7 Jun 2024 11:27:55 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE113.ent.ti.com (10.64.6.34) 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; Fri, 7 Jun 2024 11:27:55 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 457GRt1h068019; Fri, 7 Jun 2024 11:27:55 -0500 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , William Breathitt Gray CC: David Lechner , , , , , Nishanth Menon , Vignesh Raghavendra Subject: [PATCH v3 1/8] dt-bindings: counter: Add new ti,am62-eqep compatible Date: Fri, 7 Jun 2024 11:27:48 -0500 Message-ID: <20240607162755.366144-2-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240607162755.366144-1-jm@ti.com> References: <20240607162755.366144-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 --- Changes since v2: - Make clock-name optional for ti,am3352-eqep compatible and do not allow for ti,am62-eqep compatible --- .../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