From patchwork Tue Feb 21 08:33:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xingyu Wu X-Patchwork-Id: 59801 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1746258wrn; Tue, 21 Feb 2023 00:34:41 -0800 (PST) X-Google-Smtp-Source: AK7set/JN7U4Z1kG5gR5HJ4k0Tq3SSdHu8iEsEzRgccADdL47AIhVBy04kqwLMiU1xPRtpFbtON5 X-Received: by 2002:aa7:d4c1:0:b0:4ab:4bf9:a10f with SMTP id t1-20020aa7d4c1000000b004ab4bf9a10fmr2295863edr.30.1676968480901; Tue, 21 Feb 2023 00:34:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676968480; cv=none; d=google.com; s=arc-20160816; b=KYmdmElQOj1/jH+U6SRF6agsDeGzzFkowFilYdT4cbvqpzB0vvaTsVILCc9Qdfgfz9 6fmPMGsXSdPEQY60jdKnb8nEdpSxfABTfK82yk5V0vz41HKync/qpiBXQZ2hAsLvuxbT bhu/7iRLLkuVlORSr3dQrG/VzlRabRqSXz/Xuya4TiS9GdLbtcSF9USQW62jh2FUqH2c DY4S7qp3GrRz3oiaMEvERUxPuG+R3arFUR0l11NU1JgklECOJnOAAzhcfBkxuGQUwv3A 4NtSfZAI2xvAIXb+/c14IceGmUY9wSrr3fmIw7OPPyEkRf0GWO8ksRkTbinIY3wa1HP5 y5bw== 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=tAKLF/jFF6WIvdp6dVySYLdtKER5gKxdgSPk14Qe7IY=; b=vlgZ50EwssHx73W1Ei5KOVrZSe2/2UZN7txWq6x9Cstegr5zx5OaVERYUscTQeFUVD 2nJHsGO63eejxoIRDnqDyghwRoTuYXUj4nVsNhR5egcklKrQ24PvT2MLMB2EQPJXKvtM E92u0SKJgi9x8/N2vPnbqwjDioAEKZh9nKXAS3WvM7hOM/ZEEiAkr8ktg2gYdt+HhTOP ePCDQQfHLWCbkPCCos9clRC0Xc4iDMp70hXi5wHIUuW1DjQTVM460kJogXg6lxgKINn2 /DRqhbzJrd6o2dzU2fkL97ldkXL8oYB4XuFJCWeBdnKcYnaTQPfvMtek3lvExxpzs6wB CVJQ== 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 ba17-20020a0564021ad100b004ace6bc9f51si2843744edb.333.2023.02.21.00.34.17; Tue, 21 Feb 2023 00:34:40 -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 S233758AbjBUId7 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 21 Feb 2023 03:33:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233754AbjBUIdm (ORCPT ); Tue, 21 Feb 2023 03:33:42 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 131B8233CF; Tue, 21 Feb 2023 00:33:38 -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 E002424E214; Tue, 21 Feb 2023 16:33:36 +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:36 +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:35 +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 08/11] reset: starfive: jh7110: Add StarFive Video-Output reset support Date: Tue, 21 Feb 2023 16:33:20 +0800 Message-ID: <20230221083323.302471-9-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?1758428901696167191?= X-GMAIL-MSGID: =?utf-8?q?1758428901696167191?= Add auxiliary_device_id to support StarFive JH7110 Video-Output resets of which the auxiliary device name is "clk_starfive_jh71x0.reset-vout". 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 e3b7b6941217..ad967398f227 100644 --- a/drivers/reset/starfive/reset-starfive-jh7110.c +++ b/drivers/reset/starfive/reset-starfive-jh7110.c @@ -52,6 +52,12 @@ static const struct reset_info jh7110_isp_info = { .status_offset = 0x3C, }; +static const struct reset_info jh7110_vout_info = { + .nr_resets = JH7110_VOUTRST_END, + .assert_offset = 0x48, + .status_offset = 0x4C, +}; + static const struct auxiliary_device_id jh7110_reset_ids[] = { { .name = "clk_starfive_jh71x0.reset-sys", @@ -69,6 +75,10 @@ static const struct auxiliary_device_id jh7110_reset_ids[] = { .name = "clk_starfive_jh71x0.reset-isp", .driver_data = (kernel_ulong_t)&jh7110_isp_info, }, + { + .name = "clk_starfive_jh71x0.reset-vout", + .driver_data = (kernel_ulong_t)&jh7110_vout_info, + }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(auxiliary, jh7110_reset_ids);