Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2505115ybi; Sat, 1 Jun 2019 18:05:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJADzgr1KW49dB5VVXhYQKEP8ME0Dku47HlCEWpw1Mku14SSlFcn9b3oMDyfgVvAABSEXY X-Received: by 2002:a17:90a:62cb:: with SMTP id k11mr19637030pjs.26.1559437510860; Sat, 01 Jun 2019 18:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559437510; cv=none; d=google.com; s=arc-20160816; b=DtfA97M2m7D0BhMK86+Rx8bdSs5JJYSsSGLmZLFsI64utwBmHg6y058Brv2TRk6hpU 5YAZ2ob1h113+/ponAiSU0rQ3PpP5L+DqZJt5Sg3cTNjAqLMEdI6Md1K9XXxEWiRETMv /TjXG6kkHPTNlkDdws/70iB+mVHe52lfc3JAZiM1WJnN8RJ/NnopFJUdR6WWJfmaJhO1 o8kO9fFZRzhS8To7aC2gxb2RHJJOc1IHRv/j9zmTX/4jr6aSJi5x+YUq/o8csc/8BFQr o70R6DmOPsj0NfiTuf9r8wKEUKyCfsnQI8WCFpqEqXYyYsLEoDdWwLd46UvV6qivUCz4 Fvcg== 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=Hnf7uEtdLXAC6d/GveiZqSZE8d6zUrHl0m3CEcObRHk=; b=wIXxb8GCt1sU4FJBkVI9KhY7XeJc5gPajYI2kdXrK+fDQJFNMxjZMe+Fl+KF4iVssW wUIQOhOeHWcyCFOrynsG8zTvDshSiN2kz8jduIYub/Cxuj1JQHS7STy3i0406zEaynQR 9MIJ4AS39HFZk4Ury5JRKkxsq6v6bUejaK8Cg1rENG2Dkqv6nTKwp0TxSlsNT9mJMq2J BJBEbz9CxWzM/mF1UTR6OSChhOEg2FOPqCFfJzjOIgAMWjwKmDIn8VdoMI681EsM9KZJ M9lgtHcbSDle+Hw7IAtAm2qiekHIg32bqTXXj647CPxaYIQIQTQZmE//3Q5zzhzUsq56 /Zvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-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 ch14si13343501plb.44.2019.06.01.18.04.37; Sat, 01 Jun 2019 18:05:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-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-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726721AbfFBBE1 (ORCPT + 99 others); Sat, 1 Jun 2019 21:04:27 -0400 Received: from mailgw01.mediatek.com ([216.200.240.184]:58334 "EHLO mailgw01.mediatek.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbfFBBE1 (ORCPT ); Sat, 1 Jun 2019 21:04:27 -0400 X-UUID: 66ed6f722bb24d64bf3ae33a0e242ed2-20190601 X-UUID: 66ed6f722bb24d64bf3ae33a0e242ed2-20190601 Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1308218860; Sat, 01 Jun 2019 17:04:23 -0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 1 Jun 2019 18:04:21 -0700 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sun, 2 Jun 2019 09:04:20 +0800 From: To: , , , CC: , , , , , Sean Wang Subject: [PATCH v1 1/4] dt-bindings: net: bluetooth: add boot-gpios property to UART-based device Date: Sun, 2 Jun 2019 09:04:14 +0800 Message-ID: <1559437457-26766-2-git-send-email-sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1559437457-26766-1-git-send-email-sean.wang@mediatek.com> References: <1559437457-26766-1-git-send-email-sean.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Sean Wang Not every platform has the pinctrl device integrates the GPIO the function such as MT7621 whose pinctrl and GPIO are separate hardware so adding an additional boot-gpios property for such platform allows them to bring up the device. Signed-off-by: Sean Wang --- .../devicetree/bindings/net/mediatek-bluetooth.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/net/mediatek-bluetooth.txt b/Documentation/devicetree/bindings/net/mediatek-bluetooth.txt index 41a7dcc80f5b..14f23b354a6d 100644 --- a/Documentation/devicetree/bindings/net/mediatek-bluetooth.txt +++ b/Documentation/devicetree/bindings/net/mediatek-bluetooth.txt @@ -50,11 +50,24 @@ Required properties: "mediatek,mt7663u-bluetooth": for MT7663U device "mediatek,mt7668u-bluetooth": for MT7668U device - vcc-supply: Main voltage regulator + +If the pin controller on the platform can support both pinmux and GPIO +control such as the most of MediaTek platform. Please use below properties. + - 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 +Else, the pin controller on the platform only can support pinmux control and +the GPIO control still has to rely on the dedicated GPIO controller such as +a legacy MediaTek SoC, MT7621. Please use the below properties. + +- boot-gpios: GPIO same to the pin as UART RXD and used to keep LOW when + the device is powered up to enter proper bootstrap mode when +- pinctrl-names: Should be "default" +- pinctrl-0: Should contain UART mode pin ctrl + Optional properties: - reset-gpios: GPIO used to reset the device whose initial state keeps low, -- 2.17.1