Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2186165lqt; Mon, 22 Apr 2024 04:14:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFR85Imh1Sxvuet9WnjPK5nNCtPuzzMNc/cYTbw8V82g+yC3y8gx3lnLbFleMkrDj+0D5/X66INydancbehP4CnbKiA3neI5iLll4eVA== X-Google-Smtp-Source: AGHT+IHjbzKOwykbXEuybc3FH/cDAvviIKZcTEm+g4/hpHJSmbOMuWUvDMCMcX3/YjqP+NtNdtOS X-Received: by 2002:a17:903:18e:b0:1e5:caba:7fbd with SMTP id z14-20020a170903018e00b001e5caba7fbdmr13412334plg.44.1713784473018; Mon, 22 Apr 2024 04:14:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713784473; cv=pass; d=google.com; s=arc-20160816; b=eyACr0txKxsFcqmJ7xPgJrljC0f/N+LpyT+y5B6aigpozq85DyhFJrMarrBmhNm8ZU 0a5nlEwy0q9V/a1dFrzpn3wMFUIa6rwss1XmKw8rP6A+RhMQPUOKb8POf6claTPVuM34 xPCwEctpu7EsoVe50zzVNerw2YdZg7ijuIc2nYMQiSirN9On3RLKsDDJUgDOFS/gpek9 AdyCkpl896z6Dz4UN5/dLu84+BbDy+aPK4d3gr8CcWbfOIFtXTRbBZt/HEk6SMoSMKLf opaEODMYxGi8jSU6eLotp4GfUKWwqlHsiUqgRNbH1CllkjBhMlTLWWq5IqeqX9wJlFbE rWFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=ddIGIdebtW2gue7TCwk4/lHa+5tqhAk0kFhvN6E9nEI=; fh=Q7JgSDVDguIydQ8rY76lONmI00QcVaVvyV72BkwGksA=; b=N3lsAM5h2Ch0y4JWPJYb9MdZajHhxyN/VD5R/gGMW10FCHg5Hf8HqL4gXQrSqCbD9o wRFsKuxP92LFM7lCHkX3cQwv6dFfgx98tHJY/GDcm1kUEICVev38GlAQ8Oi4oSMes+Q6 XyMd3mhodVlfOtlVRrDNFUT7vYm+1x52V1NmvtIozczYG70z4/X++7APn/1RWHrDnjTn ZSbAezWvMYlvTiOwh5LktGFfkGaSfRW8EgJvuoo9X3r0190GekunGOyty0cEQpwAgRF7 dc9hPBZ9WxPTFePGkQGXv3tveQIxYqLhoq8mOt8Su7TOJFoed1OK+3WQFxEBnfa6JMyO lxLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mDgilJIk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153268-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153268-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w5-20020a1709027b8500b001e55be7c478si7298062pll.421.2024.04.22.04.14.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 04:14:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153268-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mDgilJIk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153268-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153268-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 651BD2844B3 for ; Mon, 22 Apr 2024 11:12:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 974381474AD; Mon, 22 Apr 2024 11:12:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mDgilJIk" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 AE2C9146012; Mon, 22 Apr 2024 11:12:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713784333; cv=none; b=R1oPF3GLPgT4OPDx/GuBwwviUmkZuBEZlo6lc2peYsLmrg9z5NOvAC5imVYryv4auKa1amN8JV09eOgj/euBj6I2SVZNqsKsRtfqzZXJtuQTNVE0wf/c4/iKKhyebR/pJ35xtzZ0bVl9zI2TRCQpwMOcwCCBHZXSe0RwBCMHHMg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713784333; c=relaxed/simple; bh=jYWnCuITKVGeyc1t8hsHiTcjXug06ly8BmUw+OWZjmo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=As6ddu2sCAYBXf41a9Ky5a5sEzSjiFtYithf6VBQpdtshTusbkumdwO9hxhPLyWQwAg41osQDz8yUlhPVNtb04O7doAdhrfoj5y3HhWxjWeBQ94O7NBvCTcRJmdaScCPDhn+NU1JMFBV3F5WuA7tTQaG+dNSwgDIX7JO6YktXwQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mDgilJIk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 51CA5C2BD11; Mon, 22 Apr 2024 11:12:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713784333; bh=jYWnCuITKVGeyc1t8hsHiTcjXug06ly8BmUw+OWZjmo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=mDgilJIk0XYOo7/8ZK7h4v5of2zefwB24hE+6TydEv1oSuWBrufxIB2BekbKPsxoL xvtf8z8BnLCHa+4NurOfsPC+/vhh3z1tYJTQov28t2Ax2gSuWoGkuFZXEvbFmL1PBj wdhqCCXlIFUvF6iR20hwy3dkD+iAwpi+TfJOcDgzSQoxpdAWGC4C46CX11WXjxCuQs 2Ex0VblbXqmjMzruDZwb7wEOKt3/VuQokpquIB71PqBW1gjHPTn4K+jPCUWk3zGW+D 8b8J0GHK2rrZFxvTCPZLLaheCA6Pld9wDsn0CNKlt8DzdCgQ/FUEx6L+GOj1L2PdGz h7g8y09fWfUeA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CB3AC10F1A; Mon, 22 Apr 2024 11:12:13 +0000 (UTC) From: Kelvin Zhang via B4 Relay Date: Mon, 22 Apr 2024 19:11:44 +0800 Subject: [PATCH v2 2/3] reset: reset-meson: Add support for Amlogic T7 SoC reset controller Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240422-t7-reset-v2-2-cb82271d3296@amlogic.com> References: <20240422-t7-reset-v2-0-cb82271d3296@amlogic.com> In-Reply-To: <20240422-t7-reset-v2-0-cb82271d3296@amlogic.com> To: Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Zelong Dong , Kelvin Zhang X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713784331; l=1542; i=kelvin.zhang@amlogic.com; s=20240329; h=from:subject:message-id; bh=V9Mku9OeTyU3lnGbQaD9sh0OS9qpGjOnwcE8yjtQxFM=; b=VDZujYI/hY37dRyDX1UhtvU4NDwHA/K1jjD+Rm4uyzS+R08RTkxnMoRisdtTCSgF5kU2LT9tn Lb/NQJbYztNCbz+HGSyUwV67i0NL1aV0Q/9tbcC/+wekdfMLHnPCALG X-Developer-Key: i=kelvin.zhang@amlogic.com; a=ed25519; pk=pgnle7HTNvnNTcOoGejvtTC7BJT30HUNXfMHRRXSylI= X-Endpoint-Received: by B4 Relay for kelvin.zhang@amlogic.com/20240329 with auth_id=148 X-Original-From: Kelvin Zhang Reply-To: kelvin.zhang@amlogic.com From: Zelong Dong There are 7 sets of Reset Source in Amlogic T7 SoC reset controller, and the offset between base and level registers is 0x40. Add a new compatible string and struct meson_reset_param to support the reset controller on T7 SoC. Signed-off-by: Zelong Dong Signed-off-by: Kelvin Zhang Reviewed-by: Neil Armstrong --- drivers/reset/reset-meson.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c index f78be97898bc..1e9fca3e30e8 100644 --- a/drivers/reset/reset-meson.c +++ b/drivers/reset/reset-meson.c @@ -102,6 +102,11 @@ static const struct meson_reset_param meson_s4_param = { .level_offset = 0x40, }; +static const struct meson_reset_param t7_param = { + .reg_count = 7, + .level_offset = 0x40, +}; + static const struct of_device_id meson_reset_dt_ids[] = { { .compatible = "amlogic,meson8b-reset", .data = &meson8b_param}, { .compatible = "amlogic,meson-gxbb-reset", .data = &meson8b_param}, @@ -109,6 +114,7 @@ static const struct of_device_id meson_reset_dt_ids[] = { { .compatible = "amlogic,meson-a1-reset", .data = &meson_a1_param}, { .compatible = "amlogic,meson-s4-reset", .data = &meson_s4_param}, { .compatible = "amlogic,c3-reset", .data = &meson_s4_param}, + { .compatible = "amlogic,t7-reset", .data = &t7_param}, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, meson_reset_dt_ids); -- 2.37.1