Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2019355rwb; Thu, 19 Jan 2023 19:34:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXuP5PAWeeTR+rhI75bCteh+SUk5zWAco3Xvbzc6C3uCovd1RYpqy6M4hYdFNtufijDhz9vu X-Received: by 2002:a17:902:eec6:b0:191:35c9:db30 with SMTP id h6-20020a170902eec600b0019135c9db30mr14048891plb.5.1674185685251; Thu, 19 Jan 2023 19:34:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674185685; cv=none; d=google.com; s=arc-20160816; b=ww3OSrB9iO1X0LrqnAwF3DiPDQICISd9yuqvq+Q+l7mlerN/y0Dp1/+8wCRrHq85gO YfStsyYrf702qcwMhfSnPuU/SKnQ09Clfpn/qpND7hIxZf6VR/93fGQkI9SScl5bL7xV ys6vaD4v/tpX6jNLTlHVIapGLMm+rqMURUtko1I1TNMkJ+/xKmQlOwtZNm4f892u+OMF xefRKsRGMyiGUMFZjxp6kWkGKPw49Uy+8rx4yjtL30u486GQ+tyY1JVSa0GtqU+wWbzI G9vXECZ4XR7+HGUr55CA/hKFGz47uxCVGLYtO/h9rME659k14+WXDbPxlWxlopG96wHc asxQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l13-20020a170903120d00b001944983f4e2si31682095plh.491.2023.01.19.19.34.39; Thu, 19 Jan 2023 19:34:45 -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 + 46 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 Content-Type: text/plain 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 Content-Transfer-Encoding: 8BIT 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 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); -- 2.25.1