From patchwork Thu Jan 13 08:55:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 12712472 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BD51C433EF for ; Thu, 13 Jan 2022 08:58:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233299AbiAMI6m (ORCPT ); Thu, 13 Jan 2022 03:58:42 -0500 Received: from mail-dm6nam11on2047.outbound.protection.outlook.com ([40.107.223.47]:10080 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233214AbiAMI5s (ORCPT ); Thu, 13 Jan 2022 03:57:48 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ECKn7KfAiffSJ8bpNZludrm+K8pAc/mO3AZi7AZMYDK7DEbFxPVO3ttFs5oZ1/gyUc8yghLMhr+5zEEmrmKY2v/WvnM8c3iknOs2o3apje7HOPY6/O7VU53yUT+zyIlpWdsLwWCX4A9XpwH+ILCYJNlFlplKFydYdEKr9tPKCYJgtxI2OLQRQR4ytZSlZNhgLCucTUXNmgufjPJk3ZwL8FjegusPUzJrefW5f5zbcj8wn3U45CXCQL8/Vu7JkPFEFllBRzceyKbecIjIJDQnfYlWf9m4xEnuNXlVbxz4e5oNfIYX9JxHhP9Aite3AiSsbnCWVfuSfN2cUUX9/hCuRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ApN0805FqwaTDZhmNkzwiulmD6L+UBqGdb9PdCHBUZg=; b=EmYrE+0m6Tpv8QSANAcDSYRCSTzGguGJWgBDA+9NT+VZeRJjMUUVN2JQAMO8dIkVnAvOJZfxS9WEsXyzooxevABw4wQuK8VqIfRkcgnDdo6GJf/59Q3vLqCAhkJtDP2tqC+eAZ3U6pl+Y4fbO8BJ8e7bSIb3sPwvzKykJqlwL+U22yvLO5tuC5sSA6ZQF87/8Jty1oxJshJeIDLlsFIr/CrmyiHAphknxVJ6yIGJPp1EoBWEhMY/+DVzoczD2JTxR2WAFkcgtPFJ143NUtc13/7eFE8shJans4wqIZgbBOqMuBNoIPfKd/UUNx9bMsThmR+5CQvdlIapcQ5weJm7yA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ApN0805FqwaTDZhmNkzwiulmD6L+UBqGdb9PdCHBUZg=; b=PVne9K+Tic62BzXrCvH9uUY1AK9OMFMqF/3tt1huS0f8SbMKkcHm/J1mqhCcV1is5ARxbVFP5/cTMv47TLk/E0bC0LgwAeFoVw4JPIuqicVXc/4+qV5qT+Np9ZVLEUeD1uCHfOatV7Wl/bbEwV+Z09NfqCebT6QGQNIiAuC5cDg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=silabs.com; Received: from PH0PR11MB5657.namprd11.prod.outlook.com (2603:10b6:510:ee::19) by CY4PR1101MB2071.namprd11.prod.outlook.com (2603:10b6:910:1a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4867.9; Thu, 13 Jan 2022 08:56:32 +0000 Received: from PH0PR11MB5657.namprd11.prod.outlook.com ([fe80::d031:da9e:71a:73e4]) by PH0PR11MB5657.namprd11.prod.outlook.com ([fe80::d031:da9e:71a:73e4%5]) with mapi id 15.20.4888.011; Thu, 13 Jan 2022 08:56:32 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 27/31] staging: wfx: map 'compatible' attribute with board name Date: Thu, 13 Jan 2022 09:55:20 +0100 Message-Id: <20220113085524.1110708-28-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220113085524.1110708-1-Jerome.Pouiller@silabs.com> References: <20220113085524.1110708-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SA0PR11CA0117.namprd11.prod.outlook.com (2603:10b6:806:d1::32) To PH0PR11MB5657.namprd11.prod.outlook.com (2603:10b6:510:ee::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3cef6f82-2b05-48e1-4117-08d9d6729881 X-MS-TrafficTypeDiagnostic: CY4PR1101MB2071:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MuVgBbQ+gwipZgrJpyvyRYSPW5GMySC7oyC0d2laiMjbBVopNbIRH3WykSPqy5xIyQ/lM9PiIIitFTkjEddcfe+09+uTjCsCezGyanCeG/hkEpU4p4KjgNCCozV1xx5Lb5RyH48BUkjFUq2Z5wjaZkb42kTz4+uzGJ5r34JUJBB9wEU0uF8elEXXqRSvMRjMXxS8HGB2KaoF/b8Z2ifdnuvmwTeFAMJvAzm7k+l9suozL75D/h8ThEbCG+qKzWcbpxcvs0t2nzgfH6XRsHJGvzqAkIKIEvgwMpgIp3xr9ByEL/RImRmIhPZQyOPYS66q5nWGEAYydEZqTwYn01QwEhzcsIbaRBmn1CLhsWtM0TZB/4kc6RpowIlOgftoHwdvnn1H6L5iCj3e6MO5JnzPRT+uuzqebgOveyojAolfVQxcMsV4lfbK31gdkiybKLlR0eOFwMBtvQIndI7mHY1STEJB1L4WdPbGcLE5Ap8xEsUTKqU6h9s7hKIy8bJtvnr3Upyp/LV/of/vinqvizZu/WAbOLocOe/DDqnEgcou6rZeEF1l/qYz4XtM2jWojH1+xlscp79tqWljz0DO03i6u3aGf/e4s8ijySQ2aXDnmsLlNIOdU0NAPVU9WZ4DoWFlHAeONDTjwY/RWflxwqNJWQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB5657.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(2616005)(66476007)(52116002)(8676002)(6486002)(4326008)(38100700002)(8936002)(83380400001)(6506007)(107886003)(66556008)(6666004)(36756003)(508600001)(2906002)(5660300002)(6512007)(1076003)(86362001)(186003)(316002)(66946007)(54906003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?FbBIp9Jzvsykm8v7BBFdysMYPlAi?= =?utf-8?q?sDm5g9TKQD4TcVLbpUjveU/8cN5Obocc4nI5kr/2GGUpoZyDmjMwnYlLo70XU7Sf7?= =?utf-8?q?iw+6P3yYjRTH1iYV7ffRlwVYwuqwpFKoVC148tca9eK/zYP+FDxdnpkHKgmxYJzSo?= =?utf-8?q?HZUM/05duYUifWcjDwjfHWYO0ImCLpF9jYKLX0jEh6fAG7mftnO8VKlbGk7PxPjOK?= =?utf-8?q?Dvs3sqf9bhjYHmYHYtNwHZiugFXwzhozWAtYlw5T6lyPWXszUi+15enopK60d6pZx?= =?utf-8?q?8WighLBiegrcBKel1SQIjfRrQx7KfWKy6zfOSZnl48zGeRqr2GDzR4l2OCxS3G/l8?= =?utf-8?q?TU1XvfZGE95qtpCNatov5NYHFkFT3UsjGb5K8gPBfWqcC1q3RVFtl+FPen6p8IDI1?= =?utf-8?q?wucZujwcpC1pm3ujmP//mP8+8F9eTOaagY8Hgh8p243PMjY9EYaxuOmxve+4hgrSK?= =?utf-8?q?GZENjm3RoTq3y6uczBSDCXbwukrz9lbJOoZ6GPo2T3Th5RW/2dhIbPtWe1fFvH7nh?= =?utf-8?q?r3orGF/b+VlK+6o1ppqJ+rHiFmd4SNyGJlQ5ngysS1C9qAKj4i+TLclH6bZp+8Q8I?= =?utf-8?q?U1Stm06z+eOlrfEmQuMkPUNXCUHcIv0UibmfiUFQgcuQlfN45jEBnVVY91PLZcyNp?= =?utf-8?q?lytR/ZWHmqEFsVgeSJvCvN8tHcCae6ABW7XAu1SKf27kH5igCKVWV2bo1cvDWK/8W?= =?utf-8?q?2wg7Ni7eHCpmdZgpVTWPRlgtmwufTJN42jTKzSRlm4B0MDsH5uZedotJAyT8LEOA0?= =?utf-8?q?m0UTmdPawBpM1BVif936XVcRa1lfDyXzDeHMTP3+u6Jc+c/6yTxWbwxieg1Q/JhdQ?= =?utf-8?q?0P67EFoTKgC6a2ADzzcHVmph1bM6HPy2odfF31/VCb+aWCwSF0/D1YKPF2liRMHyd?= =?utf-8?q?AvPZ9v7hkMGYWQS1XIH7sVDxNg4yNZ4Jz7+5R+tLy5dcOAWJGv+nkt98UQdCf3x7v?= =?utf-8?q?fdVvM/bYIvJP5wqn2xqYdqINQ68QwYcqExrXdJDdcuR9lKqA1XTAHxi78aBfN1gS+?= =?utf-8?q?U8HVQEZnKKnS2+ExAft4GuspDJXvRQANY2LzXF2Pfi6XMswCvR+JfrBBuEXFCZhsg?= =?utf-8?q?FDZr5TzEsyb9G+5bLSt0HNFH2bJtRSdNopWuOnwglBpSkukAMA5TT2DgadxnLzL4D?= =?utf-8?q?woGZskbFO78nv+N1I+NVKQ4rEFc77RvNsaZWJ9X3FUUZzSZb+ifrY10CMlLArHojD?= =?utf-8?q?kucTuu+fY1w5A0Qu9bsyjUG3MTrMzWjlEfVIdqxd1ZPOcd8lhrpNJWUmyorlD1n7i?= =?utf-8?q?XgCb+3sEw2odoafQVzH7VUXfNE2JldEjlanGRbZArymsN8oqYyo2bvTN9BVycNqFw?= =?utf-8?q?sl7YdPOcP3inoQQwRam/v2SNysSO0kdgcmEr9nSgZmduPyTiEnubVhMqX6EAzzw4b?= =?utf-8?q?UbS0ps+40jnLclSCytR2/HKv1iI22k7ny4Spkq4LQa0uCHRzgn/kGYXOuAvicJBjm?= =?utf-8?q?LXfj20gen39q2uzZMBJPErxHdgFnNYR5YFgectufZdDYIywe1Q7m0HHbVm4tI/2be?= =?utf-8?q?mzq7m7C6PywKs04+uMNmBoySXtFlAu4PMn0HbKoAI78/sfhosZSFvcOu6K6rp6H6s?= =?utf-8?q?1jYNBZ2hrW/2vkMaBfTVi7RQlxpp9zNcfTuM4gOQZl+2sRAi9xlt7E=3D?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3cef6f82-2b05-48e1-4117-08d9d6729881 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5657.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2022 08:56:32.5046 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: nKzeNH02Y1ya2RE2gOZnPNdTrm28qyHvHgspz1AwPW+8U+pHtbjChy1ukXltomz3gMzB6UTMx8sR8RDKo4jVNQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1101MB2071 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Jérôme Pouiller "WF200" only designates the chip. To make a WiFi board, the chip must be associated with an antenna. The antenna configuration is located in separate files (aka PDS files in Silabs wording). Currently, user has to write in his DT something like: compatible = "silabs,wf200"; config = "brd4001a.pds"; It is far better to embed a list of known boards (chip + antenna) in the driver. So the user just have to declare: compatible = "silabs,brd4001a"; This patch add the configurations for the evaluation boards sold by Silabs. To provide a full plug-and-play experience, the associated PDS files[1] will be available in linux-firmware. This patch does not break compatibility with existing setups. Signed-off-by: Jérôme Pouiller --- .../bindings/net/wireless/silabs,wfx.yaml | 11 ++-- drivers/staging/wfx/bus_sdio.c | 35 +++++++++++-- drivers/staging/wfx/bus_spi.c | 52 ++++++++++++++++--- drivers/staging/wfx/main.h | 1 + 4 files changed, 83 insertions(+), 16 deletions(-) diff --git a/drivers/staging/wfx/Documentation/devicetree/bindings/net/wireless/silabs,wfx.yaml b/drivers/staging/wfx/Documentation/devicetree/bindings/net/wireless/silabs,wfx.yaml index 510edd12ed19..44aeba0f7276 100644 --- a/drivers/staging/wfx/Documentation/devicetree/bindings/net/wireless/silabs,wfx.yaml +++ b/drivers/staging/wfx/Documentation/devicetree/bindings/net/wireless/silabs,wfx.yaml @@ -39,7 +39,12 @@ description: properties: compatible: - const: silabs,wf200 + items: + - enum: + - silabs,brd4001a # WGM160P Evaluation Board + - silabs,brd8022a # WF200 Evaluation Board + - silabs,brd8023a # WFM200 Evaluation Board + - const: silabs,wf200 # Chip alone without antenna reg: description: When used on SDIO bus, must be set to 1. When used on SPI bus, it is @@ -87,7 +92,7 @@ examples: #size-cells = <0>; wfx@0 { - compatible = "silabs,wf200"; + compatible = "silabs,brd8022a", "silabs,wf200"; pinctrl-names = "default"; pinctrl-0 = <&wfx_irq &wfx_gpios>; reg = <0>; @@ -115,7 +120,7 @@ examples: #size-cells = <0>; mmc@1 { - compatible = "silabs,wf200"; + compatible = "silabs,brd8022a", "silabs,wf200"; pinctrl-names = "default"; pinctrl-0 = <&wfx_wakeup>; reg = <1>; diff --git a/drivers/staging/wfx/bus_sdio.c b/drivers/staging/wfx/bus_sdio.c index 5c45ccd85a7d..361585763f30 100644 --- a/drivers/staging/wfx/bus_sdio.c +++ b/drivers/staging/wfx/bus_sdio.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -20,7 +21,28 @@ #include "main.h" #include "bh.h" -static const struct wfx_platform_data wfx_sdio_pdata = { +static const struct wfx_platform_data pdata_wf200 = { + .file_fw = "wfm_wf200", + .file_pds = "wf200.pds", +}; + +static const struct wfx_platform_data pdata_brd4001a = { + .file_fw = "wfm_wf200", + .file_pds = "brd4001a.pds", +}; + +static const struct wfx_platform_data pdata_brd8022a = { + .file_fw = "wfm_wf200", + .file_pds = "brd8022a.pds", +}; + +static const struct wfx_platform_data pdata_brd8023a = { + .file_fw = "wfm_wf200", + .file_pds = "brd8023a.pds", +}; + +/* Legacy DT don't use it */ +static const struct wfx_platform_data pdata_wfx_sdio = { .file_fw = "wfm_wf200", .file_pds = "wf200.pds", }; @@ -167,14 +189,18 @@ static const struct wfx_hwbus_ops wfx_sdio_hwbus_ops = { }; static const struct of_device_id wfx_sdio_of_match[] = { - { .compatible = "silabs,wfx-sdio" }, - { .compatible = "silabs,wf200" }, + { .compatible = "silabs,wf200", .data = &pdata_wf200 }, + { .compatible = "silabs,brd4001a", .data = &pdata_brd4001a }, + { .compatible = "silabs,brd8022a", .data = &pdata_brd8022a }, + { .compatible = "silabs,brd8023a", .data = &pdata_brd8023a }, + { .compatible = "silabs,wfx-sdio", .data = &pdata_wfx_sdio }, { }, }; MODULE_DEVICE_TABLE(of, wfx_sdio_of_match); static int wfx_sdio_probe(struct sdio_func *func, const struct sdio_device_id *id) { + const struct wfx_platform_data *pdata = of_device_get_match_data(&func->dev); struct device_node *np = func->dev.of_node; struct wfx_sdio_priv *bus; int ret; @@ -216,8 +242,7 @@ static int wfx_sdio_probe(struct sdio_func *func, const struct sdio_device_id *i if (ret) return ret; - bus->core = wfx_init_common(&func->dev, &wfx_sdio_pdata, - &wfx_sdio_hwbus_ops, bus); + bus->core = wfx_init_common(&func->dev, pdata, &wfx_sdio_hwbus_ops, bus); if (!bus->core) { ret = -EIO; goto sdio_release; diff --git a/drivers/staging/wfx/bus_spi.c b/drivers/staging/wfx/bus_spi.c index 417bb74c88b9..9aa52d76cdda 100644 --- a/drivers/staging/wfx/bus_spi.c +++ b/drivers/staging/wfx/bus_spi.c @@ -23,12 +23,36 @@ #define SET_WRITE 0x7FFF /* usage: and operation */ #define SET_READ 0x8000 /* usage: or operation */ -#define WFX_RESET_INVERTED 1 +static const struct wfx_platform_data pdata_wf200 = { + .file_fw = "wfm_wf200", + .file_pds = "wf200.pds", + .use_rising_clk = true, +}; + +static const struct wfx_platform_data pdata_brd4001a = { + .file_fw = "wfm_wf200", + .file_pds = "brd4001a.pds", + .use_rising_clk = true, +}; + +static const struct wfx_platform_data pdata_brd8022a = { + .file_fw = "wfm_wf200", + .file_pds = "brd8022a.pds", + .use_rising_clk = true, +}; + +static const struct wfx_platform_data pdata_brd8023a = { + .file_fw = "wfm_wf200", + .file_pds = "brd8023a.pds", + .use_rising_clk = true, +}; -static const struct wfx_platform_data wfx_spi_pdata = { +/* Legacy DT don't use it */ +static const struct wfx_platform_data pdata_wfx_spi = { .file_fw = "wfm_wf200", .file_pds = "wf200.pds", .use_rising_clk = true, + .reset_inverted = true, }; struct wfx_spi_priv { @@ -175,6 +199,7 @@ static const struct wfx_hwbus_ops wfx_spi_hwbus_ops = { static int wfx_spi_probe(struct spi_device *func) { + struct wfx_platform_data *pdata; struct wfx_spi_priv *bus; int ret; @@ -183,6 +208,12 @@ static int wfx_spi_probe(struct spi_device *func) ret = spi_setup(func); if (ret) return ret; + pdata = (struct wfx_platform_data *)spi_get_device_id(func)->driver_data; + if (!pdata) { + dev_err(&func->dev, "unable to retrieve driver data (please report)\n"); + return -ENODEV; + } + /* Trace below is also displayed by spi_setup() if compiled with DEBUG */ dev_dbg(&func->dev, "SPI params: CS=%d, mode=%d bits/word=%d speed=%d\n", func->chip_select, func->mode, func->bits_per_word, func->max_speed_hz); @@ -206,7 +237,7 @@ static int wfx_spi_probe(struct spi_device *func) dev_warn(&func->dev, "gpio reset is not defined, trying to load firmware anyway\n"); } else { gpiod_set_consumer_name(bus->gpio_reset, "wfx reset"); - if (spi_get_device_id(func)->driver_data & WFX_RESET_INVERTED) + if (pdata->reset_inverted) gpiod_toggle_active_low(bus->gpio_reset); gpiod_set_value_cansleep(bus->gpio_reset, 1); usleep_range(100, 150); @@ -214,8 +245,7 @@ static int wfx_spi_probe(struct spi_device *func) usleep_range(2000, 2500); } - bus->core = wfx_init_common(&func->dev, &wfx_spi_pdata, - &wfx_spi_hwbus_ops, bus); + bus->core = wfx_init_common(&func->dev, pdata, &wfx_spi_hwbus_ops, bus); if (!bus->core) return -EIO; @@ -235,16 +265,22 @@ static int wfx_spi_remove(struct spi_device *func) * stripped. */ static const struct spi_device_id wfx_spi_id[] = { - { "wfx-spi", WFX_RESET_INVERTED }, - { "wf200", 0 }, + { "wf200", (kernel_ulong_t)&pdata_wf200 }, + { "brd4001a", (kernel_ulong_t)&pdata_brd4001a }, + { "brd8022a", (kernel_ulong_t)&pdata_brd8022a }, + { "brd8023a", (kernel_ulong_t)&pdata_brd8023a }, + { "wfx-spi", (kernel_ulong_t)&pdata_wfx_spi }, { }, }; MODULE_DEVICE_TABLE(spi, wfx_spi_id); #ifdef CONFIG_OF static const struct of_device_id wfx_spi_of_match[] = { - { .compatible = "silabs,wfx-spi", .data = (void *)WFX_RESET_INVERTED }, { .compatible = "silabs,wf200" }, + { .compatible = "silabs,brd4001a" }, + { .compatible = "silabs,brd8022a" }, + { .compatible = "silabs,brd8023a" }, + { .compatible = "silabs,wfx-spi" }, { }, }; MODULE_DEVICE_TABLE(of, wfx_spi_of_match); diff --git a/drivers/staging/wfx/main.h b/drivers/staging/wfx/main.h index 68c665307153..fcd26b24519e 100644 --- a/drivers/staging/wfx/main.h +++ b/drivers/staging/wfx/main.h @@ -23,6 +23,7 @@ struct wfx_platform_data { const char *file_fw; const char *file_pds; struct gpio_desc *gpio_wakeup; + bool reset_inverted; /* if true HIF D_out is sampled on the rising edge of the clock (intended to be used in * 50Mhz SDIO) */