Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp257475pxa; Fri, 21 Aug 2020 06:36:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVziVeaKZ6efqhaK3XqYPuEyuyB4BSmAHBLHQVTl3MsbtzDATUegVGfuRHHQsBVoaCP+Xu X-Received: by 2002:a50:8d01:: with SMTP id s1mr2745008eds.225.1598017003236; Fri, 21 Aug 2020 06:36:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598017003; cv=none; d=google.com; s=arc-20160816; b=vuQSSbAl4tLXcP0K4yaC92O8zsgPLfKbR6eI6wmGuW2XtSZIeqxM8e4LivMkuhGjdh YiVGu7slWgPUirDQ3XX3A7OmsU9DGPRxwtDXuumMombQX8cxw+krf0jZFlIUckpi/a6Y RXAi3oGPeVcO1b+5l3iA0t+KpkCNNz2tl7c/8cChvoU65P/9JyBUZLXfVhsP9gfJPW8W K/NbO3grw20SlejOVGWmC8ua+icYpVFGSmicL07TrOvQiTcpZIBsZ9zqAMTB1nhR5MCm 9VxcqTt2llin/fdpZSQuyh9OkXqSfL4N/hx6ptGlYz778VzZSPz2X5UbcQiZFaVQ5QvJ SrCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=WE/9d808AHOdfGXnnBLFXkEx9td59TWxZ9l7paPbsT4=; b=u2jmL5J2GtLImvqjnbx+rOnRPlo4GAqWIYp1QHhKbDxkU289zU2nEdlLAV6TI4/fFG L4g3a0m1mTI5wsJrbeChFFNTNBUe5bJ6+0orMQe+Wrt5NnxJ548Nt4bvYarUlf07ZBVX QkGEaW7/+gXx1Yrh8LT4RK/2FvujijxpHidk7gAgNLX63IVxCaksbYcOPFfJKhpT0sDT r1Igjnm5vJocG2upqUaqBX+Zies4fF+2vObo9AtHk27ZbPzzIekpHLeiK2i7FSpzTAmH Hl5WwovflXvmI4C9Tjc0WYtAao+XnglQthJeZl5YHAIMuamCfgSdrTRpeGVXg9fM2mxg gJTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i9si1201409edy.464.2020.08.21.06.36.19; Fri, 21 Aug 2020 06:36:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728697AbgHUNdG (ORCPT + 99 others); Fri, 21 Aug 2020 09:33:06 -0400 Received: from mail-oo1-f65.google.com ([209.85.161.65]:36107 "EHLO mail-oo1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726345AbgHUNdD (ORCPT ); Fri, 21 Aug 2020 09:33:03 -0400 Received: by mail-oo1-f65.google.com with SMTP id y30so343660ooj.3; Fri, 21 Aug 2020 06:33:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WE/9d808AHOdfGXnnBLFXkEx9td59TWxZ9l7paPbsT4=; b=k72shL9ePq1yrUu29v4Qmwdt8Zcmi6YE7Jw96hhur2CwtRUer+urRbQQbXz3+kOGGw y5vyboMxTdZPp1I0Yj/nE/hTmquny4GuAwPEWp1w0S5Vfkz/d06FHY2de8Ul5pHYM2rM UznN6NZ2Rnuv7H5qu6jZaVDzy1l3hV5yCdh4oyBDl3tKX2XHucKpWWXU1qr4YT+zuIaM KOA/46ZdzLzVizdbQHRbiTMKVXz+hD+3QSjWmuvuJF5ggh/fHFa4mRgDdHHsNjvvE/ce xFSkavtR3Yo7mNCrjb07ThNfUS//EL3peMjFZp17t7DdpH5eXpVLRuIMzJJK+eE+V/I7 8pTQ== X-Gm-Message-State: AOAM532oMwknupth+5oXca7OCiGA0hIyM81TpMh6y+msH5yRxXhLDRRO 3FHkapUDEPHNgTKTGPRcqS34SexcI4IRZkBbU1yZlpA5 X-Received: by 2002:a4a:275e:: with SMTP id w30mr2078545oow.40.1598016782424; Fri, 21 Aug 2020 06:33:02 -0700 (PDT) MIME-Version: 1.0 References: <20200816193316.7641-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20200816193316.7641-4-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20200816193316.7641-4-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Fri, 21 Aug 2020 15:32:51 +0200 Message-ID: Subject: Re: [PATCH 3/3] ARM: dts: r8a7742-iwg21m: Add SPI NOR support To: Lad Prabhakar Cc: Geert Uytterhoeven , Magnus Damm , Rob Herring , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Prabhakar Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, On Sun, Aug 16, 2020 at 9:33 PM Lad Prabhakar wrote: > Add support for the SPI NOR device used to boot up the system > to the System on Module DT. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Chris Paterson Thanks for your patch! > --- a/arch/arm/boot/dts/r8a7742-iwg21m.dtsi > +++ b/arch/arm/boot/dts/r8a7742-iwg21m.dtsi > @@ -70,4 +80,28 @@ > groups = "mmc1_data4", "mmc1_ctrl"; > function = "mmc1"; > }; > + > + qspi_pins: qspi { > + groups = "qspi_ctrl", "qspi_data2"; > + function = "qspi"; > + }; > +}; > + > +&qspi { > + pinctrl-0 = <&qspi_pins>; > + pinctrl-names = "default"; > + > + status = "okay"; > + > + /* WARNING - This device contains the bootloader. Handle with care. */ > + flash: flash@0 { > + #address-cells = <1>; > + #size-cells = <1>; #{address,size}-cells are not needed, unless you list legacy partitions (i.e. partitions not contained in a "partitions" container). > + compatible = "sst,sst25vf016b", "jedec,spi-nor"; > + reg = <0>; > + spi-max-frequency = <50000000>; > + m25p,fast-read; > + spi-cpol; > + spi-cpha; Perhaps you want to add the partition layout, too? > + }; > }; With the above fixed/clarified: Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds