From patchwork Mon Dec 11 08:11:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chi-Hsien Lin X-Patchwork-Id: 10104407 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 815A1602A7 for ; Mon, 11 Dec 2017 08:12:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5FF6F294AF for ; Mon, 11 Dec 2017 08:12:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 54709294B5; Mon, 11 Dec 2017 08:12:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9B5E294AF for ; Mon, 11 Dec 2017 08:12:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751585AbdLKIMA (ORCPT ); Mon, 11 Dec 2017 03:12:00 -0500 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cycorp.onmicrosoft.com; s=selector1-cypress-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=79chzfw1VWluTwrZGmUdL76Nt7ahCWQDKOhgTPiZJpM=; b=kk8iziUuao3pu7ii76UXPEn07Kxi9x1QqQnMSyIk5StMOQi7CHIQZpF9HLYbZ/1XMsxopscASc/VIbPuijMKFCo3QHn0iVZEcBtzBs0zml7Q3NDJO3RIPqFAFDdO10WPK7/aer5kAlxuHTJAt78nTP3QUpgyhTnzl4f5k6eDRG8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Chi-Hsien.Lin@cypress.com; Received: from aremote07.aus.cypress.com (12.110.209.130) by CY4PR06MB3224.namprd06.prod.outlook.com (10.171.249.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Mon, 11 Dec 2017 08:11:56 +0000 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> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) X-Originating-IP: [12.110.209.130] X-ClientProxiedBy: DM5PR21CA0041.namprd21.prod.outlook.com (10.172.92.155) To CY4PR06MB3224.namprd06.prod.outlook.com (10.171.249.30) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 17461699-e13e-47f8-2624-08d5406ed894 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603307); SRVR:CY4PR06MB3224; X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB3224; 3:Ph6DSOeLc+pT/1uPeCsvkl7ASCPPAGl7Dtqq3pVER5gC60lE1woc++j9U0+LYBHaghLBJT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grbOEcvazQE2Cm3iUcmvEaSEVH1oHcqkj7shkZKfTdNG3sYNefKUHvG4r3JyFl0w0QyRpg1An7q944X1UTLX35j8QIGK4JVFGYYuiKbTznhUKTTX1LK5NPCR8mfxruHkDr8w1U94k34vWhKYD6jTBV0sJh+/H6x5A7hVigU7IJLNWydWX7vQ1kaKx+GpbAsVP084aX/k04n1pkr5cedoy5gWVNa41NhhK0T2RGAlBz7n6hrX833b50MMM8wTE5zbpEWDyn0La9SciHrsCUoYKKzTYZzXzPiJq/rBi0JmW4FGZYo7MTgZvQWnZdlNOcblPlBGZeTCUdvkRncs7jayqf/LEzjitX2X7wjpumbg3GZqV6VoidBRoYc7uOGC0=; 4:L8sqOGu64NyVE5QJsLip1KXdMiJUVTswHSd9h3kitgkecKJRl2t014GKJos104qu64k0Brd8y6mQSYhxOP/7LKb4t00n742i0PN/AAIKJd4kCHnIPzySzlb2zAwVX/OprQLDLbzq8IeNRRwb7ubvRRWXi73moGpoKIotlsLz+lQ6oLyuDTYwi+LX+chHIlAAP2i8KgY7l2mWa6cnaN1p5D0nCdbZisDJVxnyXERQTY5pTdraStjwsAC8gPbrNp+/ADAf/nMBB1wa2AqBIVZflm4MA4yPk2biezpNOdyZnOuVJP0b1a96At3ADp VDwGE8 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(258095267146985); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231022)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123560025)(20161123564025)(6072148)(201708071742011); SRVR:CY4PR06MB3224; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR06MB3224; X-Forefront-PRVS: 0518EEFB48 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(39860400002)(376002)(346002)(366004)(189003)(199004)(55016002)(1076002)(25786009)(5660300001)(6666003)(6916009)(83506002)(2906002)(6116002)(81156014)(81166006)(33656002)(4326008)(3846002)(53936002)(8676002)(47776003)(23726003)(72206003)(478600001)(2361001)(16526018)(68736007)(16586007)(66066001)(305945005)(105586002)(2351001)(8936002)(106356001)(7736002)(54906003)(58126008)(316002)(50466002)(52116002)(87496004)(97736004)(7696005)(575784001)(86362001)(18370500001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR06MB3224; H:aremote07.aus.cypress.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cypress.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR06MB3224; 23:wUYM411N9EqoSZlgcVX+GEF2PqAbRk7pE0k5iEmtQ?= =?us-ascii?Q?AMvX/YkJoWty2Az68fNLNgDF2rutKnXNxd2wBHE3PuhGulekpt4ZNPlm5FVM?= =?us-ascii?Q?hGZMRv9rUJQRRgawpFK/e62nT93Tyq9lShnDk7E+4mcN4VIFzyIN8WprLfgB?= =?us-ascii?Q?8TTxv5FjYaHZuRMOJRb2KCOspRZ/aMX4WUts7Y5jGkIvSoqxjZgNT3gpofuG?= =?us-ascii?Q?wl7kB3uUFbcK6oGTFZM+VztfFZqbV9fpNQyxsQ0riVWFlgTYbu7GPVl3H3gm?= =?us-ascii?Q?zjRz3vPlqQb1jD/48X8QdPxmI6pjZXTl2q77SXK1Z31YfLoTc+9DkpiZymgO?= =?us-ascii?Q?aY3WSNTjjLLyTOk4d+d23+5UQ8VKnVVwlfczGDK44RgpQt53KQ000PwVkcSO?= =?us-ascii?Q?EkNRqGQhnwhiFGddu7Kn8NgoIsnXwqa3B/bNf6JCOne+unVm7Qu48CrikhWd?= =?us-ascii?Q?IDfIOhGAj/uhTaHfK4Kmyep36fRopmFF7PirMonSF3mPDOaGE7CblutUMDwq?= =?us-ascii?Q?aQZ7PM1BKuU873PkqnbiHNAPpvVgBQTEkeVwXDhbS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VHE25p0FQuJz9XWGCiAdsr2pSPubCboyiNa/Fw3wdIus=; 5:L9/mA2E5IfC3ZEBeQTvhyHctP/yb4nW5YG7xjLErraDLodS0x/ZXyaIrN0BhWcrwuKgVj2TVPrY9VhGCn3we7OU17F+7deG5PRsmc/kuhFVy45A/V+k0YURH7bS4Nwm38Rx7SPWwfRQpd6XVM2t8QT45Pk/l2NtxDTRcMI/3SsA=; 24:XnSyECIxyGIloNexHlLZ5Ix9IKuFVjoGIha5cIwMfY3C6UflOeycHQjHeHFVDmFzRx91hK1nTLNC5kiX4C8R6X3xmGx87IH1uqg5cSFT3OQ=; 7:OCfIFVwdY5bFV/TU/UQYyh7R9+F7dTysZ4iMZzKuP3J47rjacwoE5hye+4eu2SflAZLZp4KFAIspX2xRKwp6y2/V+nY8s6nmE/CADyIDh9QcPMl2uSACDcYgIha3veAs496gTXOIeBvLNNUG68xx3oLwmUQNGWfRl6f3PsNfcLxRMop8+34uTUgcjmr6jNBTt6Sk/wv0AEGyjTBT517PD+EPOmvkMQv0p759jtETJUlobZbkUwaffek7LTDTXIMs SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cypress.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2017 08:11:56.3992 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 17461699-e13e-47f8-2624-08d5406ed894 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 011addfc-2c09-450d-8938-e0bbc2dd2376 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR06MB3224 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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>; }; };