[linux-sunxi] Re: [PATCH v4 2/5] ARM:sunxi:drivers:input Add support for A10/A20 PS2
Hello Dmitry, Thank you for review comments. Please see in-lined. On Sun, Jan 18, 2015 at 3:55 AM, Dmitry Torokhov wrote: > Hi Vishnu, > > On Fri, Jan 16, 2015 at 07:33:38PM +0530, Vishnu Patekar wrote: >> Signed-off-by: VishnuPatekar >> --- >> drivers/input/serio/Kconfig | 11 ++ >> drivers/input/serio/Makefile|1 + >> drivers/input/serio/sun4i-ps2.c | 330 >> +++ >> 3 files changed, 342 insertions(+) >> create mode 100644 drivers/input/serio/sun4i-ps2.c >> >> diff --git a/drivers/input/serio/Kconfig b/drivers/input/serio/Kconfig >> index bc2d474..964afc5 100644 >> --- a/drivers/input/serio/Kconfig >> +++ b/drivers/input/serio/Kconfig >> @@ -281,4 +281,15 @@ config HYPERV_KEYBOARD >> To compile this driver as a module, choose M here: the module will >> be called hyperv_keyboard. >> >> +config SERIO_SUN4I_PS2 >> + tristate "Allwinner A10 PS/2 controller support" >> + default n >> + depends on ARCH_SUNXI || COMPILE_TEST >> + help >> + This selects support for the PS/2 Host Controller on >> + Allwinner A10. >> + >> + To compile this driver as a module, choose M here: the >> + module will be called sun4i-ps2. >> + >> endif >> diff --git a/drivers/input/serio/Makefile b/drivers/input/serio/Makefile >> index 815d874..c600089 100644 >> --- a/drivers/input/serio/Makefile >> +++ b/drivers/input/serio/Makefile >> @@ -29,3 +29,4 @@ obj-$(CONFIG_SERIO_ARC_PS2) += arc_ps2.o >> obj-$(CONFIG_SERIO_APBPS2) += apbps2.o >> obj-$(CONFIG_SERIO_OLPC_APSP)+= olpc_apsp.o >> obj-$(CONFIG_HYPERV_KEYBOARD)+= hyperv-keyboard.o >> +obj-$(CONFIG_SERIO_SUN4I_PS2)+= sun4i-ps2.o >> diff --git a/drivers/input/serio/sun4i-ps2.c >> b/drivers/input/serio/sun4i-ps2.c >> new file mode 100644 >> index 000..06b3fef >> --- /dev/null >> +++ b/drivers/input/serio/sun4i-ps2.c >> @@ -0,0 +1,330 @@ >> +/* >> + * Driver for Allwinner A10 PS2 host controller >> + * >> + * Author: Vishnu Patekar >> + * Aaron.maoye >> + * >> + * >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +#define DRIVER_NAME "sun4i-ps2" >> + >> +/* register offset definitions */ >> +#define PS2_REG_GCTL 0x00/* PS2 Module Global Control Reg */ >> +#define PS2_REG_DATA 0x04/* PS2 Module Data Reg */ >> +#define PS2_REG_LCTL 0x08/* PS2 Module Line Control Reg */ >> +#define PS2_REG_LSTS 0x0C/* PS2 Module Line Status Reg */ >> +#define PS2_REG_FCTL 0x10/* PS2 Module FIFO Control Reg */ >> +#define PS2_REG_FSTS 0x14/* PS2 Module FIFO Status Reg */ >> +#define PS2_REG_CLKDR0x18/* PS2 Module Clock Divider >> Reg*/ >> + >> +/* PS2 GLOBAL CONTROL REGISTER PS2_GCTL */ >> +#define PS2_GCTL_INTFLAG BIT(4) >> +#define PS2_GCTL_INTEN BIT(3) >> +#define PS2_GCTL_RESET BIT(2) >> +#define PS2_GCTL_MASTER BIT(1) >> +#define PS2_GCTL_BUSEN BIT(0) >> + >> +/* PS2 LINE CONTROL REGISTER */ >> +#define PS2_LCTL_NOACK BIT(18) >> +#define PS2_LCTL_TXDTOEN BIT(8) >> +#define PS2_LCTL_STOPERREN BIT(3) >> +#define PS2_LCTL_ACKERRENBIT(2) >> +#define PS2_LCTL_PARERRENBIT(1) >> +#define PS2_LCTL_RXDTOEN BIT(0) >> + >> +/* PS2 LINE STATUS REGISTER */ >> +#define PS2_LSTS_TXTDO BIT(8) >> +#define PS2_LSTS_STOPERR BIT(3) >> +#define PS2_LSTS_ACKERR BIT(2) >> +#define PS2_LSTS_PARERR BIT(1) >> +#define PS2_LSTS_RXTDO BIT(0) >> + >> +#define PS2_LINE_ERROR_BIT \ >> + (PS2_LSTS_TXTDO | PS2_LSTS_STOPERR | PS2_LSTS_ACKERR | \ >> + PS2_LSTS_PARERR | PS2_LSTS_RXTDO) >> + >> +/* PS2 FIFO CONTROL REGISTER */ >> +#define PS2_FCTL_TXRST BIT(17) >> +#define PS2_FCTL_RXRST BIT(16) >> +#define PS2_FCTL_TXUFIEN BIT(10) >> +#define PS2_FCTL_TXOFIEN BIT(9) >> +#define PS2_FCTL_TXRDYIENBIT(8) >> +#define PS2_FCTL_RXUFIEN BIT(2) >> +#define PS2_FCTL_RXOFIEN BIT(1) >> +#define PS2_FCTL_RXRDYIENBIT(0) >> + >> +/* PS2 FIFO STATUS REGISTER */ >> +#define PS2_FSTS_TXUFBIT(10) >> +#define PS2_FSTS_TXOFBIT(9) >> +#define PS2_FSTS_TXRDY BIT(8) >> +#define PS2_FSTS_RXUFBIT(2) >> +#define PS2_FSTS_RXOFBIT(1) >> +#define PS2_FSTS_RXRDY BIT(0) >> + >> +#define PS2_FIFO_ERROR_BIT \ >> + (PS2_FSTS_TXUF | PS2_FSTS_TXOF | PS2_FSTS_RXUF | PS2_FSTS_RXOF) >> + >> +#define PS2_SAMPLE_CLK 100 >> +#define PS2_SCLK 125000 >> + >> +struct sun4i_ps2data { >> + struct serio *serio; >> + struct device *dev; >> + >> + /* IO mapping base */ >> + void __iomem*reg_base; >> + >> + /
Re: [linux-sunxi] [u-boot 2/2] sun5i: bump DEBE priority (useful on a10s only)
On Sun, 04 Jan 2015 20:49:38 +0100 Hans de Goede wrote: > Hi, > > On 04-01-15 20:19, Michal Suchanek wrote: > >Setting magic 'reserved' hpcr bit on sun5i DEBE seems required for > >smooth HDMI scanout of large frambuffer (eg. 1080p). > > > >This fix comes at the cost of some overall memory bandwidth so it > >might be appropriate to detect a10s and only apply there (and not a13). > > Hmm, Sairhei is the expert on this, adding him to the Cc. Sairhei, what > do you think of the proposed change ? I don't have A10s hardware, so have no idea and can't test anything myself. It would be great to have a better description of what exactly is happening before the patch. And precisely how the patch is helping. A description of the test setup and benchmark numbers would be appreciated. And it would be perfect if somebody else could reproduce the test and confirm the results. I may try to check A20 with the bus width artificially reduced to 16 bits (not a totally unrealistic configuration, since A20-OLinuXino-LIME board exists). If sun5i and sun7i are similar enough, then the magic reserved bit may have some effect there too. But that's a different hardware either way. -- Best regards, Siarhei Siamashka -- 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] A20 mainline kernel -- buttons and power information
On Sat, 17 Jan 2015 04:35:55 +0100 Michal Suchanek wrote: > On 17 January 2015 at 04:10, Siarhei Siamashka > wrote: > > On Wed, 14 Jan 2015 12:20:12 +0100 > > Michal Suchanek wrote: > > > >> On 14 January 2015 at 11:42, Lars Doelle wrote: > >> > Hi everyone, > >> > > >> > tuning device configuration for [[Inet K970]], I did not yet find > >> > switches in the mainline kernel for the following features: > >> > > >> > 1) sunxi-keyboard > >> > >> There is a mainline driver and I did not try it so far. The main > >> blocker is that I did not find instruction for fel booting mainline > >> u-boot and kernel. I can upload the u-boot but it searches for some > >> syslinux configuration which is not found. Probably patching the > >> default environment when SPL_FEL is selected would do the trick but > >> did not get to it. > > > > That's why I asked you earlier whether you want to be provided with > > such instructions ;-) > > > > I'm currently using the following u-boot patch for FEL booting u-boot, > > kernel and initramfs (with serial console on MicroSD breakout): > > > > diff --git a/include/configs/sunxi-common.h > > b/include/configs/sunxi-common.h index f7e87a2..e958bd0 100644 > > --- a/include/configs/sunxi-common.h > > +++ b/include/configs/sunxi-common.h > > @@ -330,6 +330,11 @@ > > CONSOLE_STDIN_SETTINGS \ > > CONSOLE_STDOUT_SETTINGS > > > > +#if defined(CONFIG_UART0_PORT_F) > > +#undef BOOTENV > > +#define BOOTENV "bootcmd=source ${scriptaddr}\0" > > +#endif > > + > > Yes, I expected that some bit like this is missing because the script > is uploaded over FEL and then ignored by u-boot. > > The condition should be CONFIG_SPL_FEL because you want this any time > FEL is used regardless of used uart. Well, not really. One might want to just upload u-boot using FEL, but boot the rest of the system from USB or SATA hard drive via "some syslinux configuration". > Maybe it's mostly safe to use > always because on non-fel boot the area will not have valid u-boot > image. > > > #define CONFIG_EXTRA_ENV_SETTINGS \ > > CONSOLE_ENV_SETTINGS \ > > MEM_LAYOUT_ENV_SETTINGS \ > > > > > > The 'boot.scr' file needs to be uploaded to the right location in RAM > > ('scriptaddr', which is currently 0x4310) using the 'fel' tool too. > > Why is this different from the 0x4100 address used by the old > u-boot and sunxi-tools usb-boot? No matter why this happened, we can just hope that the address space layout is not going to be changed often from now on. Either way, the 'sunxi-common.h' header file serves as the address space layout documentation. That's the first place to check when troubleshooting. > The kernel address also differs on mainline so maybe it's time to just > make a separate mainline script. Maybe. > > And the DTB file needs to be patched to move UART0 pins to the SD card > > slot. This DTB patching can be done automatically in u-boot on the > > device (if u-boot is enhanced to implement this functionality), or on > > your PC before uploading it to RAM using the 'fel' tool. > > When you are using CONFIG_UART0_PORT_F. Would be nice to have the > automagic DT patching in u-boot since the patching support exists but > that's more cosmetic issue than anything. It's not so cosmetic if you still want to have serial console log from the kernel for debugging things. Yes, this is very much fixable. Easily fixable even. But since nobody other than me seems to be interested, it's not very high on my priority list. > The memory script part is way more important. It's entirely pointless to discuss this here. This very clearly belongs to the u-boot mailing list. If there is more than one person who wants this feature, then there is a higher chance for it to be accepted. Also take a look at how Hans and Ian work nicely together. It is very easy to push code of almost any quality into open source software as long as you have another person readily acking your patches. And this works great, until you get a heartbleed bug or some other similar shit discovered :-) -- Best regards, Siarhei Siamashka -- 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: u-boot olimex a13-lcd10ts (now aka LCD-OLinuXino-10TS?)
Hans de Goede writes: > Hi, > > On 18-01-15 13:42, Jens Thiele wrote: >> will you re-add A20-OLinuXino_MICRO-lcd10_defconfig to your sunxi-wip >> branch or did you change your mind? > > We've decided to not carry defconfig-s for board + addon combos upstream as > that simply leads to a too large explosion of defconfig-s, instead for > LCD-s we've created this page where the necessary info can be found: > http://linux-sunxi.org/LCD i see, thanks! >> would it be somehow possible to detect connected lcds? > > No. > >> or at least a connected touchscreen? > > A resistive touchscreen can only be differentiated from not-connected > pins when it is actually pressed, so no. :( >> i think most will either connect the lcd with touchscreen or no lcd all? > > Olimex has sold both versions with and without the touchscreen for > various lcd displays. thanks, again jens -- 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] Difference in DRAM Registers on sunxi and lichee kernels
On Sun, 18 Jan 2015 08:43:46 -0800 (PST) Toroshin Dmitry wrote: > Meminfo works strange on lichee kernel: on first boot zq is 0x7f, but after > standby it is 0x12b73b7f This is fishy, but I don't think that we support lichee kernels here. Having bugs there is not surprising, maybe this can be reported to Allwinner? > I added this fucntion to meminfo utility to get full dram register dump on > a20: > > static int > sun4i_dram_regs_print(void) > { > void *base; > base = mmap(NULL, SUN4I_IO_DRAM_SIZE, PROT_READ, > MAP_SHARED, devmem_fd, SUN4I_IO_DRAM_BASE); > if (base == MAP_FAILED) { > fprintf(stderr, "Failed to map dram registers: %s\n", > strerror(errno)); > return errno; > } > > unsigned int i=0; > for(i=0;i { > if(!(i%16)) printf("\n0x%08x ", i); > printf("%08x ",sunxi_io_read(base,i)); > } > } > > Differences in dump before standby: > diff meminfo_sunxi1 meminfo-aw1 [...] > And this is after standby: > diff meminfo_sunxi2 meminfo-aw2 [...] > Some registers has changed after reboot to lichee kernel and back to sunxi: > > diff meminfo_sunxi1 meminfo_sunxi2 [...] Sorry, the logs were not very readable with that formatting and non-unified diffs. Are you worried about some specific register(s)? > What is wrong? The differences in DRAM controller registers between the mainline u-boot and Allwinner's boot0 do not necessarily mean that something is wrong. The boot0 bootloader has evolved over time. And u-boot-sunxi has used a very old boot0 version as a reference. They have parted ways since a long time ago. > What does mean zq value? You can find everything that we know about the A10/A13/A20 DRAM controller in the linux-sunxi wiki: http://linux-sunxi.org/A10_DRAM_Controller_Register_Guide http://linux-sunxi.org/A10_DRAM_Controller_Calibration I believe that you should find all the answers there. If something is not quite clear, I will be glad to update these pages. > And why tpr values are different between kernels? These values are initially set in the bootloaders. Yes, and the kernel is also involved when waking up. But only the Allwinner's android kernel, since the mainline kernel and sunxi-3.4 do not really support suspend yet. I believe that nowadays we are doing a better job configuring DRAM on A10/A13/A20 than Allwinner. At least code-wise and when the settings in the 'dram_para' struct are selected optimally (the settings are currently a pile of junk though). -- Best regards, Siarhei Siamashka -- 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: linux-sunxi/u-boot-sunxi is no longer supported, time to switch to upstream u-boot
On Sun, 18 Jan 2015 11:38:06 -0800 (PST) Ezaul Zillmer wrote: > Hello > > How could run u-boot with lcd with > Cubieboard2 + DVK-521 using Kernke 3.19rc3 > u-boot-wip with HDMI is already running > not get to do the LCD picture > > Configuration it would be LCD e toud > > fex [...] There are several options: 1. If you can ensure that your fex file is available in the sunxi-boards repository, then you will get your LCD settings available on the http://linux-sunxi.org/LCD wiki page after the next round of automatic conversion. 2. If you are really impatient, then you can go to http://linux-sunxi.org/LCD#Script_for_automated_conversion Then copy/paste this script into some file with *.rb extension and run it on your fex file to get the CONFIG_VIDEO_LCD_MODE line for your board. This is currently work in progress and will definitely change in the near future. There is no reason why we can't get complete u-boot defconfigs (not just LCD settings alone) generated from fex files automatically. Along with dts/dtb files for the kernel. Stay tuned. -- Best regards, Siarhei Siamashka -- 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: Allwinner documentation (hardware datasheet, user manual) for A10, A10s, A13, A20, A31, A31s
On Sun, Jan 18, 2015 at 07:33:42PM +, Ian Campbell wrote: > On Sun, 2015-01-18 at 11:46 +0100, Luc Verhaegen wrote: > > > ADDITIONS: > > > A33: datasheet and user guide, both at version 1.1. (released 5 days ago) > > > A80: datasheet and user guide, both at version 1.1. (released 2 months > > > ago). > > > > > > Finally, at the https://github.com/allwinner-zh/bootloader repository, > > > code for u-boot has been released by Sugar (two days ago). > > > > The reason for this release new is this: > > Or, more likely, because someone emailed Sugar privately (I was on CC) > late last week and asked for a bunch of this stuff to be made available, > so it was. > > Thanks Sugar! > > Ian. Ah, just like with the kernel tree: https://github.com/allwinner-zh/bootloader/blob/master/u-boot-2011.09/arch/arm/cpu/armv7/sun9iw1/dram/Makefile 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: linux-sunxi/u-boot-sunxi is no longer supported, time to switch to upstream u-boot
Hello How could run u-boot with lcd with Cubieboard2 + DVK-521 using Kernke 3.19rc3 u-boot-wip with HDMI is already running not get to do the LCD picture Configuration it would be LCD e toud fex [disp_init] disp_init_enable = 1 disp_mode = 0 screen0_output_type = 1 screen0_output_mode = 4 screen1_output_type = 0 screen1_output_mode = 4 fb0_width = 1024 fb0_height = 768 fb0_framebuffer_num = 2 fb0_format = 10 fb0_pixel_sequence = 0 fb0_scaler_mode_enable = 0 fb1_width = 1024 fb1_height = 768 fb1_framebuffer_num = 2 fb1_format = 10 fb1_pixel_sequence = 0 fb1_scaler_mode_enable = 0 lcd0_backlight = 197 lcd1_backlight = 197 lcd0_bright = 50 lcd0_contrast = 50 lcd0_saturation = 57 lcd0_hue = 50 lcd1_bright = 50 lcd1_contrast = 50 lcd1_saturation = 57 lcd1_hue = 50 [lcd0_para] lcd_used = 1 lcd_x = 800 lcd_y = 480 lcd_dclk_freq = 33 lcd_pwm_not_used = 0 lcd_pwm_ch = 0 lcd_pwm_freq = 1 lcd_pwm_pol = 0 lcd_max_bright = 240 lcd_min_bright = 64 lcd_if = 0 lcd_hbp = 215 lcd_ht = 1055 lcd_vbp = 34 lcd_vt = 1050 lcd_vspw = 3 lcd_hspw = 20 lcd_hv_if = 0 lcd_hv_smode = 0 lcd_hv_s888_if = 0 lcd_hv_syuv_if = 0 lcd_lvds_ch = 0 lcd_lvds_mode = 0 lcd_lvds_bitwidth = 0 lcd_lvds_io_cross = 0 lcd_cpu_if = 0 lcd_frm = 1 lcd_io_cfg0 = 0 lcd_gamma_correction_en = 0 lcd_gamma_tbl_0 = 0x0 lcd_gamma_tbl_1 = 0x10101 lcd_gamma_tbl_255 = 0xff lcd_bl_en_used = 1 lcd_bl_en = port:PH07<1><0><1> lcd_power_used = 1 lcd_power = port:PH08<1><0><1> lcd_pwm_used = 1 lcd_pwm = port:PB02<2><0> lcd_gpio_0 = port:PH15<0><0> lcd_gpio_1 = lcd_gpio_2 = lcd_gpio_3 = lcdd0 = port:PD00<2><0> lcdd1 = port:PD01<2><0> lcdd2 = port:PD02<2><0> lcdd3 = port:PD03<2><0> lcdd4 = port:PD04<2><0> lcdd5 = port:PD05<2><0> lcdd6 = port:PD06<2><0> lcdd7 = port:PD07<2><0> lcdd8 = port:PD08<2><0> lcdd9 = port:PD09<2><0> lcdd10 = port:PD10<2><0> lcdd11 = port:PD11<2><0> lcdd12 = port:PD12<2><0> lcdd13 = port:PD13<2><0> lcdd14 = port:PD14<2><0> lcdd15 = port:PD15<2><0> lcdd16 = port:PD16<2><0> lcdd17 = port:PD17<2><0> lcdd18 = port:PD18<2><0> lcdd19 = port:PD19<2><0> lcdd20 = port:PD20<2><0> lcdd21 = port:PD21<2><0> lcdd22 = port:PD22<2><0> lcdd23 = port:PD23<2><0> lcdclk = port:PD24<2><0> lcdde = port:PD25<2><0> lcdhsync = port:PD26<2><0> lcdvsync = port:PD27<2><0> [ctp_para] ctp_used = 1 ctp_name = "ft5x_ts" ctp_twi_id = 1 ctp_twi_addr = 0x38 ctp_screen_max_x = 800 ctp_screen_max_y = 480 ctp_revert_x_flag = 0 ctp_revert_y_flag = 1 ctp_exchange_x_y_flag = 0 ctp_firm = 1 ctp_wakeup = port:PB13<1><1> [ctp_list_para] ctp_det_used = 1 ft5x_ts = 1 gt82x = 0 gslX680 = 0 gt9xx_ts = 0 gt811 = 0 [gpio_para] gpio_pin_3 = port:PH07<6> -- 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: Allwinner documentation (hardware datasheet, user manual) for A10, A10s, A13, A20, A31, A31s
On Sun, 2015-01-18 at 11:46 +0100, Luc Verhaegen wrote: > > ADDITIONS: > > A33: datasheet and user guide, both at version 1.1. (released 5 days ago) > > A80: datasheet and user guide, both at version 1.1. (released 2 months ago). > > > > Finally, at the https://github.com/allwinner-zh/bootloader repository, > > code for u-boot has been released by Sugar (two days ago). > > The reason for this release new is this: Or, more likely, because someone emailed Sugar privately (I was on CC) late last week and asked for a bunch of this stuff to be made available, so it was. Thanks Sugar! Ian. -- 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: Difference in DRAM Registers on sunxi and lichee kernels
I cannot upload dump output files because of stupid google groups restrictions -- 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] Difference in DRAM Registers on sunxi and lichee kernels
Meminfo works strange on lichee kernel: on first boot zq is 0x7f, but after standby it is 0x12b73b7f I added this fucntion to meminfo utility to get full dram register dump on a20: static int sun4i_dram_regs_print(void) { void *base; base = mmap(NULL, SUN4I_IO_DRAM_SIZE, PROT_READ, MAP_SHARED, devmem_fd, SUN4I_IO_DRAM_BASE); if (base == MAP_FAILED) { fprintf(stderr, "Failed to map dram registers: %s\n", strerror(errno)); return errno; } unsigned int i=0; for(i=0;i 0x 4020 30e5 0014 > 0x0010 08688383 42d899b7 a090 00022a00 7c7 < 0x0050 006a --- > 0x0050 0069 13c13 < 0x00b0 8002331a 00c9 --- > 0x00b0 8002b73b 00c9 33c33 < 0x01f0 1450 0004 0010 --- > 0x01f0 1a50 0004 0010 268c268 < dram_odt_en = 1 --- > dram_odt_en = 0 And this is after standby: diff meminfo_sunxi2 meminfo-aw2 2,3c2,3 < 0x 4020 30e5 4001 0014 < 0x0010 000bb374 42d899b7 a090 00022a00 --- > 0x 4020 380030e5 0010 > 0x0010 08688383 42d899b7 a090 00022a00 7c7 < 0x0050 006a --- > 0x0050 0069 12,13c12,13 < 0x00a0 7788bb44 07f0 0002 < 0x00b0 8002b73b 00c9 --- > 0x00a0 7788bb44 17f2b73b 0002 > 0x00b0 0002b73b 00c9 33c33 < 0x01f0 1450 0004 0010 --- > 0x01f0 1a50 0004 0010 267,268c267,268 < dram_zq = 0x7f < dram_odt_en = 1 --- > dram_zq = 0x12b73b7f > dram_odt_en = 0 Some registers has changed after reboot to lichee kernel and back to sunxi: diff meminfo_sunxi1 meminfo_sunxi2 2c2 < 0x 4020 30e5 4001 0010 --- > 0x 4020 30e5 4001 0014 13c13 < 0x00b0 8002331a 00c9 --- > 0x00b0 8002b73b 00c9 What is wrong? What does mean zq value? And why tpr values are different between kernels? -- 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: u-boot olimex a13-lcd10ts (now aka LCD-OLinuXino-10TS?) (Was: Re: [linux-sunxi] linux-sunxi/u-boot-sunxi is no longer supported, time to switch to upstream u-boot)
Hi, On 18-01-15 13:42, Jens Thiele wrote: Hans de Goede writes: I've created and attached a defconfig for 20-OLinuXino-MICRO + A13-LCD10TS, can you give this a try with my personal git tree, sunxi-wip branch: https://github.com/jwrdegoede/u-boot-sunxi/tree/sunxi-wip [...] CONFIG_SPL=y CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPB(8),USB_EHCI" CONFIG_FDTFILE="sun7i-a20-olinuxino-micro.dtb" CONFIG_MMC_SUNXI_SLOT_EXTRA=3 CONFIG_VIDEO_LCD_MODE="x:1024,y:600,depth:18,pclk_khz:45000,le:150,ri:16,up:21,lo:2,hs:10,vs:2,sync:3,vmode:0" CONFIG_VIDEO_LCD_POWER="PH8" CONFIG_VIDEO_LCD_BL_EN="PH7" CONFIG_VIDEO_LCD_BL_PWM="PB2" +S:CONFIG_MMC0_CD_PIN="PH1" +S:CONFIG_MMC3_CD_PIN="PH11" +S:CONFIG_ARM=y +S:CONFIG_ARCH_SUNXI=y +S:CONFIG_MACH_SUN7I=y +S:CONFIG_TARGET_A20_OLINUXINO_M=y will you re-add A20-OLinuXino_MICRO-lcd10_defconfig to your sunxi-wip branch or did you change your mind? We've decided to not carry defconfig-s for board + addon combos upstream as that simply leads to a too large explosion of defconfig-s, instead for LCD-s we've created this page where the necessary info can be found: http://linux-sunxi.org/LCD would it be somehow possible to detect connected lcds? No. or at least a connected touchscreen? A resistive touchscreen can only be differentiated from not-connected pins when it is actually pressed, so no. i think most will either connect the lcd with touchscreen or no lcd all? Olimex has sold both versions with and without the touchscreen for various lcd displays. 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.
u-boot olimex a13-lcd10ts (now aka LCD-OLinuXino-10TS?) (Was: Re: [linux-sunxi] linux-sunxi/u-boot-sunxi is no longer supported, time to switch to upstream u-boot)
Hans de Goede writes: > I've created and attached a defconfig for 20-OLinuXino-MICRO + A13-LCD10TS, > can you > give this a try with my personal git tree, sunxi-wip branch: > > https://github.com/jwrdegoede/u-boot-sunxi/tree/sunxi-wip > [...] > CONFIG_SPL=y > CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPB(8),USB_EHCI" > CONFIG_FDTFILE="sun7i-a20-olinuxino-micro.dtb" > CONFIG_MMC_SUNXI_SLOT_EXTRA=3 > CONFIG_VIDEO_LCD_MODE="x:1024,y:600,depth:18,pclk_khz:45000,le:150,ri:16,up:21,lo:2,hs:10,vs:2,sync:3,vmode:0" > CONFIG_VIDEO_LCD_POWER="PH8" > CONFIG_VIDEO_LCD_BL_EN="PH7" > CONFIG_VIDEO_LCD_BL_PWM="PB2" > +S:CONFIG_MMC0_CD_PIN="PH1" > +S:CONFIG_MMC3_CD_PIN="PH11" > +S:CONFIG_ARM=y > +S:CONFIG_ARCH_SUNXI=y > +S:CONFIG_MACH_SUN7I=y > +S:CONFIG_TARGET_A20_OLINUXINO_M=y will you re-add A20-OLinuXino_MICRO-lcd10_defconfig to your sunxi-wip branch or did you change your mind? would it be somehow possible to detect connected lcds? or at least a connected touchscreen? i think most will either connect the lcd with touchscreen or no lcd all? this would allow a single u-boot for the board: lcd connected => use lcd hdmi connected => use hdmi otherwise vga? jens -- 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] A20, AXP, linux mainline, no power off on halt
Hans de Goede writes: > Well there is your problem... > > If it still does not work with that enabled let us know. works, thanks -- 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 v3 1/3] ARM: dts: sun4i: Add mk802 board
Hi all, Oops this series is not a v3, but rather at v1, iow this is the first posting, sorry about that. Regards, Hans On 18-01-15 13:09, Hans de Goede wrote: The mk802 is the "classic" Allwinner A10 based hdmi tv-stick, it features 512M or 1G RAM, 4G nand, a mini-hdmi female connector, USB-A receptacle, mini-usb receptacle (OTG) and USB-wifi. Somewhat unique the mk802 does not use the AXP209 pmic, it does not have a pmic at all. For more details see: http://linux-sunxi.org/Rikomagic_mk802 Signed-off-by: Hans de Goede --- arch/arm/boot/dts/Makefile| 1 + arch/arm/boot/dts/sun4i-a10-mk802.dts | 109 ++ 2 files changed, 110 insertions(+) create mode 100644 arch/arm/boot/dts/sun4i-a10-mk802.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 7f66bab..dfb6885 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -448,6 +448,7 @@ dtb-$(CONFIG_MACH_SUN4I) += \ sun4i-a10-chuwi-v7-cw0825.dtb \ sun4i-a10-cubieboard.dtb \ sun4i-a10-mini-xplus.dtb \ + sun4i-a10-mk802.dtb \ sun4i-a10-hackberry.dtb \ sun4i-a10-inet97fv2.dtb \ sun4i-a10-olinuxino-lime.dtb \ diff --git a/arch/arm/boot/dts/sun4i-a10-mk802.dts b/arch/arm/boot/dts/sun4i-a10-mk802.dts new file mode 100644 index 000..e9a6886 --- /dev/null +++ b/arch/arm/boot/dts/sun4i-a10-mk802.dts @@ -0,0 +1,109 @@ +/* + * Copyright 2015 Hans de Goede + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this file; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301 USA + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; +#include "sun4i-a10.dtsi" +#include "sunxi-common-regulators.dtsi" +#include + +/ { + model = "MK802"; + compatible = "allwinner,mk802", "allwinner,sun4i-a10"; +}; + +&ehci0 { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +}; + +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ + cd-inverted; + status = "okay"; +}; + +&ohci0 { + status = "okay"; +}; + +&pio { + usb2_vbus_pin_mk802: usb2_vbus_pin@0 { + allwinner,pins = "PH12"; + allwinner,function = "gpio_out"; + allwinner,drive = ; + allwinner,pull = ; + }; +}; + +®_usb1_vbus { + status = "okay"; +}; + +®_usb2_vbus { + pinctrl-0 = <&usb2_vbus_pin_mk802>; + gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>; /* PH12 */ + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins_a>; + status = "okay"; +}; + +&usbphy { + usb1_vbus-supply = <®_usb1_vbus>; + usb2_vbus-supply = <®_usb2_vbus>; + status = "okay"; +}; -- You received this message because you are subscribed t
[linux-sunxi] [PATCH v3 3/3] ARM: dts: sun5i: Add mk802_a10s board
The mk802_a10s re-uses is the "classic" mk802 case and functionality, but has an A10s SoC inside rather then the A10, it features 512M or 1G RAM, 4G nand, a mini-hdmi female connector, USB-A receptacle, mini-usb receptacle (OTG) and a sdio realtek wifi chip. Unlike the original mk802 it does have a pmic, the axp152. For more details see: http://linux-sunxi.org/Semitime_g2 Signed-off-by: Hans de Goede --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun5i-a10s-mk802.dts | 125 + 2 files changed, 126 insertions(+) create mode 100644 arch/arm/boot/dts/sun5i-a10s-mk802.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index b543e7d..a3f58cf 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -456,6 +456,7 @@ dtb-$(CONFIG_MACH_SUN4I) += \ sun4i-a10-pcduino.dtb dtb-$(CONFIG_MACH_SUN5I) += \ sun5i-a10s-auxtek-t004.dtb \ + sun5i-a10s-mk802.dtb \ sun5i-a10s-olinuxino-micro.dtb \ sun5i-a10s-r7-tv-dongle.dtb \ sun5i-a13-hsg-h702.dtb \ diff --git a/arch/arm/boot/dts/sun5i-a10s-mk802.dts b/arch/arm/boot/dts/sun5i-a10s-mk802.dts new file mode 100644 index 000..399866a --- /dev/null +++ b/arch/arm/boot/dts/sun5i-a10s-mk802.dts @@ -0,0 +1,125 @@ +/* + * Copyright 2015 Hans de Goede + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this file; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301 USA + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; +#include "sun5i-a10s.dtsi" +#include "sunxi-common-regulators.dtsi" +#include + +/ { + model = "MK802-A10s"; + compatible = "allwinner,mk802_a10s", "allwinner,sun5i-a10s"; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&led_pins_mk802_a10s>; + + red { + label = "mk802:red:usr"; + gpios = <&pio 1 2 GPIO_ACTIVE_HIGH>; /* PB2 */ + }; + }; +}; + +&ehci0 { + status = "okay"; +}; + +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_mk802_a10s>; + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + cd-gpios = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */ + cd-inverted; + status = "okay"; +}; + +&ohci0 { + status = "okay"; +}; + +&pio { + led_pins_mk802_a10s: led_pins@0 { + allwinner,pins = "PB2"; + allwinner,function = "gpio_out"; + allwinner,drive = ; + allwinner,pull = ; + }; + + mmc0_cd_pin_mk802_a10s: mmc0_cd_pin@0 { + allwinner,pins = "PG1"; + allwinner,function = "gpio_in"; + allwinner,drive = ; + allwinner,pull = ; + }; + + usb1_vbus_pin_mk802_a10s: usb1_vbus_pin@0 { + allwinner,pins = "PB10"; + allwinne
[linux-sunxi] [PATCH v3 1/3] ARM: dts: sun4i: Add mk802 board
The mk802 is the "classic" Allwinner A10 based hdmi tv-stick, it features 512M or 1G RAM, 4G nand, a mini-hdmi female connector, USB-A receptacle, mini-usb receptacle (OTG) and USB-wifi. Somewhat unique the mk802 does not use the AXP209 pmic, it does not have a pmic at all. For more details see: http://linux-sunxi.org/Rikomagic_mk802 Signed-off-by: Hans de Goede --- arch/arm/boot/dts/Makefile| 1 + arch/arm/boot/dts/sun4i-a10-mk802.dts | 109 ++ 2 files changed, 110 insertions(+) create mode 100644 arch/arm/boot/dts/sun4i-a10-mk802.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 7f66bab..dfb6885 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -448,6 +448,7 @@ dtb-$(CONFIG_MACH_SUN4I) += \ sun4i-a10-chuwi-v7-cw0825.dtb \ sun4i-a10-cubieboard.dtb \ sun4i-a10-mini-xplus.dtb \ + sun4i-a10-mk802.dtb \ sun4i-a10-hackberry.dtb \ sun4i-a10-inet97fv2.dtb \ sun4i-a10-olinuxino-lime.dtb \ diff --git a/arch/arm/boot/dts/sun4i-a10-mk802.dts b/arch/arm/boot/dts/sun4i-a10-mk802.dts new file mode 100644 index 000..e9a6886 --- /dev/null +++ b/arch/arm/boot/dts/sun4i-a10-mk802.dts @@ -0,0 +1,109 @@ +/* + * Copyright 2015 Hans de Goede + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this file; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301 USA + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; +#include "sun4i-a10.dtsi" +#include "sunxi-common-regulators.dtsi" +#include + +/ { + model = "MK802"; + compatible = "allwinner,mk802", "allwinner,sun4i-a10"; +}; + +&ehci0 { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +}; + +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ + cd-inverted; + status = "okay"; +}; + +&ohci0 { + status = "okay"; +}; + +&pio { + usb2_vbus_pin_mk802: usb2_vbus_pin@0 { + allwinner,pins = "PH12"; + allwinner,function = "gpio_out"; + allwinner,drive = ; + allwinner,pull = ; + }; +}; + +®_usb1_vbus { + status = "okay"; +}; + +®_usb2_vbus { + pinctrl-0 = <&usb2_vbus_pin_mk802>; + gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>; /* PH12 */ + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins_a>; + status = "okay"; +}; + +&usbphy { + usb1_vbus-supply = <®_usb1_vbus>; + usb2_vbus-supply = <®_usb2_vbus>; + status = "okay"; +}; -- 2.1.0 -- 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...@googlegrou
[linux-sunxi] [PATCH v3 2/3] ARM: dts: sun4i: Add mk802ii board
The mk802ii is a revised version of the mk802 A10 based hdmi tv-stick, it features 1G RAM, 4G nand, a hdmi male connector, USB-A receptacle, 2 micro usb receptacles (OTG & power) and USB-wifi, and does come with an axp209 pmic. For more details see: http://linux-sunxi.org/Rikomagic_mk802ii Signed-off-by: Hans de Goede --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun4i-a10-mk802ii.dts | 113 2 files changed, 114 insertions(+) create mode 100644 arch/arm/boot/dts/sun4i-a10-mk802ii.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index dfb6885..b543e7d 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -449,6 +449,7 @@ dtb-$(CONFIG_MACH_SUN4I) += \ sun4i-a10-cubieboard.dtb \ sun4i-a10-mini-xplus.dtb \ sun4i-a10-mk802.dtb \ + sun4i-a10-mk802ii.dtb \ sun4i-a10-hackberry.dtb \ sun4i-a10-inet97fv2.dtb \ sun4i-a10-olinuxino-lime.dtb \ diff --git a/arch/arm/boot/dts/sun4i-a10-mk802ii.dts b/arch/arm/boot/dts/sun4i-a10-mk802ii.dts new file mode 100644 index 000..802eda4 --- /dev/null +++ b/arch/arm/boot/dts/sun4i-a10-mk802ii.dts @@ -0,0 +1,113 @@ +/* + * Copyright 2015 Hans de Goede + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this file; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301 USA + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; +#include "sun4i-a10.dtsi" +#include "sunxi-common-regulators.dtsi" +#include + +/ { + model = "MK802ii"; + compatible = "allwinner,mk802ii", "allwinner,sun4i-a10"; +}; + +&ehci0 { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +}; + +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; + + axp209: pmic@34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupts = <0>; + + interrupt-controller; + #interrupt-cells = <1>; + }; +}; + +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ + cd-inverted; + status = "okay"; +}; + +&ohci0 { + status = "okay"; +}; + +®_usb1_vbus { + status = "okay"; +}; + +®_usb2_vbus { + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins_a>; + status = "okay"; +}; + +&usbphy { + usb1_vbus-supply = <®_usb1_vbus>; + usb2_vbus-supply = <®_usb2_vbus>; + status = "okay"; +}; -- 2.1.0 -- 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, visi
Re: [linux-sunxi] A20, AXP, linux mainline, no power off on halt
Hi, On 18-01-15 12:06, Jens Thiele wrote: Hans de Goede writes: Which board are you using, is the axp209 driver build and loaded ? a20 olinuxino micro /boot$ grep -i axp config-3.19.0-rc3 # CONFIG_MFD_AXP20X is not set looks like it is set in sunxi_defconfig but not in multi_v7_defconfig. Well there is your problem... If it still does not work with that enabled let us know. 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.
[linux-sunxi] [PATCH v3 1/2] ARM: dts: sun7i: Add dts file for Bananapro board
Add support for the new Bananapro A20 development board from lemaker.org. This board features 1G RAM, 2 USB A receptacles, 1 micro USB receptacle for OTG, 1 micro USB receptacle for power, HDMI, sata, Gbit ethernet, ir receiver, 3.5 mm jack for a/v out, on board microphone, 40 gpio pins and sdio wifi. Signed-off-by: Hans de Goede --- Changes in v2: - Use cpp style includes - Use GPIO header for the GPIO flags - Address nodes by reference rather then by their full dt path Changes in v3: - Sort nodes alphabetically --- arch/arm/boot/dts/Makefile| 1 + arch/arm/boot/dts/sun7i-a20-bananapro.dts | 262 ++ 2 files changed, 263 insertions(+) create mode 100644 arch/arm/boot/dts/sun7i-a20-bananapro.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 601eb3d..34281aa 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -465,6 +465,7 @@ dtb-$(CONFIG_MACH_SUN6I) += \ sun6i-a31s-cs908.dtb dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-bananapi.dtb \ + sun7i-a20-bananapro.dtb \ sun7i-a20-cubieboard2.dtb \ sun7i-a20-cubietruck.dtb \ sun7i-a20-hummingbird.dtb \ diff --git a/arch/arm/boot/dts/sun7i-a20-bananapro.dts b/arch/arm/boot/dts/sun7i-a20-bananapro.dts new file mode 100644 index 000..fb89fe7 --- /dev/null +++ b/arch/arm/boot/dts/sun7i-a20-bananapro.dts @@ -0,0 +1,262 @@ +/* + * Copyright 2015 Hans de Goede + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this file; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301 USA + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; +#include "sun7i-a20.dtsi" +#include "sunxi-common-regulators.dtsi" +#include +#include + +/ { + model = "LeMaker Banana Pro"; + compatible = "lemaker,bananapro", "allwinner,sun7i-a20"; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&led_pins_bananapro>; + + blue { + label = "bananapro:blue:usr"; + gpios = <&pio 6 2 GPIO_ACTIVE_HIGH>; + }; + + green { + label = "bananapro:green:usr"; + gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>; + }; + }; + + reg_gmac_3v3: gmac-3v3 { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&gmac_power_pin_bananapro>; + regulator-name = "gmac-3v3"; + regulator-min-microvolt = <330>; + regulator-max-microvolt = <330>; + startup-delay-us = <10>; + enable-active-high; + gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>; + }; + + reg_vmmc3: vmmc3 { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&v
[linux-sunxi] [PATCH v3 2/2] ARM: dts: sun4i: Add dts file for Chuwi V7 CW0825 tablet
The Chuwi V7 is an A10 (sun4i) based tablet with 1G of RAM, 16G of nand flash, microsd slot, 7" 1024x768 lvds ips panel, mini hdmi out, headphones out, stereo speakers, front & back camera and usb wifi. It is clearly marked "CHUWI", "V7" and "Model: CW0825" on the back of the tablet. Signed-off-by: Hans de Goede --- Changes in v2: - Use cpp style includes - Use GPIO header for the GPIO flags - Address nodes by reference rather then by their full dt path Changes in v3: - Sort nodes alphabetically --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts | 100 2 files changed, 101 insertions(+) create mode 100644 arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 34281aa..fa8fd93 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -445,6 +445,7 @@ dtb-$(CONFIG_ARCH_STI)+= stih407-b2120.dtb \ dtb-$(CONFIG_MACH_SUN4I) += \ sun4i-a10-a1000.dtb \ sun4i-a10-ba10-tvbox.dtb \ + sun4i-a10-chuwi-v7-cw0825.dtb \ sun4i-a10-cubieboard.dtb \ sun4i-a10-mini-xplus.dtb \ sun4i-a10-hackberry.dtb \ diff --git a/arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts b/arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts new file mode 100644 index 000..58214f2 --- /dev/null +++ b/arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts @@ -0,0 +1,100 @@ +/* + * Copyright 2015 Hans de Goede + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this file; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301 USA + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; +#include "sun4i-a10.dtsi" +#include "sunxi-common-regulators.dtsi" +#include + +/ { + model = "Chuwi V7 CW0825"; + compatible = "chuwi,v7-cw0825", "allwinner,sun4i-a10"; +}; + +&ehci1 { + status = "okay"; +}; + +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; + + axp209: pmic@34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupts = <0>; + + interrupt-controller; + #interrupt-cells = <1>; + }; +}; + +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ + cd-inverted; + status = "okay"; +}; + +®_usb2_vbus { + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins_a>; + status = "okay"; +}; + +&usbphy { + usb2_vbus-supply = <®_usb2_vbus>; + status = "okay"; +}; -- 2.1.0 -- 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
Re: [linux-sunxi] A20, AXP, linux mainline, no power off on halt
Hans de Goede writes: > Which board are you using, is the axp209 driver build > and loaded ? a20 olinuxino micro /boot$ grep -i axp config-3.19.0-rc3 # CONFIG_MFD_AXP20X is not set looks like it is set in sunxi_defconfig but not in multi_v7_defconfig. -- 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: Allwinner documentation (hardware datasheet, user manual) for A10, A10s, A13, A20, A31, A31s
On Sun, Jan 18, 2015 at 10:59:56AM +0200, Simos Xenitellis wrote: > Hi All, > > Sugar (shuge) posted a few updated documents on > https://github.com/allwinner-zh/documents > so in case you are not watching that repository, here is the summary. > > You can use "diffpdf" (sudo apt-get install diffpdf) to compare > between the versions. > "diffpdf" gives a lot of false positives as it does a page to page comparison. > > Another tool to compare PDFs is > https://www.inetsoftware.de/products/pdf-content-comparer > which comes with a 30-day trial (no restrictions). Written in Java. > > On Sat, Sep 27, 2014 at 4:26 PM, Simos Xenitellis > wrote: > > Hi All, > > > ... > > > > Hardware datasheets > > A10: version 1.70 (previously known version 1.21) > > A10s: version 1.40 (previously known version 1.20) > > A13: version 1.30 (previously known version 1.12) > > A20: version 1.40 (none) > > Updated version 1.41. > > The changes are > 1. page 20, at the table > > Port PB3 / Multi4: changed from - to OWA-MCLK > Port PB12 / Multi4: changed from - to OWA-DI > Port PB13 / Multi4: changed from - to OWA-DO > > > A31: version 1.40 (previously known version 1.00) > > A31s: version 1.40 (previously known version 1.30) > > > > User manual > > A10: version 1.50 (previously known version 1.20) > > A10s: version 1.30 (none) > > A13: version 1.30 (previously known version 1.20) > > A20: version 1.20 (previously known version 1.00) > > Updated to version 1.3. > > The changelog says: "Add SD/MMC and OWA register description". > > OWA is One-Wire Audio. > > > A31: version 1.20 (previously known version 1.10) > > A31s: version 1.10 (previously known version 1.00) > > > > ADDITIONS: > A33: datasheet and user guide, both at version 1.1. (released 5 days ago) > A80: datasheet and user guide, both at version 1.1. (released 2 months ago). > > Finally, at the https://github.com/allwinner-zh/bootloader repository, > code for u-boot has been released by Sugar (two days ago). > > Simos The reason for this release new is this: http://electronics360.globalspec.com/article/4895/allwinner-accused-of-breaking-linux-license-rules http://electronics360.globalspec.com/article/4899/allwinner-to-address-linux-open-source-issues Triggered from a linkedin discussion in the arm based group on linkedin. 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.
Re: [linux-sunxi] A20, AXP, linux mainline, no power off on halt
Hi, On 17-01-15 22:13, Lars Doelle wrote: Hi everyone, the subject say it. The very last message I get, is | reboot: System halted. Which board are you using, is the axp209 driver build and loaded ? 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.
[linux-sunxi] Re: Allwinner documentation (hardware datasheet, user manual) for A10, A10s, A13, A20, A31, A31s
Hi All, Sugar (shuge) posted a few updated documents on https://github.com/allwinner-zh/documents so in case you are not watching that repository, here is the summary. You can use "diffpdf" (sudo apt-get install diffpdf) to compare between the versions. "diffpdf" gives a lot of false positives as it does a page to page comparison. Another tool to compare PDFs is https://www.inetsoftware.de/products/pdf-content-comparer which comes with a 30-day trial (no restrictions). Written in Java. On Sat, Sep 27, 2014 at 4:26 PM, Simos Xenitellis wrote: > Hi All, > ... > > Hardware datasheets > A10: version 1.70 (previously known version 1.21) > A10s: version 1.40 (previously known version 1.20) > A13: version 1.30 (previously known version 1.12) > A20: version 1.40 (none) Updated version 1.41. The changes are 1. page 20, at the table Port PB3 / Multi4: changed from - to OWA-MCLK Port PB12 / Multi4: changed from - to OWA-DI Port PB13 / Multi4: changed from - to OWA-DO > A31: version 1.40 (previously known version 1.00) > A31s: version 1.40 (previously known version 1.30) > > User manual > A10: version 1.50 (previously known version 1.20) > A10s: version 1.30 (none) > A13: version 1.30 (previously known version 1.20) > A20: version 1.20 (previously known version 1.00) Updated to version 1.3. The changelog says: "Add SD/MMC and OWA register description". OWA is One-Wire Audio. > A31: version 1.20 (previously known version 1.10) > A31s: version 1.10 (previously known version 1.00) > ADDITIONS: A33: datasheet and user guide, both at version 1.1. (released 5 days ago) A80: datasheet and user guide, both at version 1.1. (released 2 months ago). Finally, at the https://github.com/allwinner-zh/bootloader repository, code for u-boot has been released by Sugar (two days ago). 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.