From patchwork Fri May 13 21:23:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Belisko Marek X-Patchwork-Id: 9093721 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E4951BF29F for ; Fri, 13 May 2016 21:23:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 26BC92025A for ; Fri, 13 May 2016 21:23:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3A2D620251 for ; Fri, 13 May 2016 21:23:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753536AbcEMVXY (ORCPT ); Fri, 13 May 2016 17:23:24 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34724 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750817AbcEMVXX (ORCPT ); Fri, 13 May 2016 17:23:23 -0400 Received: by mail-wm0-f65.google.com with SMTP id n129so6003455wmn.1 for ; Fri, 13 May 2016 14:23:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=XJV+kSaA6euQPegCSg1HllcKl6hpPSlPTQhxY1DcyOM=; b=t32c0k9c7TJbePjyOp4BnAd9j2AaCVucF3qA1n4w93FdP63XIRIpjZ32z4UEa605lQ m5qVGQxAxWWajBFVN49JO624RnN4EHyNjMeIYfnIdQ0MlqlLhxQMHdz+E2mVRVCAKj+k 1cUX8oEXIKKJq6dXGMr7DRHPKwKtPvDswL/PDpeTw6AOCB9DX55rvySrT5FdomvEXYtP Pdl1F/M/iFwJFc+cn1LvwO0XqIXJ1Fs+YLYvMJ8s0QuOEdUlunHFBduHzqKeIIFrwc/a gnpBe1TEkGjIygSN3I6dk7X9SZuorYbpPyUlUfWJODc9MKjZTtER5VXW6aY53+5umun5 BmAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=XJV+kSaA6euQPegCSg1HllcKl6hpPSlPTQhxY1DcyOM=; b=Tv1a9N9szIn4n0FS2XTO6hgg8/RPR0hy32u5Gsb2KjCyzjpxtlo6Y3uoi5L5QB281B QwtxYvK+D3L/A8Oe4OE7a/13hdt8J7TgkQdgcqb5HJ8E8IXvhC2qi84Plh0uC4REM77r icaFn36btSXGrHzVHlzX8A+31yDvPh2kE3V7REZyFBBCcsJO4U8rwZreTGuvR4/uKGP8 /rDIx536YainJxXQFCtqoPrXp3K4CSVAK//zBvhJetVqJMDMTBMKfZQ0W8R+7wih1dRC 8rtXA86i6TS5IqbJlhxc7B42TNfjLVydZHdKtvEVchWvgYQoCgosfjTn7fbr0/pOvblA 35SQ== X-Gm-Message-State: AOPr4FX/0bhISgfm1zHcZ7xvyv9cWUPrF5axu+Pm2e2GVbDNrt0jwR9Co1/7Ge+igoEco3DGsiVrndgXyqWDYQ== MIME-Version: 1.0 X-Received: by 10.28.4.194 with SMTP id 185mr5340604wme.11.1463174602462; Fri, 13 May 2016 14:23:22 -0700 (PDT) Received: by 10.28.4.8 with HTTP; Fri, 13 May 2016 14:23:22 -0700 (PDT) Date: Fri, 13 May 2016 23:23:22 +0200 Message-ID: Subject: 4.6-rc7 no wifi on pandaboard A2 From: Belisko Marek To: "linux-omap@vger.kernel.org" Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, I'm trying to make wifi working on pandaboard (A2). I'm trying to use vanilla 4.6-rc7 (omap2plus_defconfig) + device tree. wl21xx seems it's not probed on sdio due to the missing clk32k. I got some inspiration from omap5-evm to create simple pwrseq + define clk32k for twl6040. Not sure if this is right approach but warning about clk32k is gone with below patch: [ 2.249786] twl6040 0-004b: clk32k is not handled [ 2.258575] of_get_named_gpiod_flags: parsed 'ti,audpwron-gpio' property of node '/ocp/i2c@48070000/twl@4b[0]' - status (0) [ 2.542816] vwl1271: disabling after this change wifi it's still not working. Any ideas or anyone has it working? Many thanks. BR, marek diff --git a/arch/arm/boot/dts/omap4-panda-common.dtsi b/arch/arm/boot/dts/omap4-panda-common.dtsi index df2e356..502bf95 100644 --- a/arch/arm/boot/dts/omap4-panda-common.dtsi +++ b/arch/arm/boot/dts/omap4-panda-common.dtsi @@ -18,6 +18,13 @@ display1 = &hdmi0; }; + mmc5_pwrseq: sdhci0_pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&clk32kg>; + clock-names = "ext_clock"; + }; + + leds: leds { compatible = "gpio-leds"; pinctrl-names = "default"; @@ -388,6 +395,10 @@ vio-supply = <&v1v8>; v2v1-supply = <&v2v1>; enable-active-high; + + clocks = <&clk32kg>; + clock-names = "clk32k"; + }; }; @@ -444,6 +455,7 @@ &mmc5 { pinctrl-names = "default"; pinctrl-0 = <&wl12xx_pins>; + mmc-pwrseq = <&mmc5_pwrseq>; vmmc-supply = <&wl12xx_vmmc>; non-removable; bus-width = <4>; @@ -541,3 +553,10 @@ }; }; }; + +&twl6040 { + clk32kg: palmas_clk32k@1 { + compatible = "ti,palmas-clk32kg"; + #clock-cells = <0>; + }; +};