Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp176283rwp; Wed, 12 Jul 2023 11:25:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlHGwMr1vp6vgsDIUx0cpTK2ztlbzojV0pBYy2jKTnju2qQNtR3KKZJIgJBy4+ULAxjVghfV X-Received: by 2002:a05:6a20:6a1e:b0:127:6bda:a2ae with SMTP id p30-20020a056a206a1e00b001276bdaa2aemr23388353pzk.10.1689186359355; Wed, 12 Jul 2023 11:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689186359; cv=none; d=google.com; s=arc-20160816; b=e6NxHR1THmEdE83kwXzNAKnwcP99H3O5wxADfjZkszQMZ97AgZWgqZ/oUfnL8ofqtv P9nJdmm6vLDXFm8qTadMwCdLo7iZsuGbReAbv93HNs6V5S2ZrQJ3xbomzJL0f5XbKWqU CSsR+GOXaUBOB7FEBXcwLmGI+MZeBEK+LV4zM23P9PCdjD/8NzhIYdkhr9pD3VMrUpj9 K9wYS2cXl9WsWn8C80T5DTlSbsGjoClrzJuv4Pq50kwp+LGlfa0i3g32h0WGdkhhctgb gw1r/es0MosnpoHxmTasic5teb47POqFcpKTgQPoMYtnIiwGQYRkO6wnJdpG3PFaAQ4p eQ4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Bizuu4z3VnDLRN7R+//unqDeYbH2DtjnSLBh5A5U/w4=; fh=YXdnwW4c1KmW6sMhai6l6POFtWtDjQ2e2cQTDIuDoGY=; b=l/+XMxDx9IIMdw0R58bhOMWjdsLGatZcLFx4G+1IQXHSE7sqLElBqH7T8SZbtHoTyJ L7cx6ypDygX2cG9OK3k25rR3uPLzn0W4e1O64eW5uZJqyVqO4WngnZfqXw/O6ReXZWHc tcWo1R/XJJyi9xrw6eUx3KR888OfNYzentV6RqY20JUkG0rz+i+kavziZY6+BUfGNQd7 s1dOdW95a/hVu6JvoSiEP2YB42RvdWm+QWgMsiVPSmVjpGBzCE22ItamYEXx23jjX9gq TJsekMuMFItDx07TXzPm6TGVYD+nHPI6DDarUzse3FLKIWlLcawjmQPFsyv6YqV5SuAm ktsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=BW2NfbNr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t189-20020a6381c6000000b00553854417d8si3616009pgd.617.2023.07.12.11.25.47; Wed, 12 Jul 2023 11:25:59 -0700 (PDT) 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; dkim=pass header.i=@canonical.com header.s=20210705 header.b=BW2NfbNr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232766AbjGLSKB (ORCPT + 99 others); Wed, 12 Jul 2023 14:10:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231532AbjGLSKA (ORCPT ); Wed, 12 Jul 2023 14:10:00 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73BBD11B for ; Wed, 12 Jul 2023 11:09:59 -0700 (PDT) Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 56D193F722 for ; Wed, 12 Jul 2023 18:09:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1689185397; bh=Bizuu4z3VnDLRN7R+//unqDeYbH2DtjnSLBh5A5U/w4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=BW2NfbNrSUd9tLFXlCaRtDPISAY8dwrlT2S8xiL3pN0cyomJHhAvcpNibbCLJlzwU wI8dfvISITrHiUFmJDhi4hWKH+Y7lie7jITPwA0kOtZGs2R2IjkIbDINWPw+VHRBYh HxLZYfx1c0WUk8WstVtpSfEFYGtOZ28kxN1UhBiR2V3C6hS6KaAq1Nmy2M09rvwnWv En2RTqy+zY0Xf7mzQbzlP3kFNB9z8cwmS/MPrwKU40XuRWnd0mSTQFOsx8MFS4YJGC TuCiYlWzn52vTLON1PfdYXdy6Zuv13YOpO06hWOjEWTr5Akic8EGDhCW/kmwIUxiqB 1EdcD7LGCV+8g== Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-7659924cf20so712495885a.2 for ; Wed, 12 Jul 2023 11:09:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689185396; x=1691777396; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Bizuu4z3VnDLRN7R+//unqDeYbH2DtjnSLBh5A5U/w4=; b=ZrcIQCZzuFxaIDSpdEOC9pQHVsFzqx31xpHTzoWoa+i4LNfa9KWak21vYViMQxg5t5 lHvBIZZkWIAolGyBXoptBm94FinELOakDpJd2w3Ln3d2Pe9Bena51SqEHM+nWeOk3Tcm xeoMr+lVXQSvRCpb57/FrsLHrRc02VqPnd9i2OOKW3LdADLJ1H0rKL85FENasFX1zvld lLBTv3rNHbiMpzuqpodJuaUow2bk/VhP8EMXkqFq9yuKFKhcz9PnozkWV9tBOlxRb8gK i6ZJFcH2WB8hl1eHHr8J+loquIcYmL08cB909cgvCnUmWQpM5GRriIzlayFdwyKkeoft 4ytw== X-Gm-Message-State: ABy/qLbC0mMJbDXELMNJc6oV2EkqG6ylvwGB0FWiSH2TirlK75kRHvyw cJGcjGfEmT/gdXy+wMgQ9CWXRaWs6vRhmDTPaYEMJ77StneTgQtvz1xEFCyevgGRQNVrU9mzc8k EddQdb2NH93qrAZx4a6dok1OATGlbY++Wpe7iBDQKuSBTPB986nZXVOpbbw== X-Received: by 2002:a05:620a:8e86:b0:765:84e3:aa1f with SMTP id rf6-20020a05620a8e8600b0076584e3aa1fmr14249042qkn.14.1689185396336; Wed, 12 Jul 2023 11:09:56 -0700 (PDT) X-Received: by 2002:a05:620a:8e86:b0:765:84e3:aa1f with SMTP id rf6-20020a05620a8e8600b0076584e3aa1fmr14249030qkn.14.1689185396118; Wed, 12 Jul 2023 11:09:56 -0700 (PDT) MIME-Version: 1.0 References: <20230712092007.31013-1-xingyu.wu@starfivetech.com> <20230712092007.31013-8-xingyu.wu@starfivetech.com> In-Reply-To: <20230712092007.31013-8-xingyu.wu@starfivetech.com> From: Emil Renner Berthing Date: Wed, 12 Jul 2023 20:09:39 +0200 Message-ID: Subject: Re: [PATCH v7 7/9] reset: starfive: jh7110: Add StarFive STG/ISP/VOUT resets support To: Xingyu Wu Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, Michael Turquette , Stephen Boyd , Philipp Zabel , Conor Dooley , Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Hal Feng , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 On Wed, 12 Jul 2023 at 11:22, Xingyu Wu wrote: > > Add new struct members and auxiliary_device_id of resets to support > System-Top-Group, Image-Signal-Process and Video-Output on the StarFive > JH7110 SoC. > > Reviewed-by: Hal Feng Reviewed-by: Emil Renner Berthing > Signed-off-by: Xingyu Wu > --- > .../reset/starfive/reset-starfive-jh7110.c | 30 +++++++++++++++++++ > 1 file changed, 30 insertions(+) > > diff --git a/drivers/reset/starfive/reset-starfive-jh7110.c b/drivers/reset/starfive/reset-starfive-jh7110.c > index 2d26ae95c8cc..29a43f0f2ad6 100644 > --- a/drivers/reset/starfive/reset-starfive-jh7110.c > +++ b/drivers/reset/starfive/reset-starfive-jh7110.c > @@ -31,6 +31,24 @@ static const struct jh7110_reset_info jh7110_aon_info = { > .status_offset = 0x3C, > }; > > +static const struct jh7110_reset_info jh7110_stg_info = { > + .nr_resets = JH7110_STGRST_END, > + .assert_offset = 0x74, > + .status_offset = 0x78, > +}; > + > +static const struct jh7110_reset_info jh7110_isp_info = { > + .nr_resets = JH7110_ISPRST_END, > + .assert_offset = 0x38, > + .status_offset = 0x3C, > +}; > + > +static const struct jh7110_reset_info jh7110_vout_info = { > + .nr_resets = JH7110_VOUTRST_END, > + .assert_offset = 0x48, > + .status_offset = 0x4C, > +}; > + > static int jh7110_reset_probe(struct auxiliary_device *adev, > const struct auxiliary_device_id *id) > { > @@ -58,6 +76,18 @@ static const struct auxiliary_device_id jh7110_reset_ids[] = { > .name = "clk_starfive_jh7110_sys.rst-aon", > .driver_data = (kernel_ulong_t)&jh7110_aon_info, > }, > + { > + .name = "clk_starfive_jh7110_sys.rst-stg", > + .driver_data = (kernel_ulong_t)&jh7110_stg_info, > + }, > + { > + .name = "clk_starfive_jh7110_sys.rst-isp", > + .driver_data = (kernel_ulong_t)&jh7110_isp_info, > + }, > + { > + .name = "clk_starfive_jh7110_sys.rst-vo", > + .driver_data = (kernel_ulong_t)&jh7110_vout_info, > + }, > { /* sentinel */ } > }; > MODULE_DEVICE_TABLE(auxiliary, jh7110_reset_ids); > -- > 2.25.1 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv