Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp309615imm; Tue, 15 May 2018 01:55:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrjhywFi0fNWSvXxztO5UlTUHpfuO86NMp/X2u2L3v+1PSGWsiC3oqLx2vdMh/vECTDJFNl X-Received: by 2002:a62:d044:: with SMTP id p65-v6mr14354893pfg.64.1526374529101; Tue, 15 May 2018 01:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526374529; cv=none; d=google.com; s=arc-20160816; b=PirAIJGgbCAj5jjQJDnVdGRyFrZ75ebzBPGRixXJNJGpQ2+iJPyuYq4pVsxglHdd6j C0AL1rRntBSthsMzIzU5KVHpYkrdeQGgq/vIzVNPhapmWoCqCVW6RbnELl4Z9LAVWReN qEQEuzhaIZQ4CB8kkX5oSLcvgAr++IXB5a/CAKPbxD0h4m4QUEvdCSIb/Pj9EvqChbBc drnDXRJa1xyMIk1pbP/sFjVIJ6X12Nn6nvK3NRLXFEvuwVF2iOe+fHLpMQzObEVHkLXa 8ax731GRY1A6N0SiTaJUiGuIkLZ0ipfKnwaoyKCNArkugE5rZYMNucPkR26OZ1yvuh/4 5bow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=7CooBMEZsL2OgVhd4Yrdamg9iOAFvsF027GsZKmq0xs=; b=KytAu/38QpVr6ZVhBCCfupvz80sS53YVPRuHJ2cucdNsa+xMOaJwccSUv7uhXNEh2B HrvKcTa8vS512T+Fug02UQWZddgM5JJJXNJnc2XDNF7GZTY26fEXLMHf2EdjshqPQ3CJ 10O4LvZu6xxR/4vx4x3v3nj1cIE4aPj3xMorL+ltIzepwKOnKDdqoG9j/5E3OWFcUsqw rTUnyZ8GXnPOtowskh1KwrwHK5U6jy0O1UTiZvnC6ES3Pt6yeumP7rS6vKn07p4S8q5w at5s4nC/Mk/b4TXJaLHVx8p650FIwH5FOqJqciTLivaXuiz4Fm4wiKgDMQy1D1yGX7pa MKZw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l30-v6si11218283plg.420.2018.05.15.01.55.14; Tue, 15 May 2018 01:55:29 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752575AbeEOIwm (ORCPT + 99 others); Tue, 15 May 2018 04:52:42 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:63167 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752545AbeEOIwh (ORCPT ); Tue, 15 May 2018 04:52:37 -0400 X-UUID: 9cd52d29377442d8a8f52eaacb40a67d-20180515 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 350310144; Tue, 15 May 2018 16:52:33 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 15 May 2018 16:52:32 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 15 May 2018 16:52:25 +0800 From: To: , , , CC: , , , , , Sean Wang Subject: [PATCH v2 0/7] add support for Bluetooth on MT7622 SoC Date: Tue, 15 May 2018 16:52:15 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang v2 and changes since v1 - Dropped patches already being applied - Rewirte the whole driver using btuart [1], and add slight extension of btuart to fit into btmtkuart driver. Beware that [1] is also pulled into one part of the series for avoiding any breakage when the patchset is being compiled. [1] btuart https://www.spinics.net/lists/linux-bluetooth/msg74918.html v1: Hi, This patchset introduces built-in Bluetooth support on MT7622 SoC. And, it should be simple to make an extension to support other MediaTek SoCs with adjusting a few of changes on the initialization sequence of the device. Before the main driver is being introduced, a few of things about power-domain management should be re-worked for serdev core and MediaTek SCPSYS to allow the Bluetooth to properly power up. Patch 2: add a generic way attaching power domain to serdev Patch 3 and 4: add cleanups with reuse APIs from Linux core Patch 5: fix a limitation about power enablement Bluetooth depends on Patch 1, 6 and 7: the major part of adding Bluetooth support to MT7622 Sean Marcel Holtmann (1): Bluetooth: Add new serdev based driver for UART attached controllers Sean Wang (6): dt-bindings: net: bluetooth: Add mediatek-bluetooth serdev: add dev_pm_domain_attach|detach() Bluetooth: Add new quirk for non-persistent setup settings Bluetooth: Extend btuart driver for join more vendor devices Bluetooth: mediatek: Add protocol support for MediaTek serial devices MAINTAINERS: add an entry for MediaTek Bluetooth driver .../devicetree/bindings/net/mediatek-bluetooth.txt | 35 ++ MAINTAINERS | 8 + drivers/bluetooth/Kconfig | 23 + drivers/bluetooth/Makefile | 3 + drivers/bluetooth/btmtkuart.c | 383 +++++++++++++++ drivers/bluetooth/btmtkuart.h | 119 +++++ drivers/bluetooth/btuart.c | 527 +++++++++++++++++++++ drivers/bluetooth/btuart.h | 30 ++ drivers/tty/serdev/core.c | 14 +- include/net/bluetooth/hci.h | 9 + net/bluetooth/hci_core.c | 3 +- 11 files changed, 1152 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/mediatek-bluetooth.txt create mode 100644 drivers/bluetooth/btmtkuart.c create mode 100644 drivers/bluetooth/btmtkuart.h create mode 100644 drivers/bluetooth/btuart.c create mode 100644 drivers/bluetooth/btuart.h -- 2.7.4