[PATCH v3 2/2] ARM: dts: nes: add Nintendo NES/SuperNES Classic Edition support

Maxime Ripard maxime.ripard at bootlin.com
Tue Apr 24 00:55:05 PDT 2018


On Mon, Apr 23, 2018 at 12:27:52PM +0200, Miquel Raynal wrote:
> > >  	sun8i-r16-parrot.dtb \
> > >  	sun8i-r40-bananapi-m2-ultra.dtb \
> > >  	sun8i-v3s-licheepi-zero.dtb \
> > > diff --git a/arch/arm/boot/dts/sun8i-a23-a33.dtsi b/arch/arm/boot/dts/sun8i-a23-a33.dtsi
> > > index 6b9e85b4ba0f..44f3cad3de75 100644
> > > --- a/arch/arm/boot/dts/sun8i-a23-a33.dtsi
> > > +++ b/arch/arm/boot/dts/sun8i-a23-a33.dtsi
> > > @@ -198,6 +198,8 @@
> > >  			clock-names = "ahb", "mod";
> > >  			resets = <&ccu RST_BUS_NAND>;
> > >  			reset-names = "ahb";
> > > +			pinctrl-names = "default";
> > > +			pinctrl-0 = <&nand_pins &nand_pins_cs0 &nand_pins_rb0>;  
> > 
> > This should be in your first patch I guess?
> 
> Actually I think this should not be there but instead, because it is
> board-related, these two lines should be in the nes-classic.dts' nfc
> node, right? Other a23/a33/r16 based designs could use the second set
> of CS/RB pins.

Does that ever happen?

On a theoretical level, then yeah, sure. But if all the boards seen
out there are using the same setup (which is pretty common), then
there's no reason not to do it in the DTSI.

Maxime

-- 
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180424/522f47ed/attachment.sig>


More information about the linux-arm-kernel mailing list