Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp130029rdb; Thu, 25 Jan 2024 10:10:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHM1VdJ7zICx5z7ywzK++SmjCkt/F8GMbMn1PSKv15MDub0yphX5mF0Zgqr+jn1zA58+ATD X-Received: by 2002:a17:90a:8a18:b0:28e:7935:d5c5 with SMTP id w24-20020a17090a8a1800b0028e7935d5c5mr1200397pjn.99.1706206233412; Thu, 25 Jan 2024 10:10:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706206233; cv=pass; d=google.com; s=arc-20160816; b=v1DaMBDJda31zJp5sbeyx+Sav+w6Hw7X6nAiVH+6PtRzbfMqSriD0l3ivE2YHtRTT5 JQm3Jp6oMVpvpRJXugBAQAS6cM+rvFVYBVGyyjNIeYgvHwjvp0wtluWC2OJFRdXBRFO+ rPtqriXLcULdkfu0VGuDFf7Fy1jhKfBVVwI6W12Rb+/UHkdsgsHxXfgqV+LTJ18ld3Jl +aiQu629LCHpCg9zkJX9WA8X0Cq48k6ZtR5cB7X2Kc677nHFbRbjiK1L3RyuuTfLHTLQ 7BEqDkcI7hjCW5cMO66VxSLdggK5OPNdeNVsvrVRNudm4/O0M4wp0RZVlwIMwVNl0RkA 6x/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:from :dkim-signature; bh=ayub+31DU82NBlOvVCPDnf32wdKHrULJJXVRXXuuL9c=; fh=KZb2efZKdFRKMebIgHmTrtqFQo5g6F6RT9JQ9ML9QLs=; b=Ort+I8Om7TatIHhSBIaJQlEwZY6MFpi/0fAQ7eLPkPstsLl466IfW4Wbt5xDVB/Jrv O7E/zirwO+jnDbLbCQIRYFwaVPUn5NgCFJgHpazMyKpfDo3ra0CtwzEnDw4LZs3PKVNM MExzW8ygv5rVI66Pg04J4X9lSiyk7BOevC5ZgAPR8d/N9OLpJOi031A6ejJW8Ea9Sn0+ YZiaDb8QcARSt/kKx5vcI6hN7ybrUcMPUJACZcPPaI1Q6XXu2LDfDMD3i3xTFGd1dpv6 eHytOZGpQH7GXIBQKjEIAK3fXITNahZQCbgl7ZD4P8UIB2wOheB1Ao/SZfZ8g9B+V9Oh X3+w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=PYoziZdM; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-39069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39069-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id ei4-20020a17090ae54400b00290664c13f8si1663083pjb.126.2024.01.25.10.10.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 10:10:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=PYoziZdM; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-39069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39069-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A7269B20FA2 for ; Thu, 25 Jan 2024 18:04:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74F59133986; Thu, 25 Jan 2024 18:04:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="PYoziZdM" Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (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 61630133426 for ; Thu, 25 Jan 2024 18:04:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.188.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706205866; cv=none; b=fkn3pj3nYN77vxUazVNRUoYW69pSLtxHCM+qLTuPRk6Jyv1c4AVuBTVpcdZf6BjbQ8s4AKp/kaq3crnKqedWE19IQ6TL8Amqf5r4jzcZj+XMonF0L0qzEqq8g2LfmlQycwy2nSf6OxNV0XB50+ZJ+/Almf0fwPOM7n/YojePxX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706205866; c=relaxed/simple; bh=jNa8Tk4jMsQxNpLS5wzZjgSt9rxUGQ9AVXYhYCuvYYc=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=NJ6DxxYqdh8j0d8vDPbMyOYLE/G3Zfv7pnHCF6oInbjYK64v7S9ewhp1CHui0zTfBfO2HwUGwDDT9iZz847z0xIrT7D/8NjDfrBfZ1CMRQMtBLTrKNw2nG907ze/DgVIrdIihKNcSMdYIM4yydKkwRQuZWsGQtgZhc4OTih9q58= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com; spf=pass smtp.mailfrom=canonical.com; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b=PYoziZdM; arc=none smtp.client-ip=185.125.188.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 1AD583F278 for ; Thu, 25 Jan 2024 18:04:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1706205856; bh=ayub+31DU82NBlOvVCPDnf32wdKHrULJJXVRXXuuL9c=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=PYoziZdM51JoXq0hr52HJCcRvUJmo6e5IOCNgetRKw8xU/bOlLtuz5JK+RbYJHF8P Gbn8XOlDNnkhjbLQNUe4FROrj/gCP+lv+3ZKLfv6qhN1Oslg83UkfLkft6yNwvXCX6 QF4/n7jZ0z6hp1iNY5tE4DBq84BPSmVcFzEhe3pqvvtqYH7AM+vA91v8PZPnY6dtF5 Vt90NZO6jvSin4y5d1v15akjIYijRiHhS68LWEXmkzQJb9rnUz55/SbfRE2AlueIDV 8VqrvUUXL/ajQtOFjIg7RkGvRl57Ffk7fbGdJHPG3ns5hbo13Gj1MZCWMruWK6TDuK O4S/TmmGmihqQ== Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-42a3e4e9155so75344991cf.1 for ; Thu, 25 Jan 2024 10:04:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706205855; x=1706810655; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ayub+31DU82NBlOvVCPDnf32wdKHrULJJXVRXXuuL9c=; b=v9pDgt1voEgcVnluvn1OgPDvBWnzbikr39MNRdFZPK4UZ1mg+VbStRgOycOTVUkXde dF7ujZrZicOcRailRJOH9mXlqV21QN+BQCM83Dvh6SkHgPG/eq4wZnj+pQrQhQT0xzSP DfyihYS19mqcDQdcJOCIcuN/vrshv2GhlqbruKHchhQp+noQ5hoAe2bJi6ZVA3oa+Vmu jU6wd0Wu0TWTqA3YCq3cF4QYpV43hbLw6FhJOSTMSolv6SQt/p/0nWBoBwVc1IEPly9u hVkd5aDsbonZiS2u2ImfBgO6FslL7GGDiCR6quoUddR5+QHqg03a/ktu0/yJaBg6nkHR muyg== X-Gm-Message-State: AOJu0YzC99kia/RT+xvoWV34B2tQGfQWl6Xm1zlB8v/uw8/iVKkAYVzh CCNhQyWl6C7lMGtbzG0os5P9fa5OIb2wRbwEeHpCfJHTWbQGJ5ihJmVJTF7NH+vwFUj3szLzvJo s4VwFEKKgziyx8Qmje8XhVgeMhCQf275oeJ+vKcvPdI1ComKXCwxK1waw1nbfpjlmXF3iZ3jYHO HCueyPesn2fHBnzdrLg1UZsaCnTE8YjxyAV2NZm77EtigABgly2Oq1 X-Received: by 2002:a05:622a:1a9a:b0:42a:39ef:e699 with SMTP id s26-20020a05622a1a9a00b0042a39efe699mr40100qtc.96.1706205855075; Thu, 25 Jan 2024 10:04:15 -0800 (PST) X-Received: by 2002:a05:622a:1a9a:b0:42a:39ef:e699 with SMTP id s26-20020a05622a1a9a00b0042a39efe699mr40078qtc.96.1706205854721; Thu, 25 Jan 2024 10:04:14 -0800 (PST) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Thu, 25 Jan 2024 10:04:14 -0800 From: Emil Renner Berthing In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Date: Thu, 25 Jan 2024 10:04:14 -0800 Message-ID: Subject: Re: [PATCH v2] riscv: dts: sophgo: add watchdog dt node for CV1800 To: AnnanLiu , chao.wei@sophgo.com, unicorn_wang@outlook.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" AnnanLiu wrote: > Add the watchdog device tree node to cv1800 SoC. > > Signed-off-by: AnnanLiu > --- > This patch depends on the clk driver and reset driver. > Clk driver link: > https://lore.kernel.org/all/IA1PR20MB49539CDAD9A268CBF6CA184BBB9FA@IA1PR20MB4953.namprd20.prod.outlook.com/ > Reset driver link: > https://lore.kernel.org/all/20231113005503.2423-1-jszhang@kernel.org/ > > Changes since v1: > - Change the name of the watchdog from watchdog0 to watchdog. > - Change the status of watchdog. > v1 link: > https://lore.kernel.org/all/DM6PR20MB23160B8499CC2BFDAE6FCACDAB9EA@DM6PR20MB2316.namprd20.prod.outlook.com/ > > > arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts | 4 ++++ > arch/riscv/boot/dts/sophgo/cv1800b.dtsi | 16 ++++++++++++++++ > 2 files changed, 20 insertions(+) > > diff --git a/arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts b/arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts > index 3af9e34b3bc7..75469161bfff 100644 > --- a/arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts > +++ b/arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts > @@ -36,3 +36,7 @@ &osc { > &uart0 { > status = "okay"; > }; > + > +&watchdog { > + status = "okay"; > +}; > diff --git a/arch/riscv/boot/dts/sophgo/cv1800b.dtsi b/arch/riscv/boot/dts/sophgo/cv1800b.dtsi > index aec6401a467b..03ca32cd37b6 100644 > --- a/arch/riscv/boot/dts/sophgo/cv1800b.dtsi > +++ b/arch/riscv/boot/dts/sophgo/cv1800b.dtsi > @@ -1,6 +1,7 @@ > // SPDX-License-Identifier: (GPL-2.0 OR MIT) > /* > * Copyright (C) 2023 Jisheng Zhang > + * Copyright (C) 2024 Annan Liu > */ > > #include > @@ -103,6 +104,21 @@ uart4: serial@41c0000 { > status = "disabled"; > }; > > + watchdog: watchdog@3010000{ > + compatible = "snps,dw-wdt"; > + reg = <0x3010000 0x100>; > + interrupts = <58 IRQ_TYPE_LEVEL_HIGH>; > + clocks = <&pclk>; > + resets = <&rst RST_WDT>; > + status = "disabled"; > + }; Before this patch the nodes seems to be ordered by their address. This patch breaks that. > + > + pclk: pclk { > + #clock-cells = <0>; > + compatible = "fixed-clock"; > + clock-frequency = <25000000>; > + }; > + > plic: interrupt-controller@70000000 { > compatible = "sophgo,cv1800b-plic", "thead,c900-plic"; > reg = <0x70000000 0x4000000>; > -- > 2.34.1 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv