On Thu, May 25, 2017 at 5:24 AM, Sergey Matyukevich <geomatsi@xxxxxxxxx> wrote: > SPI NOR flash was optional in the first production batch in Dec 2016. > In later batches flash chip was pre-populated. However there should > be quite a few boards around which do not have flash chip. > > Add node for SPI NOR flash on orange-pi-zero board. Disable this node > by default and leave it to users to enable it if their board has > SPI NOR flash chip populated. > > Signed-off-by: Sergey Matyukevich <geomatsi@xxxxxxxxx> > --- > arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts > index e97dfd1775d1..bbbd8c656914 100644 > --- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts > +++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts > @@ -138,6 +138,19 @@ > bias-pull-up; > }; > > +&spi0 { > + /* Disable SPI NOR by default: it optional on Orange Pi Zero boards */ > + status = "disabled"; > + > + flash@0 { > + #address-cells = <1>; > + #size-cells = <1>; > + compatible = "mxicy,mx25l1606e", "winbond,w25q128"; > + reg = <0>; > + spi-max-frequency = <40000000>; > + }; > +}; > + > &ohci0 { Please sort the node references in alphabetical order. ChenYu > status = "okay"; > }; > -- > 2.11.0 > -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html