devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
To: Simon Horman <horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>,
	Magnus Damm <magnus.damm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Pantelis Antoniou
	<pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>,
	linux-sh-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Geert Uytterhoeven
	<geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
Subject: [PATCH/RFC 00/12] ARM: shmobile: dts: Add overlays for various serial ports
Date: Tue, 12 May 2015 19:37:03 +0200	[thread overview]
Message-ID: <1431452235-11692-1-git-send-email-geert+renesas@glider.be> (raw)

	Hi all,

This patch series adds device tree overlays to use various serial ports
on expansion ports on the r8a7740/armadillo and r8a7791/koelsch
development boards.

This is an RFC for various reasons:
  - Do we want to store device tree overlay sources in the kernel source
    tree (see also the patch mentioned under dependencies)?
  - The first two patches add aliases for all serial ports to the main
    dts files, as of_alias_add() is not called yet when loading a device
    tree overlay that adds an alias.
  - The overlay sources use full paths to refer to the device nodes for
    creating aliases, as path references (unlike phandle references) are
    not yet supported by overlays.
  - The "ctsrts" DT property is not yet documented.
  - On Koelsch, SCIFB1 works for TX only. As SCIFB works on armadillo,
    and the same pins work for HSCIF1 on koelsch, this may be a silly
    pinctrl issue. Or not.
  - As the EXIO connectors on koelsch carry i2c signals, we can go wild
    and add i2c EEPROMs for identification, and implement a capemgr,
    like on BeagleBone ;-)

How to use it, using overlay configfs:
  - Copy your dtsos to /lib/firmware
  - mkdir /sys/kernel/config/device-tree/overlays/scif3
  - echo r8a7791-koelsch-exio-c-scif3.dtso >
    /sys/kernel/config/device-tree/overlays/scif3/path
  - Play with your new serial port
  - rmdir /sys/kernel/config/device-tree/overlays/scif3

This depends on:
  - https://github.com/pantoniou/linux-beagle-track-mainline.git#bbb-overlays
    for overlay configfs.
  - "[PATCH/RFC] kbuild: Create a rule for building device tree overlay
    objects" (https://lkml.org/lkml/2015/5/12/343), for building the dtsos.

Thanks for your comments!

Geert Uytterhoeven (12):
  ARM: shmobile: armadillo dts: Add aliases for all serial ports
  ARM: shmobile: koelsch dts: Add aliases for all serial ports
  ARM: shmobile: armadillo dts: Add overlay for SCIFA0 on CON15
  ARM: shmobile: armadillo dts: Add overlay for SCIFB on CON15
  ARM: shmobile: koelsch dts: Add overlay for HSCIF1 on EXIO A
  ARM: shmobile: koelsch dts: Add overlay for HSCIF2 on EXIO A
  ARM: shmobile: koelsch dts: Add overlay for SCIFB0 on EXIO A
  ARM: shmobile: koelsch dts: Add overlay for SCIFB1 on EXIO A
  ARM: shmobile: koelsch dts: Add overlay for SCIF3 on EXIO C
  ARM: shmobile: koelsch dts: Add overlay for SCIF5 on EXIO C
  ARM: shmobile: koelsch dts: Add overlay for SCIFA5(b) on EXIO C
  ARM: shmobile: koelsch dts: Add overlay for SCIFA5(c) on EXIO C

 arch/arm/boot/dts/Makefile                         | 14 +++++
 .../dts/r8a7740-armadillo800eva-con15-scifa0.dtso  | 53 +++++++++++++++++++
 .../dts/r8a7740-armadillo800eva-con15-scifb.dtso   | 52 +++++++++++++++++++
 arch/arm/boot/dts/r8a7740-armadillo800eva.dts      |  8 +++
 .../boot/dts/r8a7791-koelsch-exio-a-hscif1.dtso    | 49 ++++++++++++++++++
 .../boot/dts/r8a7791-koelsch-exio-a-hscif2.dtso    | 53 +++++++++++++++++++
 .../boot/dts/r8a7791-koelsch-exio-a-scifb0.dtso    | 53 +++++++++++++++++++
 .../boot/dts/r8a7791-koelsch-exio-a-scifb1.dtso    | 51 ++++++++++++++++++
 .../arm/boot/dts/r8a7791-koelsch-exio-c-scif3.dtso | 60 ++++++++++++++++++++++
 .../arm/boot/dts/r8a7791-koelsch-exio-c-scif5.dtso | 60 ++++++++++++++++++++++
 .../boot/dts/r8a7791-koelsch-exio-c-scifa5-b.dtso  | 60 ++++++++++++++++++++++
 .../boot/dts/r8a7791-koelsch-exio-c-scifa5-c.dtso  | 60 ++++++++++++++++++++++
 arch/arm/boot/dts/r8a7791-koelsch.dts              | 16 ++++++
 13 files changed, 589 insertions(+)
 create mode 100644 arch/arm/boot/dts/r8a7740-armadillo800eva-con15-scifa0.dtso
 create mode 100644 arch/arm/boot/dts/r8a7740-armadillo800eva-con15-scifb.dtso
 create mode 100644 arch/arm/boot/dts/r8a7791-koelsch-exio-a-hscif1.dtso
 create mode 100644 arch/arm/boot/dts/r8a7791-koelsch-exio-a-hscif2.dtso
 create mode 100644 arch/arm/boot/dts/r8a7791-koelsch-exio-a-scifb0.dtso
 create mode 100644 arch/arm/boot/dts/r8a7791-koelsch-exio-a-scifb1.dtso
 create mode 100644 arch/arm/boot/dts/r8a7791-koelsch-exio-c-scif3.dtso
 create mode 100644 arch/arm/boot/dts/r8a7791-koelsch-exio-c-scif5.dtso
 create mode 100644 arch/arm/boot/dts/r8a7791-koelsch-exio-c-scifa5-b.dtso
 create mode 100644 arch/arm/boot/dts/r8a7791-koelsch-exio-c-scifa5-c.dtso

-- 
1.9.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2015-05-12 17:37 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-12 17:37 Geert Uytterhoeven [this message]
2015-05-12 17:37 ` [PATCH/RFC 01/12] ARM: shmobile: armadillo dts: Add aliases for all serial ports Geert Uytterhoeven
2015-05-12 17:37 ` [PATCH/RFC 03/12] ARM: shmobile: armadillo dts: Add overlay for SCIFA0 on CON15 Geert Uytterhoeven
2015-05-12 17:37 ` [PATCH/RFC 04/12] ARM: shmobile: armadillo dts: Add overlay for SCIFB " Geert Uytterhoeven
2015-05-12 17:37 ` [PATCH/RFC 05/12] ARM: shmobile: koelsch dts: Add overlay for HSCIF1 on EXIO A Geert Uytterhoeven
     [not found] ` <1431452235-11692-1-git-send-email-geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
2015-05-12 17:37   ` [PATCH/RFC 02/12] ARM: shmobile: koelsch dts: Add aliases for all serial ports Geert Uytterhoeven
2015-05-12 17:37   ` [PATCH/RFC 06/12] ARM: shmobile: koelsch dts: Add overlay for HSCIF2 on EXIO A Geert Uytterhoeven
2015-05-12 17:37 ` [PATCH/RFC 07/12] ARM: shmobile: koelsch dts: Add overlay for SCIFB0 " Geert Uytterhoeven
2015-05-12 17:37 ` [PATCH/RFC 08/12] ARM: shmobile: koelsch dts: Add overlay for SCIFB1 " Geert Uytterhoeven
2015-09-10 12:24   ` Geert Uytterhoeven
2015-05-12 17:37 ` [PATCH/RFC 09/12] ARM: shmobile: koelsch dts: Add overlay for SCIF3 on EXIO C Geert Uytterhoeven
2015-05-12 17:37 ` [PATCH/RFC 10/12] ARM: shmobile: koelsch dts: Add overlay for SCIF5 " Geert Uytterhoeven
2015-05-12 17:37 ` [PATCH/RFC 11/12] ARM: shmobile: koelsch dts: Add overlay for SCIFA5(b) " Geert Uytterhoeven
2015-05-12 17:37 ` [PATCH/RFC 12/12] ARM: shmobile: koelsch dts: Add overlay for SCIFA5(c) " Geert Uytterhoeven
2015-05-13  8:16 ` [PATCH/RFC 00/12] ARM: shmobile: dts: Add overlays for various serial ports Pantelis Antoniou
2015-05-13  8:19   ` Geert Uytterhoeven
2015-05-13  8:20     ` Pantelis Antoniou

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=1431452235-11692-1-git-send-email-geert+renesas@glider.be \
    --to=geert+renesas-gxvu3+zwzmszqb+pc5nmwq@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org \
    --cc=linux-sh-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=magnus.damm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org \
    /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;
as well as URLs for NNTP newsgroup(s).