From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Vostrikov Subject: Re: MFD device driver on top of UART/RS232 Date: Tue, 17 Nov 2015 15:45:26 +0300 Message-ID: <564B2166.2030209@gmail.com> References: <564A035A.3050108@gmail.com> <20151117075330.GJ8526@pengutronix.de> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=HZJElZXFm6wZOg4lSDGkWOO/WnuQhhef3N8zFfG/Dmg=; b=nojo96zGK+aP1affNgEYC8eBAAjrOUroDqenDHTEDD3+IZNoxHl/d8lz3iX9hMEInG 7p/nFJpWdchylyZJt3Dx31tVUTpa172tQVPn0CCc0tdhE2tU7QdSDR7Zd5xvPCBwzck+ kC4wlxUsfLTVSkkijgQYjSAkJklaudKELe1noc4m9kAQGbdm/vK1joYSOJeCXwvUC9oa oap31lmBe426hl8LwNypEdDBzFfUvLcgD99vaeklVATJlEzDZ9qCf4fe1a0c6p6ehXVG DsfAJG7mWEVA/FaLowebCUoNw7OXrcdDS5zNs0cnfLRBLrRAEyzcM8rTWMUP+uL/Hvo5 skHw== In-Reply-To: <20151117075330.GJ8526@pengutronix.de> Sender: linux-embedded-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Sascha Hauer Cc: linux-serial@vger.kernel.org, linux-embedded@vger.kernel.org, NeilBrown , hns@goldelico.com Hi Sascha, Sascha Hauer wrote: > Hi Andrey, > > +Cc NeilBrown > > On Mon, Nov 16, 2015 at 07:24:58PM +0300, Andrey Vostrikov wrote: >> Hi, >> >> I have an embedded system with microcontroller connected via >> UART/RS232 port. This microcontroller implements several low-level >> functions that need to be exposed as device drivers in other >> subsystems (watchdog, LEDs, HWMON, firmware read/write). >> >> I checked many drivers implemented in the kernel, searched through >> mail list archives and it looks like there are three different ways to >> solve this task: >> A) most of the devices that are connected using UART have user space >> program that configures and manages it (either directly or with help >> of dedicated line discipline, SLIP, SL-CAN, etc) >> B) serio - mostly used for input devices >> C) direct use of UART port taking control from serial_core. >> >> The best match I have found so far is MFD driver for Atmel >> Microcontroller on iPaq h3xxx (drivers/mfd/ipaq-micro.c) that follows >> concept "C)" > > There's also D) TTY slave device support: https://lkml.org/lkml/2015/3/18/40 > > Unfortunately this hasn't made it to mainline yet and it seems the > parties lost interest after some lengthy discussion of device tree phandles > vs. subnodes, but I think this is what you're looking for. Thank you for pointing out to another option. Looks like it was developed a little further and was submitted as patch by "H. Nikolaus Schaller", https://lkml.org/lkml/2015/10/16/729 But I see no further traces of it. Cc'ed Nikolaus, may be he could comment on state of UART slave patch. Best regards, Andrey > > Sascha >