Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp217115lqb; Thu, 23 May 2024 16:17:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuvCA3enoxw3PCB6lX4fqY/1OHRPwCQiAPnd7sYtitYLdcywwmlXmHbtkZFmpG6MJoR9v8wdQeHOGbIQi52XOu5mybMKmmRL0M4yCS1A== X-Google-Smtp-Source: AGHT+IE5ZXKdPn8sMIPpdrz7CSK6XLMJST1j+fiZ5T9A1Ij6sm6WqmL7vB+C408IMTjjyq0OPeCE X-Received: by 2002:a05:620a:4110:b0:794:7156:93f8 with SMTP id af79cd13be357-794ab099e40mr83425685a.35.1716506275014; Thu, 23 May 2024 16:17:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716506275; cv=pass; d=google.com; s=arc-20160816; b=e3+59o9DI2hfIuSsMpzIOrlKQdZmtQn8nnIj/liPPHpO5eiTwfD7ynQx91urLGDyJT tpbL5zJuRAQwN+g+bow8lkbIBgbZXqUdmqRfatkXFgijRp54TyWVaREtGINrG1Q+bqnR zLW0wb0bKAotM32dkllh1aeNnaTarU8wlbhB7AwuhY109OwBDrE3Cv5s3D58j/sjElwx PAZzhVsClv7yurae7jdM7vmk3Nalu6U4G+hFk+VGCclZPVCPeuUASwM08c53EAOrxLsJ fQKP74UAxJazp2s3tlNdessOW4qNDGSTzlLkzkM0UIbR7muFXYYIi9ZlermjXmXUg1ug W+iA== 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=5kbdjIH/ML8iAwsZorBTaSmYVbL7B/CuMu+J8qO8tbw=; fh=cVFFpQfLzsgPCJkX4d6tZHONlFPYb1OgIkkcJxf78/o=; b=pcB8/31nMt8XYTX1bbmnba+AJtUSbcQbkWTw+h79WIfGaaeQQQPeduP/rMNYIKzRcd JVKMKoAMAML/M01dbI8m1OmU6OwkmhgZjv9ll3X/BlK6fX0LI89eBHLIyBoGnwrMPOqj 6QSkUz7PzpGviPoU6wRlkCtUQwtlrQQzHao1q41gL2JFCt8TET9AoxGynqJFqiDkFjGr xJ8Doj6CiNZb3r5Apt06QhmKhsI3DzgAk041h0YKlfk/bFSquJ6fSdtUWIw+eiu0PbBW xtD26Q5N6LjucLH/Wam1nK9Md7Hsv+RdWoxwM46IztvcZ1OCWG0LAYNKXo/CV9UFmcCC mSTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=yPKHXuml; 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-188108-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188108-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794abd1ae27si30556185a.240.2024.05.23.16.17.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 16:17:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188108-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=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=yPKHXuml; 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-188108-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188108-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8728C1C22200 for ; Thu, 23 May 2024 23:17:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DE9C12A171; Thu, 23 May 2024 23:16:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="yPKHXuml" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 8E3C9128362; Thu, 23 May 2024 23:16:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716506193; cv=none; b=HGlo9nlIJ7VK463pjWz5+oLK24u+lvPIdynj6GW9GbIyPIopr7l2x3Wh4wyMU8klAK0aaC8/p+mYrDBC+uAr8qMwawko5v1UWR1Xskzg56bO9AjxfrPCew1ZQrCEYefvDarcjXgwhakEuPQ7w7/qu12kAKcTBUCWhpJig+Mpr8M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716506193; c=relaxed/simple; bh=NGu570RHFGceiey1igTao25OUDYzi+gWESyBkc7sHMY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DIGlifBqMbx4nFJrNNFeWOoTUIrwl4qjeQ/3Ejzm/jWRRjapqqv22w0Pf6LoTGkh9O75G5muieFM0Y1Hn3S4MHQpnjwBuRA/81fswG/tNlOiw6Khx6aWeOkA34h9gNKDcOCyUorA8nDisHVcRuMm0zeUPu6vV94jcM1DoHNdADQ= 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=yPKHXuml; arc=none smtp.client-ip=198.47.23.249 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 lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44NNFGZN117075; Thu, 23 May 2024 18:15:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1716506116; bh=5kbdjIH/ML8iAwsZorBTaSmYVbL7B/CuMu+J8qO8tbw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=yPKHXumlaY/2MYgecu1nB0JiT3JAR5RZDi4tICk/JlYHfXkwo6KK9LLia/ey7MZiZ Rtg58MDos3COKSXzXyhcv40207wSP1JMYddtnycno19sFZnrPo94ueiB8irE0vHm1F h8JozC0GfWmr1jdCbJMT9AvlfT09PubNUjgXxPbg= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44NNFGjk022501 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 23 May 2024 18:15:16 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 23 May 2024 18:15:16 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE106.ent.ti.com (157.170.170.36) 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; Thu, 23 May 2024 18:15:16 -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 44NNFGqM008143; Thu, 23 May 2024 18:15:16 -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 v2 2/8] dt-bindings: counter: Add new ti,am62-eqep compatible Date: Thu, 23 May 2024 18:15:10 -0500 Message-ID: <20240523231516.545085-3-jm@ti.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240523231516.545085-1-jm@ti.com> References: <20240523231516.545085-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. 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 + + power-domains: + maxItems: 1 + +allOf: + - if: + properties: + compatible: + contains: + enum: + - ti,am3352-eqep + then: + required: + - clock-names + - if: + properties: + compatible: + contains: + enum: + - ti,am62-eqep + then: + required: + - power-domains required: - compatible - reg - interrupts - clocks - - clock-names additionalProperties: false @@ -47,4 +73,21 @@ examples: 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