From patchwork Tue Feb 21 08:33:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xingyu Wu X-Patchwork-Id: 59799 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1746209wrn; Tue, 21 Feb 2023 00:34:34 -0800 (PST) X-Google-Smtp-Source: AK7set+Vxiu0aaLGZywgqEAY8auQz7/8FDpY0gYDqqI7fzgoQZGTfC+eApY01bZWGHjbLjv+BvQ2 X-Received: by 2002:a17:907:7b88:b0:884:3707:bd83 with SMTP id ne8-20020a1709077b8800b008843707bd83mr12908353ejc.69.1676968474067; Tue, 21 Feb 2023 00:34:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676968474; cv=none; d=google.com; s=arc-20160816; b=avEHlRtUA6LljMofPQ5TGwCl9kIrFGt0jjiZ3Id5RazLxJv4YYvpzZmRVzIv/kr/C9 t+n/hIh2JeDbMrm5s4e5MCMb+pgilkINNfE18LORiQNSnXOaq0pupdxVa/NpDOvh7NT7 6MbTVszSEcuUBGwQzF0oaT8LXLVdkOoP9nITHMkXDnAzInV4Xc4rm8OLbIy3lnWKrl+n 1Tmso3ag/zxymuW322vYkPERYxImzvctxdS9jKTTBceQTrmTgcnSDW3XnCnCSZFtEKgo coiZLJNr8OicqTafNdqFg/Es4whB+PbatXAZ1p5q5LFQ3bPPaCjg7jrmtURq8I86VkPH XQRw== 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=d57fxhf7bfCHOcx9B68kAnGUPyzx0B6+hGxaddFfthA=; b=ulZsseLTPXRk9mSQ3f9wWHovprcJaJwJl/Yp4GSL0JflwP5wh3jMw8Cy2Jek2cjhJg DtQLzPuOQNQvNxqu/qRlwDWz6bNDkWVMc4ptTaqrk1ytDF+sGfxghQfPb8YKjbO2nLt+ ZfhHbE2cYWe8Dfo2Yd34NdQBZFJcQ2+RzAtpNcq7hQtt4r9wgmChnB0O5B8C+blSUF2n 6xTO356L3Tw/c9LujhkNUj/Vj7M6imwH7dv8MFioMaVJ4hn+6FE2VDtMHubrshRUBdKj qwE+9QCZP5lJ/UANrkIOGJtMAcS1iQkauTzPWYh5QmUEeDOE8l6uNFpx8saYjIyT2uVh XYHA== 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 if6-20020a170906df4600b008b1ce6f5811si14046125ejc.345.2023.02.21.00.34.11; Tue, 21 Feb 2023 00:34:34 -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 S233799AbjBUIdu convert rfc822-to-8bit (ORCPT + 99 others); Tue, 21 Feb 2023 03:33:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233741AbjBUIdl (ORCPT ); Tue, 21 Feb 2023 03:33:41 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6690786BE; Tue, 21 Feb 2023 00:33:35 -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 4F3CD24E212; Tue, 21 Feb 2023 16:33:34 +0800 (CST) Received: from EXMBX061.cuchost.com (172.16.6.61) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 21 Feb 2023 16:33:34 +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:32 +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 05/11] reset: starfive: jh7110: Add StarFive Image-Signal-Process reset support Date: Tue, 21 Feb 2023 16:33:17 +0800 Message-ID: <20230221083323.302471-6-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?1758428894230022695?= X-GMAIL-MSGID: =?utf-8?q?1758428894230022695?= Add auxiliary_device_id to support StarFive JH7110 Image-Signal-Process resets of which the auxiliary device name is "clk_starfive_jh71x0.reset-isp". 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 94ebb363c6bc..e3b7b6941217 100644 --- a/drivers/reset/starfive/reset-starfive-jh7110.c +++ b/drivers/reset/starfive/reset-starfive-jh7110.c @@ -46,6 +46,12 @@ static const struct reset_info jh7110_stg_info = { .status_offset = 0x78, }; +static const struct reset_info jh7110_isp_info = { + .nr_resets = JH7110_ISPRST_END, + .assert_offset = 0x38, + .status_offset = 0x3C, +}; + static const struct auxiliary_device_id jh7110_reset_ids[] = { { .name = "clk_starfive_jh71x0.reset-sys", @@ -59,6 +65,10 @@ static const struct auxiliary_device_id jh7110_reset_ids[] = { .name = "clk_starfive_jh71x0.reset-stg", .driver_data = (kernel_ulong_t)&jh7110_stg_info, }, + { + .name = "clk_starfive_jh71x0.reset-isp", + .driver_data = (kernel_ulong_t)&jh7110_isp_info, + }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(auxiliary, jh7110_reset_ids);