From: Stefan Mavrodiev Date: Thu, 8 Feb 2018 10:16:14 +0200 Subject: [U-Boot] [PATCH v4 2/2] Enable test case with A20-OLinuXino-Lime2 In-Reply-To: References: <1517922874-5815-1-git-send-email-stefan@olimex.com> <1517922874-5815-2-git-send-email-stefan@olimex.com> <70ef7ae8-5167-9f63-52a9-7ed080b8b1b5@gmail.com> <20180207171913.uob6sosp6psqbloc@flea> <7481f265-428c-d569-ef9a-d743d6358595@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 02/08/2018 09:03 AM, Jagan Teki wrote: > On Thu, Feb 8, 2018 at 11:54 AM, Stefan Mavrodiev > wrote: >> On 02/07/2018 07:19 PM, Maxime Ripard wrote: >>> On Wed, Feb 07, 2018 at 12:55:54PM +0530, Jagan Teki wrote: >>>>>>>>> +&spi0 { >>>>>>>>> + pinctrl-names = "default"; >>>>>>>>> + pinctrl-0 = <&spi0_pins_b>, <&spi0_cs0_pins_b>; >>>>>>>>> + status = "okay"; >>>>>>>>> + >>>>>>>>> + flash: w25q128 at 0 { >>>>>>>> Was it sync from Linux? >>>>>>> No, this isn't in the linux dts. >>>>>> But we have to, please send it to Linux first. >>>>> We've already commented this issue. In the v2 [1], I've explained that >>>>> this >>>>> won't go mainline, since it's optional feature. Rather it will be >>>>> managed >>>>> with overlays. >>>> Thought this was already in ML, and ready to merge. So this never go >>>> to Linux tree since it's optional? then add u-boot.dtsi for this >>>> atleast since we always sync dts from Linux. >>> This is an optional feature on that board. We should be making it as >>> easy as possible to enable it, but a defconfig is a *default* >>> configuration, and if the board doesn't have it by default, it >>> shouldn't be enabled in the defconfig. >>> >>> Maxime >>> >> Sorry, but I'm really confused. In the first patch Jagan said to make >> separate patch >> "just to test" the driver. Then I've made patch "just to test", and it's >> turn out it wasn't not OK, >> because it should be compatible with linux, u-boot and etc. What's the point >> since it's just for testing...? >> >> Sorry again, but can someone explain to me, that to do? >> I'm not trying to pick on you guys. Just want to do the right thing. > I think we're in out-of-sync for some reason. > > Here is my suggestion: > Since it is "optional feature however similar boards of this type > could not have it"? > > How about separate defconfig file? > A20-OLinuXino-Lime2-spinor_defconfig and have same dts file with > > /* Disable SPI NOR by default: it optional on A20-OLinuXino-Lime2 boards */ > status = "disabled"; > > But the dts should accept by Linux as well. Already tried this [1] and got rejected. [1] https://patchwork.kernel.org/patch/10076721/