Thread (33 messages) 33 messages, 3 authors, 2025-09-11

回复: [PATCH 2/3] dt-bindings: pinctrl: Add cix,sky1-pinctrl

From: Gary Yang <gary.yang@cixtech.com>
Date: 2025-09-11 01:58:44
Also in: linux-gpio, lkml

Hi Linus,
On Tue, Sep 9, 2025 at 5:30 AM Gary Yang [off-list ref] wrote:
quoted
First share a good news with you. It's that We have verified the new scheme
pass on Radax O6 board.

That's great!
quoted
We just have a question before submit new patchs. As you know, there are
some macros defines in dts/dtsi file.
quoted
Where should these defines locate? We found these defines locate in
include/dt-bindings/pinctrl/

mt7623-pinfunc.h on MT7623 platform. We don't find
arch/arm64/boot/dts/*/* -pinmux-props.dtsi.
quoted
What's your suggestion? Please kindly remind me if I misunderstand and
miss anything.

Yes these are old habits from Mediatek platforms which are bad.

Since they are not bindings, just convenience defines, I would suggest you
move the stuff from include/dt-bindings/pinctrl/pads-sky1.h

Into
arch/arm64/boot/dts/cix/pads-sky1[.h|.dtsi]

I am not aware that using .h or .dtsi has any semantic difference, maybe the
DT experts can tell. Maybe use pads-sky1.h to be on the safe side.
Yes, I understand your thinking now. we also find some examples under arch/arm64/boot/dts/*/*.h.

for example: arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h and arch/arm64/boot/dts/mediatek/mt8516-pinfunc.h

We will take them as example, and create arch/arm64/boot/dts/cix/sky1-pinfunc.h. All right?

Thanks for your suggestion.

If miss any information, please kindly remind me.
Yours,
Linus Walleij
Best wishes
Gary
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help