From patchwork Fri May 12 21:18:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 99731 Delivered-To: patches@linaro.org Received: by 10.140.96.100 with SMTP id j91csp512667qge; Fri, 12 May 2017 14:18:26 -0700 (PDT) X-Received: by 10.98.163.152 with SMTP id q24mr6582515pfl.217.1494623906274; Fri, 12 May 2017 14:18:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494623906; cv=none; d=google.com; s=arc-20160816; b=BONNqygbSZFTYZ5WNXk12H0Yc/hezN+Y/JJ+NAeMH+St7BF7sX3dfhVuYhXR6MjW0M +Y/3pcfh8wDal9OxGFWOszS7gIMZWNFhHJPTsorjyp/gCXngnteNkDS7rZQkWJ7oGp0y kijxD7xS64GvwVuJvCT8+Qg6rSC9gWCtRBGF4jx8ewdwN85XidJ+/0UKw2d6uDzKzG44 SX+0lfGhDDEeoPQP8aDSQVDLScJYz6upCAlzUrDAETrk8uTlBJbDkaEPWTQWG1J6QHYt axIXqN3M7ZLLK6qUinYdHSl/8l0XrTy89FlY8RS627geVx47sI/iHXVTs8ztk5cjCRYC qjAA== 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=vPdh2ecpNH7nhIiA6JQ8XOaG3+EyUE4a6ObDg8/Uaj0=; b=aSovh3ufYmJprYpcZUzbOVWUy7Tsns0jlWY3Nic7ZTrnT+/Gc7KDOP9s4asKJ/n3M8 SlE5rD0lYvoYsplBA7CqzPlCJpSHb9uTkZPd/XhJTqk5e6dSmJt+Br+HVA4lm5amduQs Ro0i0mZKpv0c+bXIc8vUxuP4H1pNtCNOobYHjEQ1Rbigs6Qs36jg8Jm60VQNleEI9bkA VfUMzXpHmBeFtm19fAzxwzt4duIhcR0OVuIxZZ0duMy7ichwPdmDeL623v3+aKEYdNak WAhTnNZrIxBXmp1LY092qj3GYTNF/ZIQCPDkoZ8BsWrfZ0M8hMhLHzKWUMc06bRcPT+O L2cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::230 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-pg0-x230.google.com (mail-pg0-x230.google.com. [2607:f8b0:400e:c05::230]) by mx.google.com with ESMTPS id q68si4289519pfq.47.2017.05.12.14.18.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 May 2017 14:18:26 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::230 as permitted sender) client-ip=2607:f8b0:400e:c05::230; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::230 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-pg0-x230.google.com with SMTP id u28so35473818pgn.1 for ; Fri, 12 May 2017 14:18:26 -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=vPdh2ecpNH7nhIiA6JQ8XOaG3+EyUE4a6ObDg8/Uaj0=; b=MWJvpTCCA0/4+mG4lHzym/kGKHHIvoJd2YfnzCHznMC6i2k1QYLrFhuZoBJ1H/dnE9 ZYbpnd2GGeYGTaDc+NryDVm797pmA3bORpzhpfajPWShWWHawgwV+AX77D1V+3vqA5u7 l+AqRG5luvSdHQt5vzXTaPxnikjY/d18XlIb0= 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=vPdh2ecpNH7nhIiA6JQ8XOaG3+EyUE4a6ObDg8/Uaj0=; b=Gg5BYiQ7hU96kXMm3Wis6mPON1yrb0mwNfejgdemPmD0erZ/uqSurP44P9oXYqpxSd rDFqbWw09WIfHbBzP0X3vVRjxU0GJgZa0WPX62YgfkYCtmQXLCgBEEgwsSkk+wlcIb98 DoBBqUHSPCAhviKEJXcS7Oq2wdOhZ7Y1WY1D3SVqH3JCCml9j6+1AtknLgEMN8EbERK1 AHKg1X0imh7+iOeV0SnNAL0L3oD/f6EiU5LvETTOCxEo/ZlI/jnMg41pbK/uD+qKIOaq A3g0yKdS50KJx8FgMe3e1WPccZWlQl6efJmIakD7ETe41B3CvCmSJojY9Mt2pz4SC0Vo g0RA== X-Gm-Message-State: AODbwcC8ruDyAsg8+Opnsok+BtkVAFTt3cMkTZQm+6dPkJa5TzMz2zPd SxtWatltmiZjUDrnWcE= X-Received: by 10.99.109.73 with SMTP id i70mr6521726pgc.62.1494623905953; Fri, 12 May 2017 14:18:25 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:1002:83f0:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id s68sm8536477pfj.5.2017.05.12.14.18.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 May 2017 14:18:24 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Bjorn Andersson , Srinivas Kandagatla , Nicolas Dechesne , Stephen Boyd , Andy Gross , Rob Clark , Vinay Simha , David Brown , Rob Herring Subject: [PATCH 2/2] ARM: dts: nexus7: Add regulator tweaks and wcnss entry to support wifi Date: Fri, 12 May 2017 14:18:18 -0700 Message-Id: <1494623898-27230-3-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494623898-27230-1-git-send-email-john.stultz@linaro.org> References: <1494623898-27230-1-git-send-email-john.stultz@linaro.org> Tweak and add some regulator entries that are needed to support wifi. The values here were taken from: arch/arm/mach-msm/asustek/flo/board-flo-regulator.c in the AOSP msm 3.4 flo branch. This also adds a wcnss entry so it gets enabled on the board. Cc: Bjorn Andersson Cc: Srinivas Kandagatla Cc: Nicolas Dechesne Cc: Stephen Boyd Cc: Andy Gross Cc: Rob Clark Cc: Vinay Simha Cc: David Brown Cc: Rob Herring Signed-off-by: John Stults --- arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts | 42 ++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts b/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts index e5fef32..3cae48f 100644 --- a/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts +++ b/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts @@ -82,7 +82,17 @@ bias-pull-down; }; - /* msm otg HSUSB_VDDCX */ + /* wcnss_wlan.0-iris_vddrfa */ + s2 { + regulator-min-microvolt = <1300000>; + regulator-max-microvolt = <1300000>; + qcom,switch-mode-frequency = <1600000>; + }; + + /* + * msm otg HSUSB_VDDCX + * wcnss_wlan.0-riva_vddcx + */ s3 { regulator-min-microvolt = <500000>; regulator-max-microvolt = <1150000>; @@ -95,6 +105,7 @@ * tabla2x-slim-CDC_VDDA_TX * tabla2x-slim-CDC_VDD_CP * tabla2x-slim-VDDIO_CDC + * wcnss_wlan.0-riva_vddpx */ s4 { regulator-min-microvolt = <1800000>; @@ -123,7 +134,10 @@ bias-pull-down; }; - /* msm_otg-HSUSB_1p8 */ + /* + * msm_otg-HSUSB_1p8 + * wcnss_wlan.0-iris_vddxo + */ l4 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; @@ -143,6 +157,12 @@ regulator-max-microvolt = <2950000>; }; + /* wcnss_wlan.0-iris_vddpa */ + l10 { + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <2900000>; + }; + /* mipi_dsi.1-dsi1_avdd */ l11 { regulator-min-microvolt = <3000000>; @@ -165,6 +185,12 @@ bias-pull-down; }; + /* wcnss_wlan.0-riva_vddmx */ + l24 { + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <1150000>; + }; + /* * tabla2x-slim-CDC_VDDA_A_1P2V * tabla2x-slim-VDDD_CDC_D @@ -175,10 +201,15 @@ bias-pull-down; }; + /* wcnss_wlan.0-iris_vddio */ lvs1 { bias-pull-down; }; + /* wcnss_wlan.0-iris_vdddig */ + lvs2 { + }; + lvs4 { bias-pull-down; }; @@ -196,6 +227,7 @@ */ lvs7 { bias-pull-down; + regulator-always-on; }; }; }; @@ -340,6 +372,12 @@ }; }; + riva-pil@3204000 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&riva_wlan_pin_a>; + }; + imem@2a03f000 { compatible = "syscon", "simple-mfd"; reg = <0x2a03f000 0x1000>;