Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1566283rdb; Wed, 24 Jan 2024 22:13:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnRfrsWwteM5hL2Pnx2Gmf0pK4rrRm+9jNF4pv/oKdNeku8jb6U7zErCDoWdzTfCnydeaO X-Received: by 2002:a05:6a20:8e0c:b0:19c:6e16:fae2 with SMTP id y12-20020a056a208e0c00b0019c6e16fae2mr578889pzj.43.1706163204855; Wed, 24 Jan 2024 22:13:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706163204; cv=pass; d=google.com; s=arc-20160816; b=gH6LtW38bsElO+JBvOg0jjRa2SipEtqRdK/YvkuBWoMDvdUbHfMSRoXi3ogjx84zxj MUi58MgJLDy+YklWkTUbPe/2JmB3GyaVASkV8m20wOk7JoqnDNGGJjMiKVGJQXRj36HD tG7fY6fcEWOxv7Fjljyk2T6oH3Pvt7MRPg5SppBT7BeJdLfsUStZTi28DyY42CmjZOS8 lVP/dji7QT42mh0zXb75Z7qMf78ymsizHtKFb7QLssLBlY882aQYww+ObRBGQNqwa2sv ukKijEZ/fgJia1CDJJct0gKbnsOzXjedFNFJh5vMqgXt/ETBQ7wQiDj73E4IZ00azTOz O+7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=mXs4eXFLnV8TiKAn9u+8OI+mgIAVMlsd0Rv7wG5W1mg=; fh=bgBNrBgELgWQM/KQqq4aXvRqWC7Ex1Mbl0jz68zKo4A=; b=oMdCONhlcVFm6e1ofwJjDGvjOzrM9cBFLBiuJsLPBndXn1GMxeMYtyjaOoKAMYPkLv zVyeaz3RpoLhjN7VtKzyShj2kqyQTdaMINXKMx0kcfZCwLr/9QBmoElmcSfJbiprbRXc R0ra/pTvKJHzXHz++60Of41etibb97yGH/o1/jH/HPJXRS6hIaKxnGTWZGq8Uw5HhMgc 5FDUYlb8WOi5TsEmYe3GxqnKrULVztt1BLOkbiCn+tt5zGNPhvJjWWLO/+3LVsKYnt6m Q74FywFxhx2JHP2XMwAAC9yZ6ImgkmW8+5eVwTH8pEz0AfuRCa9DTGuLZAiSp4xqplkC 4zaw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HxfHavau; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-37998-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37998-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o12-20020a17090a744c00b0028ccfdcf75esi797074pjk.8.2024.01.24.22.13.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 22:13:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37998-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HxfHavau; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-37998-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37998-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 20137281E06 for ; Thu, 25 Jan 2024 06:11:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D92F210A18; Thu, 25 Jan 2024 06:11:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HxfHavau" Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6A271097B; Thu, 25 Jan 2024 06:11:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706163108; cv=none; b=s/ASBjs53Rlqmj9LkcUIJvCgdBuuFC97KyfwDBlgOETyNLYkjGQ+3opKln7Qc9Tmcd/Zi7Vhy680vSt4BBJw3LS6mlOGTuyAF1JZ1JwmTRwsPT4ZHolV8ycqRZFqhY3nYBVb7O6ZFBV7c+HbXyE/s4v+oeBGamw6BC5aqaf+nrI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706163108; c=relaxed/simple; bh=3MKR4/XYUSI2wrtdQulYwzqyYPi1R36yUw5pep9LgFY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=raC8BMHKmcsCO7twVDpilbnFbEZNRJQFvPL3aCx+hNMpf3Y+fEIAY/O/hCC++L9RaNkEaXPvA0JqmhbtCNUiKBUnWS83YXalOFiBxxbc3GjEJohXr7oWn+tii9ZhQiRDedDx1j53PsysNzq41ZJlTc9yx2WZ9276giq+9Zkwi/g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HxfHavau; arc=none smtp.client-ip=209.85.210.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-f53.google.com with SMTP id 46e09a7af769-6ddf1e88e51so4800103a34.0; Wed, 24 Jan 2024 22:11:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706163106; x=1706767906; darn=vger.kernel.org; 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=mXs4eXFLnV8TiKAn9u+8OI+mgIAVMlsd0Rv7wG5W1mg=; b=HxfHavauiaEcdWopTxX9mvB2J2HWOs3YlyozrykYxspgziu+IkMHCIJ33ErzrRnzm9 6nXDydU1fc7BxEP1Nald+xH+u9LGUH1hXdDcX4H0C8uzr6Ycq8q589HjfkDVmMiQLCVE z5PphFaSxEVGP4W3EFyMnmiR7GTH4NlLyHsLK/whAge7NQ38BP7Z8ZxWUFdz4/UaC9zC m+sRKPSXWOOUhE/S7uSfhhh+CysWV6hkL6nSAOC6AKGNcl22z/jtb8jpDvVVTcw2Q6nt bX6m81lmzYL7YEaPNJNKGn4+H44jTfZh/GhF5+JZgCtrad62l1b2UWSA0eL4cJ92zukD i5YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706163106; x=1706767906; 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=mXs4eXFLnV8TiKAn9u+8OI+mgIAVMlsd0Rv7wG5W1mg=; b=mxLAN9qvlA82yVBvckN8f5P07hacfOXulSD0JXG7mUtYpwHMNJcSYTGPwgy5+UYc5b 9RJnnqZjTzSL6nbWpvk/tBW4D3f2tLAfjpqv9vhBFy4HJhUrRm8uqzrB04ppYrOtq46N VWrWrYlsRItgg9p/BDzx7ix1f/+5wLJD4pEjS5cuznsrpKA0Poh0cL79b323mvSs8UFL xYwt21MUVJrnMD3EySvmV2C5BstPYpUzGLPIKWdSKd28K6MdOpEv4KXbaOIf89IsjOQF 1Tj0/8d3K9JbOpKvVBE1yfBgB21KTBYA708TKFESWbR3O5jQhgT/3Q8WQTsUu19aWJuk JfBg== X-Gm-Message-State: AOJu0YwhuFEudKwbClJiq8EUarsl1IerZ1Yu4e9hxY41bKVXNJ52P0vn G4fgJVgzCWJN929WkB6Gk2+w6gPQIoQhFsMf2cDIHZkPh2xdAWrz X-Received: by 2002:a05:6830:1cc:b0:6dc:12e9:f638 with SMTP id r12-20020a05683001cc00b006dc12e9f638mr440913ota.11.1706163105715; Wed, 24 Jan 2024 22:11:45 -0800 (PST) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id s18-20020a056830125200b006ddd602afccsm2886399otp.66.2024.01.24.22.11.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 22:11:45 -0800 (PST) From: Chen Wang To: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, krzysztof.kozlowski+dt@linaro.org, palmer@dabbelt.com, paul.walmsley@sifive.com, p.zabel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, haijiao.liu@sophgo.com, xiaoguang.xing@sophgo.com, guoren@kernel.org, jszhang@kernel.org, inochiama@outlook.com Cc: Chen Wang Subject: [PATCH v2 3/4] riscv: dts: add reset generator for Sophgo SG2042 SoC Date: Thu, 25 Jan 2024 14:11:36 +0800 Message-Id: <09cd6540365a44ba2f45062a6afd920f4f4a921f.1706161530.git.unicorn_wang@outlook.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Chen Wang Add reset generator node to device tree for SG2042. Signed-off-by: Chen Wang --- arch/riscv/boot/dts/sophgo/sg2042.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/riscv/boot/dts/sophgo/sg2042.dtsi b/arch/riscv/boot/dts/sophgo/sg2042.dtsi index 93256540d078..f59081d4f0ee 100644 --- a/arch/riscv/boot/dts/sophgo/sg2042.dtsi +++ b/arch/riscv/boot/dts/sophgo/sg2042.dtsi @@ -6,6 +6,8 @@ /dts-v1/; #include +#include + #include "sg2042-cpus.dtsi" / { @@ -311,6 +313,12 @@ intc: interrupt-controller@7090000000 { riscv,ndev = <224>; }; + rstgen: reset-controller@7030013000 { + compatible = "sophgo,sg2042-reset"; + reg = <0x00000070 0x30013000 0x00000000 0x0000000c>; + #reset-cells = <1>; + }; + uart0: serial@7040000000 { compatible = "snps,dw-apb-uart"; reg = <0x00000070 0x40000000 0x00000000 0x00001000>; -- 2.25.1