From: Yassine Oudjana <yassine.oudjana@gmail.com>
To: AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
Sam Shih <sam.shih@mediatek.com>,
Daniel Golle <daniel@makrotopia.org>,
Bartosz Golaszewski <brgl@bgdev.pl>
Cc: Yassine Oudjana <y.oudjana@protonmail.com>,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org
Subject: Re: [PATCH v5 2/2] clk: mediatek: Add drivers for MediaTek MT6735 main clock and reset drivers
Date: Thu, 10 Oct 2024 16:12:20 +0300 [thread overview]
Message-ID: <02a0487d-4538-4796-b779-da059f4e6ddd@gmail.com> (raw)
In-Reply-To: <d9bd5573-4860-4a59-b03c-2c353a9b556b@collabora.com>
On 10/10/2024 3:59 pm, AngeloGioacchino Del Regno wrote:
> Il 10/10/24 14:45, Yassine Oudjana ha scritto:
>> From: Yassine Oudjana <y.oudjana@protonmail.com>
>>
>> Add drivers for MT6735 apmixedsys, topckgen, infracfg and pericfg
>> clock and reset controllers. These provide the base clocks and resets
>> on the platform, enough to bring up all essential blocks including
>> PWRAP, MSDC and peripherals (UART, I2C, SPI).
>>
>> Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
>> ---
>> MAINTAINERS | 4 +
>> drivers/clk/mediatek/Kconfig | 9 +
>> drivers/clk/mediatek/Makefile | 1 +
>> drivers/clk/mediatek/clk-mt6735-apmixedsys.c | 138 +++++++
>> drivers/clk/mediatek/clk-mt6735-infracfg.c | 107 +++++
>> drivers/clk/mediatek/clk-mt6735-pericfg.c | 124 ++++++
>> drivers/clk/mediatek/clk-mt6735-topckgen.c | 394 +++++++++++++++++++
>> 7 files changed, 777 insertions(+)
>> create mode 100644 drivers/clk/mediatek/clk-mt6735-apmixedsys.c
>> create mode 100644 drivers/clk/mediatek/clk-mt6735-infracfg.c
>> create mode 100644 drivers/clk/mediatek/clk-mt6735-pericfg.c
>> create mode 100644 drivers/clk/mediatek/clk-mt6735-topckgen.c
>>
>
> You're so, so, so, so..... *so close* to get this one upstream.
>
> Read the comments below and *please*, fix it and send a v6 *as soon as
> you can*,
> so that we get a good chance to see this in v6.13 and so that you can
> move on
> with upstreaming the other stuff that you got for this SoC.
>
> ..snip...
>
>> diff --git a/drivers/clk/mediatek/clk-mt6735-infracfg.c b/drivers/clk/
>> mediatek/clk-mt6735-infracfg.c
>> new file mode 100644
>> index 0000000000000..eceb13af3222a
>> --- /dev/null
>> +++ b/drivers/clk/mediatek/clk-mt6735-infracfg.c
>> @@ -0,0 +1,107 @@
>> +// SPDX-License-Identifier: GPL-2.0
>> +/*
>> + * Copyright (c) 2022 Yassine Oudjana <y.oudjana@protonmail.com>
>> + */
>> +
>> +#include <linux/clk-provider.h>
>> +#include <linux/platform_device.h>
>> +
>> +#include "clk-gate.h"
>> +#include "clk-mtk.h"
>> +
>> +#include <dt-bindings/clock/mediatek,mt6735-infracfg.h>
>> +#include <dt-bindings/reset/mediatek,mt6735-infracfg.h>
>> +
>> +#define INFRA_RST0 0x30
>> +#define INFRA_GLOBALCON_PDN0 0x40
>> +#define INFRA_PDN1 0x44
>> +#define INFRA_PDN_STA 0x48
>
> #define<tab>INFRA_PDN_STA .... I know this is a typo, but you'll have to
> fix it.
>
> Please replace the tabulation with a space, so that this is consistent
> with all
> of the other definitions that you have in here.
>
>> +
>> +#define RST_NR_PER_BANK 32
>> +
>
> ..snip..
>
>> diff --git a/drivers/clk/mediatek/clk-mt6735-pericfg.c b/drivers/clk/
>> mediatek/clk-mt6735-pericfg.c
>> new file mode 100644
>> index 0000000000000..6f298d5538782
>> --- /dev/null
>> +++ b/drivers/clk/mediatek/clk-mt6735-pericfg.c
>> @@ -0,0 +1,124 @@
>> +// SPDX-License-Identifier: GPL-2.0
>> +/*
>> + * Copyright (c) 2022 Yassine Oudjana <y.oudjana@protonmail.com>
>> + */
>> +
>> +#include <linux/clk-provider.h>
>> +#include <linux/platform_device.h>
>> +
>> +#include "clk-gate.h"
>> +#include "clk-mtk.h"
>> +
>> +#include <dt-bindings/clock/mediatek,mt6735-pericfg.h>
>> +#include <dt-bindings/reset/mediatek,mt6735-pericfg.h>
>> +
>> +#define PERI_GLOBALCON_RST0 0x00
>> +#define PERI_GLOBALCON_RST1 0x04
>> +#define PERI_GLOBALCON_PDN0_SET 0x08
>> +#define PERI_GLOBALCON_PDN0_CLR 0x10
>> +#define PERI_GLOBALCON_PDN0_STA 0x18
>
> same here
>
>> +
>> +#define RST_NR_PER_BANK 32
> After which:
>
> Reviewed-by: AngeloGioacchino Del Regno
> <angelogioacchino.delregno@collabora.com>
Tried so hard to catch all typos but I guess some still had to make it
through. One quick fix coming up!
prev parent reply other threads:[~2024-10-10 13:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-10 12:45 [PATCH v5 0/2] " Yassine Oudjana
2024-10-10 12:45 ` [PATCH v5 1/2] dt-bindings: clock: Add MediaTek MT6735 clock and reset bindings Yassine Oudjana
2024-10-10 12:58 ` AngeloGioacchino Del Regno
2024-10-10 12:45 ` [PATCH v5 2/2] clk: mediatek: Add drivers for MediaTek MT6735 main clock and reset drivers Yassine Oudjana
2024-10-10 12:59 ` AngeloGioacchino Del Regno
2024-10-10 13:12 ` Yassine Oudjana [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=02a0487d-4538-4796-b779-da059f4e6ddd@gmail.com \
--to=yassine.oudjana@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=brgl@bgdev.pl \
--cc=conor+dt@kernel.org \
--cc=daniel@makrotopia.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=mturquette@baylibre.com \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=sam.shih@mediatek.com \
--cc=sboyd@kernel.org \
--cc=y.oudjana@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®