Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3567023pxp; Wed, 23 Mar 2022 00:56:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJym66Mm20+niFSjUak5O6j/VA48Y38dDgyHc33akotqdJQEuuvnX80kNjhmxzXMlt+OvTSq X-Received: by 2002:a17:902:9a46:b0:14e:ea0f:28cf with SMTP id x6-20020a1709029a4600b0014eea0f28cfmr22374005plv.43.1648022180585; Wed, 23 Mar 2022 00:56:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648022180; cv=none; d=google.com; s=arc-20160816; b=gOI7SHC/MoolOJ3NrXjS96/L4M7GiCTOOxMQ+uQovekGR9vfJX79z/BtrWZ4/aHwZr lF1k4dEcdwzWZEzlCDBdEAagX2EHSugbbI3ypoc91zVVwgaAuct5+wTmWGRiXnEGO7Qt 69inAsZovNpe5255Ik5/JZdIm8LtWoKj+Un/bdYqJmQChDVWakG7VuStIUPnetcI++t6 njUenDK0a30rRJQUJiB07NJazXqkSawgpIl/OPZIVCfQ5/t/KDxIwD6Ds/Bt7iQ8wjJh lITVgnbjvvH3hE/PuEArRJiA+rQ5mWzjmLN6aM7M3ioQOw1p3L2BmZwjnpWzem4Az0T1 ZOJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=grM2iRbLBa16ge1rRP0EdT6QAS4zpxzJpvB49zMnekE=; b=yP+jmQFqVq5VC5rZaG/xqOEZa/I9Y5I4WGtZfRlNRfYMzsJK+qYRKC0UU/namjRmhW SHdj//Cy/13Vg33yUASTlaoNuVSd7qEu1QADskMEHdMy453MSPDPdlfgflPbuqzCw1P4 k2W4OolLrm5NyF4RqGkj9Np4x0D2/C/5lIjAyBXhdUyjMoITcZ4c8K6QSm8NGRxx7KQ2 d8d4Zr7hUnAL51o6x35ELOcM+zWMixYp0KGoC7FjeUwY7me2P/qbYaZp25zmUprKIm4c fXW6arT92OBPp2csZnMZU0z0sca+F4+CsEIbD0LJZu6tEz5h+kzYFOPqz5VpR/NPgYld d2Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VsElHnMT; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j8-20020a17090aeb0800b001bd14e0302csi4668849pjz.4.2022.03.23.00.56.08; Wed, 23 Mar 2022 00:56:20 -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=@collabora.com header.s=mail header.b=VsElHnMT; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237252AbiCVV7c (ORCPT + 99 others); Tue, 22 Mar 2022 17:59:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237184AbiCVV7a (ORCPT ); Tue, 22 Mar 2022 17:59:30 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7F15D99; Tue, 22 Mar 2022 14:58:00 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 3A0281F43FFC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1647986279; bh=I0arKn0E7vN63I4XgUWTYnGY2tJfYbzJ7u22hHlqdDE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VsElHnMT+C8u3vo7bEekufFYeVPA3WFbn8uJ7uEwX5zTyvAfnKvP8pET4CbmF9xqP D1PxKgrCJG68lzmgEMGyc3swAkukTZmnjPvAXxEOoFep6ecSKq2VjKsUVUgCQF0/mm g2FXPiUePLi8uVnGqWFE7nzNlWVzClFXrbhRA9MwXyA8GwUfrJW81L18mPqM2wUqpj /h8G4wcFiDkRp9zyF5GIOtqEjW7/J1jPEterRCWpsN6W9Bw4dTUl5021ji1EEjuMX2 cWFdboVCpxGkZHXt6zRcdBn2tT/LqoXQhPAPRZNrdakXsr/WQ/TQ3XQ5xY/SsWBf08 3YLGry8aa0FJg== Date: Tue, 22 Mar 2022 17:57:54 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Allen-KH Cheng Cc: Matthias Brugger , Rob Herring , Krzysztof Kozlowski , Project_Global_Chrome_Upstream_Group@mediatek.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Chen-Yu Tsai , Ryder Lee , Hui Liu Subject: Re: [PATCH v4 08/22] arm64: dts: mt8192: Add infracfg_rst node Message-ID: <20220322215754.j2hzutm775hvr25n@notapiano> References: <20220318144534.17996-1-allen-kh.cheng@mediatek.com> <20220318144534.17996-9-allen-kh.cheng@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220318144534.17996-9-allen-kh.cheng@mediatek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Hi Allen, please see my comment below. On Fri, Mar 18, 2022 at 10:45:20PM +0800, Allen-KH Cheng wrote: > Add infracfg_rst node for mt8192 SoC. > - Add simple-mfd to allow probing the ti,syscon-reset node. > > Signed-off-by: Allen-KH Cheng > Reviewed-by: AngeloGioacchino Del Regno > --- > arch/arm64/boot/dts/mediatek/mt8192.dtsi | 18 ++++++++++++++++-- > 1 file changed, 16 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi > index 40cf6dacca3e..82de1af3f6aa 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi > @@ -12,6 +12,7 @@ > #include > #include > #include > +#include > > / { > compatible = "mediatek,mt8192"; > @@ -267,10 +268,23 @@ > #clock-cells = <1>; > }; > > - infracfg: syscon@10001000 { > - compatible = "mediatek,mt8192-infracfg", "syscon"; > + infracfg: infracfg@10001000 { > + compatible = "mediatek,mt8192-infracfg", "syscon", "simple-mfd"; > reg = <0 0x10001000 0 0x1000>; > #clock-cells = <1>; > + > + infracfg_rst: reset-controller { > + compatible = "ti,syscon-reset"; > + #reset-cells = <1>; > + > + ti,reset-bits = < > + 0x120 0 0x124 0 0 0 (ASSERT_SET | DEASSERT_SET | STATUS_NONE) /* 0: lvts_ap */ > + 0x730 12 0x734 12 0 0 (ASSERT_SET | DEASSERT_SET | STATUS_NONE) /* 1: lvts_mcu */ > + 0x140 15 0x144 15 0 0 (ASSERT_SET | DEASSERT_SET | STATUS_NONE) /* 2: pcie phy */ > + 0x730 1 0x734 1 0 0 (ASSERT_SET | DEASSERT_SET | STATUS_NONE) /* 3: pcie top */ > + 0x150 5 0x154 5 0 0 (ASSERT_SET | DEASSERT_SET | STATUS_NONE) /* 4: svs */ > + >; If you see [1], Rob has previously said that there shouldn't be new users of the ti,reset-bits property. I suggest doing like proposed on [2]: moving these bit definitions to the reset-ti-syscon driver, and have them selected through the compatible. You'd need to add a mt8192 specific compatible here too for that. [1] https://lore.kernel.org/all/CAL_JsqJq6gqoXtvG1U7UDsOQpz7oMLMunZHq2njN6nvPr8PZMA@mail.gmail.com/ [2] https://lore.kernel.org/all/CAATdQgA5pKhjOf5gxo+h7cs7kCts3DeKGU5axeX2t+OaJFHyBg@mail.gmail.com/ Thanks, N?colas > + }; > }; > > pericfg: syscon@10003000 { > -- > 2.18.0 > >