From patchwork Thu Jan 26 13:22:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinthu Raja X-Patchwork-Id: 48639 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp269209wrn; Thu, 26 Jan 2023 05:28:55 -0800 (PST) X-Google-Smtp-Source: AK7set/LiKdSSfm7/fA6qwJL4Es6XRinghBSOAiSo22eR4nVG18RCzgXGbZ9T4vGPgDQXe/o9LkG X-Received: by 2002:a17:902:6b89:b0:193:6520:739a with SMTP id p9-20020a1709026b8900b001936520739amr1387865plk.46.1674739734861; Thu, 26 Jan 2023 05:28:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674739734; cv=none; d=google.com; s=arc-20160816; b=JJApGEFKqI6R5jLu17ZO9DWkL+0DobDLcMpg4uMSr3OgkRdumCVmo3kM16d1E+sVcO V4ukgEZ7k1e45e1IMYSBpdTrRjtshW/av3pmLuK8iJj8ODnoYn1ed6zrblLP5CqE0eyc 3calQb1wmgY6vgOuZ3UnAYrsrvSSgiBCHk26M13a8QRLIDmRM2yGqXTsh9J7ylrZ4GpK gZxkZyX4+o7PHhj2vg3CptnQQnaRvUYcBturwi8uSQ4gRU/aHGjHSc23Q0YezehecVvk RPwODnB6yu6nS7swL68aOvNsjfK/FOcrml/t4UxVQIZBEHQ04cAUziCPNLASQoXrSG6Q Kmtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=G6Ajtn/dXFsb1dJwxtMc9cBb7rwqzMHAM/XeIm3RbXo=; b=mBjCtHtrX4yukFQAukcCw4mjsZkTeUGkApmS1R2Jqp+n2BmMUugHMRhNlNUPVukc39 /57l4lECampxhRWjyHmDdupyBVQWC9S57OwK6wgLuXCPNKX9BT03f1XcbOf6UvEXDLOS ucNGcoVr/0LewngkL0BzDLsHqKSErWVeW+ewA+YcPlASWYG93hW7G2TxBgXY37CeHLuL XXf6ECDJt6FYzQtyedMGDrtOQtkIQbrgAAqivIWpKvP3b84ZuEOewbT5mfKRgxiMxCGD 3Dew8sDg8Jl3vUApikoW0kC0DoN5HPB8q8u+zuZKX1UwkKDjjOH6/fC42OOT9Owzcx+B z2jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mistralsolutions.com header.s=google header.b=dLKubE6M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mistralsolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n13-20020a170902e54d00b00189c6fbf963si1577018plf.478.2023.01.26.05.28.42; Thu, 26 Jan 2023 05:28:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mistralsolutions.com header.s=google header.b=dLKubE6M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mistralsolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236519AbjAZNXY (ORCPT + 99 others); Thu, 26 Jan 2023 08:23:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234330AbjAZNXU (ORCPT ); Thu, 26 Jan 2023 08:23:20 -0500 Received: from egress-ip4b.ess.de.barracuda.com (egress-ip4b.ess.de.barracuda.com [18.185.115.208]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F8E518A89 for ; Thu, 26 Jan 2023 05:23:14 -0800 (PST) Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by mx-outbound20-172.eu-central-1b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 26 Jan 2023 13:23:12 +0000 Received: by mail-pl1-f200.google.com with SMTP id z10-20020a170902ccca00b001898329db72so1080661ple.21 for ; Thu, 26 Jan 2023 05:23:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mistralsolutions.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=G6Ajtn/dXFsb1dJwxtMc9cBb7rwqzMHAM/XeIm3RbXo=; b=dLKubE6MdgWycXaqJju4vKd0/kcSXs8DRbRASh4UPjDRiySsPddsy7NQZdipi/04Rc Fi/OrdSOMfIo3bHbMl4gct77HOhlChQcv0SF5OUSZAUttB0lk+pWu4TrxA43CeRCM/Pu xcr9ZmtwKObDu6JI7c/qIN9TL0FnN2HKwugbE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=G6Ajtn/dXFsb1dJwxtMc9cBb7rwqzMHAM/XeIm3RbXo=; b=PDrIJ3h9kZISFcIhLrAPmYTDQDyt9O/Y4zMDm+YRQwhcpUxZPpFlXfQpQBWZ//fz3V yUdaSbEQC39lxLnXDH7lMKiDDCFaGWpkr+I7J1TymjB1MeH7h6sA/yOLg1KGCU8jkzmH l5TcIQbzcyWYQct5/AdboGoqN5tls1oFz5xmwBQBaqpkZ3Gm93K8YWSARBC8G/pisXlu Fpx1HEEgVXuYtQ+b0ZKOXkAqfAIO3hhp8jesvh+cMPZxCuXpJIhi5/g+cRCxjK2WdeGL aOPmgbaR9dGwyCRIXlzzSLVDs0vIg453x6VeEURrJzdySTwW8tTOyfgk6hXAMNJgm+oT /SqQ== X-Gm-Message-State: AO0yUKX/+9px7ntVOOdJNABwTeKWGMtJxSLN0l4UVe2kZbXKV9wPthhq uPx7okwLf8v4TUhexTs10L0jh4IwVwO2M5k352TKc8U4U17X6xEu9qJvMBBt5N4xSz6WKgKq/Ru ZgKqtTJ4tPhz7RTZQKyyVPjZMgIvzX7LWdgCAVi4NQ2yR8M3nD10MbJbMB0ca X-Received: by 2002:a17:902:dccc:b0:192:8cd1:5e79 with SMTP id t12-20020a170902dccc00b001928cd15e79mr1237642pll.41.1674739391263; Thu, 26 Jan 2023 05:23:11 -0800 (PST) X-Received: by 2002:a17:902:dccc:b0:192:8cd1:5e79 with SMTP id t12-20020a170902dccc00b001928cd15e79mr1237621pll.41.1674739390872; Thu, 26 Jan 2023 05:23:10 -0800 (PST) Received: from localhost.localdomain ([49.207.202.116]) by smtp.gmail.com with ESMTPSA id ix12-20020a170902f80c00b00178143a728esm946206plb.275.2023.01.26.05.23.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 05:23:10 -0800 (PST) From: Sinthu Raja X-Google-Original-From: Sinthu Raja To: Nishanth Menon , Tero Kristo , Rob Herring Cc: Vignesh Raghavendra , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sinthu Raja Subject: [PATCH] arm64: dts: ti: k3-j721s2-main: Add dts nodes for EHRPWMs Date: Thu, 26 Jan 2023 18:52:43 +0530 Message-Id: <20230126132243.15695-1-sinthu.raja@ti.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-BESS-ID: 1674739391-305292-5511-661-1 X-BESS-VER: 2019.1_20221214.2106 X-BESS-Apparent-Source-IP: 209.85.214.200 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.245721 [from cloudscan16-118.eu-central-1b.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.00 BSF_SC0_MISMATCH_TO META: Envelope rcpt doesn't match header X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS91090 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND, BSF_SC0_MISMATCH_TO X-BESS-BRTS-Status: 1 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756091892257840177?= X-GMAIL-MSGID: =?utf-8?q?1756091892257840177?= From: Sinthu Raja Add dts nodes for 6 EHRPWM instances on SoC. Disable EHRPWM nodes in the dtsi files and only enable the ones that are actually pinned out on a given board. Signed-off-by: Sinthu Raja --- arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 74 ++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi index 8915132efcc1..68f4fe85085b 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi @@ -26,6 +26,80 @@ l3cache-sram@200000 { }; }; + scm_conf: scm-conf@104000 { + compatible = "ti,j721e-system-controller", "syscon", "simple-mfd"; + reg = <0x00 0x00104000 0x00 0x18000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x00 0x00 0x00104000 0x18000>; + + ehrpwm_tbclk: clock-controller@140 { + compatible = "ti,am654-ehrpwm-tbclk", "syscon"; + reg = <0x140 0x18>; + #clock-cells = <1>; + }; + }; + + main_ehrpwm0: pwm@3000000 { + compatible = "ti,am654-ehrpwm", "ti,am3352-ehrpwm"; + #pwm-cells = <3>; + reg = <0x00 0x3000000 0x00 0x100>; + power-domains = <&k3_pds 160 TI_SCI_PD_EXCLUSIVE>; + clocks = <&ehrpwm_tbclk 0>, <&k3_clks 160 0>; + clock-names = "tbclk", "fck"; + status = "disabled"; + }; + + main_ehrpwm1: pwm@3010000 { + compatible = "ti,am654-ehrpwm", "ti,am3352-ehrpwm"; + #pwm-cells = <3>; + reg = <0x00 0x3010000 0x00 0x100>; + power-domains = <&k3_pds 161 TI_SCI_PD_EXCLUSIVE>; + clocks = <&ehrpwm_tbclk 1>, <&k3_clks 161 0>; + clock-names = "tbclk", "fck"; + status = "disabled"; + }; + + main_ehrpwm2: pwm@3020000 { + compatible = "ti,am654-ehrpwm", "ti,am3352-ehrpwm"; + #pwm-cells = <3>; + reg = <0x00 0x3020000 0x00 0x100>; + power-domains = <&k3_pds 162 TI_SCI_PD_EXCLUSIVE>; + clocks = <&ehrpwm_tbclk 2>, <&k3_clks 162 0>; + clock-names = "tbclk", "fck"; + status = "disabled"; + }; + + main_ehrpwm3: pwm@3030000 { + compatible = "ti,am654-ehrpwm", "ti,am3352-ehrpwm"; + #pwm-cells = <3>; + reg = <0x00 0x3030000 0x00 0x100>; + power-domains = <&k3_pds 163 TI_SCI_PD_EXCLUSIVE>; + clocks = <&ehrpwm_tbclk 3>, <&k3_clks 163 0>; + clock-names = "tbclk", "fck"; + status = "disabled"; + }; + + main_ehrpwm4: pwm@3040000 { + compatible = "ti,am654-ehrpwm", "ti,am3352-ehrpwm"; + #pwm-cells = <3>; + reg = <0x00 0x3040000 0x00 0x100>; + power-domains = <&k3_pds 164 TI_SCI_PD_EXCLUSIVE>; + clocks = <&ehrpwm_tbclk 4>, <&k3_clks 164 0>; + clock-names = "tbclk", "fck"; + status = "disabled"; + }; + + main_ehrpwm5: pwm@3050000 { + compatible = "ti,am654-ehrpwm", "ti,am3352-ehrpwm"; + #pwm-cells = <3>; + reg = <0x00 0x3050000 0x00 0x100>; + power-domains = <&k3_pds 165 TI_SCI_PD_EXCLUSIVE>; + clocks = <&ehrpwm_tbclk 5>, <&k3_clks 165 0>; + clock-names = "tbclk", "fck"; + status = "disabled"; + }; + gic500: interrupt-controller@1800000 { compatible = "arm,gic-v3"; #address-cells = <2>;