Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp741447rdb; Mon, 29 Jan 2024 17:49:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IGr0ynCEaIk8T+O8Oh8MvDY+xYqnM0gvtdttq9zESa+3MTyr0VQBIKyj8A9Bvrgi+7aUFop X-Received: by 2002:a05:620a:4482:b0:784:4e1:adc6 with SMTP id x2-20020a05620a448200b0078404e1adc6mr2001965qkp.65.1706579383367; Mon, 29 Jan 2024 17:49:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706579383; cv=pass; d=google.com; s=arc-20160816; b=FAwzXj/1yMl9Ms4kPHoxG2fNWnF9dEr2Uh7iIcNDURUoG7aA/RjX/2GRzu+OH9t2+V IWofEP6KxfCejiOP3bFXEk3rFb6VPH8ZtDRq4cPrnFsXNmOcU0QlgF0DQfaSC2nAs6RV d9xlpvy4w7cj+uzocDgecbZ92rBUq6EfHAoOwSZ8REFcRsmv7+GRceFd2XUri/LD8CWq PaEXWEXN32aELJ8OzPDnUkDlpOYZ7BYtSvy3Ttp0B1qylWkGgsJSR/8eGMK8R5O/v8np Ez0lPSeBtI8VNhgu2jJZwlvNlyHVxivNn1Q5wZlraz0iKvUys0LqRcIcA1GT1vpHr3pA ZnRA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=YeHqdcQaLpP97ddnNdRPtp8biGTA9rsSvXwVDndOucU=; fh=bgBNrBgELgWQM/KQqq4aXvRqWC7Ex1Mbl0jz68zKo4A=; b=pPYyLuaVyONjUtRtlNuBIhNHeWBF2kqzV07qCtvXrpJIIr3ZI8DAl/I2O2/F5bVAfi 9DZDkPgNnhCir5ORZFtBnlw5dxkWajst3FMAFTh/hs346lGQYNJ3Tnjhcnm0kXnSQPiH ehK6TpAv2pR9Wgk9QVIyIAVvrtFsxy6k13R3FHWpxNOUSzO3C2ASzu1p2nArp3Sm0xks BA/1/oTY7EaCcNUcb/9/jwmuWV2UXqWI/YjhVlXr2QZ+HLlDh3nhocE7pCFikbn+M8bi dYTU++U3/UgRw+1Vk+wbfzH/cv++6lJHy7BHuWwmyyrw5W4WK0kq3NFIaOEYruDhgq1X uQWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jEgCiaU5; 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-43765-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x5-20020a05620a448500b00783f53a5503si5805007qkp.766.2024.01.29.17.49.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 17:49:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43765-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jEgCiaU5; 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-43765-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43765-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 222211C242FA for ; Tue, 30 Jan 2024 01:49:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 034CB364A1; Tue, 30 Jan 2024 01:49:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jEgCiaU5" Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) (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 B67A436119; Tue, 30 Jan 2024 01:49:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706579376; cv=none; b=Lv3O3c9+eoTwtpa9MoXRS13sZIV/uoflJWdTB7eXVa+gQuo6Zoek5wMFryct9Xpg5oxA0Tp81KPSEkSyLaR16w2n4GFIDSB0xlfZKaBf5aaYGUBEM2QMiPvk9GkIEKTONXJI/IxGxBad/IveUk+9aN64w/CPde2VNAE39ox7HR0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706579376; c=relaxed/simple; bh=Das3/PJSuhF39HibmKn1WTovHbDU7/BnIv203V4wU0Q=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=HRVrpp3tOZUdWvWdF1okrD0t6tdlLh0BlvFPEdwfyFUpUKmaN/YOiFRjER7CRdnNwmGO0ZY7JlTE0Jw3IYJDaatKZqZq1f3zQuxECmOUL1/65PUv9ePMwlH3swZVA2cT/4mr1C4yHXJ7iITJd36FId38aRI9dThmxEx9uWQRA5A= 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=jEgCiaU5; arc=none smtp.client-ip=209.85.210.52 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-f52.google.com with SMTP id 46e09a7af769-6e118b528aeso842914a34.1; Mon, 29 Jan 2024 17:49:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706579374; x=1707184174; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YeHqdcQaLpP97ddnNdRPtp8biGTA9rsSvXwVDndOucU=; b=jEgCiaU520kFPT2awPFEmmlxeFtNIfLxLOxvGVDv3wSrSf6vHbJwSNynqh+n8zb9J5 z/H5oL6pctNz4gjZV6wik6o6rvbp2qBiZiIjE1WcEB2Pyz8lo4vsQWNyUj9JQLKDKIlr vJ1jTt5tACdLR/ZIVKKDC2MhTzDbNvD5UZljobPeHVdyvx+nWgFrIRQWDP196Ywq/NwV xbyOlNq5MUXnjIHu+KytsNH3KD/+xDh0mEBW+XKc9jWhNwgwxg61V+el9kC8DpMzdftX YyoGDTOFqwsNUsxT+rS4/VGuGkAfbSZ2l40XVGKrZ+YdEOgY9hY9nbDXUP1Ayvr7bt6q zcbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706579374; x=1707184174; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YeHqdcQaLpP97ddnNdRPtp8biGTA9rsSvXwVDndOucU=; b=fX6w9iV0GzsTf6QTZE813iO+xYMun6ihlyUOWDZpnhezDdmNIj/vvmC/hgWnwDqpqQ fVweXKUAyxEKTAr2fXlPf0U5YTUnYAHNrIx5xob9oZvBlRanuy8YaQID7iDqIhU2CnGI C0IxJG4QR5FQ91vrNuXW0dA6+T3Vf8hldKt6aaTe0tOiqaxgmSSK2BpJ5n+yHTkJy0BS M55jndukoIwL9tBturjj3EyWlVb6jRyA0x57NRc361eOchYqj3TGSN9qXExG7iQflKxv MVdfS2i13+fpe0XOklttNGoaP9oWYkzYw295+GzOcbXzhmTsMxx8E7JzyGZ7zvasv2My 03yQ== X-Gm-Message-State: AOJu0Yzyu57sZFN7xKDtgbigZvTBv/othqb+FnbaON3PRxck7gWkx9NC bGZb7HZ4GCU0P3DY9WQikm01IUm9Csnmzxb/Mza/Kr9osqAI/tcZ X-Received: by 2002:a9d:6a4d:0:b0:6dd:e9e2:de67 with SMTP id h13-20020a9d6a4d000000b006dde9e2de67mr6253354otn.20.1706579373627; Mon, 29 Jan 2024 17:49:33 -0800 (PST) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id f10-20020a4ad80a000000b0059610f4de98sm1292156oov.41.2024.01.29.17.49.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 17:49:33 -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 v3 0/4] riscv: sophgo: add reset support for SG2042 Date: Tue, 30 Jan 2024 09:49:08 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 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 This series adds reset controller support for Sophgo SG2042 using reset-simple driver. Thanks, Chen --- Changes in v3: This patch series is based on v6.8-rc2, which has included the missed patch I mentioned in v2. - As suggested by Philipp, drop the Kconfig for SG2042, just add a default y if ARCH_SOPHGO to RESET_SIMPLE. Changes in v2: This patch series is based on v6.8-rc1. You can simply review or test the patches at the link [3]. - fixed some minor formatting issues. Note that if you need to pass dtb check, you need to apply a patch. This patch is missing in v6.8-rc1. For details, please see [2]. Changes in v1: The patch series is based on v6.7. You can simply review or test the patches at the link [1]. Link: https://lore.kernel.org/linux-riscv/cover.1704790558.git.unicorn_wang@outlook.com/ [1] Link: https://lore.kernel.org/linux-riscv/MA0P287MB28228572C526C5099A8BDA2DFE7B2@MA0P287MB2822.INDP287.PROD.OUTLOOK.COM/T/#u [2] Link: https://lore.kernel.org/linux-riscv/cover.1706161530.git.unicorn_wang@outlook.com/ [3] --- Chen Wang (4): dt-bindings: reset: sophgo: support SG2042 reset: simple: add support for Sophgo SG2042 riscv: dts: add reset generator for Sophgo SG2042 SoC riscv: dts: add resets property for uart node .../bindings/reset/sophgo,sg2042-reset.yaml | 35 ++++++++ arch/riscv/boot/dts/sophgo/sg2042.dtsi | 9 ++ drivers/reset/Kconfig | 3 +- drivers/reset/reset-simple.c | 2 + .../dt-bindings/reset/sophgo,sg2042-reset.h | 87 +++++++++++++++++++ 5 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/reset/sophgo,sg2042-reset.yaml create mode 100644 include/dt-bindings/reset/sophgo,sg2042-reset.h base-commit: 41bccc98fb7931d63d03f326a746ac4d429c1dd3 -- 2.25.1