Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp193318imj; Thu, 14 Feb 2019 18:23:03 -0800 (PST) X-Google-Smtp-Source: AHgI3IbFscjxc4W+3zenPQg7x+ZwCqiXhRDinwHmX2wmqj3TQnvtQnrsLqP0rlEpWHFt//FRDyXK X-Received: by 2002:a63:9348:: with SMTP id w8mr3042441pgm.198.1550197383433; Thu, 14 Feb 2019 18:23:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550197383; cv=none; d=google.com; s=arc-20160816; b=hODop8/WgOAgEogOAgbAZBLDNGgm0cV6RhU7sHIImarT1Zae0hpIGnp45rHAeS5eqS Tq9V+Hy1v6LsWRvcoRch5adlhUleukqWffUy38/Zg7U8QVrmkHUqdPWyNLmvTdB69fJy V+R6QtZFXuYQPJDzvsgHmd+ClRKJK35j3tmU4VpagujADj3iRFCOsflRxrbnA4X+AlZ9 0lGemU30/J4cL74QZaR/D2g9xUv9Hr/s/BoHXyCmBjGHhl9sUKPRUJ5/BJc3XtkFObUs dV2Q9bm79rt3NDIsqbCWToV5ZEe4rSgTWX2QXvGsHvytNUJtaUlxTmzxcvwboV9Wg+Uu JTQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=BNJqraB0b+Xh+KxAmmAj0O8Fl/pqpku5JOg24BFNq8w=; b=icGWyyETOfkZauqUwDwdc66+e7jgxxTeOebYELj6WOsKNjjbYBvVL2W9y8DR+vxERf 1A1TxLbQL4jPzY1p8GWGEmHAmjtLIeG3mIHuBA5eqkVCu3da9lXn/4MXTKWJmGGYZKUq l47R50VF93IX3z+EFnSsU8tt8eOWhVTQKjpcgxcUTmaw8tZ3xKGD1xv9p13hELZ13j3J tgx1O3yCBMIDnfC0S1i3IDkIgcaft6ffhCo1mLMnEumb9WU6yvHRBT3NdGfh0uWitBKR XCeHAOhQduxGOeMIzyZMD5Bhk2+p6eZselFETErphTra5eSZux6EBbJdAFYhojTqiPzy fgNg== 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 l10si4481631pfb.283.2019.02.14.18.22.47; Thu, 14 Feb 2019 18:23:03 -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; 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 S2388254AbfBNXUG (ORCPT + 99 others); Thu, 14 Feb 2019 18:20:06 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:39419 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728789AbfBNXUA (ORCPT ); Thu, 14 Feb 2019 18:20:00 -0500 X-UUID: 8ecc2dbf87d64b94b4f8858a697faf2b-20190215 X-UUID: 8ecc2dbf87d64b94b4f8858a697faf2b-20190215 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1945842484; Fri, 15 Feb 2019 07:19:50 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 15 Feb 2019 07:19:42 +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.1395.4 via Frontend Transport; Fri, 15 Feb 2019 07:19:42 +0800 From: To: , , , CC: , , , , , Sean Wang Subject: [PATCH 1/6] dt-bindings: net: bluetooth: add support for MediaTek MT7663U and MT7668U UART devices Date: Fri, 15 Feb 2019 07:19:33 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: D779B2618311713CB527479DA034E29B1828AC39E163F6697A3287C8909486902000:8 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 Update binding document with adding support of MT7663U and MT7668U UART devices to mediatek-bluetooth. Signed-off-by: Sean Wang --- .../bindings/net/mediatek-bluetooth.txt | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/Documentation/devicetree/bindings/net/mediatek-bluetooth.txt b/Documentation/devicetree/bindings/net/mediatek-bluetooth.txt index 14ceb2a5b4e8..41a7dcc80f5b 100644 --- a/Documentation/devicetree/bindings/net/mediatek-bluetooth.txt +++ b/Documentation/devicetree/bindings/net/mediatek-bluetooth.txt @@ -33,3 +33,67 @@ Example: clock-names = "ref"; }; }; + +MediaTek UART based Bluetooth Devices +================================== + +This device is a serial attached device to UART device and thus it must be a +child node of the serial node with UART. + +Please refer to the following documents for generic properties: + + Documentation/devicetree/bindings/serial/slave-device.txt + +Required properties: + +- compatible: Must be + "mediatek,mt7663u-bluetooth": for MT7663U device + "mediatek,mt7668u-bluetooth": for MT7668U device +- vcc-supply: Main voltage regulator +- pinctrl-names: Should be "default", "runtime" +- pinctrl-0: Should contain UART RXD low when the device is powered up to + enter proper bootstrap mode. +- pinctrl-1: Should contain UART mode pin ctrl + +Optional properties: + +- reset-gpios: GPIO used to reset the device whose initial state keeps low, + if the GPIO is missing, then board-level design should be + guaranteed. +- current-speed: Current baud rate of the device whose defaults to 921600 + +Example: + + uart1_pins_boot: uart1-default { + pins-dat { + pinmux = ; + output-low; + }; + }; + + uart1_pins_runtime: uart1-runtime { + pins-dat { + pinmux = , + ; + }; + }; + + uart1: serial@11003000 { + compatible = "mediatek,mt7623-uart", + "mediatek,mt6577-uart"; + reg = <0 0x11003000 0 0x400>; + interrupts = ; + clocks = <&pericfg CLK_PERI_UART1_SEL>, + <&pericfg CLK_PERI_UART1>; + clock-names = "baud", "bus"; + + bluetooth { + compatible = "mediatek,mt7663u-bluetooth"; + vcc-supply = <®_5v>; + reset-gpios = <&pio 24 GPIO_ACTIVE_LOW>; + pinctrl-names = "default", "runtime"; + pinctrl-0 = <&uart1_pins_boot>; + pinctrl-1 = <&uart1_pins_runtime>; + current-speed = <921600>; + }; + }; -- 2.18.0