From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752970AbdHJQ17 (ORCPT ); Thu, 10 Aug 2017 12:27:59 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35436 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751982AbdHJQ1y (ORCPT ); Thu, 10 Aug 2017 12:27:54 -0400 Date: Thu, 10 Aug 2017 11:27:52 -0500 From: Rob Herring To: sean.wang@mediatek.com Cc: gregkh@linuxfoundation.org, jslaby@suse.com, andriy.shevchenko@linux.intel.com, jan.kiszka@siemens.com, heikki.krogerus@linux.intel.com, hpeter@gmail.com, vigneshr@ti.com, matthias.bgg@gmail.com, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: serial: Add MediaTek BTIF controller bindings Message-ID: <20170810162752.2xncymekrhu544g7@rob-hp-laptop> References: <6b2ad0dc976259563562e7ab23abdacf68c94aa5.1501692369.git.sean.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6b2ad0dc976259563562e7ab23abdacf68c94aa5.1501692369.git.sean.wang@mediatek.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 03, 2017 at 01:05:22AM +0800, sean.wang@mediatek.com wrote: > From: Sean Wang > > Document the devicetree bindings for MediaTek BTIF controller > which could be found on MT7622 and MT7623 SoC. > > Signed-off-by: Sean Wang > --- > .../devicetree/bindings/serial/mtk-btif.txt | 26 ++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > create mode 100644 Documentation/devicetree/bindings/serial/mtk-btif.txt > > diff --git a/Documentation/devicetree/bindings/serial/mtk-btif.txt b/Documentation/devicetree/bindings/serial/mtk-btif.txt > new file mode 100644 > index 0000000..80c1f5a > --- /dev/null > +++ b/Documentation/devicetree/bindings/serial/mtk-btif.txt > @@ -0,0 +1,26 @@ > +Device-Tree bindings for MediaTek BTIF controller found on those > +MediaTek SoCs with Bluetooth feature > + > +Required properties: > +- compatible: Should be one of: > + - "mediatek,mt7622-btif" : for MT7622 SoC > + - "mediatek,mt7623-btif" : for MT7623 SoC > +- reg: The base address of the BTIF register bank; > +- interrupts: A single interrupt specifier; > +- clocks: list of clock specifiers, corresponding to > + entries in clock-names property; > +- clock-names: should contain "main" entries. > + > +Optional properties: > +- mediatek,loopback: Boolean; if defined, indicates that BTIF controller > + running on the loopback mode. I don't think this belongs in DT, but should be a module param or sysfs control. > + > +Example: > + > + btif: btif@1100c000 { bluetooth@... > + compatible = "mediatek,mt7623-btif"; > + reg = <0 0x1100c000 0 0x1000>; > + interrupts = ; > + clocks = <&pericfg CLK_PERI_BTIF>; > + clock-names = "main"; > + }; > -- > 2.7.4 > From mboxrd@z Thu Jan 1 00:00:00 1970 From: robh@kernel.org (Rob Herring) Date: Thu, 10 Aug 2017 11:27:52 -0500 Subject: [PATCH 1/2] dt-bindings: serial: Add MediaTek BTIF controller bindings In-Reply-To: <6b2ad0dc976259563562e7ab23abdacf68c94aa5.1501692369.git.sean.wang@mediatek.com> References: <6b2ad0dc976259563562e7ab23abdacf68c94aa5.1501692369.git.sean.wang@mediatek.com> Message-ID: <20170810162752.2xncymekrhu544g7@rob-hp-laptop> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Aug 03, 2017 at 01:05:22AM +0800, sean.wang at mediatek.com wrote: > From: Sean Wang > > Document the devicetree bindings for MediaTek BTIF controller > which could be found on MT7622 and MT7623 SoC. > > Signed-off-by: Sean Wang > --- > .../devicetree/bindings/serial/mtk-btif.txt | 26 ++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > create mode 100644 Documentation/devicetree/bindings/serial/mtk-btif.txt > > diff --git a/Documentation/devicetree/bindings/serial/mtk-btif.txt b/Documentation/devicetree/bindings/serial/mtk-btif.txt > new file mode 100644 > index 0000000..80c1f5a > --- /dev/null > +++ b/Documentation/devicetree/bindings/serial/mtk-btif.txt > @@ -0,0 +1,26 @@ > +Device-Tree bindings for MediaTek BTIF controller found on those > +MediaTek SoCs with Bluetooth feature > + > +Required properties: > +- compatible: Should be one of: > + - "mediatek,mt7622-btif" : for MT7622 SoC > + - "mediatek,mt7623-btif" : for MT7623 SoC > +- reg: The base address of the BTIF register bank; > +- interrupts: A single interrupt specifier; > +- clocks: list of clock specifiers, corresponding to > + entries in clock-names property; > +- clock-names: should contain "main" entries. > + > +Optional properties: > +- mediatek,loopback: Boolean; if defined, indicates that BTIF controller > + running on the loopback mode. I don't think this belongs in DT, but should be a module param or sysfs control. > + > +Example: > + > + btif: btif at 1100c000 { bluetooth at ... > + compatible = "mediatek,mt7623-btif"; > + reg = <0 0x1100c000 0 0x1000>; > + interrupts = ; > + clocks = <&pericfg CLK_PERI_BTIF>; > + clock-names = "main"; > + }; > -- > 2.7.4 >