Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B41DEE00BC0; Thu, 17 Nov 2016 07:38:43 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.220.195 listed in dnsbl.sorbs.net] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.220.195 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-qk0-f195.google.com (mail-qk0-f195.google.com [209.85.220.195]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2728AE00B79 for ; Thu, 17 Nov 2016 07:38:41 -0800 (PST) Received: by mail-qk0-f195.google.com with SMTP id h201so26711044qke.3 for ; Thu, 17 Nov 2016 07:38:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ossystems-com-br.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization; bh=qprro6BNiUE+jHmJnJbnRDbTYW5E3WpfbKUcAbcD0Fs=; b=rtJHuue+0jTOgjcdzZp4sswsP6IplSy2nWHmkcv1cLLBWgLE72xF1N2hha8n2lelLM SsbBPqKvfYO1QHSJM0wSMlMpNWNORJDzeUmmufQEd4ZrYpNBBqIop2azv75BkGf+n92Q Go4IkIzqypXJ6VGCnbzniI9bGcIaoG6LbypmwiVshEgYPdlzl3V0gkMEpnfLR4sOBsS/ szCIOM3RLrDxPl/1dRj8shY7n344g2ErdM/7K69/uKTtkyxmEfDkVP9O+e21OLVQcJWR 97IHqL4y5znw6t/9QTILzqgQDAUta4+Bez/Ndar4p5m2Ev3BHLbtifSylzIgK0GjSW48 4Gog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization; bh=qprro6BNiUE+jHmJnJbnRDbTYW5E3WpfbKUcAbcD0Fs=; b=E4SiWaZXTo7wejykVjzDYKmTRBGuB2Soc7i3siBbxV9TWn6O/JDo7EM62FLi84Gtjn aR+ZMIkxxBATZwejeqYqLiw4upbXKLtRZiBQYT1BFGqQdKvdHslEoPqF2MaJH1PlYXay IK/zLpVZncfhrNl4IWTZPSbx8VdW5DBDQ1d3s7qSrH2/6XNWFAO9XaAfEM2slBo2Rf+5 6o0iAm4d0s0V60zPvtacc1SoN0dbQrog53HfgSfwcGPK47WmXeAZ/Td0loDp+xGVqoBL qiquRJezS8FQHC06ThfwNnzWGcS314cL+vh8lphE/hipHkRVcZiQsUv6P77Dk/tnymAx hlig== X-Gm-Message-State: AKaTC00fkEP+pdFu/fuQVVEmRxXswHCLCO9W8gnx7b4QZLWZJIWBfbRoVFRaSqqgbNppuA== X-Received: by 10.55.136.4 with SMTP id k4mr3823866qkd.57.1479397120687; Thu, 17 Nov 2016 07:38:40 -0800 (PST) Received: from monster.lab.ossystems.com.br ([181.220.123.3]) by smtp.gmail.com with ESMTPSA id y200sm1702579qkb.37.2016.11.17.07.38.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Nov 2016 07:38:39 -0800 (PST) From: Fabio Berton To: meta-freescale@yoctoproject.org Date: Thu, 17 Nov 2016 13:37:28 -0200 Message-Id: <1479397049-28765-1-git-send-email-fabio.berton@ossystems.com.br> X-Mailer: git-send-email 2.1.4 Organization: O.S. Systems Software LTDA. Subject: [3rdparty][PATCH 1/2] linux-variscite: Enable support to wl12xx TI wifi module X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2016 15:38:43 -0000 Configure device tree to load correctly wl12xx based hardware. Signed-off-by: Fabio Berton --- .../imx6qdl-var-som-Enable-wl12xx.patch | 84 ++++++++++++++++++++++ recipes-kernel/linux/linux-variscite_4.1.15.bb | 1 + 2 files changed, 85 insertions(+) create mode 100644 recipes-kernel/linux/linux-variscite-4.1.15/imx6qdl-var-som-Enable-wl12xx.patch diff --git a/recipes-kernel/linux/linux-variscite-4.1.15/imx6qdl-var-som-Enable-wl12xx.patch b/recipes-kernel/linux/linux-variscite-4.1.15/imx6qdl-var-som-Enable-wl12xx.patch new file mode 100644 index 0000000..8accc75 --- /dev/null +++ b/recipes-kernel/linux/linux-variscite-4.1.15/imx6qdl-var-som-Enable-wl12xx.patch @@ -0,0 +1,84 @@ +From 14642037c45996b5288bfec2ce9202f99fa79968 Mon Sep 17 00:00:00 2001 +From: Fabio Berton +Date: Mon, 26 Sep 2016 10:54:05 -0300 +Subject: [PATCH] imx6qdl-var-som: Enable wl12xx +Organization: O.S. Systems Software LTDA. + +Upstream-Status: Pending + +Signed-off-by: Fabio Berton +--- + arch/arm/boot/dts/imx6qdl-var-som.dtsi | 51 +++++++++++++++------------------- + 1 file changed, 22 insertions(+), 29 deletions(-) + +diff --git a/arch/arm/boot/dts/imx6qdl-var-som.dtsi b/arch/arm/boot/dts/imx6qdl-var-som.dtsi +index 89e1e3f..66855fe 100644 +--- a/arch/arm/boot/dts/imx6qdl-var-som.dtsi ++++ b/arch/arm/boot/dts/imx6qdl-var-som.dtsi +@@ -574,6 +574,7 @@ + MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17069 + MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17069 + MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17069 ++#define GPIRQ_WL1271 <&gpio6 17 IRQ_TYPE_LEVEL_HIGH> + MX6QDL_PAD_SD3_DAT7__GPIO6_IO17 0x13059 /* Reserve two pins from sd1 for wl8 gpio, this is pulled low at reset for WL_EN */ + MX6QDL_PAD_SD3_RST__GPIO7_IO08 0x13059 /* this is for wl_irq which driver will configure as an input with a pull down */ + >; +@@ -815,34 +816,26 @@ + status = "okay"; + }; + +-&usdhc3 { /* uSDHC3, TiWi wl1271 7 Wilink8 WL18xx*/ +- pinctrl-names = "default", "state_100mhz", "state_200mhz"; +- pinctrl-0 = <&pinctrl_usdhc3_2>; +- pinctrl-1 = <&pinctrl_usdhc3_2_100mhz>; +- pinctrl-2 = <&pinctrl_usdhc3_2_200mhz>; +- keep-power-in-suspend; +- enable-sdio-wakeup; +- vmmc-supply = <&wlan_en_reg>; +- bus-width = <4>; +- non-removable; +- cap-power-off-card; +- status = "okay"; +- #address-cells = <1>; +- #size-cells = <0>; +- wlcore: wlcore@0 { +- compatible = "ti,wl1835"; +- reg = <2>; +-#if 0 +- gpio = <177>; /* The wl8 driver expects gpio to be an integer, so gpio6_17 is (6-1)*32+17=207 +- irq property must not be set as driver derives irq number from gpio if no irq set +- use edge irqs for suspend/resume */ +- platform-quirks = <1>; +-#endif +- interrupt-parent = <&gpio6>; +- interrupts = <17 IRQ_TYPE_EDGE_RISING>; +- +- /* if a 12xx card is there, configure the clock to WL12XX_REFCLOCK_38_XTAL */ +- board-ref-clock = <4>; +- }; ++&usdhc3 { /* uSDHC3, TiWi wl1271 */ ++ pinctrl-names = "default", "state_100mhz", "state_200mhz"; ++ pinctrl-0 = <&pinctrl_usdhc3_2>; ++ pinctrl-1 = <&pinctrl_usdhc3_2_100mhz>; ++ pinctrl-2 = <&pinctrl_usdhc3_2_200mhz>; ++ bus-width = <4>; ++ non-removable; ++ vmmc-supply = <&wlan_en_reg>; ++ vqmmc-1-8-v; ++ cap-power-off-card; ++ keep-power-in-suspend; ++ status = "okay"; + ++ #address-cells = <1>; ++ #size-cells = <0>; ++ wlcore: wlcore@2 { ++ compatible = "ti,wl1271"; ++ interrupts-extended = GPIRQ_WL1271; ++ reg = <2>; ++ ref-clock-frequency = <38400000>; ++ }; + }; ++ +-- +2.1.4 + diff --git a/recipes-kernel/linux/linux-variscite_4.1.15.bb b/recipes-kernel/linux/linux-variscite_4.1.15.bb index a9a365f..4e37a57 100644 --- a/recipes-kernel/linux/linux-variscite_4.1.15.bb +++ b/recipes-kernel/linux/linux-variscite_4.1.15.bb @@ -14,6 +14,7 @@ SRC_URI = " \ git://github.com/varigit/linux-2.6-imx.git;protocol=git;branch=${SRCBRANCH} \ file://Fix-the-compile-issue-under-gcc6.patch \ file://0001-mxc_hdmi-mxc_hdmi-allow-EDID-to-select-non-CEA-modes.patch \ + file://imx6qdl-var-som-Enable-wl12xx.patch \ file://defconfig \ " -- 2.1.4