[linux-sunxi] [PATCH 2/2] mfd: axp20x: Fix AXP806 access errors on cold boot

2016-11-10 Thread Chen-Yu Tsai
The AXP806 supports either master/standalone or slave mode. Slave mode allows sharing the serial bus, even with multiple AXP806 which all have the same hardware address. This is done with extra "serial interface address extension", or AXP806_BUS_ADDR_EXT, and "register address extension", or AXP80

[linux-sunxi] [PATCH 0/2] mfd: axp20x: Fix AXP806 access errors on cold boot

2016-11-10 Thread Chen-Yu Tsai
Hi Lee, Recently we've added full SPL support for A80 to mainline U-boot. This means we no longer depend on Allwinner's bootloader. It also means that some of system configuration the bootloader set up no longer applies. The bootloader was correctly configuring the multi-device addressing support

[linux-sunxi] [PATCH 1/2] mfd: axp20x: Add address extension registers for AXP806 regmap

2016-11-10 Thread Chen-Yu Tsai
The AXP806 supports either master/standalone or slave mode. Slave mode allows sharing the serial bus, even with multiple AXP806 which all have the same hardware address. This is done with extra "serial interface address extension", or AXP806_BUS_ADDR_EXT, and "register address extension", or AXP80

[linux-sunxi] [PATCH] regulator: axp20x: Fix axp809 ldo_io registration error on cold boot

2016-11-10 Thread Chen-Yu Tsai
The maximum supported voltage for ldo_io# is 3.3V, but on cold boot the selector comes up at 0x1f, which maps to 3.8V. This was previously corrected by Allwinner's U-boot, which set all regulators on the PMICs to some pre-configured voltage. With recent progress in U-boot SPL support, this is no lo

[linux-sunxi] [PATCH v2 3/3] pinctrl: sunxi: Make sunxi_pconf_group_set use sunxi_pconf_reg helper

2016-11-10 Thread Chen-Yu Tsai
The sunxi_pconf_reg helper introduced in the last patch gives us the chance to rework sunxi_pconf_group_set to have it match the structure of sunxi_pconf_(group_)get and make it easier to understand. For each config to set, it: 1. checks if the parameter is supported. 2. checks if the arg

[linux-sunxi] [PATCH v2 2/3] pinctrl: sunxi: Add support for fetching pinconf settings from hardware

2016-11-10 Thread Chen-Yu Tsai
The sunxi pinctrl driver only caches whatever pinconf setting was last set on a given pingroup. This is not particularly helpful, nor is it correct. Fix this by actually reading the hardware registers and returning the correct results or error codes. Also filter out unsupported pinconf settings. S

[linux-sunxi] [PATCH v2 1/3] pinctrl: sunxi: Fix PIN_CONFIG_BIAS_PULL_{DOWN,UP} argument

2016-11-10 Thread Chen-Yu Tsai
According to pinconf-generic.h, the argument for PIN_CONFIG_BIAS_PULL_{DOWN,UP} is non-zero if the bias is enabled with a pull up/down resistor, zero if it is directly connected to VDD or ground. Since Allwinner hardware uses a weak pull resistor internally, the argument should be 1. Signed-off-b

[linux-sunxi] [PATCH v2 0/3] pinctrl: sunxi: Support generic pinconf functions

2016-11-10 Thread Chen-Yu Tsai
Hi everyone, This series fixes up generic pinconf support for the sunxi pinctrl driver library. The driver was doing some bits wrong, like a) storing the pinconf config value in its struct, and not actually reading the hardware to get the current config, and b) not using the right arguments for th

[linux-sunxi] [PATCH] pinctrl: sunxi: Free configs in pinctrl_map only if it is a config map

2016-11-10 Thread Chen-Yu Tsai
In the recently refactored sunxi pinctrl library, we are only allocating one set of pin configs for each pinmux setting node. When the pinctrl_map structure is freed, the pin configs should also be freed. However the code assumed the first map would contain the configs, which actually never happens

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

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

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

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

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

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

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

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

[linux-sunxi] A10, Mainline kernel: troubles with nand

2016-11-10 Thread Elizaveta Logacheva
Hello, I'm trying to get a new kernel that can see the nand on my Cubieboard(1) (Allwinner A10 SoC). I've tried vanilla 4.8 kernel and 4.7-rc1 with the patches (https://lists.infradead.org/pipermail/linux-mtd/2016-April/066899.html and https://lists.infradead.org/pipermail/linux-mtd/2016-June/