[PATCH 3/3] arm: dts: Add gta04a5 model

Dr. H. Nikolaus Schaller hns at goldelico.com
Mon Jul 28 13:42:50 PDT 2014


Am 28.07.2014 um 22:04 schrieb Michael Trimarchi:

> Hi
> 
> Il 28/lug/2014 22:02 "Belisko Marek" <marek.belisko at gmail.com> ha scritto:
> >
> > Hi Michael,
> >
> > On Mon, Jul 28, 2014 at 9:56 PM, Michael Trimarchi
> > <michael at amarulasolutions.com> wrote:
> > > Hi Marek
> > >
> > > Il 28/lug/2014 21:54 "Marek Belisko" <marek at goldelico.com> ha scritto:
> > >
> > >
> > >>
> > >> Add model a5 which have additional jack detection.
> > >>
> > >> Signed-off-by: Marek Belisko <marek at goldelico.com>
> > >> ---
> > >>  arch/arm/boot/dts/Makefile          |  1 +
> > >>  arch/arm/boot/dts/omap3-gta04a5.dts | 17 +++++++++++++++++
> > >>  2 files changed, 18 insertions(+)
> > >>  create mode 100644 arch/arm/boot/dts/omap3-gta04a5.dts
> > >>
> > >> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> > >> index 7d45fde..576c595 100644
> > >> --- a/arch/arm/boot/dts/Makefile
> > >> +++ b/arch/arm/boot/dts/Makefile
> > >> @@ -285,6 +285,7 @@ dtb-$(CONFIG_ARCH_OMAP3) += am3517-craneboard.dtb \
> > >>         omap3-evm-37xx.dtb \
> > >>         omap3-gta04a3.dtb \
> > >>         omap3-gta04a4.dtb \
> > >> +       omap3-gta04a5.dtb \
> > >>         omap3-igep0020.dtb \
> > >>         omap3-igep0030.dtb \
> > >>         omap3-ldp.dtb \
> > >> diff --git a/arch/arm/boot/dts/omap3-gta04a5.dts
> > >> b/arch/arm/boot/dts/omap3-gta04a5.dts
> > >> new file mode 100644
> > >> index 0000000..210317c3
> > >> --- /dev/null
> > >> +++ b/arch/arm/boot/dts/omap3-gta04a5.dts
> > >> @@ -0,0 +1,17 @@
> > >> +/*
> > >> + * Copyright (C) 2014 H. Nikolaus Schaller <hns at goldelico.com>
> > >> + *
> > >> + * This program is free software; you can redistribute it and/or modify
> > >> + * it under the terms of the GNU General Public License version 2 as
> > >> + * published by the Free Software Foundation.
> > >> + */
> > >> +
> > >> +#include "omap3-gta04.dtsi"
> > >> +
> > >> +/ {
> > >> +       model = "Goldelico GTA04A5;
> > >> +
> > >> +       sound {
> > >> +               ti,jack-det-gpio = <&twl_gpio 2 0>;    /* GTA04A5 only */
> > >> +       };
> > >> +};
> > >> --
> > >> 1.9.1
> > >>
> > >
> > > Can we have only one dts with status enabled/disabled?
> > Do you mean to define this node it gta04.dtsi disabled and enable only
> > for a5 model?
> > >
> 
> This should be possible in the bootloader
> 

Yes,
the boot loader either loads gta04a3.dtb gta04.dtb or gta05.dtb
depending on board revision.

Therefore we have multiple device tree files to represent such hardware
differences. Like Gumstix Overo variants (using a  omap3-overo-base.dtsi)

And, this difference is not the only one. Other are to come later.

Unfortunately we were recommend to submit only DT nodes that already
have drivers. Therefore, the "big picture" of the device variants support
may not yet be visible from this patch.

I hope this gives a little background.

BR,
Nikolaus








More information about the linux-arm-kernel mailing list