Return-path: Received: from mail-by2nam03on0090.outbound.protection.outlook.com ([104.47.42.90]:51760 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750707AbdLKIL6 (ORCPT ); Mon, 11 Dec 2017 03:11:58 -0500 Date: Mon, 11 Dec 2017 02:11:50 -0600 From: Chi-Hsien Lin To: devicetree@vger.kernel.org Cc: linux-wireless@vger.kernel.org, brcm80211-dev-list , brcm80211-dev-list.pdl@broadcom.com, Arend van Spriel , Kalle Valo Subject: [PATCH] dt-bindings: net: wireless: Add sg parameters dts parsing Message-ID: <20171211081144.GA140567@aremote07.aus.cypress.com> (sfid-20171211_091202_786025_F8F03385) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-wireless-owner@vger.kernel.org List-ID: broken_sg_support, sd_head_align, and sd_sgentry_align are used in brcmfmac code but not configurable in dts file. Add the parsing logic. Now they can be configured like below in dts: brcm,broken_sg_support; brcm,sd_head_align = <4>; brcm,sd_sgentry_align = <4>; Signed-off-by: Chi-hsien Lin --- .../devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt b/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt index 86602f2..4d42f0d 100644 --- a/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt @@ -17,6 +17,11 @@ Optional properties: When not specified the device will use in-band SDIO interrupts. - interrupt-names : name of the out-of-band interrupt, which must be set to "host-wake". + - broken_sg_support : flag for broken sg list support of SDIO host controller. + Set this to true if the SDIO host controller has higher align + requirement than 32 bytes for each scatterlist item. + - sg_head_align : alignment requirement for start of data buffer. + - sg_sgentry_align : length alignment requirement for each sg entry. Example: @@ -36,5 +41,8 @@ mmc3: mmc@1c12000 { interrupt-parent = <&pio>; interrupts = <10 8>; /* PH10 / EINT10 */ interrupt-names = "host-wake"; + brcm,broken_sg_support; + brcm,sd_head_align = <4>; + brcm,sd_sgentry_align = <4>; }; }; -- 2.1.0