Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1583213

Re: [PATCH v6 5/5] ARM: dts: sun9i: Initial support for the Sunchip CX-A99 board

From Maxime Ripard <maxime.ripard@free-electrons.com>
Newsgroups linux.kernel
Subject Re: [PATCH v6 5/5] ARM: dts: sun9i: Initial support for the Sunchip CX-A99 board
Date 2017-02-17 09:50 +0100
Message-ID <tbMoO-1Y8-17@gated-at.bofh.it> (permalink)
References <t8JQt-6Ho-9@gated-at.bofh.it> <t8K9P-6Ok-5@gated-at.bofh.it> <t9fdE-17p-19@gated-at.bofh.it> <t9fGF-1x8-11@gated-at.bofh.it> <taURs-8p5-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, Feb 15, 2017 at 12:35:39AM +0100, Rask Ingemann Lambertsen wrote:
> On Fri, Feb 10, 2017 at 05:22:21PM +0800, Chen-Yu Tsai wrote:
> > On Fri, Feb 10, 2017 at 4:59 PM, Maxime Ripard
> > <maxime.ripard@free-electrons.com> wrote:
> > > Hi,
> > >
> > > On Thu, Feb 09, 2017 at 12:34:06AM +0100, Rask Ingemann Lambertsen wrote:
> [...]
> > >> diff --git a/arch/arm/boot/dts/sun9i-a80-cx-a99.dts b/arch/arm/boot/dts/sun9i-a80-cx-a99.dts
> > >> new file mode 100644
> > >> index 0000000..f5496d2
> > >> --- /dev/null
> > >> +++ b/arch/arm/boot/dts/sun9i-a80-cx-a99.dts
> [...]
> > >> +     pmic@745 {
> > >> +             compatible = "x-powers,axp808", "x-powers,axp806";
> > 
> > As you mentioned elsewhere, they are not really compatible.
> > You should drop the latter compatible.
> 
> The compatibility is good enough that it works fine with the driver that
> went into kernel 4.9 and 4.10. Using this device tree file, I have built and
> booted 4.9.9 and 4.10-rc7 kernels as per the instructions here;
> https://linux-sunxi.org/Sunchip_CX-A99#Linux_kernel
> Likewise any other AXP806 driver which doesn't touch the register at address
> 0xff will work fine.
>
> So, the disadvantage of removing the "x-powers,axp806" compatible is that
> it breaks on two kernel versions where it works fine with the compatible.
> What is the advantage of removing the "x-powers,axp806" compatible?

This works fine for the features you tested, which are the
regulators. All the other features of the PMIC are untested, and might
or might not change, so you really don't know about the overall
capability of the PMIC with another model.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH v6 5/5] ARM: dts: sun9i: Initial support for the Sunchip  CX-A99 board Rask Ingemann Lambertsen <rask@formelder.dk> - 2017-02-15 00:40 +0100
  AXP808 vs. AXP806 debugged, no difference? (Was: [PATCH v6 5/5] ARM:  dts: sun9i: Initial support for the Sunchip CX-A99 board) Rask Ingemann Lambertsen <rask@formelder.dk> - 2017-02-16 22:20 +0100
    Re: AXP808 vs. AXP806 debugged, no difference? (Was: [PATCH v6 5/5]  ARM: dts: sun9i: Initial support for the Sunchip CX-A99 board) Chen-Yu Tsai <wens@csie.org> - 2017-02-17 04:20 +0100
      Re: AXP808 vs. AXP806 debugged, no difference? (Was: [PATCH v6 5/5]  ARM: dts: sun9i: Initial support for the Sunchip CX-A99 board) Rask Ingemann Lambertsen <rask@formelder.dk> - 2017-02-17 22:30 +0100
  Re: [PATCH v6 5/5] ARM: dts: sun9i: Initial support for the Sunchip  CX-A99 board Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-02-17 09:50 +0100

csiph-web