From: Andre Przywara <andre.przywara@arm.com>
To: "Horváth Csaba" <horvathcsabalaszlo@gmail.com>
Cc: linux-sunxi@lists.linux.dev
Subject: Re: Colorly e708q1 and AXP20x support
Date: Sat, 8 Nov 2025 00:56:31 +0000 [thread overview]
Message-ID: <20251108005631.75acf1c4@minigeek.lan> (raw)
In-Reply-To: <CADGuG04Bc8Dcv=GCZGsjkW7taS4VR0yTkp=BC9tC90HtkssVRw@mail.gmail.com>
On Thu, 11 Sep 2025 21:29:36 +0200
Horváth Csaba <horvathcsabalaszlo@gmail.com> wrote:
> Hi,
>
> Thanks!
> Strange, as i tried to compile mainline kernel half a year ago, but it
> had no support neither to display or the power chip. I don't even know
> what needs to be selected in the config in order to get them working.
I guess this is your problem: you are trying to compile a custom kernel
with apparently a made-up config, which isn't easy. As you figured, you
might miss many things, so it's best to use a well-known config as a
base, either sunxi_defconfig, multi_v7_defconfig, or probably the best:
the config from a distro kernel. The latter typically have all
drivers compiling as a module, so it would be able to load what it
needs automatically.
But for a first experiment sunxi_defconfig should be alright,
especially for old SoCs, and compiles most things into the kernel, so
you don't need to mess with modules. You might just run into issues
with distros, though, as you might miss some (new) options there.
Regarding cpufreq: that indeed requires a bunch of drivers to all work
(for instance a thermal sensor: CONFIG_MFD_SUN4I_GPADC), so try
sunxi_defconfig. To avoid running too hot quickly, you can lower the
initial frequency in U-Boot (CONFIG_SYS_CLK_FREQ), also you might want
to lower the initial voltage, for more power savings:
CONFIG_AXP_DCDC3_VOLT. Try 720 MHz at 1.1V, or 480 MHz at 1V, to be on
the safe side.
If you get it booted with that, scan dmesg for PMIC messages, or check
/sys/kernel/debug/regulator/regulator_summary. Messages about dummy
supplies in dmesg are normal, when there are no port supplies in the
DT, and are not fatal.
In general, to find a driver for a certain device:
$ git grep x-powers,axp221 drivers/
...
drivers/mfd/axp20x-i2c.c: { .compatible = "x-powers,axp221", .data = (void *)AXP221_ID },
...
$ git grep axp20x-i2c.o drivers/mfd/Makefile
drivers/mfd/Makefile:obj-$(CONFIG_MFD_AXP20X_I2C) += axp20x-i2c.o
^^^^^^^^^^^^^^^^^^^^^
Specifically the AXP uses several driver files, make sure you get all
the options. Refer to dmesg and /sys/kernel/debug/devices_deferred to
find missing drivers.
Hope that helps for a first step, please come back with more specific
information and questions, if needed.
Cheers,
Andre
> (Tried to compile numerous displays in it, but did not help.)
> Also, the AXP22x is referenced in the dts, and in the guide, there are
> some lines to add to the U-Boot config, but nothing to the kernel. And
> of course, does not work.
>
> So if anyone has any clue what to do (mostly what to compile in), i'll
> be thankful - i have done some kernel compiling before, but not an
> expert. Mostly not in devicetree objects. (It would be enough to have
> a stock kernel and OS to boot, as the device will be only a character
> display.)
>
> Thanks :)
>
> On Wed, Sep 10, 2025 at 6:33 PM Subair Mullappilly <msubair@hotmail.com> wrote:
> >
> > Hi
> >
> > A31 has already upstream support,
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/allwinner?h=v6.17-rc5
> >
> > your tablet device tree is already there, use upstream kernel, and it
> > has support for display,
> >
> > i never used a31 chip, but used r40,a20 etc..
> >
> > Subair
> >
> > On 9/10/25 20:24, Horváth Csaba wrote:
> > > Hi,
> > >
> > > I'm building a wireless display on a Colorfly e708q1 tablet. This is
> > > an A31s device, supported by Linux-Sunxi.
> > > I have managed to install Arch and get Wifi with an 5.x (stock)
> > > kernel, because with newer kernels compiled according to the guide at
> > > https://linux-sunxi.org/Colorfly_e708q1 i had no display. Debian also
> > > works, but the device overheats, or freezes because of other cause.
> > >
> > > With this kernel, the only problem is that the AXP20x power controller
> > > is not working, therefore the device is very hot. I could not find any
> > > information about how to get the AXP working. Basically i have no BAT
> > > device, or any trace of working power management in the /dev or /sys.
> > >
> > > Can someone please guide me how to get this working...?
> > >
> > > Thanks in advance :)
> > >
> > > Cs.
> > >
>
next prev parent reply other threads:[~2025-11-08 0:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-10 16:24 Colorly e708q1 and AXP20x support Horváth Csaba
[not found] ` <DU0P190MB244572B5A5516B6BB3E053EEBC0EA@DU0P190MB2445.EURP190.PROD.OUTLOOK.COM>
2025-09-11 19:29 ` Horváth Csaba
2025-09-14 12:21 ` Horváth Csaba
2025-11-08 0:56 ` Andre Przywara [this message]
2025-11-08 20:32 ` Horváth Csaba
2025-11-09 6:04 ` Muhammed Subair
2025-11-16 20:12 ` Horváth Csaba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251108005631.75acf1c4@minigeek.lan \
--to=andre.przywara@arm.com \
--cc=horvathcsabalaszlo@gmail.com \
--cc=linux-sunxi@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox