Re: [linux-sunxi] [PATCH v3] drm/sun4i: Implement drm_driver lastclose to restore fbdev console

2017-07-10 Thread Olliver Schinagl
Hey Jonathan, since I reported this to you on IRC, it's only fair that you can have my: Tested-by: Olliver Schinagl For those interessted, I've tested it on an Olimex OLinuXino Lime2 with their 4.3 LCD. Olliver On 10-07-17 08:55, Jonathan Liu wrote: The drm_driver lastclose c

Re: [linux-sunxi] [PATCH v5 2/6] clk: sunxi-ng: Add sun4i/sun7i CCU driver

2017-07-13 Thread Olliver Schinagl
Hey Priit, On 07/13/17 21:23, Priit Laes wrote: > On Mon, Jul 10, 2017 at 11:45:32AM +0200, Olliver Schinagl wrote: >> Hi Pleas, >> >> again, but this time with content :) >> >> On 04-07-17 22:04, Priit Laes wrote: >>> Introduce a clock controller dri

Re: [linux-sunxi] [PATCH v3 00/12] ASoC: Add I2S support for Allwinner H3 SoCs

2017-07-31 Thread Olliver Schinagl
Hey Marcus, On 29-07-17 16:17, codekip...@gmail.com wrote: From: Marcus Cooper Hi All, please find attached a series of patches to bring i2s support to the Allwinner H3 SoC. This has been tested with the following setups: A20 Olimex EVB connected to a pcm5102 But that's not an H3 is it? :)

[linux-sunxi] [PATCH 1/2] sunxi: twi: enable clocks on sun7i

2015-12-03 Thread Olliver Schinagl
From: Olliver Schinagl Commit 6c739c5d added code to enable i2c bus 4 and 5 on the sun7i SoC but forgot to enable the clocks for these 2 i2c busses. This patch enables the clocks for i2c bus 4 and 5 on sun7i. Signed-off-by: Olliver Schinagl --- arch/arm/cpu/armv7/sunxi/clock_sun4i.c | 4

[linux-sunxi] [PATCH 2/2] sun4i: clock: cleanup some whitespace errors

2015-12-03 Thread Olliver Schinagl
From: Olliver Schinagl Add some spaces around operators. Signed-off-by: Olliver Schinagl --- arch/arm/cpu/armv7/sunxi/clock_sun4i.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/cpu/armv7/sunxi/clock_sun4i.c b/arch/arm/cpu/armv7/sunxi/clock_sun4i.c index

[linux-sunxi] [PATCH 0/2] arm: sunxi: twi: enable clock for sun7i

2015-12-03 Thread Olliver Schinagl
From: Olliver Schinagl Paul enabled all I2C ports for sunxi but forgot the clock on twi 4 and 5 for sun7i. And a small non code changing whitespace fix Tested on Olimex Lime2 Olliver Schinagl (2): sunxi: twi: enable clocks on sun7i sun4i: clock: cleanup some whitespace errors arch/arm

Re: [linux-sunxi] [PATCH 1/2] sunxi: twi: enable clocks on sun7i

2015-12-03 Thread Olliver Schinagl
Hey Julian On December 4, 2015 12:01:27 AM CET, Julian Calaby wrote: >Hi Oliver, > >On Fri, Dec 4, 2015 at 9:57 AM, Julian Calaby >wrote: >> Hi Oliver, >> >> On Fri, Dec 4, 2015 at 3:49 AM, Olliver Schinagl >wrote: >>> From: Olliver Schinagl >&g

[linux-sunxi] [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-04-29 Thread Olliver Schinagl
shares pins with the NAND module and with the second SPI port. Signed-off-by: Olliver Schinagl --- .../boot/dts/sun7i-a20-olinuxino-lime2-emmc.dts| 64 ++ 1 file changed, 64 insertions(+) create mode 100644 arch/arm/boot/dts/sun7i-a20-olinuxino-lime2-emmc.dts diff --git

[linux-sunxi] Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-03 Thread Olliver Schinagl
Hey Chen, On 03-05-16 05:33, Chen-Yu Tsai wrote: Hi, On Thu, Apr 28, 2016 at 3:19 PM, Olliver Schinagl wrote: There are 3 kinds of OLinuXino Lime2 boards. One without any on board storage, one with NAND storage and one with eMMC storage. This patch adds the eMMC variant of boards. eMMC

[linux-sunxi] [PATCHv2] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-03 Thread Olliver Schinagl
shares pins with the NAND module and with the second SPI port. Signed-off-by: Olliver Schinagl --- .../boot/dts/sun7i-a20-olinuxino-lime2-emmc.dts| 64 ++ 1 file changed, 64 insertions(+) create mode 100644 arch/arm/boot/dts/sun7i-a20-olinuxino-lime2-emmc.dts diff --git

[linux-sunxi] Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-03 Thread Olliver Schinagl
Hey all, On 03-05-16 17:02, christo.ra...@gmail.com wrote: On Tuesday, May 3, 2016 at 4:14:41 PM UTC+3, Maxime Ripard wrote: Hi, On Tue, May 03, 2016 at 4:12:06 PM UTC+3, Christo Radev wrote: Hi to All, I have already solved and tested this issue on Armbian build. Find patches for both lega

[linux-sunxi] Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-04 Thread Olliver Schinagl
Hey Radoslav, On 04-05-16 14:30, Radoslav Kolev wrote: 2016-05-03 10:25 GMT+03:00 Chen-Yu Tsai : On Tue, May 3, 2016 at 3:21 PM, Olliver Schinagl wrote: + bus-width = <4>; Only 4 bits? We normally see eMMC with 8 bits. 4 bits are some kind of embedded SD card. On A20 as wel

[linux-sunxi] [PATCHv3] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-04 Thread Olliver Schinagl
shares pins with the NAND module and with the second SPI port. Signed-off-by: Olliver Schinagl --- .../boot/dts/sun7i-a20-olinuxino-lime2-emmc.dts| 81 ++ 1 file changed, 81 insertions(+) create mode 100644 arch/arm/boot/dts/sun7i-a20-olinuxino-lime2-emmc.dts diff --git

[linux-sunxi] Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-04 Thread Olliver Schinagl
ion/page-2#entry7361>. I saw, but you forgot to define the pins for 4.x :) See my patch from earlier: http://lists.infradead.org/pipermail/linux-arm-kernel/2015-September/368887.html Olliver Best regards Chris On Wednesday, May 4, 2016 at 3:52:17 PM UTC+3, Olliver Schinagl wrote:

[linux-sunxi] Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-04 Thread Olliver Schinagl
/* D6 */ />>>/SUNXI_PIN(SUNXI_PINCTRL_PIN(C, 15), />>>/SUNXI_FUNCTION(0x0, "gpio_in"), />>>/SUNXI_FUNCTION(0x1, "gpio_out"), />>>/- SUNXI_FUNCTION(0x2, "nand0")), /* NDQ7 */ />>>/+ SUNXI_FUNCTION(0x2, "nand0"), /*

[linux-sunxi] Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-04 Thread Olliver Schinagl
m ready to make 8-bit eMMC access tests again so could you help me with the needed staff it has to be used. I don't mind, but lets take it off list for that :) Olliver Best regards Chris On Wednesday, May 4, 2016 at 4:59:52 PM UTC+3, Olliver Schinagl wrote: Hey Christo, On 04-0

[linux-sunxi] Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-05 Thread Olliver Schinagl
Hey Christo, On 04-05-16 21:40, Christo Radev wrote: Hi Oliver, I start performance tests for eMMC, SD/MMC, USB, SATA SSD devices and will post the result when ready. As a beginning I can say that eMMC is accessed via 4-bit bus without matter of the patch used. There you are the content of

[linux-sunxi] [PATCHv4] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-05 Thread Olliver Schinagl
shares pins with the NAND module and with the second SPI port. Changeslog: v4: Add board compatibles v3: Add pwr-seq-emmc with the reset gpio v2: Remove unsupported no-1.8-v property, add vqmmc property v1: Initial bare bone version Signed-off-by: Olliver Schinagl --- .../boot/dts

[linux-sunxi] Re: [PATCHv4] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-09 Thread Olliver Schinagl
Hey Maxime, On 08-05-16 20:09, Maxime Ripard wrote: On Thu, May 05, 2016 at 11:08:52AM +0200, Olliver Schinagl wrote: There are 3 kinds of OLinuXino Lime2 boards. One without any on board storage, one with NAND storage and one with eMMC storage. This patch adds the eMMC variant of boards

[linux-sunxi] Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-10 Thread Olliver Schinagl
Hey Christo, On 10-05-16 19:25, Christo Radev wrote: Hi Olliver, I try to build Armbian with kernel 4.5.0-rc6 by adding the patch as discussed here . In addition I have to add following as well: | diff --git a/arch/arm/boo

[linux-sunxi] [PATCH] devicetree: sunxi: Add OLinuXino Lime2 eMMC to the Makefile

2016-05-10 Thread Olliver Schinagl
ARM: dts: sunxi: Add a olinuxino-lime2-emmc added the new emmc equipped lime2 but forgot its Makefile. This patch adds an entry to the Makefile. Signed-off-by: Olliver Schinagl --- Maxime, I'm sorry for ommitting the Makefile initially, if it is not merged yet, maybe just squash it wit

[linux-sunxi] Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-10 Thread Olliver Schinagl
Hey Christo, On 10-05-16 21:17, Christo Radev wrote: Hi Olliver, On Tuesday, May 10, 2016 at 9:46:45 PM UTC+3, Olliver Schinagl wrote: Hey Christo, On 10-05-16 19:25, Christo Radev wrote: Hi Olliver, I try to build Armbian with kernel 4.5.0-rc6 by adding the patch as

[linux-sunxi] Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-11 Thread Olliver Schinagl
Christo, On 11-05-16 01:21, Christo Radev wrote: |Hi to All, | I have extend performance tests with measurement of eMMC, SD/MMC and SATA SSD R/W speed with kernel 4.6-rc7. The results and comments are posted on: http://forum.armbian.com/index.php/topic/853-armbian-customization/page-4#entry8

[linux-sunxi] [PATCH 1/1] devicetree: sunxi: Add OLinuXino Lime2 eMMC to the Makefile

2016-05-11 Thread Olliver Schinagl
ARM: dts: sunxi: Add a olinuxino-lime2-emmc added the new emmc equipped lime2 but forgot its Makefile. This patch adds an entry to the Makefile. Signed-off-by: Olliver Schinagl --- Hi list, would it be possible to squash or atleast add this patch with/to my previous patch, ARM: dts: sunxi: Add

[linux-sunxi] [PATCHv2] devicetree: sunxi: Add OLinuXino Lime2 eMMC to the Makefile

2016-05-12 Thread Olliver Schinagl
commit 27dd9af6bc (ARM: dts: sunxi: Add a olinuxino-lime2-emmc added the new emmc equipped) lime2 but forgot its Makefile. This patch adds an entry to the Makefile. Signed-off-by: Olliver Schinagl --- Changes since v0: Added proper commit reference. arch/arm/boot/dts/Makefile | 1 + 1 file

[linux-sunxi] Re: [PATCHv2] devicetree: sunxi: Add OLinuXino Lime2 eMMC to the Makefile

2016-05-13 Thread Olliver Schinagl
and now i'm embarrassed and ashamed. Teaches me not to rush things, right? i'll correct it and take some time to do it right. sorry maxime! On 13-05-16 09:48, Maxime Ripard wrote: Hi Olliver, On Thu, May 12, 2016 at 12:10:51PM +0200, Olliver Schinagl wrote: commit 27dd9af6bc (ARM:

[linux-sunxi] [PATCH 1/1] devicetree: sunxi: Add OLinuXino Lime2 eMMC to the Makefile

2016-05-13 Thread Olliver Schinagl
commit 27dd9af6bc000ab21fd ("ARM: dts: sunxi: Add a olinuxino-lime2-emmc") added the new emmc equipped lime2 but forgot its Makefile. This patch adds an entry to the Makefile. Signed-off-by: Olliver Schinagl --- Changes since v1: Added proper commit reference (again). Change

[linux-sunxi] Stability problems on A20 (lime2)

2016-05-24 Thread Olliver Schinagl
Hey guys, We've been running a whole bunch of lime2's for months now, but very rarely seen a strange crash, where we don't get any panic, but also don't get any connectivity anymore. Getty does not respond and net connectivity is dead. The leds, if configured to blink, will remain blinking (s

Re: [linux-sunxi] Stability problems on A20 (lime2)

2016-05-24 Thread Olliver Schinagl
Hey Michal, On 24-05-16 11:21, Michal Suchanek wrote: Hello, On 24 May 2016 at 10:09, Olliver Schinagl wrote: The weirdest thing happend last week however, when in the course of 5 days, first 8 and then 15 lime2's all crashed within seconds of each-other. Like clockwork. Talking to O

Re: [linux-sunxi] Availability of A80 boards to developers

2014-09-22 Thread Olliver Schinagl
Hi list, long time, no write. Where did this come from may I ask? I was in contact with Eva about a month or so ago (august) where I supplied them with a list of code committers. Did you meanwhile submit this list? I do hope we are not asking in tripples and making AW feel we're just being gr

Re: [linux-sunxi] Availability of A80 boards to developers

2014-09-23 Thread Olliver Schinagl
On 09/22/2014 11:16 PM, Simos Xenitellis wrote: On Mon, Sep 22, 2014 at 11:14 PM, Olliver Schinagl mailto:oli...@schinagl.nl>> wrote: Hi list, long time, no write. Where did this come from may I ask? I was in contact with Eva about a month or so ago (august) where I su

[linux-sunxi] Re: [PATCH 4/7] ARM: sun6i: Add clock support

2014-09-28 Thread Olliver Schinagl
On 28-09-14 17:42, Hans de Goede wrote: Hi, On 09/28/2014 05:37 PM, Ian Campbell wrote: On Sun, 2014-09-28 at 17:23 +0200, Hans de Goede wrote: If you take a closer look at the code you will see not all 3 writes are the same: /* Set PLL ldo voltage without this PLL6 does not work pr

Re: [linux-sunxi] [PATCHv2 3.4 4/4] sunxi: axp20x: Calculate moving average for ACIN voltage/current/power

2014-10-12 Thread Olliver Schinagl
Hey Siarhei, this driver only works on 3.4 right? I think we have the axp20x driver in mainline too do we not? Anyway, I think in a few weeks time from now, I will run some temperature calibration tests on various Lime's and will generate a lot of temperature data. It won't be a huge problem

Re: [linux-sunxi] A20 I2C slave device

2014-10-12 Thread Olliver Schinagl
On 04/16/2014 09:17 PM, Dennis Kerrisk wrote: I know the A20 I2C controller supports Master/Slave operation, But I can find no mention of a device driver that operates as a slave device. Does anyone know if one exists? Or will I have to roll my own? You probably have to check if the linux i2c fra

Re: [linux-sunxi] Re: FAST_MBUS still in current u-boot, should be removed from all boards as a default

2014-10-12 Thread Olliver Schinagl
On 05/30/2014 06:24 PM, Siarhei Siamashka wrote: On Sun, 25 May 2014 11:43:52 +0200 Hans de Goede wrote: Hi, On 05/25/2014 12:34 AM, Olliver Schinagl wrote: Hey all, I am just venting here mostly as I don't have much time to test things really just yet. As you know I am writing a

Re: [linux-sunxi] [PATCHv2 3.4 4/4] sunxi: axp20x: Calculate moving average for ACIN voltage/current/power

2014-10-15 Thread Olliver Schinagl
eries, probably sometime next weekend. Awesome, I'll pull your changes when you poke me and will use those values in a big batch of tests! Olliver Bruno On Sun, 12 October 2014 Olliver Schinagl wrote: Hey Siarhei, this driver only works on 3.4 right? I think we have the axp20x driver in ma

Re: [linux-sunxi] [PATCH 1/9] sun6i: Add new p2wi controller driver

2014-11-03 Thread Olliver Schinagl
Hy Wens, This is some really old work, and I'm assuming hans picked it up, as I never tested the code (didn't have hardware at the time) I'll comment as I remember it and hope that helps. On a side note, do we know what p2wi stands for? I'm guessing 2wi is allwinners try at combining the nam

[linux-sunxi] [PATCH v1] ARM:sunxi:sid: Make use of the of_match_ptr

2015-01-06 Thread Olliver Schinagl
From: Olliver Schinagl I probably have forgotten to use this macro for the of_match pointer, so this patch adds the of_match_ptr macro. Signed-off-by: Olliver Schinagl --- drivers/misc/eeprom/sunxi_sid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/misc/eeprom

[linux-sunxi] Re: [PATCH v1] ARM:sunxi:sid: Make use of the of_match_ptr

2015-01-07 Thread Olliver Schinagl
Hey Arnd, On 07-01-15 10:00, Arnd Bergmann wrote: On Wednesday 07 January 2015 08:41:08 Olliver Schinagl wrote: From: Olliver Schinagl I probably have forgotten to use this macro for the of_match pointer, so this patch adds the of_match_ptr macro. Signed-off-by: Olliver Schinagl

[linux-sunxi] Sunxi FOSDEM2015 Dinner!

2015-01-07 Thread Olliver Schinagl
Hey guys, with FOSDEM 2015 approaching rapidly again, I was wondering if there is anything organized again this year? If not, Who's up for it? :) I will be attending FOSDEM and will have a stand for saturday/sunday for my work (Ultimaker). So Saturday evening sounds perfect for such an event!

Re: [linux-sunxi] Re: Sunxi FOSDEM2015 Dinner!

2015-01-09 Thread Olliver Schinagl
Hey guys, On 09-01-15 11:03, Benjamin Henrion wrote: On Fri, Jan 9, 2015 at 10:28 AM, TsvetanUsunov wrote: +2 for Olimex I will be there as well. @Oliver congratulations for the Cubieboard book at Packt! Thank you! I'm still upset it is focused around CB title-wise, the book is 'all round'

Re: [linux-sunxi] Sunxi FOSDEM2015 Dinner!

2015-01-30 Thread Olliver Schinagl
Hey Ben, On 2015-01-29 17:09, Benjamin Henrion wrote: On Thu, Jan 29, 2015 at 4:34 PM, wrote: Hey Benjamin! My count of the people attending is 18. I may have missed some, but I got stuck at 16 or 17, but with 20 - 22 seats we should be okay :) We will leave Fosdem together by bus a

[linux-sunxi] [PATCH] arm: sunxi: Add missing boot_media fields in the SPL header

2016-06-13 Thread Olliver Schinagl
Commit b19236fd1 ("sunxi: Increase SPL header size to 64 bytes to avoid code corruption") Added defines for MMC0 and SPI as boot identification. After verifying on an OLinuXino Lime2 with NAND and eMMC, the expected values have been confirmed and added to spl.h Signed-off-by: Ollive

[linux-sunxi] Call for R8 (C.H.I.P.) SID's (help needed)

2016-06-16 Thread Olliver Schinagl
Hey sunxi community, this is a request to all R8 owners. We have no SID's recorded on our wiki yet, but would love to have some SID's to see how much sun5i a R8 really is. The C.H.I.P. features a R8, but I think it's the only R8? Anyhow, could you guys be so kind and post your R8 SID? We hav

Re: [linux-sunxi] Call for R8 (C.H.I.P.) SID's (help needed)

2016-06-16 Thread Olliver Schinagl
Hi maxime! So there is absolutely no way to differentiate between the 2? Also if they are fully identical, what is the reason of the new name? Packaging only? olliver On June 16, 2016 8:58:22 PM CEST, Maxime Ripard wrote: >On Thu, Jun 16, 2016 at 08:53:00PM +0200, Olliver Schinagl wr

Re: [linux-sunxi] Call for R8 (C.H.I.P.) SID's (help needed)

2016-06-17 Thread Olliver Schinagl
Well the packaing of the two chips is very different. Maxime, you seem to have access to a few R8 chip boards? Can you look at the sid, specifically the 3rd word should be interesting. It is used to differentiate between the various sun5i flavors right now, something like: switch (SUN5I_

Re: [linux-sunxi] Call for R8 (C.H.I.P.) SID's (help needed)

2016-06-17 Thread Olliver Schinagl
Hey maxime, On 17-06-16 13:23, Maxime Ripard wrote: On Fri, Jun 17, 2016 at 12:14:49PM +0200, Olliver Schinagl wrote: Well the packaing of the two chips is very different. No, it's not. In the mass-production CHIP, the packaging is the exact same one. Ah I thought the R8 was a BGA

Re: [linux-sunxi] Re: Reliability of A20 boards

2016-06-17 Thread Olliver Schinagl
Hey all, On 17-06-16 16:28, TsvetanUsunov wrote: четвъртък, 16 юни 2016 г., 6:38:03 UTC+3, Stefan Monnier написа: I like to use A20 boards for little NAS-style servers, because of their very low power consumption. But so far I'm not impressed w.r.t reliability (large part of

[linux-sunxi] Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-07-15 Thread Olliver Schinagl
On 15-07-16 10:39, stefan.mavrod...@gmail.com wrote: Hi Olliver, Why are you using nRST signal? What I mean is this pin is inactive on this eMMC chip. To use the signal byte 162 of ECSD registers should be written. Then that sounds like a bug in the mmc layer I would say (or a missing attribute

[linux-sunxi] Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-07-15 Thread Olliver Schinagl
Stefan, On 15-07-16 10:57, Olliver Schinagl wrote: On 15-07-16 10:39, stefan.mavrod...@gmail.com wrote: Hi Olliver, Why are you using nRST signal? What I mean is this pin is inactive on this eMMC chip. To use the signal byte 162 of ECSD registers should be written. Then that sounds like a

[linux-sunxi] Re: [PATCH v6] ARM: sun4i: spi: Allow transfers larger than FIFO size

2016-07-21 Thread Olliver Schinagl
As i recall, some claimed it was needed as we have dma now, but i think this patch still scratches the same itch ... On July 21, 2016 7:27:12 PM CEST, Michael Weiser wrote: >Hi Mark, > >On Thu, Jul 21, 2016 at 05:31:53PM +0100, Mark Brown wrote: > >> > What is keeping the patch from being merged

[linux-sunxi] Mainline stability (overvolting/undervolting) etc. (u-boot/linux)

2016-10-25 Thread Olliver Schinagl
Hey all, as some of you are probably aware, some users occasionally experience some instability using the mainline components. I specifically only want to focus on mainline, as with the 3.4 stuff ... well lets just not even go there. [TL;DR] We should offer the user a stable u-boot/kernel co

[linux-sunxi] [PATCH 01/11] net: dw: Add read_rom_hwaddr net_op hook

2016-11-08 Thread Olliver Schinagl
Add the read_rom_hwaddr net_op hook so that it can be called from boards to read the mac from a ROM chip. Signed-off-by: Olliver Schinagl --- drivers/net/designware.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/net/designware.c b/drivers/net/designware.c

[linux-sunxi] [PATCH 11/11] tools: Add tool to add crc8 to a mac address

2016-11-08 Thread Olliver Schinagl
This patch adds a little tool that takes a generic MAC address and generates a CRC byte for it. The output is the full MAC address without any separators, ready written into an EEPROM. Signed-off-by: Olliver Schinagl --- tools/.gitignore| 1 + tools/Makefile | 4 tools

[linux-sunxi] [PATCH 03/11] net: sunxi-emac: Add write_hwaddr net_op hook

2016-11-08 Thread Olliver Schinagl
Expose enetaddr writing via net_ops so that it can be hooked into. Signed-off-by: Olliver Schinagl --- drivers/net/sunxi_emac.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c index 99339db..dcf832e 100644 --- a/drivers/net

[linux-sunxi] [PATCH v3] Retrieve MAC address from EEPROM

2016-11-08 Thread Olliver Schinagl
This patch-series introduces methods to retrieve the MAC address from an onboard EEPROM using the read_rom_hwaddr hook. The reason we might want to read the MAC address from an EEPROM instead of storing the entire environment is mostly a size thing. Our default environment already is bigger then t

[linux-sunxi] [PATCH 07/11] net: sunxi: Do not inject ethernet addresses into the env

2016-11-08 Thread Olliver Schinagl
environment variables any more. Signed-off-by: Olliver Schinagl --- board/sunxi/board.c | 45 + 1 file changed, 13 insertions(+), 32 deletions(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 9b56a89..71124f4 100644 --- a/board/sunxi

[linux-sunxi] [PATCH 09/11] net: sunxi: Enable eeprom on OLinuXino Lime boards

2016-11-08 Thread Olliver Schinagl
This patch enables the I2C EEPROM to be probed for a MAC address on the OLinuXino Lime1 and Lime2 boards. Other boards surely qualify as well but where not tested yet. Signed-off-by: Olliver Schinagl --- configs/A10-OLinuXino-Lime_defconfig | 3 +++ configs/A20-OLinuXino-Lime2_defconfig | 3

[linux-sunxi] [PATCH 02/11] net: sunxi-emac: Write HW address via function

2016-11-08 Thread Olliver Schinagl
Currently the mac address is programmed directly in _sunxi_emac_eth_init making it a one time inflexible operation. By moving it into a separate function, we can now use this more flexibly. Signed-off-by: Olliver Schinagl --- drivers/net/sunxi_emac.c | 19 +++ 1 file changed, 15

[linux-sunxi] [PATCH 04/11] net: sunxi-emac: Add read_rom_hwaddr net_op hook

2016-11-08 Thread Olliver Schinagl
Add the read_rom_hwaddr net_op hook so that it can be called from boards to read the mac from a ROM chip. Signed-off-by: Olliver Schinagl --- drivers/net/sunxi_emac.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c

[linux-sunxi] [PATCH 08/11] net: sunxi: Allow sunxi boards to set the MAC from an EEPROM

2016-11-08 Thread Olliver Schinagl
. Signed-off-by: Olliver Schinagl --- board/sunxi/Kconfig | 4 board/sunxi/board.c | 39 ++- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig index e1d4ab1..6b8ac99 100644 --- a/board/sunxi/Kconfig

[linux-sunxi] [PATCH 05/11] net: Add ability to set MAC address via EEPROM to Kconfig

2016-11-08 Thread Olliver Schinagl
ff-by: Olliver Schinagl --- doc/README.enetaddr | 85 + net/Kconfig | 58 2 files changed, 143 insertions(+) diff --git a/doc/README.enetaddr b/doc/README.enetaddr index 50e4899..0bf291d 100644 ---

[linux-sunxi] [PATCH 10/11] tools: Allow crc8 to be used

2016-11-08 Thread Olliver Schinagl
This patch enables crc8 to be used from within the tools directory using u-boot/crc.h. Signed-off-by: Olliver Schinagl Reviewed-by: Joe Hershberger --- include/u-boot/crc.h | 3 +++ tools/Makefile | 1 + 2 files changed, 4 insertions(+) diff --git a/include/u-boot/crc.h b/include/u-boot

[linux-sunxi] [PATCH 06/11] arm: sunxi: Use read_rom_hwaddr() to obtain MAC address

2016-11-08 Thread Olliver Schinagl
With the newly introduced hooks, we can now set the MAC address at the lowest level properly. The user is still free to override it via a u-boot environment variable. Signed-off-by: Olliver Schinagl --- arch/arm/include/asm/arch-sunxi/sys_proto.h | 8 +++ board/sunxi/board.c

[linux-sunxi] [PATCH] Do not force master mode on unaffected PHY's

2016-11-08 Thread Olliver Schinagl
The current implementation to force the PHY into master mode is to have a define which affects all realtek PHY's. This is not needed as the problem only exists in the RTL8211C chips. Let us thus turn this into a quirk flag instead. -- You received this message because you are subscribed to the Go

[linux-sunxi] [PATCH 3/3] net: phy: realtek: Only force master mode on rtl8211b/c

2016-11-08 Thread Olliver Schinagl
uirk' to the flags to the rtl8211b and rtl8211c only. It is now possible to force master mode, but only have it apply to the rtl8211b and rtl8211c. Signed-off-by: Olliver Schinagl --- drivers/net/phy/realtek.c | 31 +++ 1 file changed, 23 insertions(+), 8 deletion

[linux-sunxi] [PATCH 2/3] net: phy: realtek: make define more concistent

2016-11-08 Thread Olliver Schinagl
All internal defines in the realtek phy are with a small X, except MIIM_RTL8211X_CTRL1000T_MASTER. Make this more concistent Signed-off-by: Olliver Schinagl --- drivers/net/phy/realtek.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/realtek.c b/drivers

[linux-sunxi] [PATCH 1/3] net: phy: realtek: Use the BIT() macro

2016-11-08 Thread Olliver Schinagl
The BIT macro is the preferred method to set bits. This patch adds the bit macro and converts bit invocations. Signed-off-by: Olliver Schinagl --- drivers/net/phy/realtek.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy

Re: [linux-sunxi] [PATCH 2/3] net: phy: realtek: make define more concistent

2016-11-09 Thread Olliver Schinagl
Crap! I thought I spotted it but wasn't sure :) If there needs to be a v2 i'll fix it; if the v1 is accepted, Joe could hopefully fix that in the message *wink* :) Olliver On 09-11-16 00:17, Emilio López wrote: Small nitpick: El 08/11/16 a las 13:38, Olliver Schinagl escr

Re: [linux-sunxi] [PATCH 1/3] net: phy: realtek: Use the BIT() macro

2016-11-09 Thread Olliver Schinagl
Hi, On 09-11-16 22:42, Priit Laes wrote: On Tue, 2016-11-08 at 17:38 +0100, Olliver Schinagl wrote: The BIT macro is the preferred method to set bits. This patch adds the bit macro and converts bit invocations. Signed-off-by: Olliver Schinagl --- drivers/net/phy/realtek.c | 5 +++-- 1

[linux-sunxi] Re: [PATCH v3] Retrieve MAC address from EEPROM

2016-11-10 Thread Olliver Schinagl
Hi Michal, On 10-11-16 12:37, Michal Simek wrote: On 8.11.2016 16:54, Olliver Schinagl wrote: This patch-series introduces methods to retrieve the MAC address from an onboard EEPROM using the read_rom_hwaddr hook. The reason we might want to read the MAC address from an EEPROM instead of

[linux-sunxi] Re: [PATCH 08/11] net: sunxi: Allow sunxi boards to set the MAC from an EEPROM

2016-11-10 Thread Olliver Schinagl
Hi Michal, On 10-11-16 12:51, Michal Simek wrote: On 8.11.2016 16:54, Olliver Schinagl wrote: This patch uses the newly introduced Kconfig options to use the net_op read_rom_hwaddr to retrieve the MAC from an EEPROM. This will be especially useful for the Olimex OLinuXino series of sunxi

[linux-sunxi] Re: [PATCH v3] Retrieve MAC address from EEPROM

2016-11-10 Thread Olliver Schinagl
On 10-11-16 13:26, Michal Simek wrote: On 10.11.2016 13:08, Olliver Schinagl wrote: Hi Michal, On 10-11-16 12:37, Michal Simek wrote: On 8.11.2016 16:54, Olliver Schinagl wrote: This patch-series introduces methods to retrieve the MAC address from an onboard EEPROM using the read_rom_hwaddr

[linux-sunxi] Re: [PATCH v3] Retrieve MAC address from EEPROM

2016-11-10 Thread Olliver Schinagl
On 10-11-16 13:37, Michal Simek wrote: On 10.11.2016 13:31, Olliver Schinagl wrote: On 10-11-16 13:26, Michal Simek wrote: On 10.11.2016 13:08, Olliver Schinagl wrote: Hi Michal, On 10-11-16 12:37, Michal Simek wrote: On 8.11.2016 16:54, Olliver Schinagl wrote: This patch-series introduces

[linux-sunxi] Re: [PATCH] Do not force master mode on unaffected PHY's

2016-11-14 Thread Olliver Schinagl
Hey Hans, On 14-11-16 12:26, Hans de Goede wrote: Hi, On 08-11-16 17:38, Olliver Schinagl wrote: The current implementation to force the PHY into master mode is to have a define which affects all realtek PHY's. This is not needed as the problem only exists in the RTL8211C chips. Let us

[linux-sunxi] Re: [PATCH] Do not force master mode on unaffected PHY's

2016-11-14 Thread Olliver Schinagl
Hans, On 14-11-16 15:13, Hans de Goede wrote: Hi, On 14-11-16 15:11, Olliver Schinagl wrote: Hey Hans, On 14-11-16 12:26, Hans de Goede wrote: Hi, On 08-11-16 17:38, Olliver Schinagl wrote: The current implementation to force the PHY into master mode is to have a define which affects

[linux-sunxi] Re: [U-Boot] [PATCH 08/11] net: sunxi: Allow sunxi boards to set the MAC from an EEPROM

2016-11-15 Thread Olliver Schinagl
Hey Joe, Michal, On 15-11-16 08:22, Michal Simek wrote: On 15.11.2016 04:27, Joe Hershberger wrote: On Thu, Nov 10, 2016 at 6:11 AM, Olliver Schinagl wrote: Hi Michal, On 10-11-16 12:51, Michal Simek wrote: On 8.11.2016 16:54, Olliver Schinagl wrote: This patch uses the newly introduced

[linux-sunxi] Re: [U-Boot] [PATCH 11/11] tools: Add tool to add crc8 to a mac address

2016-11-15 Thread Olliver Schinagl
Hey Simon, Joe, On 15-11-16 04:31, Joe Hershberger wrote: On Fri, Nov 11, 2016 at 10:18 AM, Simon Glass wrote: Hi Olliver, (is it one l or two?) On 8 November 2016 at 08:54, Olliver Schinagl wrote: This patch adds a little tool that takes a generic MAC address and generates a CRC byte for

[linux-sunxi] Re: [PATCH 11/11] tools: Add tool to add crc8 to a mac address

2016-11-15 Thread Olliver Schinagl
Hey Simon, On 11-11-16 17:18, Simon Glass wrote: Hi Olliver, (is it one l or two?) On 8 November 2016 at 08:54, Olliver Schinagl wrote: This patch adds a little tool that takes a generic MAC address and generates a CRC byte for it. The output is the full MAC address without any separators

[linux-sunxi] Re: [U-Boot] [PATCH 07/11] net: sunxi: Do not inject ethernet addresses into the env

2016-11-15 Thread Olliver Schinagl
, Olliver Schinagl wrote: Currently we inject 5 ethernet addresses into the environment, just in case we may need them. We do this because some boards have no eeprom (programmed) with a proper ethernet address. With the recent addition of reading actual ethernet addresses from the eeprom via the net_op

[linux-sunxi] Re: Re: [U-Boot] [PATCH 07/11] net: sunxi: Do not inject ethernet addresses into the env

2016-11-15 Thread Olliver Schinagl
Hey Hans, I guess I have to contradict something here ... On 15-11-16 11:17, Olliver Schinagl wrote: Hey Hans, I was hopeing and expecting this :) As you will be able to tell below, I need to learn a bit more as to why we do things and discuss this proper I guess. On 15-11-16 10:26, Hans

[linux-sunxi] Re: [U-Boot] [PATCH 07/11] net: sunxi: Do not inject ethernet addresses into the env

2016-11-15 Thread Olliver Schinagl
Hey, On 15-11-16 11:27, Hans de Goede wrote: Hi, On 15-11-16 11:17, Olliver Schinagl wrote: Hey Hans, I was hopeing and expecting this :) As you will be able to tell below, I need to learn a bit more as to why we do things and discuss this proper I guess. On 15-11-16 10:26, Hans de

[linux-sunxi] Re: [U-Boot] [PATCH 07/11] net: sunxi: Do not inject ethernet addresses into the env

2016-11-15 Thread Olliver Schinagl
Hey Hans, On 15-11-16 11:49, Hans de Goede wrote: Hi, On 15-11-16 11:29, Olliver Schinagl wrote: Hey Hans, I guess I have to contradict something here ... On 15-11-16 11:17, Olliver Schinagl wrote: Hey Hans, I was hopeing and expecting this :) As you will be able to tell below, I need

[linux-sunxi] [PATCH 08/14] net: core: Add function to check/set MAC locality

2016-11-25 Thread Olliver Schinagl
ensure they are locally administered. Signed-off-by: Olliver Schinagl --- include/net.h | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/include/net.h b/include/net.h index 2534913..08f8af8 100644 --- a/include/net.h +++ b/include/net.h @@ -772,6 +772,28

[linux-sunxi] [PATCH 05/14] net: core: cosmetic: A MAC address is not limited to SROM

2016-11-25 Thread Olliver Schinagl
Currently, we print that the MAC from the SROM does not match. It can be many forms of ROM, so lets drop the S. Signed-off-by: Olliver Schinagl --- net/eth-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/eth-uclass.c b/net/eth-uclass.c index a9fc6bb..9703bea

[linux-sunxi] [PATCH 10/14] fdt: fixup_eth: Remove code duplication with a function

2016-11-25 Thread Olliver Schinagl
In fdt_support.c we use a loop to parse the mac address string from the fdt blob, net.h has a function for this however, so lets use it. Also, rename the variable from tmp to something more descriptive. Signed-off-by: Olliver Schinagl --- common/fdt_support.c | 15 +-- 1 file

[linux-sunxi] [PATCH 01/14] net: cosmetic: Do not use magic values for ARP_HLEN

2016-11-25 Thread Olliver Schinagl
). Signed-off-by: Olliver Schinagl --- common/fdt_support.c | 2 +- include/net.h| 52 +++- net/eth-uclass.c | 10 +- net/eth_legacy.c | 10 +- 4 files changed, 38 insertions(+), 36 deletions(-) diff --gi

[linux-sunxi] [PATCH 12/14] fdt: eth_fixup: Add hook for board to override MAC

2016-11-25 Thread Olliver Schinagl
contains an ethernet1 nothing happens. If the fdt contains ethernet2 however, it is parsed and inserted into the environment as eth2addr. Signed-off-by: Olliver Schinagl --- common/fdt_support.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/common/fdt_support.c b/common

[linux-sunxi] [PATCH 14/14] tools: Add tool to add crc8 to a mac address

2016-11-25 Thread Olliver Schinagl
This patch adds a little tool that takes a generic MAC address and generates a CRC byte for it. The output is the full MAC address without any separators, ready written into an EEPROM. Signed-off-by: Olliver Schinagl Signed-off-by: Olliver Schinagl --- tools/.gitignore| 1 + tools

[linux-sunxi] [PATCH 04/14] net: core: Sanitize get/set operations for enetaddr

2016-11-25 Thread Olliver Schinagl
ength. Additionally use the define in fdt parser where the ethaddr variables are also used. Signed-off-by: Olliver Schinagl --- common/fdt_support.c | 2 +- include/net.h| 1 + net/eth_common.c | 12 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/co

[linux-sunxi] [PATCH 06/14] net: core: Using an ethernet address from ROM is not bad

2016-11-25 Thread Olliver Schinagl
case where both are set, so the user is atleast aware something special is happening. Signed-off-by: Olliver Schinagl --- net/eth-uclass.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 9703bea..aca3f6d 100644 --- a/net/eth-uclass.c +++ b/net/eth

[linux-sunxi] [PATCH 11/14] fdt: eth_fixup: improve error catching/reduce identation

2016-11-25 Thread Olliver Schinagl
Currently when checking for an error in ethernet aliases in the fdt, we only check for the error case -1. It is safer to ignore anything < 0. By rearranging logic a bit we can now also reduce identation. Signed-off-by: Olliver Schinagl --- common/fdt_support.c | 20 ++-- 1 f

[linux-sunxi] [PATCH 07/14] net: core: Inform the user of the device MAC address

2016-11-25 Thread Olliver Schinagl
print the final MAC address of the device with which it has been setup. Signed-off-by: Olliver Schinagl --- net/eth-uclass.c | 9 ++--- net/eth_legacy.c | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/net/eth-uclass.c b/net/eth-uclass.c index aca3f6d..5c888b8 100644

[linux-sunxi] [PATCH 02/14] net: cosmetic: Make the MAC address string less magical

2016-11-25 Thread Olliver Schinagl
In u-boot printf has been extended with the %pM formatter to allow printing of MAC addresses. However buffers that want to store a MAC address cannot safely get the size. Add a define for this case so the string of a MAC address can be reliably obtained. Signed-off-by: Olliver Schinagl

[linux-sunxi] [PATCHv4] Retrieve MAC address from EEPROM

2016-11-25 Thread Olliver Schinagl
This patch-series introduces methods to retrieve the MAC address from an onboard EEPROM. The series does a few small cleanups at the start, as either I ran into them while doing this series and fixed them along the way or actually depended on them. If you want to split the smaller ones off into a s

[linux-sunxi] [PATCH 13/14] tools: Allow crc8 to be used

2016-11-25 Thread Olliver Schinagl
This patch enables crc8 to be used from within the tools directory using u-boot/crc.h. Signed-off-by: Olliver Schinagl Reviewed-by: Joe Hershberger Signed-off-by: Olliver Schinagl --- include/u-boot/crc.h | 3 +++ tools/Makefile | 1 + 2 files changed, 4 insertions(+) diff --git a

[linux-sunxi] [PATCH 03/14] net: cosmetic: Define ethernet name length

2016-11-25 Thread Olliver Schinagl
There are various places where the ethernet device name is defined to several different sizes. Lets add a define and start using it. Signed-off-by: Olliver Schinagl --- include/net.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/net.h b/include/net.h index

[linux-sunxi] [PATCH 09/14] net: Add ability to set MAC address via EEPROM

2016-11-25 Thread Olliver Schinagl
data. Signed-off-by: Olliver Schinagl --- doc/README.enetaddr | 99 + include/net.h | 14 net/Kconfig | 59 +++ net/eth-uclass.c| 9 +++-- net/eth_common.c| 34 ++

[linux-sunxi] [PATCH] sunxi: net: Use net_ops hooks to get the MAC

2016-11-25 Thread Olliver Schinagl
This patch series is split off from my previous series, [PATCH v3] Retrieve MAC address from EEPROM and only adds, uses and fixes the read/write rom_hwaddr hooks. I changed things around as suggested by Hans. As far as I can tell this should work now as you described. The fdt_fixup_ethernet functi

[linux-sunxi] [PATCH 2/6] net: sunxi-emac: Write HW address via function

2016-11-25 Thread Olliver Schinagl
Currently the mac address is programmed directly in _sunxi_emac_eth_init making it a one time inflexible operation. By moving it into a separate function, we can now use this more flexibly. Signed-off-by: Olliver Schinagl --- drivers/net/sunxi_emac.c | 19 +++ 1 file changed, 15

<    1   2   3   4   5   >