From patchwork Mon Jul 18 12:23:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Panis X-Patchwork-Id: 12921205 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 071C6C43334 for ; Mon, 18 Jul 2022 12:28:00 +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=d9XJwEDPZ2o9ofsuaexf7TtfJBfRSdJ2EsBN70Ll3KE=; b=1zQ7m/7A1Owg+D kB/VzvHc+pHJUo3uyRwlrjwvnJqtSW/+LoTZmLCL81aMi22iVtTTsgVWBe9zYDCjjVoRPRGWXGL2p /v7Dp2Na7jkbxe2l4IdvGwnvmZvTQBh4Qg2Wm/XxzlOLHi+2fnyTXR1G1ipcrkp+9QOgVNGEqQH+q ZQCNQWiVvfasv/TigNxQvnJt+dy1OxeCT9Qhk9kD14QyDfRr+wCKqSL9y9Vr3W9I8kh43dJ06IAj4 906sd4Mq4EG6pKt6mp8cAQFzlF+wLlj4fN00/oNcA5sYbPKjYlcCkITdA/YUOzEtcoKjqsZOV12kS l0WMWBbLmDyn6afN2jGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDPpf-00DG7g-Qh; Mon, 18 Jul 2022 12:26:41 +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 1oDPml-00DDvz-8n for linux-arm-kernel@lists.infradead.org; Mon, 18 Jul 2022 12:23:41 +0000 Received: by mail-wm1-x330.google.com with SMTP id l22-20020a05600c4f1600b003a2e10c8cdeso7336255wmq.1 for ; Mon, 18 Jul 2022 05:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ayzM4tdWAxdTq2eOnCE6d3LLrIch4LIjhD1aFF0Ci5w=; b=XZRM+8LrS0cety/Lzz2poQgAE3k5Ct9J71Sm9Q/XSWRFUAWiI0CWayv7YfGHfXOlFQ CXiXe9/eshMH2Tpv1d+BaDRbqyqaXNmmvppsOs8rKecjlrjC/GqFjYGnd89hblHjPFJI D1haHigx6bBIaM6kayC7SD49BFihdLUew3zPogd8w8GaV24i7Hc6Fw0H5ZXTj3PkiheM df9XAXvplVqGTBSrAw9Y+a1wWvO2lfJAheeMnczEk562fpAtO2MKLa4taLqcXQ+qJFJd 67bCTp+DuT6aqRC/VsN4gvTTzyW1byHjwiiw9ek0zm27NRX8Pc3EaxUnPx/U6xoPcCUb HVBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ayzM4tdWAxdTq2eOnCE6d3LLrIch4LIjhD1aFF0Ci5w=; b=1PRplCjzRuzuDwZIRqVLuDXKgQn5wRIG3BCgCkFspSO57kUtckEXBH/3jEvy2EbZ1y INwVrMO1VsD9vfYshZZWWIC1K6gxp8CrkY5BvY70yPRvsAh7Xxsi5XpI1nWGuGLt5h9N yUX3mJa3cVytB1MS4kiVH3bsocLAb2iAGGjaRYcOuQEfiTd0wk+i4vQIunpwvSUv8+Gm 6Pt+KQ9vQ9eGXJZVyuSGs+tBpZ1/w8vcmG/NIPgtN4tvq8JqaKHNq3Vr6HK116woAUCm EJB++wZf85qSdeGZfYyOOR4oXOhzcaQJdiIoRsU7uT8u2ot5ZGhnHrih+w9BPp0MI4VY J9LA== X-Gm-Message-State: AJIora/73Q5/Uw7b7/GZi9I8FQ0ykBQNvjX8D0iBhNkaw7qzF1Y6Ln9M exFfGNLzqcHuGV+NiM30DmmHog== X-Google-Smtp-Source: AGRyM1voZzZlKWfCYH4VN5G3a7aKDDjOSYf5e5Yp76oUNtTbh8IdEkcqXotc6TrOUAZ45pmKMc+zXA== X-Received: by 2002:a7b:c4c8:0:b0:3a3:1b77:61bf with SMTP id g8-20020a7bc4c8000000b003a31b7761bfmr4084148wmk.92.1658147015831; Mon, 18 Jul 2022 05:23:35 -0700 (PDT) Received: from localhost.localdomain ([2a01:cb1d:77d:8cd7:da25:e091:44c6:f87f]) by smtp.gmail.com with ESMTPSA id k9-20020a5d5189000000b0021dd8e1309asm8184929wrv.75.2022.07.18.05.23.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 05:23:35 -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, Julien Panis Subject: [PATCH v1 1/2] arm64: dts: ti: k3-am62: add watchdog nodes Date: Mon, 18 Jul 2022 14:23:27 +0200 Message-Id: <20220718122328.251602-2-jpanis@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220718122328.251602-1-jpanis@baylibre.com> References: <20220718122328.251602-1-jpanis@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220718_052339_360462_849CCC92 X-CRM114-Status: GOOD ( 10.15 ) 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 5b2c210c592c..7202937618b7 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -572,4 +572,49 @@ main_mcan0: can@20701000 { interrupt-names = "int0", "int1"; 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>; + }; }; 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>; + }; };