From: Chen-Yu Tsai <wenst@chromium.org>
To: "xinlei.lee" <xinlei.lee@mediatek.com>
Cc: Rob Herring <robh@kernel.org>,
thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de,
lee.jones@linaro.org, matthias.bgg@gmail.com,
jitao.shi@mediatek.com, allen-kh.cheng@mediatek.com,
linux-pwm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,
Project_Global_Chrome_Upstream_Group@mediatek.com,
Xinlei Lee <xinlei.lee@mediatek.corp-partner.google.com>
Subject: Re: [v2,4/4] dt-bindings: pwm: Add compatible for MediaTek MT8186
Date: Fri, 25 Feb 2022 14:26:29 +0800 [thread overview]
Message-ID: <CAGXv+5GWJOFjePKJ5ABnYP2eXeU0PM6Yo3b3vYmErUnDY4=ZQQ@mail.gmail.com> (raw)
In-Reply-To: <acc635f9e6d4f6f278ac334b13e96ce30c8c8b1d.camel@mediatek.com>
On Fri, Feb 25, 2022 at 2:18 PM xinlei.lee <xinlei.lee@mediatek.com> wrote:
>
> On Thu, 2022-02-24 at 15:19 -0600, Rob Herring wrote:
> > On Wed, Feb 16, 2022 at 05:32:51PM +0800, xinlei.lee@mediatek.com
> > wrote:
> > > From: Xinlei Lee <xinlei.lee@mediatek.corp-partner.google.com>
> > >
> > > Add dt-binding documentation of pwm for MediaTek MT8186 SoC.
> > >
> > > Signed-off-by: Xinlei Lee <
> > > xinlei.lee@mediatek.corp-partner.google.com>
> > > ---
> > > Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 1 +
> > > 1 file changed, 1 insertion(+)
> > >
> > > diff --git a/Documentation/devicetree/bindings/pwm/mediatek,pwm-
> > > disp.yaml b/Documentation/devicetree/bindings/pwm/mediatek,pwm-
> > > disp.yaml
> > > index 768ab04d3764..1f45b1b8c3d4 100755
> > > --- a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml
> > > +++ b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml
> > > @@ -17,6 +17,7 @@ properties:
> > > - mediatek,mt6595-disp-pwm
> > > - mediatek,mt8173-disp-pwm
> > > - mediatek,mt8183-disp-pwm
> > > + - mediatek,mt8186-disp-pwm
> > > - mediatek,mt8192-disp-pwm
> > > - mediatek,mt8195-disp-pwm
> >
> > It seems unlikely that every SoC has a different version of h/w for
> > something as simple as a PWM. There's not an appropriate fallback?
> > The
> > first version from an SoC that has all the features and would work
> > with
> > existing driver unchanged?
> >
> > Rob
>
> Hi Rob:
>
> Thanks for your suggestion,I agree with your point of view.
> If I want to show that different socs are using this disp_pwm, can I
> use oneOf with items to achieve this, and reuse the compatiable that is
> currently included in the pwm_mtk_disp.c file.
> E.g:
> - items:
> - enum:
> -mediatek,mt8186-disp-pwm
> - enum:
> -mediatek,mt8183-disp-pwm
> What's your suggestion for this program?
Using Documentation/devicetree/bindings/mmc/mtk-sd.yaml as a reference,
you would have:
compatible:
oneOf:
- enum:
- mediatek,mt6595-disp-pwm
- mediatek,mt8173-disp-pwm
- mediatek,mt8183-disp-pwm
- items:
- const: mediatek,mt8186-disp-pwm
- const: mediatek,mt8183-disp-pwm
...
ChenYu
> Best Regards!
> xinlei
> _______________________________________________
> Linux-mediatek mailing list
> Linux-mediatek@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-mediatek
next prev parent reply other threads:[~2022-02-25 6:26 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-16 9:32 [v2,0/4] Convert pwm-mtk-disp.txt to mediatek,pwm-disp.yaml format xinlei.lee
2022-02-16 9:32 ` [v2,1/4] dt-bindings: pwm: " xinlei.lee
2022-02-16 10:22 ` Krzysztof Kozlowski
2022-02-16 22:51 ` Rob Herring
[not found] ` <0f8c014c077d0fc75c8552e457482d9daf68d73b.camel@mediatek.com>
2022-02-24 20:49 ` Rob Herring
2022-02-25 6:24 ` [v2, 1/4] dt-bindings: pwm: Convert pwm-mtk-disp.txt to mediatek, pwm-disp.yaml format Chen-Yu Tsai
[not found] ` <918bfe38f716c2e1ca411ae42a5a9ab0bf810692.camel@mediatek.com>
2022-02-25 7:22 ` Chen-Yu Tsai
2022-02-16 9:32 ` [v2,2/4] dt-bindings: pwm: Add compatible for MediaTek MT8192 xinlei.lee
2022-02-16 10:24 ` Krzysztof Kozlowski
2022-02-16 9:32 ` [v2,3/4] dt-bindings: pwm: Add compatible for MediaTek MT8195 xinlei.lee
2022-02-16 10:24 ` Krzysztof Kozlowski
2022-02-16 9:32 ` [v2,4/4] dt-bindings: pwm: Add compatible for MediaTek MT8186 xinlei.lee
2022-02-16 10:25 ` Krzysztof Kozlowski
2022-02-24 21:19 ` Rob Herring
[not found] ` <acc635f9e6d4f6f278ac334b13e96ce30c8c8b1d.camel@mediatek.com>
2022-02-25 6:26 ` Chen-Yu Tsai [this message]
2022-02-16 9:47 ` [v2,0/4] Convert pwm-mtk-disp.txt to mediatek,pwm-disp.yaml format Macpaul Lin
2022-02-16 10:19 ` Krzysztof Kozlowski
2022-02-16 10:24 ` Krzysztof Kozlowski
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='CAGXv+5GWJOFjePKJ5ABnYP2eXeU0PM6Yo3b3vYmErUnDY4=ZQQ@mail.gmail.com' \
--to=wenst@chromium.org \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=allen-kh.cheng@mediatek.com \
--cc=devicetree@vger.kernel.org \
--cc=jitao.shi@mediatek.com \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-pwm@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=robh@kernel.org \
--cc=thierry.reding@gmail.com \
--cc=u.kleine-koenig@pengutronix.de \
--cc=xinlei.lee@mediatek.com \
--cc=xinlei.lee@mediatek.corp-partner.google.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;
as well as URLs for NNTP newsgroup(s).