From patchwork Thu Nov 3 18:14:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Panis X-Patchwork-Id: 13030812 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DB742C433FE for ; Thu, 3 Nov 2022 18:16:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UmZsN/wX9JVijlaI+Z0lE16WGcyyBR1ndzdC6d0f3C8=; b=ZSaxyyIumCPgAj TZZc7i+BLbY57xJhvIs6hQGetNh1sMzvsVuU6mCtIrkvGSDvMIt4oOQ3OC3y2IQeisdNLNABRCXAH sVmRh8ZnfeF2AbTzZumc21aKIsdzisjfCg+9m+u4HrLHWanSJI6Z8h0JziOt8YLTEhqfPtHN6Up4G JF5jjtHTj+pwI4GXvZjFlwMBmk/ovm5iRZbVjZSUE+TAeq09Fcn4wNvQ8lRBazb6cGjfpU6VfIbFC trkBVRHEZgi/zuDc98OxWY8gjkv4KQTKvjR5UuPRvOj+EZpDSkosRYgItm4FoOXtQrUsa/J0NGpG1 LxzwJxrg50c1oV6PtwAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqek0-001Cxx-1m; Thu, 03 Nov 2022 18:15:00 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqejm-001CtB-1f for linux-arm-kernel@lists.infradead.org; Thu, 03 Nov 2022 18:14:47 +0000 Received: by mail-wm1-x32f.google.com with SMTP id i5-20020a1c3b05000000b003cf47dcd316so3924985wma.4 for ; Thu, 03 Nov 2022 11:14:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gpWkdxUe4lkq+ssLF6RjxVO7r2F+0rfvCYX5i/7pnv8=; b=pQ7icVZZVpaKZBpDM7CnZUN2NFuwCgKUP487ZR6s1hC9c9p83rb0/NwpjmKwOmQNba ZmxHLWmO7HWbEsWkMPXDl9PUuxspiHDQ4/6K9z0r+5+mBJfk68G/8m4FLwSpOZ5hcqn+ PHIb1shU/+ggQPgi3Idn3lGTOL3jwbesowvfBwsetHBnRMrCk1xjMKvYIldcaEJi5FrH 61QSBXGQOUuRBhC2NoRseSooFtkwlZoqZPo2N2tSewvSWrdb0ro7TIg8Co6b6PQnM5cX iCKdryzsN5RkRr94hV3VB90VuOQjIrWGZy5UiLU+gzw/c13S60dC3Q1nYJJcwje8UiwW ZaiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gpWkdxUe4lkq+ssLF6RjxVO7r2F+0rfvCYX5i/7pnv8=; b=cBY2KP+eCT6v63cb/xn4mip/5p9Ofv1z04SbX4025iVgfmNPDnuhPS5yDpx6L1AKXK ZB03QGV/dGHlaC4FCHexWDYJOT+d8VEPZKPIHqQMi5TaPg+nv7qHsnOAxLVT6pGJSjz/ beFp/aAlcOfpWHSJcRTSU15c2gsDmVcn89JzzPwISia8kk0LkEQ0prP/fdf/s/pODe35 J9fsHQgLXDsFQ3LtGKcJKx0wafUWMU/RVjqbZJkTW785Y5PccpIuB4fzXJjqBPnZfe0o T57ot8DokV+rVUa/TTNySlL1o4dXXq6Uq62b1vp+lWdO34392iVDtuGZoJiuT1Nz4Qbt 1F4Q== X-Gm-Message-State: ACrzQf32mF31B4o7u+G0C/2xtfSv04w9mLwOaNN/hequhBkxFdDDTvZf 089SdUEKlseWi8eGeqCz5/UkKlUae+8KaA== X-Google-Smtp-Source: AMsMyM6Dlg+6MyWEJenu9b6cXcpqx/uWksNoEfL5vwliylACxNYieSQiRpmky/X9UFOi5JgiHiCp1g== X-Received: by 2002:a7b:c398:0:b0:3c7:87f:3b48 with SMTP id s24-20020a7bc398000000b003c7087f3b48mr20787901wmj.65.1667499283930; Thu, 03 Nov 2022 11:14:43 -0700 (PDT) Received: from baylibre-ThinkPad-T14s-Gen-2i.. (254.31.102.84.rev.sfr.net. [84.102.31.254]) by smtp.gmail.com with ESMTPSA id h19-20020a1ccc13000000b003b49ab8ff53sm639212wmb.8.2022.11.03.11.14.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 11:14:43 -0700 (PDT) From: Julien Panis To: nm@ti.com, vigneshr@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] arm64: dts: ti: k3-am62: add watchdog nodes Date: Thu, 3 Nov 2022 19:14:39 +0100 Message-Id: <20221103181440.232727-2-jpanis@baylibre.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221103181440.232727-1-jpanis@baylibre.com> References: <20221103181440.232727-1-jpanis@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221103_111446_105198_8EFFFDEA X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add nodes for watchdogs : - 5 in main domain - 1 in MCU domain - 1 in wakeup domain Signed-off-by: Julien Panis --- arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 45 ++++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi | 9 +++++ arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi | 9 +++++ 3 files changed, 63 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi index 03660476364f..fb8480d7cf76 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -591,6 +591,51 @@ main_mcan0: can@20701000 { bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; }; + main_rti0: watchdog@e000000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x0e000000 0x00 0x100>; + clocks = <&k3_clks 125 0>; + power-domains = <&k3_pds 125 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 125 0>; + assigned-clock-parents = <&k3_clks 125 2>; + }; + + main_rti1: watchdog@e010000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x0e010000 0x00 0x100>; + clocks = <&k3_clks 126 0>; + power-domains = <&k3_pds 126 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 126 0>; + assigned-clock-parents = <&k3_clks 126 2>; + }; + + main_rti2: watchdog@e020000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x0e020000 0x00 0x100>; + clocks = <&k3_clks 127 0>; + power-domains = <&k3_pds 127 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 127 0>; + assigned-clock-parents = <&k3_clks 127 2>; + }; + + main_rti3: watchdog@e030000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x0e030000 0x00 0x100>; + clocks = <&k3_clks 128 0>; + power-domains = <&k3_pds 128 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 128 0>; + assigned-clock-parents = <&k3_clks 128 2>; + }; + + main_rti15: watchdog@e0f0000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x0e0f0000 0x00 0x100>; + clocks = <&k3_clks 130 0>; + power-domains = <&k3_pds 130 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 130 0>; + assigned-clock-parents = <&k3_clks 130 2>; + }; + epwm0: pwm@23000000 { compatible = "ti,am64-epwm", "ti,am3352-ehrpwm"; #pwm-cells = <3>; diff --git a/arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi b/arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi index f56c803560f2..f82e94def774 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi @@ -81,4 +81,13 @@ mcu_gpio0: gpio@4201000 { clocks = <&k3_clks 79 0>; clock-names = "gpio"; }; + + mcu_rti0: watchdog@4880000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x04880000 0x00 0x100>; + clocks = <&k3_clks 131 0>; + power-domains = <&k3_pds 131 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 131 0>; + assigned-clock-parents = <&k3_clks 131 2>; + }; }; diff --git a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi index 4090134676cf..3c95ac3a0dd5 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi @@ -38,4 +38,13 @@ wkup_i2c0: i2c@2b200000 { clocks = <&k3_clks 107 4>; clock-names = "fck"; }; + + wkup_rti0: watchdog@2b000000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x2b000000 0x00 0x100>; + clocks = <&k3_clks 132 0>; + power-domains = <&k3_pds 132 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 132 0>; + assigned-clock-parents = <&k3_clks 132 2>; + }; }; From patchwork Thu Nov 3 18:14:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Panis X-Patchwork-Id: 13030813 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 88BF0C4332F for ; Thu, 3 Nov 2022 18:16:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=y32guF3EW8STCsPfcDl0PnyWzPZMxJKRSv2Uni0ryos=; b=PcLtlRyX15sqsX 9CYHZ0w9NjYnVigPYiFwGVnEQoC5YFkwJTHa1+tTuv6whhpBcmrZ7RwSGsYJ5snMvoCgKPYgngJvt W4RPxQ3jwPKUBwTVJUByd7sY//ocpZaqFzaaZYFRm4cPT0SJtMeIWWwpoHEy5nvvHNAsoupTR/vSy RVLS9ucnsWG6sMtovY6QlcmYr7XXbtaAwXjEw/Y9jqtDBLU5yM6Tsgya9ZKXVgY/YCbhLzWb2nfCc TBo5KcdPOrm6ewZwUvHVL8+WiqndgoB1qjDbf4guu/vmtVSVJtctlgLriqVg0z8U0SQe9nkOF84dF ov1C+Eu2absPG61aNYDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqek9-001D1Q-PY; Thu, 03 Nov 2022 18:15:09 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqejo-001Ctc-6p for linux-arm-kernel@lists.infradead.org; Thu, 03 Nov 2022 18:14:49 +0000 Received: by mail-wr1-x431.google.com with SMTP id cl5so3970011wrb.9 for ; Thu, 03 Nov 2022 11:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=K6hhL5GxIS1yjY3POlwZsM8aoTUAuZ47cuFDJDrJL5Y=; b=KpECKZWYr1Pfkjds8bjb14vOksU3z4OFIaWUS0p8CgPz9tnAlQ5u+VaGM4m+hnipXP +hWlvVPAHijvGM7YZ6YWBowC+cEvoZNtTSHW+yBNifNaucSY3WsqkL3gqjFIu9usrTyA IVUmmuE1XBmCQeLQIUogyiR5jHlRt51TwAMYGIQGE9VTvJzCdqQcxujbYP33uj+qp9rv F/DVBc0VUnFLgMYzd9c474MtIuW6+f8ZgLI0BNnJ6Kge2rthtmecwlWRc0+v/9QcCc94 rBBFoWCw2uxx3OvvG2qHwGCaoBQO1/+Iyq0xOzasKULxm1k4f9BjiqdkS1BShUZBAajI AF/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K6hhL5GxIS1yjY3POlwZsM8aoTUAuZ47cuFDJDrJL5Y=; b=px62pza+30RbqXGJ6ijpJZdQeOd5rhwcF3n9aXcB3DVceIHEIHQ5nRI/rYgeL7KYB3 FQWFB6oSKS8hIu39e1uqbEvYRQmCgHOMfcN3q3g4z4NVKg+y9K/kEBIAVR7WDq7H/N/6 lDWZE2ejM/ma2h5HLr1GZ70g4J5Q6SEof5vFSg9B1N3mgpQis+c84kgWNONEokJFonhh f0NToSvGvHKFizoJG0bJfsT8CDjs7b0MejGZ04DrgO9tbNxYKvSlBwt0jx9wYojlIygX gOerss/svOtMlfQbhHYUTj3TLNl1woysmHEq32gcmE6IHY/eI5vzQdw1870VmG3aPhpd 0c3Q== X-Gm-Message-State: ACrzQf1XXwodEbHQ2v4G96YTCeGimMxhHTvaPSgB4e8Zz7iy1WK6cduA QWdil2Notv3ZUBbQu7NwkpptxOnw2Xodkg== X-Google-Smtp-Source: AMsMyM6A59P+5L8H/5onl312fdenxAsd5yNZGji1De+dfUTDdzY/4joKhPo61XSLfkZn6+IZBMhOtw== X-Received: by 2002:adf:d1ec:0:b0:236:880f:2adf with SMTP id g12-20020adfd1ec000000b00236880f2adfmr20021410wrd.617.1667499285227; Thu, 03 Nov 2022 11:14:45 -0700 (PDT) Received: from baylibre-ThinkPad-T14s-Gen-2i.. (254.31.102.84.rev.sfr.net. [84.102.31.254]) by smtp.gmail.com with ESMTPSA id h19-20020a1ccc13000000b003b49ab8ff53sm639212wmb.8.2022.11.03.11.14.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 11:14:44 -0700 (PDT) From: Julien Panis To: nm@ti.com, vigneshr@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] arm64: dts: ti: k3-am625-sk: mark MCU and WKUP watchdogs as reserved Date: Thu, 3 Nov 2022 19:14:40 +0100 Message-Id: <20221103181440.232727-3-jpanis@baylibre.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221103181440.232727-1-jpanis@baylibre.com> References: <20221103181440.232727-1-jpanis@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221103_111448_273953_A8371B4A X-CRM114-Status: UNSURE ( 9.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org MCU wdt is typically used by M4F. Wake up wdt is typically used by DM (R5) firmware. Signed-off-by: Julien Panis --- arch/arm64/boot/dts/ti/k3-am625-sk.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts index 93a5f0817efc..9ade591ef563 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts @@ -503,6 +503,16 @@ &main_mcan0 { status = "disabled"; }; +&mcu_rti0 { + /* MCU RTI0 is used by M4F firmware */ + status = "reserved"; +}; + +&wkup_rti0 { + /* WKUP RTI0 is used by DM firmware */ + status = "reserved"; +}; + &epwm0 { status = "disabled"; };