Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1082939imm; Sat, 14 Jul 2018 22:13:25 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfaxZDzRRtkX0gqz1GKQa16BsMizBn5jePyzZ0mR6yopNQ93fRAoqorF9pUyyKmn5viV3T5 X-Received: by 2002:aa7:88d3:: with SMTP id p19-v6mr13264243pfo.160.1531631605545; Sat, 14 Jul 2018 22:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531631605; cv=none; d=google.com; s=arc-20160816; b=0CQ7/S6v7YNca4YPVWG9BB27ySltO4fbB/jVhSoS14MaBlLrC1uMuKjMXNe3I7dAvy tDSKIHfFF6z2irwaHoY2Py+3qFwZieyecZdkVYg+1mknDVLIdTCn33Qn7J+rH7YG+qp2 7EagBeO+9YXJ2kRRh2DIv5cAYii7SOIfPeTdOEcVMTaR1FuwL+9J4thoCUjimz7ea5sv yFp7kmPAURh2/03j6TO7uSUvKZl+TH8WK+btWP09VLxtaaqsV4TtNXrIt9D/jDA3D9qM YBm9h0wSfzFtO9JRNy3oeYJCG01htJqM62gs3HcdhJ00csRFnv0hWvu06UrSFdlC2XIV VMVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=Pd3BnYf/VeDpee0ZvBmD+1niGbL6kWfV9hG8hbmw3CM=; b=EymgmrcG5wALel4ZKW5t1QEaIlm6O3Oc4ZLqVZ2L+OxdWzYkYMO5hyeuR3JKro09hG js2KdFY7m/YKuW6OEpZ7Rk/K4krlJUt8e+18uyxANI+t+mk1xtLMwxezg8mVYEqREobK Z3nu7LjRHRXa5/TS26ikN/FhWcTzR2fN1crVd27xSnFA0c2QQu1yZvCe76TqyqUIm152 EbrVrUqeD8SJZFsN3a9THpDzdxCSXtVhjwjAUro99dWvKspmumis+cIyT/43GGjxbJGn KVUoyRNvL4QvQAyEc/DI0kmiUyg4f5vCGqS1jUa7ctgVhr+rG1OA2APU/3WsmoKAQXdt rQFQ== 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 c13-v6si14463210pgh.627.2018.07.14.22.12.39; Sat, 14 Jul 2018 22:13:25 -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 S1726201AbeGOFcl (ORCPT + 99 others); Sun, 15 Jul 2018 01:32:41 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:54864 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725743AbeGOFcl (ORCPT ); Sun, 15 Jul 2018 01:32:41 -0400 X-UUID: 20c566fc75f94df79515a0c32af67e48-20180715 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1918835454; Sun, 15 Jul 2018 13:10:56 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sun, 15 Jul 2018 13:10:49 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Sun, 15 Jul 2018 13:10:49 +0800 Message-ID: <1531631449.26214.28.camel@mtkswgap22> Subject: Re: [PATCH v5 1/7] dt-bindings: net: bluetooth: Add mediatek-bluetooth From: Sean Wang To: Marcel Holtmann CC: Rob Herring , Mark Rutland , Johan Hedberg , devicetree , "open list:BLUETOOTH DRIVERS" , linux-arm-kernel , , Date: Sun, 15 Jul 2018 13:10:49 +0800 In-Reply-To: <7E55939D-7F8A-4832-9DD5-EFB3B19ACF0B@holtmann.org> References: <7E55939D-7F8A-4832-9DD5-EFB3B19ACF0B@holtmann.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2018-07-14 at 18:26 +0200, Marcel Holtmann wrote: > Hi Sean, > > > Add binding document for a SoC built-in device using MediaTek protocol. > > Which could be found on MT7622 SoC or other similar MediaTek SoCs. > > > > Signed-off-by: Sean Wang > > Reviewed-by: Rob Herring > > --- > > .../devicetree/bindings/net/mediatek-bluetooth.txt | 35 ++++++++++++++++++++++ > > 1 file changed, 35 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/net/mediatek-bluetooth.txt > > > > diff --git a/Documentation/devicetree/bindings/net/mediatek-bluetooth.txt b/Documentation/devicetree/bindings/net/mediatek-bluetooth.txt > > new file mode 100644 > > index 0000000..1335429 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/net/mediatek-bluetooth.txt > > @@ -0,0 +1,35 @@ > > +MediaTek SoC built-in Bluetooth Devices > > +================================== > > + > > +This device is a serial attached device to BTIF device and thus it must be a > > +child node of the serial node with BTIF. The dt-bindings details for BTIF > > +device can be known via Documentation/devicetree/bindings/serial/8250.txt. > > + > > +Required properties: > > + > > +- compatible: Must be one of > > + "mediatek,mt7622-bluetooth"": for MT7622 SoC > > this does not match with the example below. And one of, should be normally be a list. > Thanks! I'll remove the words "one of" from the compatible description, and the extra " being added accidentally. And the below example fully shows the bluetooth device and its attached bus (mediatek,mt7622-btif) to let people know clearly how to enable the bluetooth device. The current document just describes the bluetooth device and as for the attached bus, it is already present at Documentation/devicetree/bindings/serial/8250.txt. Sean > > +- clocks: Should be the clock specifiers corresponding to the entry in > > + clock-names property. > > +- clock-names: Should contain "ref" entries. > > +- power-domains: Phandle to the power domain that the device is part of > > + > > +Example: > > + > > + btif: serial@1100c000 { > > + compatible = "mediatek,mt7622-btif", > > + "mediatek,mtk-btif"; > > + reg = <0 0x1100c000 0 0x1000>; > > + interrupts = ; > > + clocks = <&pericfg CLK_PERI_BTIF_PD>; > > + clock-names = "main"; > > + reg-shift = <2>; > > + reg-io-width = <4>; > > + > > + bluetooth { > > + compatible = "mediatek,mt7622-bluetooth"; > > + power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>; > > + clocks = <&clk25m>; > > + clock-names = "ref"; > > + }; > > + }; > > Regards > > Marcel >