From patchwork Fri Jan 20 02:44:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xingyu Wu X-Patchwork-Id: 46096 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp664507wrn; Thu, 19 Jan 2023 18:46:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXsysjTt0L6P6T/lgvhOJS0ABYRn3/Oog/q4l9tLQV/vK5nbXsx4eH1bbRs2YvJ6uczF1JDG X-Received: by 2002:a05:6a00:27a8:b0:58b:a4bd:e82d with SMTP id bd40-20020a056a0027a800b0058ba4bde82dmr14371002pfb.26.1674182770743; Thu, 19 Jan 2023 18:46:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674182770; cv=none; d=google.com; s=arc-20160816; b=ZjPYU8229GCfmIb4TC7pfskfal056TTtSCC/YJPRmFbKKS3tMwwnLC01UASB3PMg7T UXckF8vSVg2eGg4Gf6icLLlDBNC/jefhJLNqqyJTKW5tw3fKdCuKEgDtHgSIwIBs0u+5 8mkAcOE6eYgxhSYSSeGarTE1p8DUAKjkuLyRzg8xcfQFVOZAh+KHiIWkGXdOO0q+MBYg 1PCZjmmYXSg6wfzrleK0A18jaQ+jgExHSbHFXhn68tHIKH3ppmSR3GGZeNpuWkIbQnkF Gy8v5o3UHrWkH+OlWFNCM3jT/2ksAFkZ/qJO0iAK1FZleZG7GeHLQBATh8unWQpaen3A hsig== 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=R7fwUuHhRKY7DMWVAggllcLjNsz8fThEQQk8rEHxfgQ=; b=gtSSWD8OJpY8rBGjVVOHDvrl5sqzM1/SYO5orSnpwx9Hp6w4tY1uwrYp7WhIJBewEo NZGNBBVxkffNh1devCqeg3WaQ2wf5uQ1cwhAaBSBQ9+pEPE/fV7S7TzILh4R0JkbrDB0 T4Q3PQtYegxBqYlZtJYtv2XCM4K0VFJwmkzWf5MYCgXSyzSM6hCaQ5AIQZc8fNfIwJu4 3zszpD5o8SJYxhznFBaIIbNfATIxxKwdLgRteiWk5XUlW0ZwyWpi8nJkZkfqI+dl6ywC 2JzUnnQWFr8Dd4IY0fjUcHC70YmJ9me4UyI1nOQDcHOPAmyeML/N99dNaABpfxXqWx+X RhrQ== 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 w9-20020a056a0014c900b0057527c02551si6291190pfu.189.2023.01.19.18.45.57; Thu, 19 Jan 2023 18:46:10 -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 S229938AbjATCpO convert rfc822-to-8bit (ORCPT + 99 others); Thu, 19 Jan 2023 21:45:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjATCox (ORCPT ); Thu, 19 Jan 2023 21:44:53 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA896A5029; Thu, 19 Jan 2023 18:44:51 -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 fd01.gateway.ufhost.com (Postfix) with ESMTP id A5B0324E102; Fri, 20 Jan 2023 10:44:50 +0800 (CST) Received: from EXMBX161.cuchost.com (172.16.6.71) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 20 Jan 2023 10:44:50 +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:49 +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 05/11] reset: starfive: jh7110: Add StarFive Image-Signal-Process reset support Date: Fri, 20 Jan 2023 10:44:39 +0800 Message-ID: <20230120024445.244345-6-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,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,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?1755507873287794082?= X-GMAIL-MSGID: =?utf-8?q?1755507873287794082?= 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 580ec4ed055b..8c0befc26150 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);