Received: by 10.213.65.68 with SMTP id h4csp3209191imn; Tue, 3 Apr 2018 00:21:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+qHqyhH6SlbfkuPtSET3aeiCy+Bdot71i914T4+RfcruG0/IYeFH99Csfr5TCt2Ebu5T5b X-Received: by 2002:a17:902:b611:: with SMTP id b17-v6mr12865739pls.27.1522740070218; Tue, 03 Apr 2018 00:21:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522740070; cv=none; d=google.com; s=arc-20160816; b=dSm5FIi6C+cgyojdM79ABYMkGijcVrAaI3WsUL4Dgo1gxPkSbICiw7so5pvbuSL5OV /Vi1cdoI+jl/mlGcf+/sDfyZEo8sNeBV0BKjNBPyvb22VGcb/N+Udqis4XjHPskC/6qc w1YA6mxfmkqcVPY4wdxjPFh1QvChn+VTeEHLAgebyA2/xiZSEJyf2sCUqZL5o8tLI5Wp twicIRrv3dxb1B165VhdGY/ZgnV4RmhVdqeHdlylcZSRs8sgIn14ZPVNveHksxNoToQ3 V3R3ZeY03P+3/VS9SAYGAH0A7U0rpQqn7mg+IDTxSabZADZT6jVFLtWSTwIqKgxdvvH3 j4cg== 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=WZKlME+oiyoQu6zniLCExc6hPcYzjM1F62YFAHOVdlI=; b=ekUN+lSDWR0nvEteI6x7weyFJSijjr8n44eKiE+4rxT1n34r5OlKVUKVpDLVt4uTKw U9T0Sk6Wy6/6eEyhcfG+4THzao6M+nwUVC6aVDQ5cVx/oD3yScy7qBlzQsYwsyh3gCSQ HkeQygHKUqE9/CaIvKJMLFjCXPy/LoJnmlg+rQAag1OaJ2FHcagJi6ykm9ENlUk0yItu o3RGwxsv98cR3lnMjLNjAtezEAFhHmrW/dFZbrJGgnKF06mUPJrDkDfjJwV3UrLRXlsX UPzQ0F95NcWlPbQRNwj6Z3k08PSgPVNgOT0Bn+J4swB9rw29KFXkzcC2MCjIJrxT93SJ XdpA== 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 g24si1699305pfe.263.2018.04.03.00.20.56; Tue, 03 Apr 2018 00:21:10 -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 S1754860AbeDCHQH (ORCPT + 99 others); Tue, 3 Apr 2018 03:16:07 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:44099 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752991AbeDCHQF (ORCPT ); Tue, 3 Apr 2018 03:16:05 -0400 X-UUID: f9b22880a13a4092824583470fc38c09-20180403 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1116987658; Tue, 03 Apr 2018 15:16:02 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 3 Apr 2018 15:16:00 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 3 Apr 2018 15:16:00 +0800 From: To: , , , CC: , , , , , Sean Wang Subject: [PATCH v1 0/7] add support for Bluetooth on MT7622 SoC Date: Tue, 3 Apr 2018 15:15:50 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-12.5.0.5042-8.2.9001-23760.005 X-TM-AS-Result: No-10.156600-8.000000-10 X-TMASE-MatchedRID: vLCRY9sB4eynIEz+LeVBUxWCVBr+Ay98T5++FIORChC48McbajxWsOrO SEJRBEaXAxc4cwJLvwnlEUN5eQRo4xOqqDV6Qdycl1zsjZ1/6ayE6lq+K7jth4aKwv8Fn/09Mq+ en+OaNuuVbhRAPSasfZtT/sIk9yAYY/L30nD9T7iwr5ZZVOw5dUyQ5fRSh265NSweOixQAJJHdE c8dOyw1Vl+Hk3Iw2bEgDLqnrRlXrZ8nn9tnqel2DsAVzN+Ov/sjlfCqbK2HhV8rDL59PETnSiJ3 mbMSg+F7wtS1smZ5LVE0XPkiVL1xg== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--10.156600-8.000000 X-TMASE-Version: SMEX-12.5.0.5042-8.2.9001-23760.005 X-TMASE-POSTMAN: 2-d; 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 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 Sean Wang (7): dt-bindings: net: bluetooth: Add mediatek-bluetooth serdev: add dev_pm_domain_attach|detach() soc: mediatek: reuse read[l,x]_poll_timeout helpers soc: mediatek: reuse regmap_read_poll_timeout helpers soc: mediatek: add a fixed wait for SRAM stable Bluetooth: hci_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 | 12 + drivers/bluetooth/Makefile | 1 + drivers/bluetooth/hci_mediatek.c | 499 +++++++++++++++++++++ drivers/bluetooth/hci_uart.h | 3 +- drivers/soc/mediatek/mtk-infracfg.c | 45 +- drivers/soc/mediatek/mtk-scpsys.c | 98 ++-- drivers/tty/serdev/core.c | 14 +- 9 files changed, 610 insertions(+), 105 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/mediatek-bluetooth.txt create mode 100644 drivers/bluetooth/hci_mediatek.c -- 2.7.4