Re: [linux-sunxi] Re: New Linux Foundation Members Advance Open Source In Enterprise Computing

2015-06-12 Thread Luc Verhaegen
On Fri, Jun 12, 2015 at 11:59:50AM +0300, 'Simos Xenitellis' via linux-sunxi 
wrote:
 Hi All,
 
 Another relevant item from the Linux Foundation regarding new members,
 http://www.linuxfoundation.org/news-media/announcements/2015/06/new-linux-foundation-members-advance-open-source-enterprise
 
 Among the newest members is Allwinner and the press release mentions:
 
 *Allwinner is joining the Linux Foundation to support Linux and to improve
 what we see as two important open source software development capabilities:
 collaboration and compliance,* said Jack Lee, Chief Marketing Officer,
 Allwinner Technology.  *These two concepts are critical yet difficult to
 master for new Linux community entrants like ourselves.*
 
 Simos

Would any of this have happened if Allwinner hadn't been so publically 
exposed for being the GPL violators that they (still!) are?

Luc Verhaegen.

-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] Re: 2015 SBC survey by Linux Foundation/LinuxGizmos

2015-06-12 Thread 'Simos Xenitellis' via linux-sunxi
On Thu, May 21, 2015 at 5:24 PM, Simos Xenitellis 
simos.li...@googlemail.com wrote:

 Hi All,

 The Linux Foundation and Linux Gizmos are running (also) this year a
 survey on small-board computers,
 1.
 http://www.linux.com/news/embedded-mobile/mobile-linux/831550-survey-best-linux-hacker-sbcs-for-under-200
 2.
 http://linuxgizmos.com/rate-these-sub-200dollar-hacker-sbcs-win-one-of-20/

 This year they include 54 SBCs, out of which 12 are based on Allwinner
 SoCs,
 a. Two from Olimex
 b. One from SinoVoip
 c. One from LeMaker
 d. Three from CubieTech
 e. Three from LinkSprite
 f. Two from Shenzhen Xunlong Software

 The result of the survey is to produce a Top 10 list based on popularity.
 The purpose of the survey appears to be to gauge interest in open designs
 of boards and get manufacturers to work towards that direction.

 Here are the guidelines for the inclusion of a new board to the list,

 http://linuxgizmos.com/rate-your-favorite-open-single-board-computers/#open-sbc-guidelines

 If a company is producing developer boards and satisfy the requirements
 for inclusion, they can provide five boards to the Linux Foundation so that
 they are given away to those that took the survey. At this survey, there
 are four different boards to be given away and none has an Allwinner SoC.

 Here is the survey,
 https://www.surveymonkey.com/r/2015SBCS



The 2015 Hacker SBC Survey has ended and here are the results,
http://linuxgizmos.com/raspberry-pi-stays-sky-high-in-2015-hacker-sbc-survey/

Specifically,

1. The survey had a special feature where you picked three SBCs depending
on how favorite they were to you.
Then, it would triple the votes for Choice #1, double the votes for Choice
#2 and extract the results.
Obviously, such a method favors what has been put as Choice #1, the most
favorite.

2. At positions #1 and #3, the Raspberry Pi 2 and Raspberry Pi
respectively. Yep, the single core Raspberry Pi got third place.
3. At position #2 was the BeagleBone Black.

4. In the top ten, there were three ODROID SBCs. ODROID is doing a great
job in promoting their boards.
They have a great page showcasing what you can do with their boards (such
as
http://www.hardkernel.com/main/products/prdt_info.php?g_code=G141578608433),
they have a monthly magazine at http://magazine.odroid.com/ and their forum
is very active.

5. Out of the 53 Small Board Computers in the competition, there were no
Allwinner boards this year in the top Ten.
6. An easy comparison of the specs for the Top Ten is at
http://files.linuxgizmos.com/2015-hacker-sbc-survey-top-10-sbc-specs-comparison.jpg
It is interesting to notice that several Mali and PowerVR GPUs make it to
the top ten.

7. The Raspberry Pis have the Videocode IV GPU. When the first RPi board
was released, it did not have a free driver for the GPU.
Two years later, Broadcom released some source and documentation which were
not sufficient.
The turning point was in June 2014 when Eric Anholt was employed by
Broadcom to write a free driver for VC4,
https://en.wikipedia.org/wiki/VideoCore#Linux_support

8. There were three Cubieboard models which got 357 points
and two OLinuXino models that got 195 points.
9. In the 2014 SBC Survey, the Banana Pi got the fifth place.
This year, the companies (LeMaker, SinoVoip) that made the Banana Pi
decided to split, creating their separate products.
The SinoVoip board got 14th place, the LeMaker got the 16th place.
10. The Orange Pi was quite low in the ranking (too new entrant for the
survey).

11. Among the buying criteria, the highest was Open source software
support (sic).
Next came the Community ecosystem.
I think these two are critical for the success of an SBC, and companies
that make SBCs,
should make effort to create such communities.

Simos

-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] Re: 2015 SBC survey by Linux Foundation/LinuxGizmos

2015-06-12 Thread Luc Verhaegen
On Fri, Jun 12, 2015 at 11:13:34AM +0200, Luc Verhaegen wrote:
 On Fri, Jun 12, 2015 at 11:46:27AM +0300, 'Simos Xenitellis' via linux-sunxi 
 wrote:
  On Thu, May 21, 2015 at 5:24 PM, Simos Xenitellis 
  simos.li...@googlemail.com wrote:
  
   Hi All,
  
   The Linux Foundation and Linux Gizmos are running (also) this year a
   survey on small-board computers,
   1.
   http://www.linux.com/news/embedded-mobile/mobile-linux/831550-survey-best-linux-hacker-sbcs-for-under-200
   2.
   http://linuxgizmos.com/rate-these-sub-200dollar-hacker-sbcs-win-one-of-20/
  
   This year they include 54 SBCs, out of which 12 are based on Allwinner
   SoCs,
   a. Two from Olimex
   b. One from SinoVoip
   c. One from LeMaker
   d. Three from CubieTech
   e. Three from LinkSprite
   f. Two from Shenzhen Xunlong Software
  
   The result of the survey is to produce a Top 10 list based on popularity.
   The purpose of the survey appears to be to gauge interest in open designs
   of boards and get manufacturers to work towards that direction.
  
   Here are the guidelines for the inclusion of a new board to the list,
  
   http://linuxgizmos.com/rate-your-favorite-open-single-board-computers/#open-sbc-guidelines
  
   If a company is producing developer boards and satisfy the requirements
   for inclusion, they can provide five boards to the Linux Foundation so 
   that
   they are given away to those that took the survey. At this survey, there
   are four different boards to be given away and none has an Allwinner SoC.
  
   Here is the survey,
   https://www.surveymonkey.com/r/2015SBCS
  
  
  
  The 2015 Hacker SBC Survey has ended and here are the results,
  http://linuxgizmos.com/raspberry-pi-stays-sky-high-in-2015-hacker-sbc-survey/
  
  Specifically,
  
  1. The survey had a special feature where you picked three SBCs depending
  on how favorite they were to you.
  Then, it would triple the votes for Choice #1, double the votes for Choice
  #2 and extract the results.
  Obviously, such a method favors what has been put as Choice #1, the most
  favorite.
  
  2. At positions #1 and #3, the Raspberry Pi 2 and Raspberry Pi
  respectively. Yep, the single core Raspberry Pi got third place.
  3. At position #2 was the BeagleBone Black.
  
  4. In the top ten, there were three ODROID SBCs. ODROID is doing a great
  job in promoting their boards.
  They have a great page showcasing what you can do with their boards (such
  as
  http://www.hardkernel.com/main/products/prdt_info.php?g_code=G141578608433),
  they have a monthly magazine at http://magazine.odroid.com/ and their forum
  is very active.
  
  5. Out of the 53 Small Board Computers in the competition, there were no
  Allwinner boards this year in the top Ten.
  6. An easy comparison of the specs for the Top Ten is at
  http://files.linuxgizmos.com/2015-hacker-sbc-survey-top-10-sbc-specs-comparison.jpg
  It is interesting to notice that several Mali and PowerVR GPUs make it to
  the top ten.
  
  7. The Raspberry Pis have the Videocode IV GPU. When the first RPi board
  was released, it did not have a free driver for the GPU.
  Two years later, Broadcom released some source and documentation which were
  not sufficient.
  The turning point was in June 2014 when Eric Anholt was employed by
  Broadcom to write a free driver for VC4,
  https://en.wikipedia.org/wiki/VideoCore#Linux_support
  
  8. There were three Cubieboard models which got 357 points
  and two OLinuXino models that got 195 points.
  9. In the 2014 SBC Survey, the Banana Pi got the fifth place.
  This year, the companies (LeMaker, SinoVoip) that made the Banana Pi
  decided to split, creating their separate products.
  The SinoVoip board got 14th place, the LeMaker got the 16th place.
  10. The Orange Pi was quite low in the ranking (too new entrant for the
  survey).
  
  11. Among the buying criteria, the highest was Open source software
  support (sic).
  Next came the Community ecosystem.
  I think these two are critical for the success of an SBC, and companies
  that make SBCs,
  should make effort to create such communities.
  
  Simos
 
 Amazing how you left the following snippet out:
 
 One processor trend did seem clear, however, judging both from the 
 selections and reader comments. The open source community appears to be 
 increasingly frustrated with Allwinner’s Linux support. While three 
 Allwinner based boards made last year’s top 10, there are none this 
 year. After the 11th Place Cubieboard4, with its octacore Allwinner A80, 
 the next Allwinner board on the list is the A31-based Banana Pi M2 at 
 number 14.
 
 People would think that that is the most relevant statement in that 
 whole survey, but not a hint of it can be seen in your email.
 
 Stop trying to distort the truth.
 
 Similarly, i cannot find any mention of your point 7 in that article.
 
 But thanks for reminding me that that would not have happened if it was 
 not for the fact that i did lima, and that i corrected the 

Re: [linux-sunxi] Re: 2015 SBC survey by Linux Foundation/LinuxGizmos

2015-06-12 Thread Luc Verhaegen
On Fri, Jun 12, 2015 at 11:46:27AM +0300, 'Simos Xenitellis' via linux-sunxi 
wrote:
 On Thu, May 21, 2015 at 5:24 PM, Simos Xenitellis 
 simos.li...@googlemail.com wrote:
 
  Hi All,
 
  The Linux Foundation and Linux Gizmos are running (also) this year a
  survey on small-board computers,
  1.
  http://www.linux.com/news/embedded-mobile/mobile-linux/831550-survey-best-linux-hacker-sbcs-for-under-200
  2.
  http://linuxgizmos.com/rate-these-sub-200dollar-hacker-sbcs-win-one-of-20/
 
  This year they include 54 SBCs, out of which 12 are based on Allwinner
  SoCs,
  a. Two from Olimex
  b. One from SinoVoip
  c. One from LeMaker
  d. Three from CubieTech
  e. Three from LinkSprite
  f. Two from Shenzhen Xunlong Software
 
  The result of the survey is to produce a Top 10 list based on popularity.
  The purpose of the survey appears to be to gauge interest in open designs
  of boards and get manufacturers to work towards that direction.
 
  Here are the guidelines for the inclusion of a new board to the list,
 
  http://linuxgizmos.com/rate-your-favorite-open-single-board-computers/#open-sbc-guidelines
 
  If a company is producing developer boards and satisfy the requirements
  for inclusion, they can provide five boards to the Linux Foundation so that
  they are given away to those that took the survey. At this survey, there
  are four different boards to be given away and none has an Allwinner SoC.
 
  Here is the survey,
  https://www.surveymonkey.com/r/2015SBCS
 
 
 
 The 2015 Hacker SBC Survey has ended and here are the results,
 http://linuxgizmos.com/raspberry-pi-stays-sky-high-in-2015-hacker-sbc-survey/
 
 Specifically,
 
 1. The survey had a special feature where you picked three SBCs depending
 on how favorite they were to you.
 Then, it would triple the votes for Choice #1, double the votes for Choice
 #2 and extract the results.
 Obviously, such a method favors what has been put as Choice #1, the most
 favorite.
 
 2. At positions #1 and #3, the Raspberry Pi 2 and Raspberry Pi
 respectively. Yep, the single core Raspberry Pi got third place.
 3. At position #2 was the BeagleBone Black.
 
 4. In the top ten, there were three ODROID SBCs. ODROID is doing a great
 job in promoting their boards.
 They have a great page showcasing what you can do with their boards (such
 as
 http://www.hardkernel.com/main/products/prdt_info.php?g_code=G141578608433),
 they have a monthly magazine at http://magazine.odroid.com/ and their forum
 is very active.
 
 5. Out of the 53 Small Board Computers in the competition, there were no
 Allwinner boards this year in the top Ten.
 6. An easy comparison of the specs for the Top Ten is at
 http://files.linuxgizmos.com/2015-hacker-sbc-survey-top-10-sbc-specs-comparison.jpg
 It is interesting to notice that several Mali and PowerVR GPUs make it to
 the top ten.
 
 7. The Raspberry Pis have the Videocode IV GPU. When the first RPi board
 was released, it did not have a free driver for the GPU.
 Two years later, Broadcom released some source and documentation which were
 not sufficient.
 The turning point was in June 2014 when Eric Anholt was employed by
 Broadcom to write a free driver for VC4,
 https://en.wikipedia.org/wiki/VideoCore#Linux_support
 
 8. There were three Cubieboard models which got 357 points
 and two OLinuXino models that got 195 points.
 9. In the 2014 SBC Survey, the Banana Pi got the fifth place.
 This year, the companies (LeMaker, SinoVoip) that made the Banana Pi
 decided to split, creating their separate products.
 The SinoVoip board got 14th place, the LeMaker got the 16th place.
 10. The Orange Pi was quite low in the ranking (too new entrant for the
 survey).
 
 11. Among the buying criteria, the highest was Open source software
 support (sic).
 Next came the Community ecosystem.
 I think these two are critical for the success of an SBC, and companies
 that make SBCs,
 should make effort to create such communities.
 
 Simos

Amazing how you left the following snippet out:

One processor trend did seem clear, however, judging both from the 
selections and reader comments. The open source community appears to be 
increasingly frustrated with Allwinner’s Linux support. While three 
Allwinner based boards made last year’s top 10, there are none this 
year. After the 11th Place Cubieboard4, with its octacore Allwinner A80, 
the next Allwinner board on the list is the A31-based Banana Pi M2 at 
number 14.

People would think that that is the most relevant statement in that 
whole survey, but not a hint of it can be seen in your email.

Stop trying to distort the truth.

Similarly, i cannot find any mention of your point 7 in that article.

But thanks for reminding me that that would not have happened if it was 
not for the fact that i did lima, and that i corrected the Raspberry 
Pi Foundations big but ultimately statement late 2012.

Luc Verhaegen.

-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To 

[linux-sunxi] Re: New Linux Foundation Members Advance Open Source In Enterprise Computing

2015-06-12 Thread 'Simos Xenitellis' via linux-sunxi
Hi All,

Another relevant item from the Linux Foundation regarding new members,
http://www.linuxfoundation.org/news-media/announcements/2015/06/new-linux-foundation-members-advance-open-source-enterprise

Among the newest members is Allwinner and the press release mentions:

*Allwinner is joining the Linux Foundation to support Linux and to improve
what we see as two important open source software development capabilities:
collaboration and compliance,* said Jack Lee, Chief Marketing Officer,
Allwinner Technology.  *These two concepts are critical yet difficult to
master for new Linux community entrants like ourselves.*

Simos

-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] Re: New Linux Foundation Members Advance Open Source In Enterprise Computing

2015-06-12 Thread Luc Verhaegen
On Fri, Jun 12, 2015 at 11:14:44AM +0200, Luc Verhaegen wrote:
 On Fri, Jun 12, 2015 at 11:59:50AM +0300, 'Simos Xenitellis' via linux-sunxi 
 wrote:
  Hi All,
  
  Another relevant item from the Linux Foundation regarding new members,
  http://www.linuxfoundation.org/news-media/announcements/2015/06/new-linux-foundation-members-advance-open-source-enterprise
  
  Among the newest members is Allwinner and the press release mentions:
  
  *Allwinner is joining the Linux Foundation to support Linux and to improve
  what we see as two important open source software development capabilities:
  collaboration and compliance,* said Jack Lee, Chief Marketing Officer,
  Allwinner Technology.  *These two concepts are critical yet difficult to
  master for new Linux community entrants like ourselves.*
  
  Simos
 
 Would any of this have happened if Allwinner hadn't been so publically 
 exposed for being the GPL violators that they (still!) are?
 
 Luc Verhaegen.

Which reminds me... It's been almost a month since they released a 
partial replacement for CedarX.

I think some more noise needs to be made before Allwinner completes 
this.

Luc Verhaegen.

-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] [RFC 1/2] mtd: nand: sunxi: Add RX DMA support

2015-06-12 Thread Roy Spliet
Replace PIO readout with DMA when supported. This contains both a direct
DMA method and one using a bounce buffer. PIO is still the preferred fall-back.
Follow-up patches should implement both tx and the nand-component's
page access mode, in which hardware automatically validates the ECC checksum.
---
 drivers/mtd/nand/sunxi_nand.c | 192 +++---
 1 file changed, 163 insertions(+), 29 deletions(-)

diff --git a/drivers/mtd/nand/sunxi_nand.c b/drivers/mtd/nand/sunxi_nand.c
index 26df48f..5095a32 100644
--- a/drivers/mtd/nand/sunxi_nand.c
+++ b/drivers/mtd/nand/sunxi_nand.c
@@ -23,6 +23,7 @@
  */
 
 #include linux/dma-mapping.h
+#include linux/dmaengine.h
 #include linux/slab.h
 #include linux/module.h
 #include linux/moduleparam.h
@@ -250,6 +251,8 @@ static inline struct sunxi_nand_chip *to_sunxi_nand(struct 
nand_chip *nand)
  * @mod_clk:   NAND Controller mod clock
  * @assigned_cs:   bitmask describing already assigned CS lines
  * @clk_rate:  NAND controller current clock rate
+ * @dmach  DMA channel for RX and TX transfers
+ * @dma_complete   Completion object to wait for DMA transfer complete
  * @chips: a list containing all the NAND chips attached to
  * this NAND controller
  * @complete:  a completion object used to wait for NAND
@@ -263,8 +266,14 @@ struct sunxi_nfc {
struct clk *mod_clk;
unsigned long assigned_cs;
unsigned long clk_rate;
+   struct dma_chan *dmach;
+   struct completion dma_complete;
+   void *dma_buf;
+   dma_addr_t dma_buf_phy;
struct list_head chips;
struct completion complete;
+
+   void (*rx)(struct sunxi_nfc *nfc, u32 cmd, void *from, size_t cnt);
 };
 
 static inline struct sunxi_nfc *to_sunxi_nfc(struct nand_hw_control *ctrl)
@@ -378,6 +387,126 @@ static int sunxi_nfc_dev_ready(struct mtd_info *mtd)
return ret;
 }
 
+static void sunxi_nfc_dma_irq_callback(void *param)
+{
+   struct sunxi_nfc *nfc = param;
+
+   complete(nfc-dma_complete);
+}
+
+static void sunxi_nfc_rx_pio(struct sunxi_nfc *nfc, u32 cmd, void *buf,
+   size_t cnt)
+{
+   int ret;
+
+   writel(cmd, nfc-regs + NFC_REG_CMD);
+
+   ret = sunxi_nfc_wait_int(nfc, NFC_CMD_INT_FLAG, 0);
+   if (ret)
+   return;
+
+   if (buf)
+   memcpy_fromio(buf, nfc-regs + NFC_RAM0_BASE, cnt);
+
+   return;
+}
+
+static int sunxi_nfc_rx_dma_transfer(struct sunxi_nfc *nfc, u32 cmd,
+   dma_addr_t dma_addr, size_t cnt)
+{
+   u32 ctl;
+   int ret = 0;
+   dma_cookie_t dma_cookie;
+   struct dma_async_tx_descriptor *desc = NULL;
+
+   ctl = readl(nfc-regs + NFC_REG_CTL);
+
+   ret = sunxi_nfc_wait_cmd_fifo_empty(nfc);
+   if (ret)
+   return -EIO;
+
+   writel(ctl | NFC_RAM_METHOD, nfc-regs + NFC_REG_CTL);
+
+   desc = dmaengine_prep_slave_single(nfc-dmach, dma_addr, cnt,
+   DMA_DEV_TO_MEM, DMA_PREP_INTERRUPT);
+
+   desc-callback = sunxi_nfc_dma_irq_callback;
+   desc-callback_param = nfc;
+
+   dma_cookie = dmaengine_submit(desc);
+   if (dma_cookie  0) {
+   dev_dbg(nfc-dev, DMA cookie error %d\n, dma_cookie);
+   ret = -EIO;
+   goto exit;
+   }
+
+   dma_async_issue_pending(nfc-dmach);
+
+   cmd |= NFC_WAIT_FLAG;
+   writel(cmd, nfc-regs + NFC_REG_CMD);
+
+   if (sunxi_nfc_wait_int(nfc, NFC_DMA_INT_FLAG, 0)) {
+   dev_dbg(nfc-dev, DMA transfer timeout - NFC fifo\n);
+   dmaengine_terminate_all(nfc-dmach);
+   ret = -EIO;
+   goto exit;
+   }
+
+   if (!wait_for_completion_timeout(nfc-dma_complete,
+msecs_to_jiffies(NFC_DEFAULT_TIMEOUT_MS))) {
+   dev_dbg(nfc-dev, DMA transfer timeout\n);
+   dmaengine_terminate_all(nfc-dmach);
+   ret = -EIO;
+   }
+
+exit:
+   writel(ctl, nfc-regs + NFC_REG_CTL);
+   return ret;
+}
+
+static void sunxi_nfc_rx_dma(struct sunxi_nfc *nfc, u32 cmd, void *buf,
+   size_t cnt)
+{
+   dma_addr_t dma_addr;
+
+   /*
+* TODO: Sunxi DMA doesn't want to co-operate with transfers of size
+* not a multiple of 4B.
+*/
+   if (!buf || cnt  0x3) {
+   sunxi_nfc_rx_pio(nfc, cmd, buf, cnt);
+   return;
+   }
+
+   reinit_completion(nfc-dma_complete);
+
+   if (virt_addr_valid(buf)) {
+   /* Direct DMA */
+   dma_addr = dma_map_single(nfc-dev, buf, cnt, DMA_FROM_DEVICE);
+   if (!dma_mapping_error(nfc-dev, dma_addr)) {
+   if (!sunxi_nfc_rx_dma_transfer(nfc, cmd, dma_addr,
+   cnt)) {
+   dma_unmap_single(nfc-dev, dma_addr, cnt,
+   

[linux-sunxi] [RFC 2/2] dts: Add Sun7i NAND DMA definitions

2015-06-12 Thread Roy Spliet
---
 arch/arm/boot/dts/sun7i-a20.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
index 428bdfa..f6eb401 100644
--- a/arch/arm/boot/dts/sun7i-a20.dtsi
+++ b/arch/arm/boot/dts/sun7i-a20.dtsi
@@ -577,6 +577,8 @@
interrupts = GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH;
clocks = ahb_gates 13, nand_clk;
clock-names = ahb, mod;
+   dmas = dma SUN4I_DMA_DEDICATED 3;
+   dma-names = rx-tx;
#address-cells = 1;
#size-cells = 0;
status = disabled;
-- 
2.4.2


-- 


IMAGINE IT  MAKE IT

Meet us online at Twitter http://twitter.com/ultimaker, Facebook 
http://facebook.com/ultimaker, Google+ http://google.com/+Ultimaker

www.ultimaker.com

-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] [RFC] Add DMA RX support for sunxi nand

2015-06-12 Thread Roy Spliet
Following are two patches for sunxi nand DMA support. There's a whole phletora
of reasons why these are marked RFC, including:
- Sunxi DMA support still needs to be merged upstream
- Sun7i NAND definitions are not merged upstream
- No TX support
- Bounce buffer size is fixed to 8KB, and I have no idea whether this is sane
- No clustering of DMA requests
- More hw features that we might want to use

Some of this can be addressed in follow-up patches, some can't. I'm just
curious what you think.
Motivation for sending this out anyway: on my set-up this already improves
boot time by approx. 4s, or ~10%. This cheers me up on a sunny Friday afternoon
in the office.
Happy testing and reviewing. Yours,

Roy


-- 


IMAGINE IT  MAKE IT

Meet us online at Twitter http://twitter.com/ultimaker, Facebook 
http://facebook.com/ultimaker, Google+ http://google.com/+Ultimaker

www.ultimaker.com

-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] New CedarX API documentation

2015-06-12 Thread yonnetbilisim
Hi everyone;

I just get some new files regarding CedarX, and uploaded to 
https://github.com/stulluk/CedarX-12.06.2015

I hope professional friends may have a look, especially to the DOC folder and 
the example C application.

Is it useful for linux-sunxi?

Can we use this in Android?

-- 
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] Re: [PATCH 00/20] ARM: dts: Add USB and OTG related nodes and enable on various boards

2015-06-12 Thread Hans de Goede

Hi,

On 10-06-15 15:27, Hans de Goede wrote:

Hi,

On 08-06-15 12:03, Maxime Ripard wrote:

Hi Hans,

On Fri, Jun 05, 2015 at 09:02:03PM +0200, Hans de Goede wrote:

Hi Maxime,

Here is a patch-set with all the otg / sun8i-usb-host related dts patches
I've accumulated.

These are intended for 4.3, and go hand in hand with the outstanding
musb-sunxi / phy-sun4i-usb patches, which I expect to be merged as is
for 4.3 .


I'm fine with these patches. Do you have a branch somewhere that I can
pull (without the one that you wanted me to drop, obviously)?


I've just created a branch with just these patches directly on top
of sunxi/for-next for you:

https://github.com/jwrdegoede/linux-sunxi/commits/otg-dts-for-maxime


Please ignore this for now. There have been some changes to the extcon
framework, making it more integrated with devicetree, this means I need
to add an extcon property to the musb nodes in devicetree:

--- a/Documentation/devicetree/bindings/usb/allwinner,sun4i-a10-musb.txt
+++ b/Documentation/devicetree/bindings/usb/allwinner,sun4i-a10-musb.txt
@@ -12,6 +12,7 @@ Required properties:
  - phys: phy specifier for the otg phy
  - phy-names   : must be usb
  - dr_mode : Dual-Role mode must be host or otg
+ - extcon  : extcon specifier for the otg phy

 Example:

@@ -23,5 +24,6 @@ Example:
interrupt-names = mc;
phys = usbphy 0;
phy-names = usb;
+ extcon = usbphy 0;
status = disabled;
};

--- a/arch/arm/boot/dts/sun7i-a20.dtsi
+++ b/arch/arm/boot/dts/sun7i-a20.dtsi
@@ -773,6 +773,7 @@
interrupt-names = mc;
phys = usbphy 0;
phy-names = usb;
+ extcon = usbphy 0;
allwinner,sram = otg_sram 1;
status = disabled;
};

I'll push a new version of the patches to otg-dts-for-maxime
with the extcon property added for you and ping you when it is
ready.


While preparing this branch I noticed that the dts for
the ippo q8h a33 tablets is not yet merged:

http://www.spinics.net/lists/devicetree/msg82149.html

You suggested to use the DT quirks interface instead of creating
a separate dts for each board variant, and in the end I agreed,
and asked you to merge it renamed to a more generic name
without the lcd1024x600 bit in there.

I can make it more generic and resend it myself. Do you want me
to squash in the otg changes when I resend it, or shall I keep
those separate ?


And about this one: ping ?

Thanks  Regards,

Hans

--
You received this message because you are subscribed to the Google Groups 
linux-sunxi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] Re: 2015 SBC survey by Linux Foundation/LinuxGizmos

2015-06-12 Thread jonsm...@gmail.com
On Fri, Jun 12, 2015 at 9:52 AM, 'Simos Xenitellis' via linux-sunxi
linux-sunxi@googlegroups.com wrote:
 On Fri, Jun 12, 2015 at 12:13 PM, Luc Verhaegen l...@skynet.be wrote:
 On Fri, Jun 12, 2015 at 11:46:27AM +0300, 'Simos Xenitellis' via linux-sunxi 
 wrote:
 On Thu, May 21, 2015 at 5:24 PM, Simos Xenitellis 
 simos.li...@googlemail.com wrote:

  Hi All,
 
  The Linux Foundation and Linux Gizmos are running (also) this year a
  survey on small-board computers,
  1.
  http://www.linux.com/news/embedded-mobile/mobile-linux/831550-survey-best-linux-hacker-sbcs-for-under-200
  2.
  http://linuxgizmos.com/rate-these-sub-200dollar-hacker-sbcs-win-one-of-20/
 
  This year they include 54 SBCs, out of which 12 are based on Allwinner
  SoCs,
  a. Two from Olimex
  b. One from SinoVoip
  c. One from LeMaker
  d. Three from CubieTech
  e. Three from LinkSprite
  f. Two from Shenzhen Xunlong Software
 
  The result of the survey is to produce a Top 10 list based on popularity.
  The purpose of the survey appears to be to gauge interest in open designs
  of boards and get manufacturers to work towards that direction.
 
  Here are the guidelines for the inclusion of a new board to the list,
 
  http://linuxgizmos.com/rate-your-favorite-open-single-board-computers/#open-sbc-guidelines
 
  If a company is producing developer boards and satisfy the requirements
  for inclusion, they can provide five boards to the Linux Foundation so 
  that
  they are given away to those that took the survey. At this survey, there
  are four different boards to be given away and none has an Allwinner SoC.
 
  Here is the survey,
  https://www.surveymonkey.com/r/2015SBCS
 
 
 
 The 2015 Hacker SBC Survey has ended and here are the results,
 http://linuxgizmos.com/raspberry-pi-stays-sky-high-in-2015-hacker-sbc-survey/

 Specifically,

 1. The survey had a special feature where you picked three SBCs depending
 on how favorite they were to you.
 Then, it would triple the votes for Choice #1, double the votes for Choice
 #2 and extract the results.
 Obviously, such a method favors what has been put as Choice #1, the most
 favorite.

 2. At positions #1 and #3, the Raspberry Pi 2 and Raspberry Pi
 respectively. Yep, the single core Raspberry Pi got third place.
 3. At position #2 was the BeagleBone Black.

 4. In the top ten, there were three ODROID SBCs. ODROID is doing a great
 job in promoting their boards.
 They have a great page showcasing what you can do with their boards (such
 as
 http://www.hardkernel.com/main/products/prdt_info.php?g_code=G141578608433),
 they have a monthly magazine at http://magazine.odroid.com/ and their forum
 is very active.

 5. Out of the 53 Small Board Computers in the competition, there were no
 Allwinner boards this year in the top Ten.
 6. An easy comparison of the specs for the Top Ten is at
 http://files.linuxgizmos.com/2015-hacker-sbc-survey-top-10-sbc-specs-comparison.jpg
 It is interesting to notice that several Mali and PowerVR GPUs make it to
 the top ten.

 7. The Raspberry Pis have the Videocode IV GPU. When the first RPi board
 was released, it did not have a free driver for the GPU.
 Two years later, Broadcom released some source and documentation which were
 not sufficient.
 The turning point was in June 2014 when Eric Anholt was employed by
 Broadcom to write a free driver for VC4,
 https://en.wikipedia.org/wiki/VideoCore#Linux_support

 8. There were three Cubieboard models which got 357 points
 and two OLinuXino models that got 195 points.
 9. In the 2014 SBC Survey, the Banana Pi got the fifth place.
 This year, the companies (LeMaker, SinoVoip) that made the Banana Pi
 decided to split, creating their separate products.
 The SinoVoip board got 14th place, the LeMaker got the 16th place.
 10. The Orange Pi was quite low in the ranking (too new entrant for the
 survey).

 11. Among the buying criteria, the highest was Open source software
 support (sic).
 Next came the Community ecosystem.
 I think these two are critical for the success of an SBC, and companies
 that make SBCs,
 should make effort to create such communities.

 Simos

 Amazing how you left the following snippet out:

 One processor trend did seem clear, however, judging both from the
 selections and reader comments. The open source community appears to be
 increasingly frustrated with Allwinner’s Linux support. While three
 Allwinner based boards made last year’s top 10, there are none this
 year. After the 11th Place Cubieboard4, with its octacore Allwinner A80,
 the next Allwinner board on the list is the A31-based Banana Pi M2 at
 number 14.


 Frankly, I did not notice that sentence while skimming the article.
 I would not have a reason not to mention it since you would definitely
 discover it.

 What the RPi and ODroid do really well, is that they have a great
 active community,
 and that includes support even in non-technical levels.
 Even the ODROID-C1 does not fully support yet the mainline Linux kernel,
 

Re: [linux-sunxi] Re: 2015 SBC survey by Linux Foundation/LinuxGizmos

2015-06-12 Thread 'Simos Xenitellis' via linux-sunxi
On Fri, Jun 12, 2015 at 12:13 PM, Luc Verhaegen l...@skynet.be wrote:
 On Fri, Jun 12, 2015 at 11:46:27AM +0300, 'Simos Xenitellis' via linux-sunxi 
 wrote:
 On Thu, May 21, 2015 at 5:24 PM, Simos Xenitellis 
 simos.li...@googlemail.com wrote:

  Hi All,
 
  The Linux Foundation and Linux Gizmos are running (also) this year a
  survey on small-board computers,
  1.
  http://www.linux.com/news/embedded-mobile/mobile-linux/831550-survey-best-linux-hacker-sbcs-for-under-200
  2.
  http://linuxgizmos.com/rate-these-sub-200dollar-hacker-sbcs-win-one-of-20/
 
  This year they include 54 SBCs, out of which 12 are based on Allwinner
  SoCs,
  a. Two from Olimex
  b. One from SinoVoip
  c. One from LeMaker
  d. Three from CubieTech
  e. Three from LinkSprite
  f. Two from Shenzhen Xunlong Software
 
  The result of the survey is to produce a Top 10 list based on popularity.
  The purpose of the survey appears to be to gauge interest in open designs
  of boards and get manufacturers to work towards that direction.
 
  Here are the guidelines for the inclusion of a new board to the list,
 
  http://linuxgizmos.com/rate-your-favorite-open-single-board-computers/#open-sbc-guidelines
 
  If a company is producing developer boards and satisfy the requirements
  for inclusion, they can provide five boards to the Linux Foundation so that
  they are given away to those that took the survey. At this survey, there
  are four different boards to be given away and none has an Allwinner SoC.
 
  Here is the survey,
  https://www.surveymonkey.com/r/2015SBCS
 
 
 
 The 2015 Hacker SBC Survey has ended and here are the results,
 http://linuxgizmos.com/raspberry-pi-stays-sky-high-in-2015-hacker-sbc-survey/

 Specifically,

 1. The survey had a special feature where you picked three SBCs depending
 on how favorite they were to you.
 Then, it would triple the votes for Choice #1, double the votes for Choice
 #2 and extract the results.
 Obviously, such a method favors what has been put as Choice #1, the most
 favorite.

 2. At positions #1 and #3, the Raspberry Pi 2 and Raspberry Pi
 respectively. Yep, the single core Raspberry Pi got third place.
 3. At position #2 was the BeagleBone Black.

 4. In the top ten, there were three ODROID SBCs. ODROID is doing a great
 job in promoting their boards.
 They have a great page showcasing what you can do with their boards (such
 as
 http://www.hardkernel.com/main/products/prdt_info.php?g_code=G141578608433),
 they have a monthly magazine at http://magazine.odroid.com/ and their forum
 is very active.

 5. Out of the 53 Small Board Computers in the competition, there were no
 Allwinner boards this year in the top Ten.
 6. An easy comparison of the specs for the Top Ten is at
 http://files.linuxgizmos.com/2015-hacker-sbc-survey-top-10-sbc-specs-comparison.jpg
 It is interesting to notice that several Mali and PowerVR GPUs make it to
 the top ten.

 7. The Raspberry Pis have the Videocode IV GPU. When the first RPi board
 was released, it did not have a free driver for the GPU.
 Two years later, Broadcom released some source and documentation which were
 not sufficient.
 The turning point was in June 2014 when Eric Anholt was employed by
 Broadcom to write a free driver for VC4,
 https://en.wikipedia.org/wiki/VideoCore#Linux_support

 8. There were three Cubieboard models which got 357 points
 and two OLinuXino models that got 195 points.
 9. In the 2014 SBC Survey, the Banana Pi got the fifth place.
 This year, the companies (LeMaker, SinoVoip) that made the Banana Pi
 decided to split, creating their separate products.
 The SinoVoip board got 14th place, the LeMaker got the 16th place.
 10. The Orange Pi was quite low in the ranking (too new entrant for the
 survey).

 11. Among the buying criteria, the highest was Open source software
 support (sic).
 Next came the Community ecosystem.
 I think these two are critical for the success of an SBC, and companies
 that make SBCs,
 should make effort to create such communities.

 Simos

 Amazing how you left the following snippet out:

 One processor trend did seem clear, however, judging both from the
 selections and reader comments. The open source community appears to be
 increasingly frustrated with Allwinner’s Linux support. While three
 Allwinner based boards made last year’s top 10, there are none this
 year. After the 11th Place Cubieboard4, with its octacore Allwinner A80,
 the next Allwinner board on the list is the A31-based Banana Pi M2 at
 number 14.


Frankly, I did not notice that sentence while skimming the article.
I would not have a reason not to mention it since you would definitely
discover it.

What the RPi and ODroid do really well, is that they have a great
active community,
and that includes support even in non-technical levels.
Even the ODROID-C1 does not fully support yet the mainline Linux kernel,
http://forum.odroid.com/viewtopic.php?f=111t=8288
but the person working at the forum is there to answer honestly with
Because