Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2382259iob; Fri, 20 May 2022 08:10:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIz0O+4G51QFEV7cBB1SI/NsJXjjK1rV8jIx5kcFsW8ZD8dl77jPjmDFDTNP1PX4AjHTeq X-Received: by 2002:a05:6402:51c8:b0:427:b374:6af4 with SMTP id r8-20020a05640251c800b00427b3746af4mr11326255edd.349.1653059415020; Fri, 20 May 2022 08:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653059415; cv=none; d=google.com; s=arc-20160816; b=cNNUVCUItwPTv0wZI3CHhn70NYDLzJUT4d3fZfsTZzEvshYB12mmtN0M04ZNRDiIw4 x4f4pEVynjQCgGy3RvjZmKqPsTw9eqcjNlz8LiqHyBoQj+o8fmVzvUni/sSVJXC/kb+V zFGmXr0OlhJO912XZ/GXFaeUKP27fXdqngBOaZhIxR2AkW4pyq5v4donSW3IK5E1Ei4R RgNKwgMVpCqavRvysTS/JmQdyllr5Mgnj3kxVsZo1GyAuGJF9MAgHpFsHV9vGgYKf33G r1DURrDrxOafw29o9aZ6BkWwW2mT4n69rP9f8ij10KQ980StoV9Rp3p8oJXhBi/s6kgF pHJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=5cPggHmL4o6uqpehjBTXiWHliLzts158j3GX5MPeJ/w=; b=YkLDT2We+DrCD6bIjW4fJufZTEfn8du8Gy+8QJx5wzLm1VT6HEO6vFk5u15NjNiXse YLQ3HJoKLjoHBLf2axnBG0HArEaTz6YojNtGbu4/OdQHEy9yb5YohcjoXKUyQdYKUZ3B pvfCEzTUDQz2WSMkcGsc1mwhUVJjg+D/HmYYpj70X5cozLGzaoVoHuyv87SXCkApEMo8 4h34RqI3xmfBqRjKDRcb8zGXb2SYEfSi5+og7zgripsWDwVMPozqn0ADD6rp6/S+UFsl So3Q0ZzgElkX1nzwti/MDUOP2e2lS/wRup1C9UO6IT1w3A6YiHf8FWLVFlf7yYn5Ga0+ ct3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="EmZE/H2S"; 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 hw19-20020a170907a0d300b006fe7a59af8esi6577252ejc.432.2022.05.20.08.09.47; Fri, 20 May 2022 08:10:15 -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="EmZE/H2S"; 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 S1347435AbiETIzf (ORCPT + 99 others); Fri, 20 May 2022 04:55:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230084AbiETIzd (ORCPT ); Fri, 20 May 2022 04:55:33 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8133999681; Fri, 20 May 2022 01:55:32 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id EA6C61F4611B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1653036931; bh=zCn3iIu/yF99M4r5VZnKqFotpd4kLSeKs6lzkczWj/Q=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=EmZE/H2SOT3hF5dfCGtNXLdJ03BPpi/KFB/ObJtby2dwOnYkthFv+NKgGoHJMjSc2 XKGf/KLtirJmwCAqBFqcqnyqXtMubX2bsAm+sWIP3myaF/HXpOvUKOL5F5mBxVLD94 moJ5cLpCcWDh3PS2YdK02uS7f9wpin26u1qJZLTVo2M4ON/32ghfe0s0jexr+9/gd+ AH2U/Q8tQDf2mbroID2cp1oqvU8MUADgdTc10whv3Tbg8iFnJqwdqZWDQf408hups3 h7bqYCfzTg1khlL1C5VEHk5sG5uuKOJBYCPS4JxyUxmMebbCCrHElFnBj8wM6VxLXd vNgSLS0pzF+ig== Message-ID: Date: Fri, 20 May 2022 10:55:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v2 2/4] dt-bindings: reset: Add MT6735 reset bindings Content-Language: en-US To: Yassine Oudjana , Michael Turquette , Stephen Boyd , Matthias Brugger , Philipp Zabel , Rob Herring , Krzysztof Kozlowski Cc: Yassine Oudjana , Tinghan Shen , Chun-Jie Chen , Weiyi Lu , Ikjoon Jang , Miles Chen , Sam Shih , Chen-Yu Tsai , Bartosz Golaszewski , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Rob Herring References: <20220519142211.458336-1-y.oudjana@protonmail.com> <20220519142211.458336-3-y.oudjana@protonmail.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220519142211.458336-3-y.oudjana@protonmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 Il 19/05/22 16:22, Yassine Oudjana ha scritto: > From: Yassine Oudjana > > Add reset definitions for Mediatek MT6735 resets provided by > infracfg and pericfg. > > Signed-off-by: Yassine Oudjana > Acked-by: Rob Herring > --- > MAINTAINERS | 2 ++ > .../reset/mediatek,mt6735-infracfg.h | 31 +++++++++++++++++++ > .../reset/mediatek,mt6735-pericfg.h | 31 +++++++++++++++++++ > 3 files changed, 64 insertions(+) > create mode 100644 include/dt-bindings/reset/mediatek,mt6735-infracfg.h > create mode 100644 include/dt-bindings/reset/mediatek,mt6735-pericfg.h > > diff --git a/MAINTAINERS b/MAINTAINERS > index a59069263cfb..1c0af554a7b6 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -12503,6 +12503,8 @@ F: include/dt-bindings/clock/mediatek,mt6735-apmixedsys.h > F: include/dt-bindings/clock/mediatek,mt6735-infracfg.h > F: include/dt-bindings/clock/mediatek,mt6735-pericfg.h > F: include/dt-bindings/clock/mediatek,mt6735-topckgen.h > +F: include/dt-bindings/reset/mediatek,mt6735-infracfg.h > +F: include/dt-bindings/reset/mediatek,mt6735-pericfg.h > > MEDIATEK MT76 WIRELESS LAN DRIVER > M: Felix Fietkau ..snip.. > diff --git a/include/dt-bindings/reset/mediatek,mt6735-pericfg.h b/include/dt-bindings/reset/mediatek,mt6735-pericfg.h > new file mode 100644 > index 000000000000..6cdfaa7ddadf > --- /dev/null > +++ b/include/dt-bindings/reset/mediatek,mt6735-pericfg.h > @@ -0,0 +1,31 @@ > +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ > + > +#ifndef _DT_BINDINGS_RST_MT6735_PERICFG_H > +#define _DT_BINDINGS_RST_MT6735_PERICFG_H > + > +#define UART0_SW_RST 0 > +#define UART1_SW_RST 1 > +#define UART2_SW_RST 2 > +#define UART3_SW_RST 3 > +#define UART4_SW_RST 4 where's number 5? > +#define BTIF_SW_RST 6 > +#define DISP_PWM_SW_RST 7 > +#define PWM_SW_RST 8 ...and where's 9? > +#define AUXADC_SW_RST 10 > +#define DMA_SW_RST 11 > +#define IRDA_SW_RST 12 > +#define IRTX_SW_RST 13 and 14, 15? > +#define THERM_SW_RST 16 > +#define MSDC2_SW_RST 17 > +#define MSDC3_SW_RST 17 MSDC 2 and 3 are both 17?! :-) > +#define MSDC0_SW_RST 19 > +#define MSDC1_SW_RST 20 21? > +#define I2C0_SW_RST 22 > +#define I2C1_SW_RST 23 > +#define I2C2_SW_RST 24 > +#define I2C3_SW_RST 25 > +#define USB_SW_RST 28 > + and 29-32? > +#define SPI0_SW_RST 33 > + > +#endif I have a hunch that you've misunderstood the changes in the resets... What Rex-BC has done in his reset cleanup is exactly to stop directly mapping these to the actual bits that we're using... so the definitions in there will simply be sequential, and the actual mapping is done in your clk-mt6735-pericfg.c driver. Is it clear? Does it make sense now? :-) Cheers, Angelo