Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932450AbaLJRDU (ORCPT ); Wed, 10 Dec 2014 12:03:20 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:65219 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932247AbaLJRDS (ORCPT ); Wed, 10 Dec 2014 12:03:18 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Pavel Machek , pali.rohar@gmail.com, sre@debian.org, sre@ring0.de, kernel list , linux-omap@vger.kernel.org, tony@atomide.com, khilman@kernel.org, aaro.koskinen@iki.fi, ivo.g.dimitrov.75@gmail.com, devicetree@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org Subject: Re: BCM2048 bluetooth connected over OMAP serial Date: Wed, 10 Dec 2014 18:02:42 +0100 Message-ID: <11367725.nphhSzdtpK@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20141210164333.GA3154@amd> References: <20141210164333.GA3154@amd> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:7ZJoSFV2ZFq8ODKPWmtIGcw6lSaKn0hYusekHbfTlVag89xfw3H y/DS4cCgA83UCbYxrLyvjNvHJci0i3oGLo3D6eWj7vPu/1YL7pSB9Q4TssxZOX4I45Z1lbx Lz/7oK0ebnCkjQNE83Y0Tcqy1crBMr2jQ2ATrk/8ZpDc+UTpDPYXwBd2R/czQK4yK2Ac85P R+OocaiG3/bB3y61sbYzg== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 10 December 2014 17:43:33 Pavel Machek wrote: > > So, there's bluetooth chip that's connected to the SoC by UART and some > GPIOs. What would be right representation in the device tree? > Something like this? > > bluetooth { > compatible = "broadcom,bcm2048"; > uart = <&uart2>; > reset-gpios = <&gpio3 27 GPIO_ACTIVE_HIGH>; /* want 91 */ > host-wakeup-gpios = <&gpio4 5 GPIO_ACTIVE_HIGH>; /* want 101 */ > bluetooth-wakeup-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /* want 37 */ > chip-type = >; > bt-sysclk = <2>; > reset-gpio-shared = <0>; > }; > > Is there some way to prevent OMAP tty driver from binding to the > device and exporting the device to userspace? I think from the driver perspective, you want this to be a tty line discipline rather than a driver that attaches to the physical uart. For the DT representation, I fear we haven't got a precedent. A uart phandle sounds reasonable, but there might be other ways to do it and we should consider if there are better alternatives. It could possibly be a child node of the uart, but that would require other infrastructure in the kernel because we don't currently create devices for those. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/