From patchwork Fri Jan 20 02:44:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xingyu Wu X-Patchwork-Id: 46100 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp664609wrn; Thu, 19 Jan 2023 18:46:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXsrtUcDPZbztFhRskG+RcYzciqChAfjLEhkBka9EzRmC+qPj48/pc8yeIajjC7h6f6bEejO X-Received: by 2002:a17:907:d685:b0:86e:a761:c5ba with SMTP id wf5-20020a170907d68500b0086ea761c5bamr15034492ejc.37.1674182789933; Thu, 19 Jan 2023 18:46:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674182789; cv=none; d=google.com; s=arc-20160816; b=izNhd6ViquLE13eqsds2+v+zS8ywlm4ypvgk8OVT3sitvbjW2YyxwT8pAq8A2SASz5 WpMiTm1ApyYCvkVBPLBtvcT2ZMejBK64076jQRSuvr8LSYkoTCVi2XOQO5g56l78O/Ab bmEh9u/AosFxz6c3ryWnY+YAB33mIvDupoIYpVArlKw+w/abcUzrTqPBfz+mzQ3+UNPJ zsGOIx1txaPRh+CtmoKGJ2e0I2ofYOeS2jzUMrpezeGu7cGZcknsdKGBWd398FCC+BE+ NuHXzumGb9ruj9rMGtGL3W0rzLv+b2IC4FhgGrZjavTgAKcVBown4nu+291XVXWPpIBH SREg== 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=Q96Nc8RG5qSuYWVJX3D3IPe4ScFjV5B8AlNr54M+a0I=; b=bDshu33M4Mw2FSLa6A0l4HQfBo+vyf1gcG7BYetj4c1bzLtTmhD0a8M+xgxJBzzLZ5 mkzMAoTVooNKrPA1FYT1CaJul18lRKaUudlEnhlrD22i25s2GJ9a4o+cd+zXgv42pBTb J/aVKfhFxMG56g8Y/0ZvwMhQhV1JvXdtxQVlhwfEOIrAmsp2unE76uXZy6Oov4sG1IDe ZUOoGCUNp3cQRctQlRfbEPtsT7W3e9YfhFVCQ20YlJ1alz50ZC3uT9KjXLR9y/Sv6g+d tSnUzYuEK4fW7lpgHo1kXiPl0HDSFinseCXdzmCiDruCVKc4MN/SXwyOOEMVi2zXweL4 Qqvg== 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 ww2-20020a170907084200b007c0db556798si44936062ejb.994.2023.01.19.18.46.06; Thu, 19 Jan 2023 18:46:29 -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 S229992AbjATCpW convert rfc822-to-8bit (ORCPT + 99 others); Thu, 19 Jan 2023 21:45:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbjATCoz (ORCPT ); Thu, 19 Jan 2023 21:44:55 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 688DDA19A4; Thu, 19 Jan 2023 18:44:54 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 358A324DC7D; Fri, 20 Jan 2023 10:44:48 +0800 (CST) Received: from EXMBX161.cuchost.com (172.16.6.71) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 20 Jan 2023 10:44:48 +0800 Received: from localhost.localdomain (113.72.144.40) by EXMBX161.cuchost.com (172.16.6.71) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 20 Jan 2023 10:44:47 +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 v1 02/11] reset: starfive: jh7110: Add StarFive System-Top-Group reset support Date: Fri, 20 Jan 2023 10:44:36 +0800 Message-ID: <20230120024445.244345-3-xingyu.wu@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230120024445.244345-1-xingyu.wu@starfivetech.com> References: <20230120024445.244345-1-xingyu.wu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [113.72.144.40] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX161.cuchost.com (172.16.6.71) 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?1755507893224005582?= X-GMAIL-MSGID: =?utf-8?q?1755507893224005582?= 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 74bbc79f86af..580ec4ed055b 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);