From patchwork Tue Feb 21 08:33:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xingyu Wu X-Patchwork-Id: 59797 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1746062wrn; Tue, 21 Feb 2023 00:34:11 -0800 (PST) X-Google-Smtp-Source: AK7set9NAXivWE5fskDy4AdS1XC3HLZS/IoXPdj3lGPsbinmPP9/cfxkjs/15FMuB5RgKiJcY9T3 X-Received: by 2002:a17:907:7288:b0:8bd:dc0:3834 with SMTP id dt8-20020a170907728800b008bd0dc03834mr13152703ejc.34.1676968451345; Tue, 21 Feb 2023 00:34:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676968451; cv=none; d=google.com; s=arc-20160816; b=FhNcS/4HzweMfbqDVG5E3l86ujVKu9oh7dn6MJ4kkcNuIfZAjLpag3I8KS1z+Jpb+f v6az9fCXwggXVwrXXyw/OZOgb4rRjULt8OYSZ5FQv03f5o+VQSUxDuh5BX4mLXNLntdI 3zornM0wwAogA9YotmASsSexQ6y+G/r4HXfo/Ke/+prOmvTKiVmHLFSmZ4TlQzNwbnqS dYrZ3YEKx5YOGGPHILPmlSEs6Kc3p51CbsrdvZoo61ivBNGZD76N3XLLgQu+LQ3bUbpV KDfnbCOh+y9SnYYkBa7icmfQ2VS0wiX5cjjCBsdtUUm0zbMX7M6a4ugRhcD52hsBXL0/ gkFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=9C/7b5cLwFbP/DRWBzERePIWuS5FYwFWmjWvnCsFT+Y=; b=gWx7oVAEzJ02tHAU7CXTLZIptkMhRf31KOXEgDnhOuThUN3GwqjK5kzn4PqIKn8ekZ FKRp42g0ScqjE+1ykvZFhiegAbmzBK63k52peR53E+X6EGj3ldxiVRWX06hnmfC+npCD KmEFXNyjNv5paox7o8xhZ03yQ2Bg4S+jcYEcT49hsN7Z5yMvWocR/m7H5kgtjJ/OU6AT sjiYzjyzL6QAxpnvZl6sLvxo/paywZANTrsJbRWyiLVn/JcVTJqbXX+tKQolTmoPa+rQ ZTYol5HBEhFp1Xo68F8pUr6KMJMKV9DhkXXGlNOrDa/byzOmyMCNiAG+ZwkLCanjg7M0 lowg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m25-20020a170906599900b008c6691eecb6si9441224ejs.235.2023.02.21.00.33.48; Tue, 21 Feb 2023 00:34:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233748AbjBUIdm convert rfc822-to-8bit (ORCPT + 99 others); Tue, 21 Feb 2023 03:33:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233735AbjBUIdk (ORCPT ); Tue, 21 Feb 2023 03:33:40 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B22F483DF; Tue, 21 Feb 2023 00:33:32 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 92A9124E208; Tue, 21 Feb 2023 16:33:31 +0800 (CST) Received: from EXMBX061.cuchost.com (172.16.6.61) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 21 Feb 2023 16:33:31 +0800 Received: from localhost.localdomain (183.27.98.67) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 21 Feb 2023 16:33:30 +0800 From: Xingyu Wu To: , , "Michael Turquette" , Stephen Boyd , Krzysztof Kozlowski , Philipp Zabel , Emil Renner Berthing CC: Rob Herring , Conor Dooley , "Paul Walmsley" , Palmer Dabbelt , Albert Ou , Hal Feng , Xingyu Wu , , Subject: [PATCH v2 02/11] reset: starfive: jh7110: Add StarFive System-Top-Group reset support Date: Tue, 21 Feb 2023 16:33:14 +0800 Message-ID: <20230221083323.302471-3-xingyu.wu@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230221083323.302471-1-xingyu.wu@starfivetech.com> References: <20230221083323.302471-1-xingyu.wu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [183.27.98.67] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX061.cuchost.com (172.16.6.61) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758428870852315374?= X-GMAIL-MSGID: =?utf-8?q?1758428870852315374?= Add auxiliary_device_id to support StarFive JH7110 System-Top-Group resets of which the auxiliary device name is "clk_starfive_jh71x0.reset-stg". Signed-off-by: Xingyu Wu --- drivers/reset/starfive/reset-starfive-jh7110.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/reset/starfive/reset-starfive-jh7110.c b/drivers/reset/starfive/reset-starfive-jh7110.c index 83577d1b7fc6..94ebb363c6bc 100644 --- a/drivers/reset/starfive/reset-starfive-jh7110.c +++ b/drivers/reset/starfive/reset-starfive-jh7110.c @@ -40,6 +40,12 @@ static const struct reset_info jh7110_aon_info = { .status_offset = 0x3C, }; +static const struct reset_info jh7110_stg_info = { + .nr_resets = JH7110_STGRST_END, + .assert_offset = 0x74, + .status_offset = 0x78, +}; + static const struct auxiliary_device_id jh7110_reset_ids[] = { { .name = "clk_starfive_jh71x0.reset-sys", @@ -49,6 +55,10 @@ static const struct auxiliary_device_id jh7110_reset_ids[] = { .name = "clk_starfive_jh71x0.reset-aon", .driver_data = (kernel_ulong_t)&jh7110_aon_info, }, + { + .name = "clk_starfive_jh71x0.reset-stg", + .driver_data = (kernel_ulong_t)&jh7110_stg_info, + }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(auxiliary, jh7110_reset_ids);