From patchwork Fri Jan 20 02:44:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xingyu Wu X-Patchwork-Id: 46104 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp665310wrn; Thu, 19 Jan 2023 18:49:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXuKGN4QVSiDoEbM9RG3ZbCSRIGxWWIToh4OCZmqFW731c9OgagmrjrbOttZq2cC5pfRqyjl X-Received: by 2002:a17:907:c606:b0:870:d9a:9ebb with SMTP id ud6-20020a170907c60600b008700d9a9ebbmr9864306ejc.38.1674182944225; Thu, 19 Jan 2023 18:49:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674182944; cv=none; d=google.com; s=arc-20160816; b=bXJ3Y17n5jKiDrb+Zb/FSnE9gXD89nkwkWeXMb1lOc7H+bQHLosMMZe7qxdtkk/TK+ lOU4Z67fD7exx6JrNVPPYiLyU7wStj6v+rvc0DQoGSvZ4jui/o8kxiuK/kmZyPyZqIeS LAweA4fOsVEuKtefzayfka5OFVIjcalrquElo384qpwqtvVHylhIXveFyqSVTs6SEKTh ykRswyLqBnxOrweKFOde3CmedCUXrBttjNRwkXbK38sXPzReQuIrWzXnl6+e0Yvi0U+b n6EOyemfDrfHpk7Af/kKS/tGxHv0QlpXFSyYVgFdDcFLB5/MV6RHkuC1fctly86QXSlT 0hgg== 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=niIi+zl2gn1UJz/u2FJq9mij00d2O+5Xhjqbz8CP9aY=; b=Mxog2XotJlVuqobLxMdTrKVpcuxV3EyTwiC4r1JK5OZYFXyiIuW79+EFVVmVJIEd4T TKAIf0ddql6yukleGcHRMkU9/PMu6ywJS2dxXKy8sXQlsR+IeVZHFWWZcL45ht+Bm4Wj 6KnxW3hk2uDu8P82z6Ymx4dKWa68zSUsorxjEtsmDRpVpiXfzr1/KI8rlw0OPpeHpkVz HscVz4xdwyh6zPkGyqQ/ssnHvdhVtCqH7mTj+xndHmDrM66Xv2o+K7WARuyeee1yOPPZ VRFRqxLGPOQVAKUcMpkCWLedDumGDY3w/nNDFBVj9d0BBcDHTw7cePs7YnVm10wjlyIu +sFA== 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 fd14-20020a056402388e00b0049ea11f77eesi1472793edb.528.2023.01.19.18.48.19; Thu, 19 Jan 2023 18:49:04 -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 S229437AbjATCpc convert rfc822-to-8bit (ORCPT + 99 others); Thu, 19 Jan 2023 21:45:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjATCoz (ORCPT ); Thu, 19 Jan 2023 21:44:55 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB0FDA295B; 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 fd01.gateway.ufhost.com (Postfix) with ESMTP id 06F0824E10F; Fri, 20 Jan 2023 10:44:53 +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:52 +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:52 +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 08/11] reset: starfive: jh7110: Add StarFive Video-Output reset support Date: Fri, 20 Jan 2023 10:44:42 +0800 Message-ID: <20230120024445.244345-9-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?1755508054499076788?= X-GMAIL-MSGID: =?utf-8?q?1755508054499076788?= 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 8c0befc26150..678eb398b333 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);