Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4728001imu; Mon, 12 Nov 2018 16:19:56 -0800 (PST) X-Google-Smtp-Source: AJdET5dVVpuNaufWCFwFQJVnYJ6UsRXqPPbDDOMcAdoKq8zWUL0EgeiPMZTHavBFjFK00x/Xmev7 X-Received: by 2002:a63:62c3:: with SMTP id w186mr2741597pgb.345.1542068396290; Mon, 12 Nov 2018 16:19:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542068396; cv=none; d=google.com; s=arc-20160816; b=B/l/zXpjsDif1K3qRK/RQE6MSOVZl6mdEK3poX9qxbGRiHHXANglZ2Ct2fIameWFsc 8gRU+LWDmWHqIPqDi/2pUvvhf8E9YngJrJrekldDCIskt/NH341ryc5N3/KjnL43D8/X c/rAKJCBlFM11IGci0QBow0NeTARO3PdaWMmKxaB1YZUxuKdZ+vGvyIQG8gQzBdMCXo9 Mj57KWLQnQs3l7aefq9NrnibyoRs+e3nvteiPPxPgmMGxErO4EjGFOjLyd/If14l35dT D75btl7hrLl6Yxz7Xwor2brWPHIGeD+mUYBHblYskPKp2sh44cDyhOpStOvKn7c8fIes 6PHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gMv5m4jxl+SczadP753gBZKNpfaSaR3Tjv4IF0wT5ls=; b=0Jo0levD1cZoKNM9xLS+LOECj4G2QRNANxMFf9AWgrW9WuAMLfxmn8EGVXSndmXVoW IMP3cc35ioqSb9SkvNQ0eFWliT1dfKqna4ZwByrMX6l3y2wBywpPAucVDcCWqWrsbf4b eqOGTY/l/89nfAPec1d1Om/urJaOvZOYVlc6vrW74Ps7Fh7J0FxBM95ljFR/liCqo7JF Im98vFt16XpkO+FB3hKIXH5s45qqoOx/WmpK6+CB/zR90+EtpAdj0/tnTWAVHF4fcvBG WBTL6s+edM3Bd10OpSWDOt1SnboOIy1w5Z4ki6L1Uy1HY4MSlhuPQ4MWjq37ILzRI9k0 RqsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JmX7LdtF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si17856714pgq.275.2018.11.12.16.19.40; Mon, 12 Nov 2018 16:19:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JmX7LdtF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730528AbeKMKNW (ORCPT + 99 others); Tue, 13 Nov 2018 05:13:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:47818 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725991AbeKMKNV (ORCPT ); Tue, 13 Nov 2018 05:13:21 -0500 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2E3072250E for ; Tue, 13 Nov 2018 00:17:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542068271; bh=VJXRssMjUBid54GFDjXxLrLek8w4ubGoHOxMsppJLyg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JmX7LdtF9OAEPVlmZdzDoPqSKI2JYZ5TjHfUx3pxWWLDbWwRERWYZWOu2rGe8Dwlc NXFsH+pWpVSblmMkibdZyVWc/EP8GY5fzF0s9fjvJRpZUyKFNBZ+70NY9AkxAgbMXH JKVxu/TUtl1CG7KlZktToyXT8lnBWYPy+omApmA4= Received: by mail-wm1-f43.google.com with SMTP id z8-v6so3613936wma.5 for ; Mon, 12 Nov 2018 16:17:51 -0800 (PST) X-Gm-Message-State: AGRZ1gImStl8esvQpXwSWaebTHaYW+o5o8E4SPI00jdGBmXTDe+HOUwN llnwqC2neVNjjI0xpC5P93AqabhzYt0fJyQwVuabrw== X-Received: by 2002:a1c:1f43:: with SMTP id f64mr1402920wmf.64.1542068269632; Mon, 12 Nov 2018 16:17:49 -0800 (PST) MIME-Version: 1.0 References: <20181110232034.17277-1-andreas@kemnade.info> <20181111024648.7rt7rlhaqihtqecv@earth.universe> <20181112215812.18ebca35@aktux> <2C74C837-A6D3-47C9-BE59-CCA594289B94@goldelico.com> <20181112222726.73m2oca7hankvcjs@earth.universe> In-Reply-To: <20181112222726.73m2oca7hankvcjs@earth.universe> From: Rob Herring Date: Mon, 12 Nov 2018 18:17:38 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [Letux-kernel] [PATCH RFC] bluetooth: add uart h4 devices via serdev/devicetree To: sebastian.reichel@collabora.com Cc: hns@goldelico.com, andreas@kemnade.info, devicetree@vger.kernel.org, johan.hedberg@gmail.com, marcel@holtmann.org, Linux Kernel Mailing List , linux-bluetooth@vger.kernel.org, letux-kernel@openphoenux.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 12, 2018 at 4:27 PM Sebastian Reichel wrote: > > Hi, > > On Mon, Nov 12, 2018 at 10:19:02PM +0100, H. Nikolaus Schaller wrote: > > > Am 12.11.2018 um 21:59 schrieb Andreas Kemnade : > > > On Sun, 11 Nov 2018 03:46:48 +0100 > > > Sebastian Reichel wrote: > > >> On Sun, Nov 11, 2018 at 12:20:34AM +0100, Andreas Kemnade wrote: > > >>> This is a first try to be able to use h4 devices specified in > > >>> the devicetree, so you do not need to call hciattach and > > >>> it can be automatically probed. > > >>> > > >>> Of course, proper devicetree bindings documentation is > > >>> missing. And also you would extend that by regulator/ > > >>> enable gpio settings. > > >>> > > >>> But before proceeding further it should be checked if the > > >>> general way of doing things is right. > > >>> > > >>> Signed-off-by: Andreas Kemnade > > >>> --- > > >> > > >> Patch looks good to me, just one note > > >> > > > I found one thing myself: > > > Shouldn't we have a generic compatible string like "generic-h4". > > > ehci-platform.c has for example: > > > { .compatible = "generic-ehci", }, > > > > There might be differences in h4 compatible devices (e.g. default > > baud rate) so that I would not bet there a "generic-h4" suffices > > in the long run. It will not because that doesn't define clocks, resets, gpios, supplies, etc. and the interactions of all those. > My suggestion is to use this in DT: > > compatible = "wi2wi,w2cbw003-bluetooth", ""; > > The driver can start with supporting just the generic compatible > string. If somebody finds some incompatible differences, the driver > can add a custom handler for the wi2wi chip without breaking DT > ABI. Any idea how many H4 devices there are? Somehow I doubt there are that many to be unmanageable. Rob