From patchwork Tue Nov 28 09:07:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 10079005 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4AFA860353 for ; Tue, 28 Nov 2017 09:07:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 381C9289E8 for ; Tue, 28 Nov 2017 09:07:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A9C128FCB; Tue, 28 Nov 2017 09:07:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 87DE9289E8 for ; Tue, 28 Nov 2017 09:07:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751142AbdK1JHn (ORCPT ); Tue, 28 Nov 2017 04:07:43 -0500 Received: from mail.z3ntu.xyz ([128.199.32.197]:38250 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750829AbdK1JHm (ORCPT ); Tue, 28 Nov 2017 04:07:42 -0500 Received: from localhost.localdomain (ip146255062186.rev.nessus.at [146.255.62.186]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id D77FFC07AB; Tue, 28 Nov 2017 09:07:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1511860061; bh=Xwj1QEonTBOp5mmlwrs63ilMhL/mV36NV5VL8lB5/hg=; h=From:To:Cc:Subject:Date; b=KQhqbQ6e668y839SJLz3u0rqan9Ddv2ZJSLzTB+Qq75YIcC5QQ6jkGpFtTzxejzqB fyyRzh5qDvics7VhfI9vS6bxSS+ErvmSOUbx+ByjfisplUCXnmR4ZIuCR6LFieGEY/ coFb541g7RHf1QMtXka49C+PnErdnDFM4CKVmsEE= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: Luca Weiss Subject: [PATCH] ARM: dts: msm8974-FP2: Add uSD slot nodes Date: Tue, 28 Nov 2017 10:07:06 +0100 Message-Id: <20171128090706.22080-1-luca@z3ntu.xyz> X-Mailer: git-send-email 2.15.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add and enable the sdhci2 slot and the pinctrl configuration. Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts index d0a5df90b543..643c57f84818 100644 --- a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts +++ b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts @@ -265,6 +265,28 @@ bias-pull-up; }; }; + + sdhc2_cd_pin_a: sdhc2-cd-pin-active { + pins = "gpio62"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + + sdhc2_pin_a: sdhc2-pin-active { + clk { + pins = "sdc2_clk"; + drive-strength = <10>; + bias-disable; + }; + + cmd-data { + pins = "sdc2_cmd", "sdc2_data"; + drive-strength = <6>; + bias-pull-up; + }; + }; }; sdhci@f9824900 { @@ -280,6 +302,18 @@ pinctrl-0 = <&sdhc1_pin_a>; }; + sdhci@f98a4900 { + status = "ok"; + + vmmc-supply = <&pm8941_l21>; + vqmmc-supply = <&pm8941_l13>; + + bus-width = <4>; + + pinctrl-names = "default"; + pinctrl-0 = <&sdhc2_pin_a>, <&sdhc2_cd_pin_a>; + }; + usb@f9a55000 { status = "ok"; From patchwork Wed Oct 11 11:02:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 9999321 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 75299602BF for ; Wed, 11 Oct 2017 11:05:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68550289F2 for ; Wed, 11 Oct 2017 11:05:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D484289F4; Wed, 11 Oct 2017 11:05:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40430289F3 for ; Wed, 11 Oct 2017 11:05:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750705AbdJKLFg (ORCPT ); Wed, 11 Oct 2017 07:05:36 -0400 Received: from mail.z3ntu.xyz ([128.199.32.197]:36384 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751888AbdJKLFe (ORCPT ); Wed, 11 Oct 2017 07:05:34 -0400 Received: from g550jk.htl-wien5.schule (ip146255062186.rev.nessus.at [146.255.62.186]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 222C5C07AC; Wed, 11 Oct 2017 11:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1507719933; bh=KHFL1c6HcMoEB6qkz5Hf4DF/aswPfNtfTu/7fX0mRmM=; h=From:To:Cc:Subject:Date; b=w13wAfcComnwy77vkavjBtukHCkZ+H733SJwo44Zz6vzaWbnrpPOYYwfjnmOQzFqa j5hUGXhjzlwdCRQvKW/Y0ahAJ9HJLhkWc4V5rlLVtYNuDR/LVvAl9b9CwQ58VJ+Ed8 JU+0gBgC1mbgrawxqqXEBjTQo/E3OZ1MORIz6BGM= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: Luca Weiss Subject: [PATCH v2 1/5] ARM: dts: qcom: Add initial DTS file for Fairphone 2 phone Date: Wed, 11 Oct 2017 13:02:25 +0200 Message-Id: <20171011110229.24413-1-luca@z3ntu.xyz> X-Mailer: git-send-email 2.14.2 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This DTS has support for the Fairphone 2 (codenamed FP2). This first version of the DTS supports just the serial console via the MSM UART pins. Signed-off-by: Luca Weiss Acked-by: Bjorn Andersson --- .../devicetree/bindings/vendor-prefixes.txt | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 69183f0fbc78..d5e423cad16a 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -113,6 +113,7 @@ everspin Everspin Technologies, Inc. exar Exar Corporation excito Excito ezchip EZchip Semiconductor +fairphone Fairphone B.V. faraday Faraday Technology Corporation fcs Fairchild Semiconductor firefly Firefly diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index faf46abaa4a2..549afb6ed13c 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -700,6 +700,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-ipq8064-ap148.dtb \ qcom-msm8660-surf.dtb \ qcom-msm8960-cdp.dtb \ + qcom-msm8974-fairphone-fp2.dtb \ qcom-msm8974-lge-nexus5-hammerhead.dtb \ qcom-msm8974-sony-xperia-honami.dtb \ qcom-mdm9615-wp8548-mangoh-green.dtb diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts new file mode 100644 index 000000000000..79a5aa8b856a --- /dev/null +++ b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts @@ -0,0 +1,22 @@ +#include "qcom-msm8974.dtsi" +#include "qcom-pm8841.dtsi" +#include "qcom-pm8941.dtsi" + +/ { + model = "Fairphone 2"; + compatible = "fairphone,fp2", "qcom,msm8974"; + + aliases { + serial0 = &blsp1_uart2; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&soc { + serial@f991e000 { + status = "ok"; + }; +}; From patchwork Wed Oct 11 11:02:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 9999315 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E2D31602BF for ; Wed, 11 Oct 2017 11:05:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2DFC289F2 for ; Wed, 11 Oct 2017 11:05:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C7A89289F6; Wed, 11 Oct 2017 11:05:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC0CC289F2 for ; Wed, 11 Oct 2017 11:05:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752338AbdJKLFf (ORCPT ); Wed, 11 Oct 2017 07:05:35 -0400 Received: from mail.z3ntu.xyz ([128.199.32.197]:36388 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750705AbdJKLFe (ORCPT ); Wed, 11 Oct 2017 07:05:34 -0400 Received: from g550jk.htl-wien5.schule (ip146255062186.rev.nessus.at [146.255.62.186]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 53185C2BFE; Wed, 11 Oct 2017 11:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1507719933; bh=gyk28Yg0U43L0XxA7o2exds/cCO/FHwr7okd2c0ysP8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=t/dJRUsD4ahHE/yCCo4pOEJGNfzn9Kchht3guDbL9ZJCjWuUwYB2dYGU+AKygar+N Uc4AqG1ma02Gt2qHcmak3afIsbuwBLf1L6gZHg4g20i6+ZC4ViW+YpGJtmSXfSOc2c 3hk3gyDhhQTIhEgaNOYM2VWP+kYp7U5SPxvQYnmM= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: Luca Weiss Subject: [PATCH v2 2/5] ARM: dts: msm8974-FP2: Introduce gpio-keys nodes Date: Wed, 11 Oct 2017 13:02:26 +0200 Message-Id: <20171011110229.24413-2-luca@z3ntu.xyz> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171011110229.24413-1-luca@z3ntu.xyz> References: <20171011110229.24413-1-luca@z3ntu.xyz> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This introduces the gpio-keys nodes for keys of the FP2 and the associated pinctrl state. Signed-off-by: Luca Weiss Acked-by: Bjorn Andersson --- arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 50 ++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts index 79a5aa8b856a..9332c6e9c535 100644 --- a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts +++ b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts @@ -1,6 +1,10 @@ #include "qcom-msm8974.dtsi" #include "qcom-pm8841.dtsi" #include "qcom-pm8941.dtsi" +#include +#include +#include + / { model = "Fairphone 2"; @@ -13,6 +17,38 @@ chosen { stdout-path = "serial0:115200n8"; }; + + gpio-keys { + compatible = "gpio-keys"; + input-name = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys_pin_a>; + + camera-snapshot { + label = "camera_snapshot"; + gpios = <&pm8941_gpios 1 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + }; + + volume-down { + label = "volume_down"; + gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + }; + + volume-up { + label = "volume_up"; + gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + }; + }; }; &soc { @@ -20,3 +56,17 @@ status = "ok"; }; }; + +&spmi_bus { + pm8941@0 { + gpios@c000 { + gpio_keys_pin_a: gpio-keys-active { + pins = "gpio1", "gpio2", "gpio5"; + function = "normal"; + + bias-pull-up; + power-source = ; + }; + }; + }; +}; From patchwork Wed Oct 11 11:02:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 9999323 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A7A7A602BF for ; Wed, 11 Oct 2017 11:05:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9AE77289F2 for ; Wed, 11 Oct 2017 11:05:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8FFB6289F3; Wed, 11 Oct 2017 11:05:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CFDA9289F6 for ; Wed, 11 Oct 2017 11:05:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752040AbdJKLFi (ORCPT ); Wed, 11 Oct 2017 07:05:38 -0400 Received: from mail.z3ntu.xyz ([128.199.32.197]:36394 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751968AbdJKLFf (ORCPT ); Wed, 11 Oct 2017 07:05:35 -0400 Received: from g550jk.htl-wien5.schule (ip146255062186.rev.nessus.at [146.255.62.186]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 7F3AAC2C03; Wed, 11 Oct 2017 11:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1507719933; bh=c2A8bH0gomOIQLEUfsW1MEme5+QOdDLbSlwGGPtnnek=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=lUInBlMqgxtmymmGrY0KpdP2dzXZ9fmEOvi6zEvzrmHzodDtBRnO5akg0t8k9LmzB ZauJda371Q0NL5EjQHId3twDDKhYlBdg0or7EXXvTKQ7i7DJG11VVVbAcrKVzZZCdc z7eKU8ImyPbJgIlGM/yRz/elo3JYy5NjAZuN07p4= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: Luca Weiss Subject: [PATCH v2 3/5] ARM: dts: msm8974-FP2: Add regulator nodes for FP2 Date: Wed, 11 Oct 2017 13:02:27 +0200 Message-Id: <20171011110229.24413-3-luca@z3ntu.xyz> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171011110229.24413-1-luca@z3ntu.xyz> References: <20171011110229.24413-1-luca@z3ntu.xyz> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The voltages are pulled from the vendor source tree. Signed-off-by: Luca Weiss Acked-by: Bjorn Andersson --- arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 195 +++++++++++++++++++++++ 1 file changed, 195 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts index 9332c6e9c535..6dd553a61ae6 100644 --- a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts +++ b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts @@ -49,6 +49,201 @@ debounce-interval = <15>; }; }; + + smd { + rpm { + rpm_requests { + pm8841-regulators { + s1 { + regulator-min-microvolt = <675000>; + regulator-max-microvolt = <1050000>; + }; + + s2 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1050000>; + }; + + s3 { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + }; + }; + + pm8941-regulators { + vdd_l1_l3-supply = <&pm8941_s1>; + vdd_l2_lvs1_2_3-supply = <&pm8941_s3>; + vdd_l4_l11-supply = <&pm8941_s1>; + vdd_l5_l7-supply = <&pm8941_s2>; + vdd_l6_l12_l14_l15-supply = <&pm8941_s2>; + vdd_l9_l10_l17_l22-supply = <&vreg_boost>; + vdd_l13_l20_l23_l24-supply = <&vreg_boost>; + vdd_l21-supply = <&vreg_boost>; + + s1 { + regulator-min-microvolt = <1300000>; + regulator-max-microvolt = <1300000>; + + regulator-always-on; + regulator-boot-on; + }; + + s2 { + regulator-min-microvolt = <2150000>; + regulator-max-microvolt = <2150000>; + + regulator-boot-on; + }; + + s3 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-always-on; + regulator-boot-on; + }; + + l1 { + regulator-min-microvolt = <1225000>; + regulator-max-microvolt = <1225000>; + + regulator-always-on; + regulator-boot-on; + }; + + l2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + l3 { + regulator-min-microvolt = <1225000>; + regulator-max-microvolt = <1225000>; + }; + + l4 { + regulator-min-microvolt = <1225000>; + regulator-max-microvolt = <1225000>; + }; + + l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-boot-on; + }; + + l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-boot-on; + }; + + l8 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + l9 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + l10 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + l11 { + regulator-min-microvolt = <1225000>; + regulator-max-microvolt = <1350000>; + }; + + l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-always-on; + regulator-boot-on; + }; + + l13 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + + regulator-boot-on; + }; + + l14 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + l15 { + regulator-min-microvolt = <2050000>; + regulator-max-microvolt = <2050000>; + }; + + l16 { + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <2700000>; + }; + + l17 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + l18 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + l19 { + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <3350000>; + }; + + l20 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + + regulator-boot-on; + }; + + l21 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + + regulator-boot-on; + }; + + l22 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + }; + + l23 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + }; + + l24 { + regulator-min-microvolt = <3075000>; + regulator-max-microvolt = <3075000>; + + regulator-boot-on; + }; + }; + }; + }; + }; }; &soc { From patchwork Wed Oct 11 11:02:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 9999317 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B9EB0602BF for ; Wed, 11 Oct 2017 11:05:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADC8A289F2 for ; Wed, 11 Oct 2017 11:05:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A283D289F7; Wed, 11 Oct 2017 11:05:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51069289F2 for ; Wed, 11 Oct 2017 11:05:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751888AbdJKLFg (ORCPT ); Wed, 11 Oct 2017 07:05:36 -0400 Received: from mail.z3ntu.xyz ([128.199.32.197]:36398 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752040AbdJKLFf (ORCPT ); Wed, 11 Oct 2017 07:05:35 -0400 Received: from g550jk.htl-wien5.schule (ip146255062186.rev.nessus.at [146.255.62.186]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id ACFC5C2C05; Wed, 11 Oct 2017 11:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1507719933; bh=TyKQMse7SYPslP3HWvZGuSF66TcZamQaSywGtlbhOlw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=nvywBvE4w3CdvvxCSJqeOZdwpkn+RTpnZjp3g4+h2bHBiMaHzfA68yh9/ElVx3TYx NMyXQmkcTXhT1qKy1kzhAdKMY0+N0GErXUiUtCstsPgsdPBdYvHUsJOQaqyFXfDxMR 6RkoJDt6J4F8A8RlTudW1dfBICLAHhhnyZFoFYEk= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: Luca Weiss Subject: [PATCH v2 4/5] ARM: dts: msm8974-FP2: Add sdhci1 node Date: Wed, 11 Oct 2017 13:02:28 +0200 Message-Id: <20171011110229.24413-4-luca@z3ntu.xyz> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171011110229.24413-1-luca@z3ntu.xyz> References: <20171011110229.24413-1-luca@z3ntu.xyz> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This introduces the eMMC sdhci node and its pinctrl state Signed-off-by: Luca Weiss Acked-by: Bjorn Andersson --- arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts index 6dd553a61ae6..c42e70d7158f 100644 --- a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts +++ b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts @@ -250,6 +250,35 @@ serial@f991e000 { status = "ok"; }; + + pinctrl@fd510000 { + sdhc1_pin_a: sdhc1-pin-active { + clk { + pins = "sdc1_clk"; + drive-strength = <16>; + bias-disable; + }; + + cmd-data { + pins = "sdc1_cmd", "sdc1_data"; + drive-strength = <10>; + bias-pull-up; + }; + }; + }; + + sdhci@f9824900 { + status = "ok"; + + vmmc-supply = <&pm8941_l20>; + vqmmc-supply = <&pm8941_s3>; + + bus-width = <8>; + non-removable; + + pinctrl-names = "default"; + pinctrl-0 = <&sdhc1_pin_a>; + }; }; &spmi_bus { From patchwork Wed Oct 11 11:02:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 9999319 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 63332602BF for ; Wed, 11 Oct 2017 11:05:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56BBE289F2 for ; Wed, 11 Oct 2017 11:05:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B9C0289F8; Wed, 11 Oct 2017 11:05:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72E7A289F4 for ; Wed, 11 Oct 2017 11:05:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752408AbdJKLFh (ORCPT ); Wed, 11 Oct 2017 07:05:37 -0400 Received: from mail.z3ntu.xyz ([128.199.32.197]:36400 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752294AbdJKLFf (ORCPT ); Wed, 11 Oct 2017 07:05:35 -0400 Received: from g550jk.htl-wien5.schule (ip146255062186.rev.nessus.at [146.255.62.186]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id DBEC3C2C06; Wed, 11 Oct 2017 11:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1507719933; bh=7x7XPNHQ/kpwaV/D1KG66UGvaHfOlfsKMdOiMbacWrY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=iC7TMAXux5wBtRmTrEwjKmQhMfkDO2l2hgFHC1lwjyG6dvWRhqkkk4Z/owAcHudSE VMA4/oJAlVl4Q1oopr2+66qv+BFi+MfraScBXNJ2CYDPdIw/UJVI/ZQqDE+g9PM+CN dOuBJkvCFX7J9511Z734FURLoOjcNd/sHELL9UME= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: Luca Weiss Subject: [PATCH v2 5/5] ARM: dts: msm8974-FP2: Add USB node Date: Wed, 11 Oct 2017 13:02:29 +0200 Message-Id: <20171011110229.24413-5-luca@z3ntu.xyz> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171011110229.24413-1-luca@z3ntu.xyz> References: <20171011110229.24413-1-luca@z3ntu.xyz> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This introduces the usb node which can be used e.g. for USB_ETH Signed-off-by: Luca Weiss Acked-by: Bjorn Andersson --- arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts index c42e70d7158f..d0a5df90b543 100644 --- a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts +++ b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts @@ -279,6 +279,31 @@ pinctrl-names = "default"; pinctrl-0 = <&sdhc1_pin_a>; }; + + usb@f9a55000 { + status = "ok"; + + phys = <&usb_hs1_phy>; + phy-select = <&tcsr 0xb000 0>; + extcon = <&smbb>, <&usb_id>; + vbus-supply = <&chg_otg>; + + hnp-disable; + srp-disable; + adp-disable; + + ulpi { + phy@a { + status = "ok"; + + v1p8-supply = <&pm8941_l6>; + v3p3-supply = <&pm8941_l24>; + + extcon = <&smbb>; + qcom,init-seq = /bits/ 8 <0x1 0x64>; + }; + }; + }; }; &spmi_bus { From patchwork Tue Sep 12 08:40:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 9948697 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D323F6038F for ; Tue, 12 Sep 2017 08:51:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3AB428DC1 for ; Tue, 12 Sep 2017 08:51:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5C3728458; Tue, 12 Sep 2017 08:51:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1B9328DB3 for ; Tue, 12 Sep 2017 08:51:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751253AbdILIuK (ORCPT ); Tue, 12 Sep 2017 04:50:10 -0400 Received: from mail.z3ntu.xyz ([128.199.32.197]:35874 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751266AbdILIuJ (ORCPT ); Tue, 12 Sep 2017 04:50:09 -0400 Received: from g550jk.htl-wien5.schule (ip146255062186.rev.nessus.at [146.255.62.186]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id CDAD4C0833; Tue, 12 Sep 2017 08:42:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1505205742; bh=4RmxZFdyrBUu6CY6ZRQEi4q9bxepou16UOqf6XQ/ThU=; h=From:To:Cc:Subject:Date; b=e7vpmdluIOhTQxy9efhrkPe6Y/V2H9/cpHVCiom9i6eQphQyJFTiHCIOkrqQk70da Zfrl90II7PG/xlT5rptjSHTYgmXctI1+7l8vixbz0STmHHs0IE7tNJ6y/+59ieq4pS f92QfB+HDyq1v2tFz/24YGyMFgSFSkAMYMrhPZYY= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: Luca Weiss Subject: [PATCH 1/4] ARM: dts: qcom: Add initial DTS file for Fairphone 2 phone Date: Tue, 12 Sep 2017 10:40:09 +0200 Message-Id: <20170912084012.12725-1-luca@z3ntu.xyz> X-Mailer: git-send-email 2.14.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This DTS has support for the Fairphone 2 (codenamed FP2). This first version of the DTS supports just the serial console via the MSM UART pins. Signed-off-by: Luca Weiss Acked-by: Bjorn Andersson --- .../devicetree/bindings/vendor-prefixes.txt | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 69183f0fbc78..d5e423cad16a 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -113,6 +113,7 @@ everspin Everspin Technologies, Inc. exar Exar Corporation excito Excito ezchip EZchip Semiconductor +fairphone Fairphone B.V. faraday Faraday Technology Corporation fcs Fairchild Semiconductor firefly Firefly diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index faf46abaa4a2..549afb6ed13c 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -700,6 +700,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-ipq8064-ap148.dtb \ qcom-msm8660-surf.dtb \ qcom-msm8960-cdp.dtb \ + qcom-msm8974-fairphone-fp2.dtb \ qcom-msm8974-lge-nexus5-hammerhead.dtb \ qcom-msm8974-sony-xperia-honami.dtb \ qcom-mdm9615-wp8548-mangoh-green.dtb diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts new file mode 100644 index 000000000000..79a5aa8b856a --- /dev/null +++ b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts @@ -0,0 +1,22 @@ +#include "qcom-msm8974.dtsi" +#include "qcom-pm8841.dtsi" +#include "qcom-pm8941.dtsi" + +/ { + model = "Fairphone 2"; + compatible = "fairphone,fp2", "qcom,msm8974"; + + aliases { + serial0 = &blsp1_uart2; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&soc { + serial@f991e000 { + status = "ok"; + }; +}; From patchwork Tue Sep 12 08:40:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 9948693 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 74FB76038F for ; Tue, 12 Sep 2017 08:51:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64AD028DC4 for ; Tue, 12 Sep 2017 08:51:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5998428DD8; Tue, 12 Sep 2017 08:51:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91F6D28DC4 for ; Tue, 12 Sep 2017 08:51:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751364AbdILIuJ (ORCPT ); Tue, 12 Sep 2017 04:50:09 -0400 Received: from mail.z3ntu.xyz ([128.199.32.197]:35876 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751253AbdILIuJ (ORCPT ); Tue, 12 Sep 2017 04:50:09 -0400 Received: from g550jk.htl-wien5.schule (ip146255062186.rev.nessus.at [146.255.62.186]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 0B70AC09CE; Tue, 12 Sep 2017 08:42:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1505205743; bh=dM3n70WBSWE/QQ6REzAakmVnvLxSDPZzzUHFnvS2qAM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=tSy8ZM3txNeX3tnVkyXxKq2a/PJdp8Gye6wNxGB4izzMGQBKEUQhbN62Sv6IeXJrd /80mJ9fT9BxH6nn/dT+Xr9UsGm4miffMdthLoVAAfXBtSEcZbjuxRuezALOatARgN0 UuVpm7uIlD0RkiK5MvF07+gyUbDTPJkI+u6O/Foc= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: Luca Weiss Subject: [PATCH 2/4] ARM: dts: msm8974-FP2: Introduce gpio-keys nodes Date: Tue, 12 Sep 2017 10:40:10 +0200 Message-Id: <20170912084012.12725-2-luca@z3ntu.xyz> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170912084012.12725-1-luca@z3ntu.xyz> References: <20170912084012.12725-1-luca@z3ntu.xyz> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This introduces the gpio-keys nodes for keys of the FP2 and the associated pinctrl state. Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 50 ++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts index 79a5aa8b856a..4434c45086b8 100644 --- a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts +++ b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts @@ -1,6 +1,10 @@ #include "qcom-msm8974.dtsi" #include "qcom-pm8841.dtsi" #include "qcom-pm8941.dtsi" +#include +#include +#include + / { model = "Fairphone 2"; @@ -19,4 +23,50 @@ serial@f991e000 { status = "ok"; }; + + gpio-keys { + compatible = "gpio-keys"; + input-name = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys_pin_a>; + + camera-snapshot { + label = "camera_snapshot"; + gpios = <&pm8941_gpios 1 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + }; + + volume-down { + label = "volume_down"; + gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + }; + + volume-up { + label = "volume_up"; + gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + }; + }; +}; + +&spmi_bus { + pm8941@0 { + gpios@c000 { + gpio_keys_pin_a: gpio-keys-active { + pins = "gpio1", "gpio2", "gpio5"; + function = "normal"; + + bias-pull-up; + power-source = ; + }; + }; + }; }; From patchwork Tue Sep 12 08:40:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 9948699 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 689066038F for ; Tue, 12 Sep 2017 08:51:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5709128DD2 for ; Tue, 12 Sep 2017 08:51:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C10628DC4; Tue, 12 Sep 2017 08:51:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 100F428DD2 for ; Tue, 12 Sep 2017 08:51:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751332AbdILIuL (ORCPT ); Tue, 12 Sep 2017 04:50:11 -0400 Received: from mail.z3ntu.xyz ([128.199.32.197]:35872 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751330AbdILIuJ (ORCPT ); Tue, 12 Sep 2017 04:50:09 -0400 X-Greylist: delayed 464 seconds by postgrey-1.27 at vger.kernel.org; Tue, 12 Sep 2017 04:50:08 EDT Received: from g550jk.htl-wien5.schule (ip146255062186.rev.nessus.at [146.255.62.186]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 38042C0E4F; Tue, 12 Sep 2017 08:42:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1505205743; bh=fE6Z4ppl6UelEweWY2Rv2pQAiRu53vtWML6SAMwmK3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=XA8DqGWZd7/FELWQubwC9bp3AXlYNgfLurr/DEhr8vY0Ekpovrqm1+CITTNQdzytk py6ZaJu6V/58GgFvCgFkLhvCDHyx8gMllH6LRd4lBnoG5wvESo6sOlhTLnAA+sf6u0 9/x6rveJ6abnBPAiQojZmkTkNzDju5IcQQoUW7FY= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: Luca Weiss Subject: [PATCH 3/4] ARM: dts: msm8974-FP2: Add regulator nodes for FP2 Date: Tue, 12 Sep 2017 10:40:11 +0200 Message-Id: <20170912084012.12725-3-luca@z3ntu.xyz> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170912084012.12725-1-luca@z3ntu.xyz> References: <20170912084012.12725-1-luca@z3ntu.xyz> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 195 +++++++++++++++++++++++ 1 file changed, 195 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts index 4434c45086b8..855b8b5144de 100644 --- a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts +++ b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts @@ -17,6 +17,201 @@ chosen { stdout-path = "serial0:115200n8"; }; + + smd { + rpm { + rpm_requests { + pm8841-regulators { + s1 { + regulator-min-microvolt = <675000>; + regulator-max-microvolt = <1050000>; + }; + + s2 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1050000>; + }; + + s3 { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + }; + }; + + pm8941-regulators { + vdd_l1_l3-supply = <&pm8941_s1>; + vdd_l2_lvs1_2_3-supply = <&pm8941_s3>; + vdd_l4_l11-supply = <&pm8941_s1>; + vdd_l5_l7-supply = <&pm8941_s2>; + vdd_l6_l12_l14_l15-supply = <&pm8941_s2>; + vdd_l9_l10_l17_l22-supply = <&vreg_boost>; + vdd_l13_l20_l23_l24-supply = <&vreg_boost>; + vdd_l21-supply = <&vreg_boost>; + + s1 { + regulator-min-microvolt = <1300000>; + regulator-max-microvolt = <1300000>; + + regulator-always-on; + regulator-boot-on; + }; + + s2 { + regulator-min-microvolt = <2150000>; + regulator-max-microvolt = <2150000>; + + regulator-boot-on; + }; + + s3 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-always-on; + regulator-boot-on; + }; + + l1 { + regulator-min-microvolt = <1225000>; + regulator-max-microvolt = <1225000>; + + regulator-always-on; + regulator-boot-on; + }; + + l2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + l3 { + regulator-min-microvolt = <1225000>; + regulator-max-microvolt = <1225000>; + }; + + l4 { + regulator-min-microvolt = <1225000>; + regulator-max-microvolt = <1225000>; + }; + + l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-boot-on; + }; + + l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-boot-on; + }; + + l8 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + l9 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + l10 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + l11 { + regulator-min-microvolt = <1225000>; + regulator-max-microvolt = <1350000>; + }; + + l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-always-on; + regulator-boot-on; + }; + + l13 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + + regulator-boot-on; + }; + + l14 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + l15 { + regulator-min-microvolt = <2050000>; + regulator-max-microvolt = <2050000>; + }; + + l16 { + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <2700000>; + }; + + l17 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + l18 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + l19 { + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <3350000>; + }; + + l20 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + + regulator-boot-on; + }; + + l21 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + + regulator-boot-on; + }; + + l22 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + }; + + l23 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + }; + + l24 { + regulator-min-microvolt = <3075000>; + regulator-max-microvolt = <3075000>; + + regulator-boot-on; + }; + }; + }; + }; + }; }; &soc { From patchwork Tue Sep 12 08:40:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 9948695 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 610206038F for ; Tue, 12 Sep 2017 08:51:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 508BE28DD9 for ; Tue, 12 Sep 2017 08:51:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 30E3F28DBD; Tue, 12 Sep 2017 08:51:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAFB328DCF for ; Tue, 12 Sep 2017 08:51:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751266AbdILIuK (ORCPT ); Tue, 12 Sep 2017 04:50:10 -0400 Received: from mail.z3ntu.xyz ([128.199.32.197]:35870 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751332AbdILIuJ (ORCPT ); Tue, 12 Sep 2017 04:50:09 -0400 Received: from g550jk.htl-wien5.schule (ip146255062186.rev.nessus.at [146.255.62.186]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 67B6BC18CA; Tue, 12 Sep 2017 08:42:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1505205743; bh=ZIbEv0Rb/+3U6N/sAD6zlgJxmAXuHsiixkoSMocN6t0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=PlvZrq1/M2SDIVsGlkzZ0U7vh/hgjYYi2jvhmLh3oL1eRtmujc6UC0FDf7UmO7paY mI5hYutV2W7PHIo0eVZ2keIrSMbvnjwhuvfWncKlKEoeoteLmP3cXKVeOqCGNnrmSd lNW/0/C0G10BgYemuyr/RgASO30F4e5N8TA73yx0= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: Luca Weiss Subject: [PATCH 4/4] ARM: dts: msm8974-FP2: Add sdhci1 node Date: Tue, 12 Sep 2017 10:40:12 +0200 Message-Id: <20170912084012.12725-4-luca@z3ntu.xyz> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170912084012.12725-1-luca@z3ntu.xyz> References: <20170912084012.12725-1-luca@z3ntu.xyz> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This introduces the eMMC sdhci node and its pinctrl state Signed-off-by: Luca Weiss Acked-by: Bjorn Andersson --- arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts index 855b8b5144de..5087d47b3bcd 100644 --- a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts +++ b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts @@ -219,6 +219,35 @@ status = "ok"; }; + pinctrl@fd510000 { + sdhc1_pin_a: sdhc1-pin-active { + clk { + pins = "sdc1_clk"; + drive-strength = <16>; + bias-disable; + }; + + cmd-data { + pins = "sdc1_cmd", "sdc1_data"; + drive-strength = <10>; + bias-pull-up; + }; + }; + }; + + sdhci@f9824900 { + status = "ok"; + + vmmc-supply = <&pm8941_l20>; + vqmmc-supply = <&pm8941_s3>; + + bus-width = <8>; + non-removable; + + pinctrl-names = "default"; + pinctrl-0 = <&sdhc1_pin_a>; + }; + gpio-keys { compatible = "gpio-keys"; input-name = "gpio-keys";