From: "Friday Yang (杨阳)" <Friday.Yang@mediatek.com>
To: "krzk@kernel.org" <krzk@kernel.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"p.zabel@pengutronix.de" <p.zabel@pengutronix.de>,
"Yong Wu (吴勇)" <Yong.Wu@mediatek.com>,
"conor+dt@kernel.org" <conor+dt@kernel.org>,
"robh@kernel.org" <robh@kernel.org>,
Project_Global_Chrome_Upstream_Group
<Project_Global_Chrome_Upstream_Group@mediatek.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>
Subject: Re: [PATCH v2 1/2] dt-bindings: memory: mediatek: Add SMI reset and clamp related property
Date: Fri, 22 Nov 2024 09:40:22 +0000 [thread overview]
Message-ID: <2b9b7a52536bfa07155a24feecd03a3b4268b07b.camel@mediatek.com> (raw)
In-Reply-To: <mnbc33u3ohncqmhyftag26sttqif24mjadnlg2btx7tc3dmowj@6bfh2lb7ekud>
On Wed, 2024-11-20 at 08:45 +0100, Krzysztof Kozlowski wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
>
>
> On Wed, Nov 20, 2024 at 02:36:38PM +0800, Friday Yang wrote:
> > diff --git a/Documentation/devicetree/bindings/memory-
> > controllers/mediatek,smi-larb.yaml
> > b/Documentation/devicetree/bindings/memory-
> > controllers/mediatek,smi-larb.yaml
> > index 2381660b324c..302c0f93b49d 100644
> > --- a/Documentation/devicetree/bindings/memory-
> > controllers/mediatek,smi-larb.yaml
> > +++ b/Documentation/devicetree/bindings/memory-
> > controllers/mediatek,smi-larb.yaml
> > @@ -69,6 +69,18 @@ properties:
> > description: the hardware id of this larb. It's only required
> > when this
> > hardware id is not consecutive from its M4U point of view.
> >
> > + resets:
> > + maxItems: 1
> > + description: This contains a phandle to the reset controller
> > node and an index
> > + to a reset signal. SMI larbs need to get the reset
> > controller by the node.
>
> First sentence is 100% redundant. Arguments depend on the reset-
> cells,
> not this binding.
>
> > + SMI could get the reset signal by the index number defined
> > in the header
> > + include/dt-bindings/reset/mt8188-resets.h.
>
> What? How this can depend on consumer? Drop entire description, it is
> useless.
>
Thanks for your comments, I will remove the entire description.
> > +
> > + reset-names:
> > + const: larb
> > + description: The name of reset controller. SMI driver need to
> > obtain the
> > + reset controller based on this.
>
> Drop description, useless.
OK, I will remove the entire description.
>
> > +
> > required:
> > - compatible
> > - reg
> > @@ -125,19 +137,38 @@ allOf:
> > required:
> > - mediatek,larb-id
> >
> > + - if: # only for camera and image subsys
> > + properties:
> > + mediatek,smi:
> > + contains:
>
> Never tested.
OK, I will fix the indentation.
>
> > + enum:
> > + - smi_sub_common_img0_4x1
> > + - smi_sub_common_img1_4x1
> > + - smi_sub_common_cam_5x1
> > + - smi_sub_common_cam_8x1
>
> Does not work. Test your code before you send it. No clue what you
> want
> to achieve, so not sure how to help.
>
As I mentioned in SMI driver, only SMI larbs located in
camera and image subsys need to apply clamp and reset operation,
others can be skipped.
So I want to know if this description method meets your expectations
here(smi_sub_common_img0_4x1, smi_sub_common_img1_4x1 ...).
>
> > +
> > + then:
> > + required:
> > + - resets
> > + - reset-names
> > +
> > additionalProperties: false
> >
> > examples:
> > - |+
> > - #include <dt-bindings/clock/mt8173-clk.h>
> > - #include <dt-bindings/power/mt8173-power.h>
> > -
> > - larb1: larb@16010000 {
> > - compatible = "mediatek,mt8173-smi-larb";
> > - reg = <0x16010000 0x1000>;
> > - mediatek,smi = <&smi_common>;
> > - power-domains = <&scpsys MT8173_POWER_DOMAIN_VDEC>;
> > - clocks = <&vdecsys CLK_VDEC_CKEN>,
> > - <&vdecsys CLK_VDEC_LARB_CKEN>;
> > - clock-names = "apb", "smi";
> > + #include <dt-bindings/clock/mediatek,mt8188-clk.h>
> > + #include <dt-bindings/power/mediatek,mt8188-power.h>
> > + #include <dt-bindings/reset/mt8188-resets.h>
>
> This is some total mess. Never tested, not correct. Sorry, run it
> internally through some sort of review or internal checklist which
> will
> ask you to test the code before sending.
>
> Best regards,
> Krzysztof
>
next prev parent reply other threads:[~2024-11-22 9:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-20 6:36 [PATCH v2 0/2] Add SMI clamp in MediaTek SMI driver Friday Yang
2024-11-20 6:36 ` [PATCH v2 1/2] dt-bindings: memory: mediatek: Add SMI reset and clamp related property Friday Yang
2024-11-20 7:43 ` Rob Herring (Arm)
2024-11-22 9:37 ` Friday Yang (杨阳)
2024-11-20 7:45 ` Krzysztof Kozlowski
2024-11-22 9:40 ` Friday Yang (杨阳) [this message]
2024-11-20 6:36 ` [PATCH v2 2/2] memory: mtk-smi: mt8188: Add SMI clamp function Friday Yang
2024-11-20 7:49 ` Krzysztof Kozlowski
2024-11-22 9:41 ` Friday Yang (杨阳)
2024-11-22 9:59 ` Krzysztof Kozlowski
2024-11-20 11:49 ` AngeloGioacchino Del Regno
2024-11-22 9:38 ` Friday Yang (杨阳)
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=2b9b7a52536bfa07155a24feecd03a3b4268b07b.camel@mediatek.com \
--to=friday.yang@mediatek.com \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=Yong.Wu@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).