From patchwork Wed Nov 9 09:30:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Panis X-Patchwork-Id: 13037288 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 6E5BDC433FE for ; Wed, 9 Nov 2022 09:32:03 +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=Tw3KNKAMY2orv1iJWuiW70c7jACks61BE+yfW81lWw8=; b=Y9GEna9PMwka0e XIMFpNGmxVdgWn0LWJqjLIk87R+OePqrysxQUofgwgGwAIKSW+3Cbo3gT4meg8OIqCBnHj4dOPkXK lIchsAxL5P6us9wJn7Y7oWTmhqfoLnJGQJLRCfFV2ooBW0DOwFjAPCBc4WKRx9mR0e7BFJk2Ar3Rz 9ief3r3YKh6qKyLCkBbQ61lsEigvpn2Og8MvXjw8IyZxdkf6T4Es6tMb2yiGskFcA1EpW3Prd2mEY mAqIbkLu402Pvx/iXyaJt4tsnT7ZZX3NC/3aOVLn+YzKuJ1jRqNtnTu+slsOf9WvpI93KvI929HJS tx73o8Rul2eYqemZFeuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oshQB-00CJyZ-1f; Wed, 09 Nov 2022 09:30:59 +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 1oshPm-00CJlP-U4 for linux-arm-kernel@lists.infradead.org; Wed, 09 Nov 2022 09:30:37 +0000 Received: by mail-wr1-x431.google.com with SMTP id l14so24862343wrw.2 for ; Wed, 09 Nov 2022 01:30:30 -0800 (PST) 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=pLWz/etKkdRYFJ1Qa8OubzwENK5OGCzv8f4RtofetLs=; b=EvIkXa/E3Gylc3MWmsmJcm5pjIg8IJYxwcmfcZjBmnXelQELNkmWdN2Ck0CT6P93Gz 8b6+xzBMCCYP47iuKA9LvppbaQPR1by7OUxQFBIQmR0hUbWXzAyxcLa+YhgZsqd9FMy6 HccaujjukGZzQKWp01gW+Iio+FzPZg8ed/IySzFMsit7Mdo0uzj9UJ2fGgGyFXCLhY67 D046hd0HQ8sVZAPjr4m1QixjjFZVg43ZKR4pnT78MR9FhNDD7CEIINKR+2JkagV8f2iL ISu9wUpfhfuTqKw2GZZFkCNH3zp/30N44bIr/QY4JNh57PR6ups2nGpm0OIgkS7QR2Ub Tbiw== 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=pLWz/etKkdRYFJ1Qa8OubzwENK5OGCzv8f4RtofetLs=; b=NSiBA+uGEgDFKKZesiZKHE7gElSRczm35EQv/EDZTztkLZEGVfxaEaWa2g/J7vw/I/ OSzRAiXke95NACgK9dW6v3jNpBt5yOjbdUx8YQPuh/r9FFNgNOfgpmsaOayo9fHPmze+ xTIlcsVHcBrbD46pMs+kpVnv5V9qZaogDxcFbxpBi6UNofYcVPakxo1+l4HGBM7vqRQJ DUpDHKnlyr75oV85p0PVFqptP1WoeXLCAiNDcPuZaadqU3ak4AQs/USZPIDegP8gIj/2 0zs2CVq2tPMjkIQa4UWRHzllVz0V4zND9VyXKiR+HCk1YefU1z4ADmvkUyc6FzOjsWQb wg6Q== X-Gm-Message-State: ACrzQf3/lF75C4uL39ytP84gZL1l9hAfZdBgBg+Rjn8MU71xmfSdexBk WC6pNGIxBr3Fz+gdYNqaolNPAg== X-Google-Smtp-Source: AMsMyM7JlX0xONPC+nB5MASK0ugjcmZFyvp7x8KuX5+aop6TQfMNPV70vvCP3crg/nSTj56oAtWvkQ== X-Received: by 2002:adf:c5c4:0:b0:236:87bc:a8fa with SMTP id v4-20020adfc5c4000000b0023687bca8famr36777687wrg.151.1667986229834; Wed, 09 Nov 2022 01:30:29 -0800 (PST) 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 g12-20020adffc8c000000b0022cd96b3ba6sm14547919wrr.90.2022.11.09.01.30.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 01:30:29 -0800 (PST) From: Julien Panis To: nm@ti.com, vigneshr@ti.com, afd@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 v3 1/2] arm64: dts: ti: k3-am62: add watchdog nodes Date: Wed, 9 Nov 2022 10:30:25 +0100 Message-Id: <20221109093026.103790-2-jpanis@baylibre.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221109093026.103790-1-jpanis@baylibre.com> References: <20221109093026.103790-1-jpanis@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221109_013034_986721_13329F22 X-CRM114-Status: GOOD ( 10.69 ) 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 | 11 ++++++ 3 files changed, 65 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..7d5bc9dfe51d 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi @@ -38,4 +38,15 @@ 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>; + /* WKUP RTI0 is used by DM firmware */ + status = "reserved"; + }; }; From patchwork Wed Nov 9 09:30:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Panis X-Patchwork-Id: 13037285 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 45E82C433FE for ; Wed, 9 Nov 2022 09:31:41 +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=GqWaaIJwFPw+yl6HkPhJwJMRuNMMhxv1KsOsoLRr/io=; b=Y+rPLGZDIUBXjA 7FF9/UmWwrofG10mAy9llWKyZLSXJDfw+EChDBrPQsYmKTb8QQ77rjaznuJv4GTYy5BbzX+CHtskT ccg+vbt5IvdBMtOJSHZZq3FvIAGuCG8yRqWcagJ/2Kj8xjFuIMLIrHFeJB+4U3MbWomHHvpNtzFAq O7RTsNU/cEd88rUmHLyafkoSCXcT6amEg1+CGgl1irIa+BoqsHh2efQd9heZjDy9ZdmsO63ZiFBqF ZeTaPHYW/29f3JsI2iBiAUHZfxwv/4HTXBHnSl7k+cOOrImM1WgA2TJuQxqQ6hFIDdFZPKZwrP+N0 cCP/NZgYlbvN+yf+eyrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oshPp-00CJnp-2F; Wed, 09 Nov 2022 09:30:37 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oshPl-00CJll-Lu for linux-arm-kernel@lists.infradead.org; Wed, 09 Nov 2022 09:30:35 +0000 Received: by mail-wm1-x330.google.com with SMTP id 187-20020a1c02c4000000b003cf9c3f3b80so862706wmc.0 for ; Wed, 09 Nov 2022 01:30:32 -0800 (PST) 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=U+oiaRg9ab/55i5+llsM8upTgpALjLL7ge6TbqM64xg=; b=RHhGDNRzwjUu9GvsrF38Zt6cOnKGnXOnmW2bPWtOVMfrRFJF09jZRIOIRmCc0QIfz4 7IyK8Y70iYRAOfz9MqySdyrP1aDkQSfrI5KhD7OhkP4tmOVB14h4zumEscz3hRqqEBnt QJ3qVVmlrKvlvWabD6nzjxFq2dn7zwoBFOlmmTKUORVojv4iH71C1yA8QKIdiME71/qn t5MP9FZO5lKz5Wqd61R91SkRLRtbQO1IvR++HKJjbiSEEOUKJ4YxlCwNPrXCKxgQFWB+ upDrvG29rcIGIeRe/4OJ9dQPfGnAfcvkerNLkuco0IsxO+Q71E+C4pazqO/NJjlkzfgC ZPFQ== 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=U+oiaRg9ab/55i5+llsM8upTgpALjLL7ge6TbqM64xg=; b=M6Tq2VXaLRXeC01q+cmsaNNmIv1XdXMZqP/ogkdJLvcsWmgNcOBrAaHgEhB/pFxgJ3 7mjAGtRiqbjiUIErI3KKggiM+RXRqplxRMZ4vRngRRsHP16bdXWEiu6wO77wGXPSJwk8 xjwhoeT/GmAgFCR0J+VMgsOARreS3lM293HnwbFbn6jI8uGEy8O9X600XyzlylFugHwB xoghTFeJ9wUYV3hPnjhpfE9u5nH/T9GsVao2ig9WGm7jfeMVP1I98gNi4cx20I21l9AP RDSxbqPxskE4BkODKR7D+pU6d4I7sIhluHGRlFoNl8yltXUUymmJCd73QKkd5ZD+5sPq p2Mg== X-Gm-Message-State: ACrzQf3IDubyhuNee3joGcE1tRXNGC64HUg5F/E6e/umdQiwW05Rx2n3 a0Kjatlg+QV3z5jOMl+cx7MJ5A== X-Google-Smtp-Source: AMsMyM5CZJzOBieKuAmEeCCzQQ10GFMLXs4aPyOGSzVfWZwM2kf9IibD/CZi0VB1hLNqteJmscvGcQ== X-Received: by 2002:a05:600c:3107:b0:3c6:ff0a:c42 with SMTP id g7-20020a05600c310700b003c6ff0a0c42mr48554390wmo.141.1667986231447; Wed, 09 Nov 2022 01:30:31 -0800 (PST) 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 g12-20020adffc8c000000b0022cd96b3ba6sm14547919wrr.90.2022.11.09.01.30.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 01:30:30 -0800 (PST) From: Julien Panis To: nm@ti.com, vigneshr@ti.com, afd@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 v3 2/2] arm64: dts: ti: k3-am625-sk: mark MCU watchdog as reserved Date: Wed, 9 Nov 2022 10:30:26 +0100 Message-Id: <20221109093026.103790-3-jpanis@baylibre.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221109093026.103790-1-jpanis@baylibre.com> References: <20221109093026.103790-1-jpanis@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221109_013033_764561_D1F03B95 X-CRM114-Status: GOOD ( 10.37 ) 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. Signed-off-by: Julien Panis --- arch/arm64/boot/dts/ti/k3-am625-sk.dts | 5 +++++ 1 file changed, 5 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..089970b304cf 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts @@ -503,6 +503,11 @@ &main_mcan0 { status = "disabled"; }; +&mcu_rti0 { + /* MCU RTI0 is used by M4F firmware */ + status = "reserved"; +}; + &epwm0 { status = "disabled"; };