Like in H3, A64 SID controller doesn't return correct data
when using direct access. It appears that on A64, SID needs
8 bytes of word_size.
Workaround is to enable read by registers.
Signed-off-by: Stefan Mavrodiev
---
drivers/nvmem/sunxi_sid.c | 1 +
1 file changed, 1 insertion(+)
0030 00 00 00 00 87 07 8d 07 8e 07 00 00 00 00 00 00 ||
0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ||
*
0100
Stefan Mavrodiev (1):
nvmem: sunxi_sid: fix A64 SID controller support
drivers/nvmem/sunxi_sid.c | 1 +
1 file changed, 1 insertion(+)
--
2.17.1
;hwmon device lookup
failed!".
The result is unregisted hwmon devices in the sysfs.
Fixes: 409ef0bacacf ("thermal_hwmon: Sanitize attribute name passed to hwmon")
Signed-off-by: Stefan Mavrodiev
---
drivers/thermal/thermal_hwmon.c | 8 ++--
1 file changed, 6 insertions(+), 2
The function pointer pm_power_off may point to function from other
module (PSCI for example). If rk808 is removed, pm_power_off is
overwritten to NULL and the system cannot be powered off.
This patch checks if pm_power_off points to a module function.
Signed-off-by: Stefan Mavrodiev
---
Changes
.
The solution is to enable pm_power_off_prepare function, which will
configure SLEEP pin for OFF function.
Signed-off-by: Stefan Mavrodiev
---
Change for v3:
- Remove useless warning messages
- Change poweroff error messages
- Add explanation comments
Changes for v2:
- Move pm_pwroff_prep_fn to
This patch is actually follow-up to:
[PATCH 1/1] mfd: rk808: Prepare rk8085 for poweroff
The patchset fixes poweroff function for boards with RK8085 PMU.
During the preparation of v2 possible wrong pointer access was
spot (pm_power_off), so one more patch was introduced in the series.
Stefan
The function pointer pm_power_off may point to function from other
module (PSCI for example). If rk808 is removed, pm_power_off is
overwritten to NULL and the system cannot be powered off.
This patch checks if pm_power_off points to a module function.
Signed-off-by: Stefan Mavrodiev
---
Changes
This patch is actually follow-up to:
[PATCH 1/1] mfd: rk808: Prepare rk8085 for poweroff
The patchset fixes poweroff function for boards with RK8085 PMU.
During the preparation of v2 possible wrong pointer access was
spot (pm_power_off), so one more patch was introduced in the series.
Stefan
.
The solution is to enable pm_power_off_prepare function, which will
configure SLEEP pin for OFF function.
Signed-off-by: Stefan Mavrodiev
---
Changes for v2:
- Move pm_pwroff_prep_fn to header
- Check pm_power_off_prepare before make it NULL
drivers/mfd/rk808.c | 29
On 2/15/19 8:49 PM, Pavel Machek wrote:
On Fri 2019-02-15 13:50:10, Stefan Mavrodiev wrote:
Teres-I and A64-OLinuXino commes with populated LED connected
to AXP803. So to be used as battery indication, pass the LED control
to the charger itself in mode 0 ( FULL while charging, OFF no battery
On 2/15/19 8:32 PM, Pavel Machek wrote:
Hi!
On Fri, Feb 15, 2019 at 01:50:06PM +0200, Stefan Mavrodiev wrote:
+static ssize_t control_store(struct device *dev, struct device_attribute *attr,
+const char *buf, size_t size)
+{
+ struct led_classdev *cdev
On 2/15/19 1:50 PM, Stefan Mavrodiev wrote:
Most of AXP20x PMIC chips have built-in battery charger with LED indicator.
The LED can be controlled ether by the charger or manually by a register.
The default is (except for AXP209) manual control, which makes this LED
useless, since there is no
Add dt node for axp20x-led driver controlling CHGLED.
Default status is disabled, since it may be not used.
Signed-off-by: Stefan Mavrodiev
---
arch/arm/boot/dts/axp209.dtsi | 5 +
arch/arm/boot/dts/axp22x.dtsi | 5 +
arch/arm/boot/dts/axp81x.dtsi | 5 +
3 files changed, 15
This adds the devicetree bindings for charge led indicator found
on most of X-Powers AXP20X PMICs.
Signed-off-by: Stefan Mavrodiev
---
.../devicetree/bindings/leds/leds-axp20x.txt | 74 +++
1 file changed, 74 insertions(+)
create mode 100644 Documentation/devicetree/bindings
Teres-I and A64-OLinuXino commes with populated LED connected
to AXP803. So to be used as battery indication, pass the LED control
to the charger itself in mode 0 ( FULL while charging, OFF no battery
or completed).
Signed-off-by: Stefan Mavrodiev
---
arch/arm64/boot/dts/allwinner/sun50i-a64
idden.
Also this binding is enabled only for OLIMEX boards, since I have
no knowlegde if the other manifactures are populating this LED.
Signed-off-by: Stefan Mavrodiev
---
arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts| 6 ++
arch/arm/boot/dts/sun7i-a20-olimex-som204-evb.dts | 6 ++
driver.
Signed-off-by: Stefan Mavrodiev
---
drivers/leds/Kconfig | 10 ++
drivers/leds/Makefile | 1 +
drivers/leds/leds-axp20x.c | 291 +
3 files changed, 302 insertions(+)
create mode 100644 drivers/leds/leds-axp20x.c
diff --git a/drivers/leds
Add axp20x-led cell for AXP20x, AXP221, AXP223, AXP228, AXP803, AXP809
and AXP813.
Signed-off-by: Stefan Mavrodiev
---
drivers/mfd/axp20x.c | 24 +++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
index 3c97f2c0fdfe
Add dt node for axp20x-led driver controlling CHGLED.
Default status is disabled, since it may be not used.
Signed-off-by: Stefan Mavrodiev
---
arch/arm64/boot/dts/allwinner/axp803.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/axp803.dtsi
b/arch
ff-by: Stefan Mavrodiev
---
arch/arm/boot/dts/sun8i-a33-olinuxino.dts | 6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a33-olinuxino.dts
b/arch/arm/boot/dts/sun8i-a33-olinuxino.dts
index 3d78169cdeed..a1e36ee51bbb 100644
--- a/arch/arm/boot/dts/sun8i-a33-olinuxino.dts
consumers
Stefan Mavrodiev (8):
leds: Add support for AXP20X CHGLED
mfd: axp20x: Add axp20x-led cell
dt-bindings: leds: Add binding for axp20x-led device driver
arm64: dts: allwinner: axp803: add charge led node
arm64: dts: allwinner: Enable AXP803 CHGLED for Olimex boards
arm: dts: axpxx
On 2/5/19 6:16 PM, Chen-Yu Tsai wrote:
On Thu, Jan 31, 2019 at 4:25 PM Stefan Mavrodiev wrote:
Add dt node for axp20x-led driver controlling CHGLED.
Default status is disabled, since it may be not used.
Signed-off-by: Stefan Mavrodiev
Please include a cover letter for such a patch series
Add dt node for axp20x-led driver controlling CHGLED.
Default status is disabled, since it may be not used.
Signed-off-by: Stefan Mavrodiev
---
arch/arm/boot/dts/axp209.dtsi | 5 +
arch/arm/boot/dts/axp22x.dtsi | 5 +
arch/arm/boot/dts/axp81x.dtsi | 5 +
3 files changed, 15
Add dt node for axp20x-led driver controlling CHGLED.
Default status is disabled, since it may be not used.
Signed-off-by: Stefan Mavrodiev
---
arch/arm64/boot/dts/allwinner/axp803.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/axp803.dtsi
b/arch
This adds the devicetree bindings for charge led indicator found
on most of X-Powers AXP20X PMICs.
Signed-off-by: Stefan Mavrodiev
---
.../devicetree/bindings/leds/leds-axp20x.txt | 74 +++
1 file changed, 74 insertions(+)
create mode 100644 Documentation/devicetree/bindings
Add axp20x-led cell for AXP20x, AXP221, AXP223, AXP228, AXP803, AXP809
and AXP813.
Signed-off-by: Stefan Mavrodiev
---
drivers/mfd/axp20x.c | 24 +++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
index 3c97f2c0fdfe
driver.
Signed-off-by: Stefan Mavrodiev
---
drivers/leds/Kconfig | 10 ++
drivers/leds/Makefile | 1 +
drivers/leds/leds-axp20x.c | 283 +
3 files changed, 294 insertions(+)
create mode 100644 drivers/leds/leds-axp20x.c
diff --git a/drivers/leds
On 1/9/19 3:11 PM, Heiko Stübner wrote:
Am Mittwoch, 9. Januar 2019, 14:10:34 CET schrieb Stefan Mavrodiev:
On 1/9/19 3:07 PM, Heiko Stübner wrote:
Hi Stefan, Lee,
Am Dienstag, 2. Oktober 2018, 09:38:29 CET schrieb Stefan Mavrodiev:
RK805 has SLEEP signal, which can put the device into
On 1/9/19 3:07 PM, Heiko Stübner wrote:
Hi Stefan, Lee,
Am Dienstag, 2. Oktober 2018, 09:38:29 CET schrieb Stefan Mavrodiev:
RK805 has SLEEP signal, which can put the device into SLEEP or OFF
mode. The default is SLEEP mode.
However, when the kernel performs power-off (actually the ATF) the
.
The solution is to enable pm_power_off_prepare function, which will
configure SLEEP pin for OFF function.
Signed-off-by: Stefan Mavrodiev
---
drivers/mfd/rk808.c | 24
1 file changed, 24 insertions(+)
diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c
index 216fbf6
sunxi: Add runtime_pm support")
Signed-off-by: Stefan Mavrodiev
---
Changes in v2:
- Add comment why disable_irq() is necessary
---
drivers/mmc/host/sunxi-mmc.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
index e74725
sunxi: Add runtime_pm support")
Signed-off-by: Stefan Mavrodiev
---
drivers/mmc/host/sunxi-mmc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
index e747259..acae7a8 100644
--- a/drivers/mmc/host/sunxi-mmc.c
+++ b/drivers/mmc/
On 05/17/2018 10:25 AM, Stefan Wahren wrote:
Hi Stefan,
Stefan Mavrodiev hat am 16. Mai 2018 um 13:38 geschrieben:
With the new rev.E of A20-SOM-EVB, there is option for 16GB eMMC.
Currently used card is KLMAG2GEND, wired to MMC2 slot.
Signed-off-by: Stefan Mavrodiev
---
arch/arm/boot
With the new rev.E of A20-SOM-EVB, there is option for 16GB eMMC.
Currently used card is KLMAG2GEND, wired to MMC2 slot.
Signed-off-by: Stefan Mavrodiev
---
arch/arm/boot/dts/Makefile | 1 +
.../arm/boot/dts/sun7i-a20-olimex-som-evb-emmc.dts | 37
A20-SOM204 board has option with onboard 16GB eMMC.
The chip is wired to MMC2 slot.
Signed-off-by: Stefan Mavrodiev
---
Changes for v2:
- Replaced license header with SPDX-License-Identifier
arch/arm/boot/dts/Makefile | 1 +
.../boot/dts/sun7i-a20-olimex-som204-evb
are multiplexed and cannot be used the same time:
CAN and Megabit PHY. Others are not usable with A20 SoC: PCIe and USB3.
[1] https://www.olimex.com/Products/SOM204/
Signed-off-by: Stefan Mavrodiev
---
Changes for v2:
- Replace license header with SPDX-License-Identifier
- Removed useless
On 01/20/2018 08:08 AM, Chen-Yu Tsai wrote:
On Fri, Jan 19, 2018 at 9:27 PM, Stefan Mavrodiev wrote:
On 01/18/2018 04:28 PM, Chen-Yu Tsai wrote:
On Thu, Jan 18, 2018 at 6:07 PM, Maxime Ripard
wrote:
Hi!
On Mon, Jan 15, 2018 at 12:07:34PM +0200, Stefan Mavrodiev wrote:
+/dts-v1/;
+#include
On 01/18/2018 04:28 PM, Chen-Yu Tsai wrote:
On Thu, Jan 18, 2018 at 6:07 PM, Maxime Ripard
wrote:
Hi!
On Mon, Jan 15, 2018 at 12:07:34PM +0200, Stefan Mavrodiev wrote:
+/dts-v1/;
+#include "sun7i-a20.dtsi"
+#include "sunxi-common-regulators.dtsi"
+
+
+#include
On 01/15/2018 11:50 AM, Maxime Ripard wrote:
Hi Stefan,
On Fri, Jan 12, 2018 at 11:01:05AM +0200, Stefan Mavrodiev wrote:
This is new System-On-Module platform with universal dimm socket for
easy insertation. The EVB board is designed to be universal with
future modules. Product page is
are multiplexed and cannot be used the same time:
CAN and Megabit PHY. Others are not usable with A20 SoC: PCIe and USB3.
[1] https://www.olimex.com/Products/SOM204/
Signed-off-by: Stefan Mavrodiev
---
arch/arm/boot/dts/Makefile | 2 +
.../boot/dts/sun7i-a20-olimex
On 12/18/2017 11:28 AM, Maxime Ripard wrote:
On Mon, Dec 18, 2017 at 08:24:21AM +0200, Stefan Mavrodiev wrote:
On 12/15/2017 05:08 PM, Maxime Ripard wrote:
Hi,
On Thu, Dec 14, 2017 at 08:24:54AM +0200, Stefan Mavrodiev wrote:
On 12/13/2017 05:40 PM, Maxime Ripard wrote:
Hi,
On Wed, Dec 13
On 12/15/2017 05:08 PM, Maxime Ripard wrote:
Hi,
On Thu, Dec 14, 2017 at 08:24:54AM +0200, Stefan Mavrodiev wrote:
On 12/13/2017 05:40 PM, Maxime Ripard wrote:
Hi,
On Wed, Dec 13, 2017 at 09:44:34AM +0200, Stefan Mavrodiev wrote:
Allwinner A10/A13/A20 SoCs have pinmux for spi0
on port C
On 12/13/2017 05:40 PM, Maxime Ripard wrote:
Hi,
On Wed, Dec 13, 2017 at 09:44:34AM +0200, Stefan Mavrodiev wrote:
Allwinner A10/A13/A20 SoCs have pinmux for spi0
on port C. The patch adds these pins in the respective
dts includes.
Signed-off-by: Stefan Mavrodiev
Do you have any boards that
Allwinner A10/A13/A20 SoCs have pinmux for spi0
on port C. The patch adds these pins in the respective
dts includes.
Signed-off-by: Stefan Mavrodiev
---
arch/arm/boot/dts/sun4i-a10.dtsi | 10 ++
arch/arm/boot/dts/sun5i.dtsi | 10 ++
arch/arm/boot/dts/sun7i-a20.dtsi | 10
dissabled
by default. Also this option is incompatible with NAND flash, so
they shouldn't be enabled at the same time.
Signed-off-by: Stefan Mavrodiev
---
arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts | 14 ++
arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts | 14 ++
On 08/30/2017 05:37 PM, Maxime Ripard wrote:
Hi,
On Mon, Aug 28, 2017 at 09:32:42AM +0300, Stefan Mavrodiev wrote:
From revision J the board uses new phy chip LAN8710. Compared
with RTL8201, RA17 pin is TXERR. It has pullup which causes phy
not to work. To fix this PA17 is muxed with GMAC
A20-OLinuXino-MICRO has option with onboard eMMC chip. For
now it's only shipped with 4BG chip, but in the future this
may change.
Signed-off-by: Stefan Mavrodiev
---
arch/arm/boot/dts/Makefile | 1 +
.../boot/dts/sun7i-a20-olinuxino-micro-emmc.dts
n't connected to phy.
Signed-off-by: Stefan Mavrodiev
---
arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
index 0b7403e.
ion
Stefan Mavrodiev (2):
ARM: dts: sun7i: Fix A20-OLinuXino-MICRO dts for LAN8710
ARM: dts: sun7i: Add dts file for A20-OLinuXino-MICRO-eMMC
arch/arm/boot/dts/Makefile | 1 +
.../boot/dts/sun7i-a20-olinuxino-micro-emmc.dts| 70 ++
arch/arm/boot/
A20-OLinuXIno-LIME2-n8GB - 8GB NAND
Signed-off-by: Stefan Mavrodiev
---
arch/arm/boot/dts/Makefile| 2 +-
...20-olinuxino-lime2-emmc.dts => sun7i-a20-olinuxino-lime2-exgb.dts} | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
rename arch/
gned-off-by: Stefan Mavrodiev
---
arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
index 0b7403e4d687..578c761b551a 100644
--
.dts
new file mode 100644
index ..2c592748e474
--- /dev/null
+++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro-exgb.dts
@@ -0,0 +1,81 @@
+/*
+ * Copyright 2017 Olimex Ltd.
+ *
+ * Stefan Mavrodiev
+ *
+ * This file is dual-licensed: you can use it either under the terms
+ * of the G
.
Stefan Mavrodiev (3):
ARM: dts: sun7i: Fix A20-OLinuXino-MICRO dts for use with LAN8710
ARM: dts: sun7i: Add dts file for A20-OLinuXino-MICRO-exGB
ARM: dts: sun7i: Rename sun7i-a20-olinuxino-lime2-emmc
arch/arm/boot/dts/Makefile | 3 +-
...emmc.dts => sun7i-a20-olinux
there is CSI/DSI connector.
Signed-off-by: Stefan Mavrodiev
---
Changes for v2:
- Removed unused power nodes
- Removed default-trigger for green led
- Removed "always-on" option for LCD power
Changes for v3:
- Nodes are sorted alphabetically
Chan
me MMC regulator doesn't fit that description.
>
It's named upon the A33 power pin - "VCC-DSI".
If I remove "always-on" the board still will work, since dcdc1 is tied to
mmc0.
vmmc-supply = <®_dcdc1>;
We assume this voltage will be always present and there are some pullups that
are tied to it (on i2c0 and i2c1 bus). In this case should I remove "always-
on" from the regulator node?
> Maxime
Best regards,
Stefan Mavrodiev
On Tuesday, July 26, 2016 5:33:52 PM EEST Maxime Ripard wrote:
> Hi Stefan,
>
> On Mon, Jul 25, 2016 at 03:37:23PM +0300, Stefan Mavrodiev wrote:
> > A33-OLinuXino is A33 development board designed by Olimex LTD.
> >
> > It has AXP233 PMU, 1GB DRAM, a micro SD
there is CSI/DSI connector.
Signed-off-by: Stefan Mavrodiev
---
Changes for v2:
- Removed unused power nodes
- Removed default-trigger for green led
- Removed "always-on" option for LCD power
Changes for v3:
- Nodes are sorted alphabetically
Chan
Hi Olliver,
Why are you using nRST signal?
What I mean is this pin is inactive on this eMMC chip. To use the signal
byte 162 of ECSD registers should be written.
On my board, this "reset" signal causes eMMC not to work.
Best regards,
Stefan Mavrodiev
сряда, 22 юни 2016 г., 16:22:34 UTC+3, Maxime Ripard написа:
> Hi,
>
> On Mon, Jun 20, 2016 at 01:32:49PM +0300, Stefan Mavrodiev wrote:
> > A33-OLinuXino is A33 development board designed by Olimex LTD.
> >
> > It has AXP233 PMU, 1GB DRAM, a micro SD card, one USB-O
there is CSI/DSI connector.
Signed-off-by: Stefan Mavrodiev
---
Changes for v2:
- Removed unused power nodes
- Removed default-trigger for green led
- Removed "always-on" option for LCD power
Changes for v3:
- Nodes are sorted alphabetically
arch/ar
there is CSI/DSI connector.
Signed-off-by: Stefan Mavrodiev
---
Changes for v2:
- Removed unused power nodes
- Removed default-trigger for green led
- Removed "always-on" option for LCD power
arch/arm/boot/dts/Makefile| 1 +
arch/arm/boot/dts
there is CSI/DSI connector.
Signed-off-by: Stefan Mavrodiev
---
arch/arm/boot/dts/Makefile| 1 +
arch/arm/boot/dts/sun8i-a33-olinuxino.dts | 223 ++
2 files changed, 224 insertions(+)
create mode 100644 arch/arm/boot/dts/sun8i-a33-olinuxino.dts
diff
62 matches
Mail list logo