Re: [linux-sunxi] Sunxi FOSDEM2015 Dinner!
I wont be able to go to FOSDEM this year, i hope you will all have a good time. Gustavo Zamboni On Thu, Jan 29, 2015 at 5:09 PM, Benjamin Henrion zoo...@gmail.com wrote: On Thu, Jan 29, 2015 at 4:34 PM, oli...@schinagl.nl 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 around 7pm, meeting point at 6H45 at the O'reilly books stand in the H hall. I know the tram takes special tram-passes. What is the easiest/cheapest way to get this for the group/a few? Payment isn't the issue I would expect. You do have magnetic cards (vs rfid ones) for 10 trips for 12EUR I think. You just have to pass the card multiple times according to the number of people traveling. It is better to take the bus 71 down to Debroukere, because the bus stop is not that far away from the restaurant. PS: for people who are already in Brussels tomorrow, I will be doing an ES8266 workshop together with Zeromq people, feel free to join here: https://hackerspace.be/Esp8266-fosdem-workshop -- Benjamin Henrion bhenrion at ffii.org FFII Brussels - +32-484-566109 - +32-2-4148403 In July 2005, after several failed attempts to legalise software patents in Europe, the patent establishment changed its strategy. Instead of explicitly seeking to sanction the patentability of software, they are now seeking to create a central European patent court, which would establish and enforce patentability rules in their favor, without any possibility of correction by competing courts or democratically elected legislators. -- 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. -- 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] Wiki broken
I did a reboot on the mail server yesterday, maybe you did a change exactly when the server was rebooting. So the php was not able to connect to the server. Please let us know if the problem persists. Sorry for that, Gustavo Zamboni Le 27/06/2014 21:49, Emilio López a écrit : Hi there, El 27/06/14 08:05, Paul Jones escribió: Hi, If the wiki administrator is lurking here, just an FYI that the wiki is slightly broken: linux-sunxi.org could not send your confirmation mail. Please check your email address for invalid characters. I tried to send you an email through the wiki, but it insists on that you don't have an email address associated. Your account seems to be confirmed already. Let us know here or on IRC if you have any further issues when trying to edit things. Cheers, Emilio -- 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: Passing the platform data for SPI device
Why dont you just add the device to the fex file ?? activate your spix_para parameters and add something like: |[spi_devices]| spi_dev_num=1 |[spi_board0]| |modalias| |= |||mcp251x |max_speed_hz| |= ||1200| |bus_num| |= ||1| |chip_select| |= ||0| |mode| |= ||3| |full_duplex| |= ||0| |manual_cs| |= ||0| With spidev it works well with modalias spidev. Gustavo Zamboni Le 23/01/2014 18:03, vinicius...@gmail.com a écrit : Em quinta-feira, 23 de janeiro de 2014 13h59min19s UTC-3, vinic...@gmail.com escreveu: Em terça-feira, 21 de janeiro de 2014 08h44min19s UTC-3, Tomas Novotny escreveu: Hi All, I'm trying to use some SPI devices on A10s OLinuXino. It was flawless for simple MCU driven by spidev (everything needed is defined in FEX). Now I'm trying to connect external CAN over SPI (MCP2515). The mcp251x driver needs to pass oscillator frequency through the mcp251x_platform_data structure. Is there any clean way how to do it on 3.4 linux-sunxi? It seems that platform data for SPI board aren't passed by sunxi SPI driver. I'm using Debian image with custom built 3.4.61 linux-sunxi. Thanks to all, Tomas You can change by yourself spi_sunxi.c, something like that: diff --git a/drivers/spi/spi_sunxi.c b/drivers/spi/spi_sunxi.c index a3792fd..2f0ab7c 100644 --- a/drivers/spi/spi_sunxi.c +++ b/drivers/spi/spi_sunxi.c @@ -28,6 +28,7 @@ #include linux/spi/spi.h #include linux/spi/spi_bitbang.h +#include linux/can/platform/mcp251x.h #include asm/io.h #include plat/dma.h @@ -134,6 +135,10 @@ struct sunxi_spi { int cs_bitmap;/* cs0- 0x1; cs1-0x2, cs0cs1-0x3. */ }; +static struct mcp251x_platform_data mcp251x_info = { + .oscillator_frequency = 800, +}; + Sorry, something like that: diff --git a/drivers/spi/spi_sunxi.c b/drivers/spi/spi_sunxi.c index a3792fd..2f0ab7c 100644 --- a/drivers/spi/spi_sunxi.c +++ b/drivers/spi/spi_sunxi.c @@ -28,6 +28,7 @@ #include linux/spi/spi.h #include linux/spi/spi_bitbang.h +#include linux/can/platform/mcp251x.h #include asm/io.h #include plat/dma.h @@ -134,6 +135,10 @@ struct sunxi_spi { int cs_bitmap;/* cs0- 0x1; cs1-0x2, cs0cs1-0x3. */ }; +static struct mcp251x_platform_data mcp251x_info = { + .oscillator_frequency = 800, +}; + /* config chip select */ s32 aw_spi_set_cs(u32 chipselect, void *base_addr) { @@ -1922,6 +1927,7 @@ int __devinit spi_sunxi_register_spidev(void) { board = spi_boards[i]; sprintf(spi_board_name, spi_board%d, i); +board-platform_data = mcp251x_info; ret = script_parser_fetch(spi_board_name, modalias, (void*)board-modalias, sizeof(char*)); if(ret != SCRIPT_PARSER_OK) { spi_msg(Get spi devices modalias failed\n); -- 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/groups/opt_out.
Re: [linux-sunxi] Re: Passing the platform data for SPI device
I'm sorry, i didnt see you needed that. you can use on of the script parse functions to get the oscilator frequency value from the fex. Of course you will have to change the spi src as vinicius said. Gustavo Le 23/01/2014 21:24, Tomas Novotny a écrit : On Thu, 23 Jan 2014 19:11:32 +0100, Gustavo Zamboni gustavozamb...@gmail.com wrote: Hi Gustavo, Why dont you just add the device to the fex file ?? activate your spix_para parameters and add something like: |[spi_devices]| spi_dev_num=1 |[spi_board0]| |modalias| |= |||mcp251x |max_speed_hz| |= ||1200| |bus_num| |= ||1| |chip_select| |= ||0| |mode| |= ||3| |full_duplex| |= ||0| |manual_cs| |= ||0| With spidev it works well with modalias spidev. yes, this is exactly what I did. I was trying both spidev and mcp251x. There is no problem with spidev (it is currently working) but for mcp251x I need to pass (very simple) platform data with oscillator frequency. The mcp251x is being initialized during boot but it fails because of missing platform data. I don't know if there is some clean way how to pass platform data of the mcp251x driver. I think that FEX is not able to do that (there is no handling in sunxi spi). Thanks for you answer, Tomas Gustavo Zamboni Le 23/01/2014 18:03, vinicius...@gmail.com a écrit : Em quinta-feira, 23 de janeiro de 2014 13h59min19s UTC-3, vinic...@gmail.com escreveu: Em terça-feira, 21 de janeiro de 2014 08h44min19s UTC-3, Tomas Novotny escreveu: Hi All, I'm trying to use some SPI devices on A10s OLinuXino. It was flawless for simple MCU driven by spidev (everything needed is defined in FEX). Now I'm trying to connect external CAN over SPI (MCP2515). The mcp251x driver needs to pass oscillator frequency through the mcp251x_platform_data structure. Is there any clean way how to do it on 3.4 linux-sunxi? It seems that platform data for SPI board aren't passed by sunxi SPI driver. I'm using Debian image with custom built 3.4.61 linux-sunxi. Thanks to all, Tomas You can change by yourself spi_sunxi.c, something like that: diff --git a/drivers/spi/spi_sunxi.c b/drivers/spi/spi_sunxi.c index a3792fd..2f0ab7c 100644 --- a/drivers/spi/spi_sunxi.c +++ b/drivers/spi/spi_sunxi.c @@ -28,6 +28,7 @@ #include linux/spi/spi.h #include linux/spi/spi_bitbang.h +#include linux/can/platform/mcp251x.h #include asm/io.h #include plat/dma.h @@ -134,6 +135,10 @@ struct sunxi_spi { int cs_bitmap;/* cs0- 0x1; cs1-0x2, cs0cs1-0x3. */ }; +static struct mcp251x_platform_data mcp251x_info = { + .oscillator_frequency = 800, +}; + Sorry, something like that: diff --git a/drivers/spi/spi_sunxi.c b/drivers/spi/spi_sunxi.c index a3792fd..2f0ab7c 100644 --- a/drivers/spi/spi_sunxi.c +++ b/drivers/spi/spi_sunxi.c @@ -28,6 +28,7 @@ #include linux/spi/spi.h #include linux/spi/spi_bitbang.h +#include linux/can/platform/mcp251x.h #include asm/io.h #include plat/dma.h @@ -134,6 +135,10 @@ struct sunxi_spi { int cs_bitmap;/* cs0- 0x1; cs1-0x2, cs0cs1-0x3. */ }; +static struct mcp251x_platform_data mcp251x_info = { + .oscillator_frequency = 800, +}; + /* config chip select */ s32 aw_spi_set_cs(u32 chipselect, void *base_addr) { @@ -1922,6 +1927,7 @@ int __devinit spi_sunxi_register_spidev(void) { board = spi_boards[i]; sprintf(spi_board_name, spi_board%d, i); +board-platform_data = mcp251x_info; ret = script_parser_fetch(spi_board_name, modalias, (void*)board-modalias, sizeof(char*)); if(ret != SCRIPT_PARSER_OK) { spi_msg(Get spi devices modalias failed\n); -- 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/groups/opt_out.