[RESEND PATCH 3/3] riscv: dts: canaan: Add k230's pinctrl node
Conor Dooley
conor at kernel.org
Mon Sep 23 02:50:40 PDT 2024
On Wed, Sep 18, 2024 at 04:39:29PM +0800, Ze Huang wrote:
> On 9/16/24 11:52 PM, Krzysztof Kozlowski wrote:
> > On 16/09/2024 08:47, Ze Huang wrote:
> > > Add pinctrl device, containing default config for uart, pwm, iis, iic and
> > > mmc.
> > >
> > > Signed-off-by: Ze Huang <18771902331 at 163.com>
> > > ---
> > > arch/riscv/boot/dts/canaan/k230-pinctrl.dtsi | 316 +++++++++++++++++++
> > > arch/riscv/boot/dts/canaan/k230-pinctrl.h | 18 ++
> > > arch/riscv/boot/dts/canaan/k230.dtsi | 2 +
> > > 3 files changed, 336 insertions(+)
> > > create mode 100644 arch/riscv/boot/dts/canaan/k230-pinctrl.dtsi
> > > create mode 100644 arch/riscv/boot/dts/canaan/k230-pinctrl.h
> > >
> > > diff --git a/arch/riscv/boot/dts/canaan/k230-pinctrl.dtsi b/arch/riscv/boot/dts/canaan/k230-pinctrl.dtsi
> > > new file mode 100644
> > > index 000000000000..0737f50d2868
> > > --- /dev/null
> > > +++ b/arch/riscv/boot/dts/canaan/k230-pinctrl.dtsi
> > > @@ -0,0 +1,316 @@
> > > +// SPDX-License-Identifier: GPL-2.0 OR MIT
> > > +/*
> > > + * Copyright (C) 2024 Ze Huang <18771902331 at 163.com>
> > > + */
> > > +#include "k230-pinctrl.h"
> > > +
> > > +/ {
> > > + soc {
> > > + pinctrl: pinctrl at 91105000 {
> > That's odd style - defining SoC nodes outside of SoC DTSI. Are you sure
> > that's preferred coding style in RISC-V or Canaan?
>
> Pinctrl-related nodes were separated the for ease of maintenance, but the
> convention in Canaan is to place them in the board-level DTS file. Would it
> be better to stay consistent with their approach?
Yeah, please put them in the board-level file.
Thanks,
Conor.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20240923/1c42310e/attachment.sig>
More information about the linux-riscv
mailing list