From: xinlei.lee <xinlei.lee@mediatek.com>
To: Chen-Yu Tsai <wenst@chromium.org>
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 15:22:58 +0800 [thread overview]
Message-ID: <18366a6dfb36b26ea321f4aa2327750c590e1769.camel@mediatek.com> (raw)
In-Reply-To: <CAGXv+5GWJOFjePKJ5ABnYP2eXeU0PM6Yo3b3vYmErUnDY4=ZQQ@mail.gmail.com>
On Fri, 2022-02-25 at 14:26 +0800, Chen-Yu Tsai wrote:
> 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
Hi chenyu:
Thanks for your suggestion!
I will refer to this file to reuse the already defined disp_pwm.
Best Regards!
xinlei
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-02-25 7:24 UTC|newest]
Thread overview: 23+ 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: Convert pwm-mtk-disp.txt to mediatek, pwm-disp.yaml format xinlei.lee
2022-02-16 10:22 ` [v2,1/4] dt-bindings: pwm: Convert pwm-mtk-disp.txt to mediatek,pwm-disp.yaml format Krzysztof Kozlowski
2022-02-17 1:40 ` xinlei.lee
2022-02-16 22:51 ` [v2, 1/4] dt-bindings: pwm: Convert pwm-mtk-disp.txt to mediatek, pwm-disp.yaml format Rob Herring
2022-02-17 12:35 ` [v2,1/4] dt-bindings: pwm: Convert pwm-mtk-disp.txt to mediatek,pwm-disp.yaml format xinlei.lee
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
2022-02-25 7:19 ` xinlei.lee
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
2022-02-25 6:17 ` xinlei.lee
2022-02-25 6:26 ` Chen-Yu Tsai
2022-02-25 7:22 ` xinlei.lee [this message]
[not found] ` <7d54ecb2-bb7a-ab3d-9e29-fa2541ec549d@mediatek.com>
2022-02-16 10:16 ` [v2,0/4] Convert pwm-mtk-disp.txt to mediatek,pwm-disp.yaml format xinlei.lee
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=18366a6dfb36b26ea321f4aa2327750c590e1769.camel@mediatek.com \
--to=xinlei.lee@mediatek.com \
--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=wenst@chromium.org \
--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