From patchwork Wed Jun 7 09:08:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 103221 Delivered-To: patches@linaro.org Received: by 10.140.91.77 with SMTP id y71csp1831902qgd; Wed, 7 Jun 2017 02:08:42 -0700 (PDT) X-Received: by 10.25.196.142 with SMTP id u136mr2817737lff.81.1496826522757; Wed, 07 Jun 2017 02:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496826522; cv=none; d=google.com; s=arc-20160816; b=At6Tyf+JU+hjv2IqEPL5NuoAAlu/NxTlY8unF3O4He0yGUxaXuipkQT8gpeXAjjUOH 0e/aFl9cxiiJdz1kJNuy7PsWumLUaa52brSxSQRB6O6ePMoKVdKpoXYuVEZh4JcK2KR/ 8T98YAgtRfg1VFvvLzqJbaDGme43DkLuYUxg7QuQ8tq5MBBWS9VE5EcwtnRwwzAMsKC7 jfyO7fSgBBwiV4BRY2CC8pIIvt/hF2cmYdzL00T2L4e+Xsh8qN85y1KXSGdtxlLnd1g9 ygILbMSMboPPSDTU/52VMcv25NbdFYr7zDNaVXGK+bgFvr6owKQcNE68JGOQYhTbZK/m yuYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=12QqwA9HzysarlrKtUi/7nKYkXBx1B9XpZTZUOxgZyE=; b=nOVjR6ZmK9vCLs8hBn/MKYdkU1DnrCx6G3fGBI4P1552nB2HsTiqP0iocPFhTo6VSa Qb7rsQSUKMcer6W/UKEVh6m3PA2ucHkYwO6Mj86S/izcQg5ja99958V4lNMf/DKTKNUm u9NsOPwERog6HXnUdWNhqeBcYwa5qXTLAJ5l3v60R+RoQ4S4A9SKC81XU2LTOh8fUrLq n/eTT3rSY7JLe23okE+TL9HbdWPLUwqZ+/TTvqkagHAyRFxAjYhVj0Z56U2Q1HVPKpEH WNQBvJ3VLqzCE0NtyiDd6RWEDP59Gi13R4LuWtr684fekZDvWbOPrMK9hFHNQOjnaNiy 56IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::231 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-lf0-x231.google.com (mail-lf0-x231.google.com. [2a00:1450:4010:c07::231]) by mx.google.com with ESMTPS id z9si680219lja.242.2017.06.07.02.08.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Jun 2017 02:08:42 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::231 as permitted sender) client-ip=2a00:1450:4010:c07::231; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::231 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x231.google.com with SMTP id p189so3035194lfe.2 for ; Wed, 07 Jun 2017 02:08:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=12QqwA9HzysarlrKtUi/7nKYkXBx1B9XpZTZUOxgZyE=; b=NmOduDpIy2CYYWXWcxNakmg1qUhIt3AEy6cOCO1QW2jUfH2fEelKAj+kUR81PCv2pX mi/Pkn3mx1l0HrhWJExz8izbakFfbiUeVM1a4b2l7+DGiFe59/BQrhHDSDOHM2FIqiG0 sVtQZ6pUqt8tasEsXQxbGgFKLjQJcNMOQOfy8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=12QqwA9HzysarlrKtUi/7nKYkXBx1B9XpZTZUOxgZyE=; b=Kz9KvoFV2a705NPlgPkhimVdOEyOaTwUjeeBW+B0ZpMJZNQMkPU33pecjTkfZKViHy wexpTF37SveQ8FC9E/J74lhzW4tiW03MSLyV3xAbt3rK1nZMOeEAYW1h4L8vAWSkYhFq vMdc2oDWYqvOLGy5HXusHZD+s7ZvWMD13TYV+HbMJV/Y/OhLuUkpG+LgtqX3N8LM3p8r eBjBKDGNzx3gapTvUGfrtFplElWTS+/mb/8Df/GkkkbFK00KiWX5+Yg4ctS63LkQWpJg jWxO/g0BQERi3aW4loau0JTAet/R7Zc8/LDXv20af4AdAmRYr0v7z1FFhdH34nRS8uqs dVXw== X-Gm-Message-State: AODbwcAgrS/fwvbrm06hU5fGdWxOBG9HN7eZyI7N3b8j6Y+WY3E10q4Z 2LhDCpeCIJ2fIc7a8gw= X-Received: by 10.46.5.82 with SMTP id 79mr6796426ljf.3.1496826518273; Wed, 07 Jun 2017 02:08:38 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-158-174-22-67.NA.cust.bahnhof.se. [158.174.22.67]) by smtp.gmail.com with ESMTPSA id e36sm226271lji.49.2017.06.07.02.08.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jun 2017 02:08:37 -0700 (PDT) From: Ulf Hansson To: Marcel Holtmann , Gustavo Padovan , Johan Hedberg , linux-bluetooth@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Daniel Lezcano , Wei Xu , Rob Herring , John Stultz , Satish Patel , Arnd Bergmann , Olof Johansson , Ulf Hansson Subject: [PATCH 1/3] dt-bindings: net: Add binding for the external clock for TI WiLink Date: Wed, 7 Jun 2017 11:08:20 +0200 Message-Id: <1496826502-1339-2-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496826502-1339-1-git-send-email-ulf.hansson@linaro.org> References: <1496826502-1339-1-git-send-email-ulf.hansson@linaro.org> The external clock is provided to the TI WiLink combo chip and it's needed for any of the transport interfaces. However let's make it optional to avoid breaking existing platforms that yet doesn't specify the clock. Fixes: ea452678734e ("arm64: dts: hikey: Fix WiFi support") Signed-off-by: Ulf Hansson --- Documentation/devicetree/bindings/net/ti,wilink-st.txt | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.7.4 diff --git a/Documentation/devicetree/bindings/net/ti,wilink-st.txt b/Documentation/devicetree/bindings/net/ti,wilink-st.txt index cbad73a..3404a4a 100644 --- a/Documentation/devicetree/bindings/net/ti,wilink-st.txt +++ b/Documentation/devicetree/bindings/net/ti,wilink-st.txt @@ -22,6 +22,10 @@ Optional properties: - enable-gpios : GPIO signal controlling enabling of BT. Active high. - vio-supply : Vio input supply (1.8V) - vbat-supply : Vbat input supply (2.9-4.8V) + - clocks : Must contain an entry, for each entry in clock-names. + See ../clocks/clock-bindings.txt for details. + - clock-names : Must include the following entry: + "ext_clock" (External clock provided to the TI combo chip). Example: @@ -31,5 +35,7 @@ Example: bluetooth { compatible = "ti,wl1835-st"; enable-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; + clocks = <&clk32k_wl18xx>; + clock-names = "ext_clock"; }; }; From patchwork Wed Jun 7 09:08:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 103219 Delivered-To: patches@linaro.org Received: by 10.140.91.77 with SMTP id y71csp1831885qgd; Wed, 7 Jun 2017 02:08:39 -0700 (PDT) X-Received: by 10.46.32.158 with SMTP id g30mr5661709lji.39.1496826519863; Wed, 07 Jun 2017 02:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496826519; cv=none; d=google.com; s=arc-20160816; b=YloNDCeSo5cW+2tkcj21H8cuG6KztLhoGJiyWPi3G2VNdSS/ux6nmKAPf8VtHr2Amp gLfujeNJ7MPC3lwe3B0Jsp4XfyHykRQ5ts6GPshva5OoSqR/GQFjAvkwOExxvu1NwI6G CaCx0YxS0Ybn7l2UlNk8x4lAWhurXBETepaBlu7E0d7y/ZtzK1te+DaVVtU1ACQhtoeM D5kiTwgZKdsNF9kOqxvIvZ/YJqbVDul9nqYdororTTtu48hO1EZeRVoDLAofiPyh3cVh xRCQjTMHyDo/zuMMhlUDcM6ePI9+2J0lZwrUGPvaXyc/Ik0/eYAHa5rlJTGs/wmnuMH7 FBMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=OxSLad4lm1TXC9SYRl5pPfrM5e1J/Qyh417cFN0Nsfg=; b=gWCIrPKeZHg+eckkDNLNo8Y/6rh4giGeAe2C/Pb99RzsirUvUp+a0uZ6epqwiR7CO9 M+uUGNOtYKy/oepkyQTpEpMtPhi0Kkp4yfUmFhtBfRzKNm79dtIPbMxUw/+0M17e4giU C9mh4kwtCuphm0xYH6lVxnSqD6S1JxnNe6Lhjuaxbb6i2IXsTuiqo7Yxe+faTY9kzBzl Lv5iC2ksQ/xCrqy8oUfiA3sDvgkDVJyQkC2YROPg9PGqM+unFdvky7h+D97I6FFW+mxF A3+N77ph8bmrLmUZ3AFzTeHGs0HTWXoR93lzWvtQKWkgdsyP1savjcbQ0Cz/SyC/demv EKiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::22f as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-lf0-x22f.google.com (mail-lf0-x22f.google.com. [2a00:1450:4010:c07::22f]) by mx.google.com with ESMTPS id t2si670127ljd.109.2017.06.07.02.08.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Jun 2017 02:08:39 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::22f as permitted sender) client-ip=2a00:1450:4010:c07::22f; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::22f as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x22f.google.com with SMTP id o83so3022584lff.3 for ; Wed, 07 Jun 2017 02:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OxSLad4lm1TXC9SYRl5pPfrM5e1J/Qyh417cFN0Nsfg=; b=G4n5jeUnW2tYr3HJRhNqXE6vwDcJrn9a5avgNnqnA+coaQfUqcV0bdTABJn8y9np90 rF26K/cC0Sj15aUYjwq5zSYKbvPOA1Lnx03XiAJmRL1FlrKplgif/nLlqWthqOAaDHWD T5eZV0C4HrzVtpSLaph4JVRUcBzkIyV8nVe8w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OxSLad4lm1TXC9SYRl5pPfrM5e1J/Qyh417cFN0Nsfg=; b=OneNEJ++Tr1qGOcS1+9LSL1JYgvOpcMA84vIR0+w5qgFKNA9rA6SbKNUAUjfL9e69P TY/hjKPgIVjx/yrmBeWnlG1ViqL55DjqLlHQ24bEmqMbpxEmkgH2ySXS/JESU5Y3ZnGH BWrVIe54nrfI7Lq2pn49I8JvdrXbO8AD+Zg4ujU6akffkkOf9scPcKycsF6/MYid0/jP vNRSk3RDjtdNVPlC42knJeL8risAn7TnNvSfEd04bNc/LKUxtrMwrgN+wDS9GRpBzwZv e43XXmmkUgkpB5qUUWRak+XZegcAHpRbu2E1b227dNvMx2P2h+gLlpNUNVLAhI5Z7KEW 3YXg== X-Gm-Message-State: AODbwcDvgMrpd34n31nszLbc3nZ3/I/Wu+fccVJE1A3O6eL+iglYQnkZ 9v3Rt5gvY7/K+gpx28A= X-Received: by 10.46.83.83 with SMTP id t19mr9177754ljd.82.1496826519483; Wed, 07 Jun 2017 02:08:39 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-158-174-22-67.NA.cust.bahnhof.se. [158.174.22.67]) by smtp.gmail.com with ESMTPSA id e36sm226271lji.49.2017.06.07.02.08.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jun 2017 02:08:38 -0700 (PDT) From: Ulf Hansson To: Marcel Holtmann , Gustavo Padovan , Johan Hedberg , linux-bluetooth@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Daniel Lezcano , Wei Xu , Rob Herring , John Stultz , Satish Patel , Arnd Bergmann , Olof Johansson , Ulf Hansson Subject: [PATCH 2/3] Bluetooth: hci_ll: Add support for the external clock Date: Wed, 7 Jun 2017 11:08:21 +0200 Message-Id: <1496826502-1339-3-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496826502-1339-1-git-send-email-ulf.hansson@linaro.org> References: <1496826502-1339-1-git-send-email-ulf.hansson@linaro.org> Add support to manage the external clock provided to the WiLink combo chip as it's needed for any of the transport interfaces. To avoid breaking platforms not yet specifying the external clock, we make it optional. In case the clock is successfully fetched during ->probe(), let's manage it via the ->open|close() callbacks, to make sure the device get properly powered on/off. Fixes: ea452678734e ("arm64: dts: hikey: Fix WiFi support") Signed-off-by: Ulf Hansson --- drivers/bluetooth/hci_ll.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/bluetooth/hci_ll.c b/drivers/bluetooth/hci_ll.c index adc444f..68f3d16 100644 --- a/drivers/bluetooth/hci_ll.c +++ b/drivers/bluetooth/hci_ll.c @@ -48,6 +48,7 @@ #include #include #include +#include #include #include @@ -84,6 +85,7 @@ struct ll_device { struct hci_uart hu; struct serdev_device *serdev; struct gpio_desc *enable_gpio; + struct clk *ext_clk; }; struct ll_struct { @@ -146,8 +148,12 @@ static int ll_open(struct hci_uart *hu) hu->priv = ll; - if (hu->serdev) + if (hu->serdev) { + struct ll_device *lldev = serdev_device_get_drvdata(hu->serdev); serdev_device_open(hu->serdev); + if (!IS_ERR(lldev->ext_clk)) + clk_prepare_enable(lldev->ext_clk); + } return 0; } @@ -181,6 +187,8 @@ static int ll_close(struct hci_uart *hu) struct ll_device *lldev = serdev_device_get_drvdata(hu->serdev); gpiod_set_value_cansleep(lldev->enable_gpio, 0); + clk_disable_unprepare(lldev->ext_clk); + serdev_device_close(hu->serdev); } @@ -720,6 +728,10 @@ static int hci_ti_probe(struct serdev_device *serdev) if (IS_ERR(lldev->enable_gpio)) return PTR_ERR(lldev->enable_gpio); + lldev->ext_clk = devm_clk_get(&serdev->dev, "ext_clock"); + if (IS_ERR(lldev->ext_clk) && PTR_ERR(lldev->ext_clk) != -ENOENT) + return PTR_ERR(lldev->ext_clk); + of_property_read_u32(serdev->dev.of_node, "max-speed", &max_speed); hci_uart_set_speeds(hu, 115200, max_speed); From patchwork Wed Jun 7 09:08:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 103220 Delivered-To: patches@linaro.org Received: by 10.140.91.77 with SMTP id y71csp1831895qgd; Wed, 7 Jun 2017 02:08:41 -0700 (PDT) X-Received: by 10.46.75.1 with SMTP id y1mr9080886lja.87.1496826521354; Wed, 07 Jun 2017 02:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496826521; cv=none; d=google.com; s=arc-20160816; b=p5ka+w9/+JcvcO0zFbNZasOgzDf/dykHjxZNhjqDF2Wvf3U0nUXFI4fsDtFp62ki1r 8E+aJ1G3f6mr4HxJUsAwj7LM3jc/U5xE5zv8IQcHKvTCtxHnMfQS0W70tXAAWen4nm5V KNNb+DfD4CLHHvqxaWq8zxZ+cR5FDFZ1v2M8PRX78i90F5a1tvboXjiSl11RR+OtB8zz 7NGof/Cyl/Lp55qtQwV/KIBo/W026lnTqPzeFfSIk4aS9E2SWbvjSwNp8jCk/+dFODpS iOnW43Qot6YdVsskwjqcgeW8mZpY/K7N4a9gJBom+SYxmmz7Ahekz9+YlAbDLSyyaOC3 1E6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=9ijQQ7yUjBojSgmikvay+Ed5zyB8qRfU87vq59UJz/4=; b=Z1UVdBCjXhoy35FQuGMgiuOEtt1XfGz34LHjABmOocD005VKEqPQDvryYw5qRBbxIA XcAOEEw7HDWI7qbLI/9oHrfp7la7ksDxy/iTGpN006J/hrQgcP9mRv2ga0ifi7fPEdKW wesqq+CwOsgGq22/9SQbDiwEB0TA+59ARTNPgDaYOfuoNkEWOPyfFmWOl/7kuamTXyHY wHUyrxYgYMf+biCSJ4YtwY1oG9gCA2fpggnsqfjqi80ixtaAudBCcS2RckxHROCwk0lj z2M8K8K8G1MB5DZWF/ChoAU8uXtTqqkrJbzkwiAdRC0GMOp9QpJqPqGjz+Hi3RWCPNzX QS6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::22f as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-lf0-x22f.google.com (mail-lf0-x22f.google.com. [2a00:1450:4010:c07::22f]) by mx.google.com with ESMTPS id j73si705653lfi.160.2017.06.07.02.08.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Jun 2017 02:08:41 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::22f as permitted sender) client-ip=2a00:1450:4010:c07::22f; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::22f as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x22f.google.com with SMTP id a136so3054492lfa.0 for ; Wed, 07 Jun 2017 02:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9ijQQ7yUjBojSgmikvay+Ed5zyB8qRfU87vq59UJz/4=; b=WJcV3Cj6yrwoHJ9XUO3//PdrLH7fiNiETxX0GTtSRLPVbmNY/sQHLwCvoO06P4rEia rVAcxidBcgu9MApj8iqvvWYGK9+6df9N44tmx/2e8r/MrBdD5S+0aUxeabkC6MlrVxLb XJknQzcFyWYr5ygU20u8szC9WxRdte12AUEX4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9ijQQ7yUjBojSgmikvay+Ed5zyB8qRfU87vq59UJz/4=; b=KEeoLFBDjgV45pXBHt/vNFMHCpqbGBh0gfwOVm8jqt4dqrdrAA7QYuvbO2vwZ19kfd SFeISlLNTkpr5yidAXrWRUPNJvhqpIECiu8ONBWKcEmJPszhrUrnlWakYi9H0CzfQ3V6 AoANaLQA+LJQZcxjc0aH+bpKtU/EkvpQlTZ0FG5nwjNKDtBVgoNI29iRxYNxrg3/pctW yzBjEhtA8qBWVrf1Z1G9UUCSjTpHvRg/y1TBTMaMWJEuSgnWBhFv7QUUV/g4BqOyxGZ9 irZGD67RnyMY/HrptRNFcNfEMGzBhZhWtMYc758KVFRjfp6JEfwFOlSJNMRkPoCt2JJG MCcQ== X-Gm-Message-State: AODbwcCw64Mk8Y3P7wp3L7HbVa7n4XhgpKq0KXQzfHZcSvVHYX8q/frm F2IVbupGwe8h7JTBH30= X-Received: by 10.46.32.66 with SMTP id g63mr9174554ljg.51.1496826521027; Wed, 07 Jun 2017 02:08:41 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-158-174-22-67.NA.cust.bahnhof.se. [158.174.22.67]) by smtp.gmail.com with ESMTPSA id e36sm226271lji.49.2017.06.07.02.08.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jun 2017 02:08:40 -0700 (PDT) From: Ulf Hansson To: Marcel Holtmann , Gustavo Padovan , Johan Hedberg , linux-bluetooth@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Daniel Lezcano , Wei Xu , Rob Herring , John Stultz , Satish Patel , Arnd Bergmann , Olof Johansson , Ulf Hansson Subject: [PATCH 3/3] arm64: dts: hikey: Add external clock to the Bluetooth node Date: Wed, 7 Jun 2017 11:08:22 +0200 Message-Id: <1496826502-1339-4-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496826502-1339-1-git-send-email-ulf.hansson@linaro.org> References: <1496826502-1339-1-git-send-email-ulf.hansson@linaro.org> To make the TI WiLink chip work again for Bluetooth, let's add the missing external clock to the Bluetooth node, such the driver can deal properly with it during power on/off. Fixes: ea452678734e ("arm64: dts: hikey: Fix WiFi support") Cc: Wei Xu Signed-off-by: Ulf Hansson --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index 49f6a62..5cdfe73 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -141,6 +141,8 @@ bluetooth { compatible = "ti,wl1835-st"; enable-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; + clocks = <&pmic>; + clock-names = "ext_clock"; }; };