From patchwork Sat Apr 11 18:21:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iskren Chernev X-Patchwork-Id: 11484205 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4711F14B4 for ; Sat, 11 Apr 2020 18:22:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2045A2075E for ; Sat, 11 Apr 2020 18:22:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="owwSHFGq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726766AbgDKSWH (ORCPT ); Sat, 11 Apr 2020 14:22:07 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:37433 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726155AbgDKSWG (ORCPT ); Sat, 11 Apr 2020 14:22:06 -0400 Received: by mail-lj1-f193.google.com with SMTP id r24so4980044ljd.4; Sat, 11 Apr 2020 11:22:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QSRXD0SJkE7i7zRyJ4pGNc7KE9lIsIbXbbV9fBpZthE=; b=owwSHFGq/2YdQCd8N6ZZzQnsrMHwk4rGWnccaZ/eGwWRLhCxr/dyoDaxorSCbpo8EH ozxGt/48BuDgqx6HOjsNUu9zPh7s7M/L9Fg0P1j3DtQ9vCEwJHW+hvqh5V5jystQjyYy 6omAJ9q7MqkrwmurQI0F4pXP9f3gNnsoBifn0xC5yC0b7v8ZMYemwwo8PKU7hYuJkNsd sZvch+kg2b1OiWi8LpZzVh8uyex1fohyrBtlU9T5LAugkST6vAMdadlqcd9xRuD9ONQk E6ZaEeqBe7ObnvOQ8P9+p54cA6xKIn1gX8KlRXBvI00TXZ0HSfux60SbnDri/Skl8Zu6 SclQ== 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:mime-version:content-transfer-encoding; bh=QSRXD0SJkE7i7zRyJ4pGNc7KE9lIsIbXbbV9fBpZthE=; b=qsg0d0veAaXhtQKyfFRihLnt7OfIWTxO7ywT9WgPC27SL57qoLnY1S+3KnuoKw9aOb fK3p+z8zQbuvul9Gx9h2Iz8fzsVuiKHbosHoWmC8QQ8BsS4kP1wexXDZBl6/zlZknQbl P7EuJUy36xnLd8lnV3eaiJgT9WSTMcOwsMJn2pHwiwUnDxY5uHySXiJH004a2rYmMJCl e/rB+3kvXsqVJn6kDgXvGjSGqaMasEzHdM/LpHqUBkKY1YEC/wUBf4rrDeJi5ATirkXh OYA2vEWPFJve+/hWTjJ8EN8bfFQqDeCbABPZ+p/aba+wSGUYodcIgL/IqXcOFKjvlma/ ZdLw== X-Gm-Message-State: AGi0Pub3XnVOPpwHFuO/bA9BGu1kewtg3TJDu9LIl+D7+Yr/HXMK8SMa vDh4TzWbi9IkDZsquyB5pFcielE1PBnh4Q== X-Google-Smtp-Source: APiQypJH2lELAq0Eyb2oElTZoPOrmwIEq2/O2DcsseydqPgYS3u/vdlfREyL29Rxgx3gjPgcB9mEVA== X-Received: by 2002:a2e:9b55:: with SMTP id o21mr5989347ljj.74.1586629322724; Sat, 11 Apr 2020 11:22:02 -0700 (PDT) Received: from localhost ([213.191.183.145]) by smtp.gmail.com with ESMTPSA id x80sm4307466lff.23.2020.04.11.11.22.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Apr 2020 11:22:02 -0700 (PDT) From: Iskren Chernev To: linux-arm-msm@vger.kernel.org Cc: Daniele Debernardi , Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Iskren Chernev Subject: [PATCH v2 1/5] ARM: dts: qcom: msm8974-klte: Add pma8084 regulator nodes Date: Sat, 11 Apr 2020 21:21:18 +0300 Message-Id: <20200411182122.2677248-2-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200411182122.2677248-1-iskren.chernev@gmail.com> References: <20200411182122.2677248-1-iskren.chernev@gmail.com> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Daniele Debernardi The pma8084 replaces the pm8841,pm8941 found in other msm8974 devices. It is used for various things including gpio keys, sdhci, usb, dsi. The voltages are pulled from the vendor source tree. Signed-off-by: Daniele Debernardi Signed-off-by: Iskren Chernev --- .../boot/dts/qcom-msm8974-samsung-klte.dts | 184 ++++++++++++++++++ 1 file changed, 184 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts index eaa1001d0a46..b6329f24c502 100644 --- a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts +++ b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts @@ -2,6 +2,7 @@ #include "qcom-msm8974pro.dtsi" #include "qcom-pm8841.dtsi" #include "qcom-pm8941.dtsi" +#include "qcom-pma8084.dtsi" / { model = "Samsung Galaxy S5"; @@ -14,6 +15,189 @@ aliases { chosen { stdout-path = "serial0:115200n8"; }; + + smd { + rpm { + rpm_requests { + pma8084-regulators { + compatible = "qcom,rpm-pma8084-regulators"; + status = "okay"; + + pma8084_s1: s1 { + regulator-min-microvolt = <675000>; + regulator-max-microvolt = <1050000>; + }; + + pma8084_s2: s2 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1050000>; + }; + + pma8084_s3: s3 { + regulator-min-microvolt = <1300000>; + regulator-max-microvolt = <1300000>; + }; + + pma8084_s4: s4 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pma8084_s5: s5 { + regulator-min-microvolt = <2150000>; + regulator-max-microvolt = <2150000>; + }; + + pma8084_s6: s6 { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + }; + + pma8084_l1: l1 { + regulator-min-microvolt = <1225000>; + regulator-max-microvolt = <1225000>; + }; + + pma8084_l2: l2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + pma8084_l3: l3 { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1200000>; + }; + + pma8084_l4: l4 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1225000>; + }; + + pma8084_l5: l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pma8084_l6: l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pma8084_l7: l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pma8084_l8: l8 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pma8084_l9: l9 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + pma8084_l10: l10 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + pma8084_l11: l11 { + regulator-min-microvolt = <1300000>; + regulator-max-microvolt = <1300000>; + }; + + pma8084_l12: l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pma8084_l13: l13 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + pma8084_l14: l14 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pma8084_l15: l15 { + regulator-min-microvolt = <2050000>; + regulator-max-microvolt = <2050000>; + }; + + pma8084_l16: l16 { + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <2700000>; + }; + + pma8084_l17: l17 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + pma8084_l18: l18 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + pma8084_l19: l19 { + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <3300000>; + }; + + pma8084_l20: l20 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + }; + + pma8084_l21: l21 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + }; + + pma8084_l22: l22 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + }; + + pma8084_l23: l23 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + }; + + pma8084_l24: l24 { + regulator-min-microvolt = <3075000>; + regulator-max-microvolt = <3075000>; + }; + + pma8084_l25: l25 { + regulator-min-microvolt = <2100000>; + regulator-max-microvolt = <2100000>; + }; + + pma8084_l26: l26 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2050000>; + }; + + pma8084_l27: l27 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1225000>; + }; + + pma8084_lvs1: lvs1 {}; + pma8084_lvs2: lvs2 {}; + pma8084_lvs3: lvs3 {}; + pma8084_lvs4: lvs4 {}; + + pma8084_5vs1: 5vs1 {}; + }; + }; + }; + }; }; &soc { From patchwork Sat Apr 11 18:21:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iskren Chernev X-Patchwork-Id: 11484207 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E6FBB17D4 for ; Sat, 11 Apr 2020 18:22:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C846B214DB for ; Sat, 11 Apr 2020 18:22:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="J3Q7ccRY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726793AbgDKSWK (ORCPT ); Sat, 11 Apr 2020 14:22:10 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:37639 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726155AbgDKSWJ (ORCPT ); Sat, 11 Apr 2020 14:22:09 -0400 Received: by mail-lf1-f65.google.com with SMTP id t11so3586516lfe.4; Sat, 11 Apr 2020 11:22:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z4Hb15o1pOtBSMtLEXqyNxfvtNHew8aR0AYuhLiRqe8=; b=J3Q7ccRYcvyVhwP0obAt3tFUP+ObAZfhkqIVGb2pKWMHPIE4O50SqJoS7iNmeFGsZf m46wHt4x8XSGglKuBZCtGqUnAe2n2iNrHnEBYCtVG2OkUi7olTynfc4s/bETO7d2pGml vW/LFMJL5fXdRyF7cegdYvIzwmSsPQumE49tCL3MNuw3woLRETN9tdsweaDUdfV9VWhq Wkl1DDP8GCUWyUtKHBqxYXPP1G6h13HqbxAmFGM4o8S63jAoPPkL4SPE6+RzpFhRScZl 1BE4sbw7lY88+FC81GBNpR7Wbt6xFeRkmVPENqlIFAo8IKexRJxRsC/QLPAOVVDtwWo3 +sMg== 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:mime-version:content-transfer-encoding; bh=z4Hb15o1pOtBSMtLEXqyNxfvtNHew8aR0AYuhLiRqe8=; b=iFEJF4NlD02wFHklWuNzZdq3O2Ia26q5igDbXMXkfSELWbZHDUl4qNXT6B0FcAInTt QMmM3/SltY95BSrww5d9BsFOlWiPlLLc4ihB2KtXP4cThwSYAQbhVJTRCh2arupCoe31 TlajgT59PKgZilopWehOdfkR3ppPkV36BR21LQLLdqngjTUx9Gn7jV3wzYoUXt8Q/hh0 xbt2+h3VDZoAK1ekBrHVnFyeg3/t82fxUok5gGGIJRsLcuqztAjpIKmb5thqbq3sBOLY OmNVEF57Hxwl276BPQ1GRqVMks8v5vX20akOHUrRvnJ2CXbpi5nXLTosEWstI6NxS0ds 5fhw== X-Gm-Message-State: AGi0PuZMBAaFaXe3Wwfqlh/q7xWpvHKJIlQ8QNOIiH1EGo6WfR1jdmkz 92QkT13pFSqVIznl4JHSqPxhooK2lIS+Hw== X-Google-Smtp-Source: APiQypKgIInJ4YQqesUWfn0MQzYAiHoWMRPGx+e48y0e6wi5iVVP3y79/fXMS5mhL9LaX9buzXYzww== X-Received: by 2002:a19:9109:: with SMTP id t9mr6006751lfd.10.1586629325522; Sat, 11 Apr 2020 11:22:05 -0700 (PDT) Received: from localhost ([213.191.183.145]) by smtp.gmail.com with ESMTPSA id m23sm312419ljh.36.2020.04.11.11.22.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Apr 2020 11:22:04 -0700 (PDT) From: Iskren Chernev To: linux-arm-msm@vger.kernel.org Cc: Daniele Debernardi , Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Iskren Chernev Subject: [PATCH v2 2/5] ARM: dts: qcom: msm8974-klte: Remove inherited vreg_boost node Date: Sat, 11 Apr 2020 21:21:19 +0300 Message-Id: <20200411182122.2677248-3-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200411182122.2677248-1-iskren.chernev@gmail.com> References: <20200411182122.2677248-1-iskren.chernev@gmail.com> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Daniele Debernardi The Samsung klte does not have a vreg_boost node. vreg_boost also depends on pm8941-gpio which are not present on the klte. Signed-off-by: Daniele Debernardi Signed-off-by: Iskren Chernev --- arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts index b6329f24c502..36ad8ff071ca 100644 --- a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts +++ b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts @@ -1,7 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 #include "qcom-msm8974pro.dtsi" -#include "qcom-pm8841.dtsi" -#include "qcom-pm8941.dtsi" #include "qcom-pma8084.dtsi" / { @@ -198,6 +196,8 @@ pma8084_l27: l27 { }; }; }; + + /delete-node/ vreg-boost; }; &soc { From patchwork Sat Apr 11 18:21:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iskren Chernev X-Patchwork-Id: 11484213 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3C62A1805 for ; Sat, 11 Apr 2020 18:22:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1D99021556 for ; Sat, 11 Apr 2020 18:22:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Jygbu+3t" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726812AbgDKSWN (ORCPT ); Sat, 11 Apr 2020 14:22:13 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40296 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726791AbgDKSWK (ORCPT ); Sat, 11 Apr 2020 14:22:10 -0400 Received: by mail-lj1-f195.google.com with SMTP id 142so4950100ljj.7; Sat, 11 Apr 2020 11:22:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bOxfbv/Ciuh7Y4q8Zjx3IHokX/Ks6vT2KzIOjwmY+B8=; b=Jygbu+3tPUKqOqaKziwUpUsb/cgk2d7vossa21X73oEjr1d/9xmDVPUi6Af8mdbjkd S/KSbUxx1liCowmHPOpXqFGmTHXHTihj1yZPOs4yfHs5aSJcco8saHBhGqFOwj37uHp5 uNrNw9Z8+lUYeYkZA0WmLN0lnJeUW2hThVwDnbXvRGjcfFIIVRnEEgqtPfA1Qi2bxj1E IPMP3XYa/itq8dObS4eli2wKVUJXxx/RybwafC965w5jb800eRE/yxZZPn+zxCTlXe9s QSLYtPmQp/TxTD7N4pvJqUtrALUUycux83tvwqdMmwMqTDdbpujb2Vm2OoZ7Qm/YaZdZ /fIQ== 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:mime-version:content-transfer-encoding; bh=bOxfbv/Ciuh7Y4q8Zjx3IHokX/Ks6vT2KzIOjwmY+B8=; b=dIlvueVx9c8JY3rvJYGa8wKuD6EIW1Cvi1OTYtHx1wCg2fJ/D2+VGFkkXgATxHd8zZ x8JXmLnGYQA1pK3YMFWowh9CbP52eCEO5rSyRZCpqc5/MP/PPPNAYvqThioSEbO0SxHI Npg3YLaxjS2u5nSnwT1ik+QNZRVPADR9L8ywTKzglNZYAO1O2oDZk1SA2B8WBhPbzJMd c5MHwtpBOqg5c4HzZGY2XnQ/pm0pgdzEOaU+QJ4SqLwC1zUHIOakRmXNjktBvaGQNUTI Tce2sX/rLiXBBFC9ecPZl2N3+FgMlzHxO4tWvJ4pbOS6pRbAhpYBpGilJohT8CxujjIF sZYQ== X-Gm-Message-State: AGi0Pua9Q+dBsJwoJMwgwCf8UB+K3Mu0eHqqtEboCT/F1hOtyf5+Epx/ L/MPkiRj9lEavLBsiv1Bp1mz5t6yvYjwmQ== X-Google-Smtp-Source: APiQypKlF9K/OEy64Bzqeayt5kKdbvSmUDabujd1geATcFyv4epSF1oplqQXKGkXamjCE9FnaE6qtA== X-Received: by 2002:a2e:a548:: with SMTP id e8mr6235426ljn.151.1586629328169; Sat, 11 Apr 2020 11:22:08 -0700 (PDT) Received: from localhost ([213.191.183.145]) by smtp.gmail.com with ESMTPSA id h21sm4323517lfp.1.2020.04.11.11.22.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Apr 2020 11:22:07 -0700 (PDT) From: Iskren Chernev To: linux-arm-msm@vger.kernel.org Cc: Daniele Debernardi , Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v2 3/5] ARM: dts: qcom: msm8974-klte: Add gpio-keys nodes Date: Sat, 11 Apr 2020 21:21:20 +0300 Message-Id: <20200411182122.2677248-4-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200411182122.2677248-1-iskren.chernev@gmail.com> References: <20200411182122.2677248-1-iskren.chernev@gmail.com> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Daniele Debernardi This introduces the gpio-keys nodes for volume/home keys and the associated pinctrl state. Signed-off-by: Daniele Debernardi --- .../boot/dts/qcom-msm8974-samsung-klte.dts | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts index 36ad8ff071ca..752ab9e99a8c 100644 --- a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts +++ b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts @@ -1,6 +1,9 @@ // SPDX-License-Identifier: GPL-2.0 #include "qcom-msm8974pro.dtsi" #include "qcom-pma8084.dtsi" +#include +#include +#include / { model = "Samsung Galaxy S5"; @@ -205,4 +208,50 @@ serial@f991e000 { status = "ok"; }; + gpio-keys { + compatible = "gpio-keys"; + input-name = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys_pin_a>; + + volume-down { + label = "volume_down"; + gpios = <&pma8084_gpios 2 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + debounce-interval = <15>; + }; + + home-key { + label = "home_key"; + gpios = <&pma8084_gpios 3 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + }; + + volume-up { + label = "volume_up"; + gpios = <&pma8084_gpios 5 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + debounce-interval = <15>; + }; + }; +}; + +&spmi_bus { + pma8084@0 { + gpios@c000 { + gpio_keys_pin_a: gpio-keys-active { + pins = "gpio2", "gpio3", "gpio5"; + function = "normal"; + + bias-pull-up; + power-source = ; + }; + }; + }; }; From patchwork Sat Apr 11 18:21:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iskren Chernev X-Patchwork-Id: 11484211 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C184014B4 for ; Sat, 11 Apr 2020 18:22:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A00C5212CC for ; Sat, 11 Apr 2020 18:22:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qnbmybcn" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726828AbgDKSWP (ORCPT ); Sat, 11 Apr 2020 14:22:15 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:43302 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726814AbgDKSWP (ORCPT ); Sat, 11 Apr 2020 14:22:15 -0400 Received: by mail-lj1-f193.google.com with SMTP id h25so4938457lja.10; Sat, 11 Apr 2020 11:22:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aKI8/vIrSeNG/JRzRpmvFSBgWCKAHHoTosK6sbG966M=; b=qnbmybcnWU1cTq0pEE3TbtoTGHbYWV5wuLQww7nzU/DFnE/YG0wvQJicC/eWaXF5dL zxVrm4dc7x24SwRjNYbEZ0TerfJYo+ITAkywudGWEXr58UiBC1RA/Hp8Pmufe0TJVGfo jY9WVgx1yIw18urvjbDBqR2Y1/x7hWu9aeCF8dPFN/U7x/X6PCV9G8OxQUx7WJlGvBCf FH2IquWLSX0vh8k0wj3ULqfFBbObpl09cEMEStzblYhkEKihlBDe8jK3TmBzGJPlsZYq pEVx8Gt42lTVKNSU7JQlzSvVqkK2gqSL8ibTMvqVX3unMfAN9TY0HBdQWj1wIib3Vpmr xr+Q== 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:mime-version:content-transfer-encoding; bh=aKI8/vIrSeNG/JRzRpmvFSBgWCKAHHoTosK6sbG966M=; b=JuMmaV/jhtiKM/LWF9I40OJwy8yolrH2tjFNqZ6EDSHbpPeqwWv3FoHc/DoPjHw6Md dzW2MzT+ZZc0yOkmt3k+8LAUcW9Khw9UnIUMke6GXiG/oMeC7S05QYyWX5VIxN+dfJPD WnKs7jUyR6ods9fj+qcwzDmDuV2dFKhiTiDaViKlNsk1fnCqiOUnLgbTx9DWH43FfbJM LZ7Pt0hBbe83CflswO0y+OBYiYJdvZ1/SIsrArAfl7TIRhrzp9mgRUPK16qQBGCCkaiH cpHNhget1CjU6EkBnM+wWovNR5i7O1vbYOHH+GeygkJFHPnH6R4CbeOawPyJOErFnP7w QOGw== X-Gm-Message-State: AGi0PublKeAHxbeyqaBwT1MjInjePUtQn9UcJ5ZtnJcDcEDg5YXGdjgG bjaC+9/XYtvvJ+zb8445BcG4AqPT0KzcFQ== X-Google-Smtp-Source: APiQypKfE9VcQ0FI3X3f55LKexDyh5lk8u2PE5/y8Zxy9zaiyXu99AnS8sU0XyuFHM14mVpHPx82VA== X-Received: by 2002:a2e:8017:: with SMTP id j23mr5967997ljg.271.1586629331207; Sat, 11 Apr 2020 11:22:11 -0700 (PDT) Received: from localhost ([213.191.183.145]) by smtp.gmail.com with ESMTPSA id o16sm3889971ljp.53.2020.04.11.11.22.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Apr 2020 11:22:10 -0700 (PDT) From: Iskren Chernev To: linux-arm-msm@vger.kernel.org Cc: Daniele Debernardi , Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v2 4/5] ARM: dts: qcom: msm8974-klte: Add sdhci1 node Date: Sat, 11 Apr 2020 21:21:21 +0300 Message-Id: <20200411182122.2677248-5-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200411182122.2677248-1-iskren.chernev@gmail.com> References: <20200411182122.2677248-1-iskren.chernev@gmail.com> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Daniele Debernardi This introduces the eMMC sdhci node and its pinctrl state Signed-off-by: Daniele Debernardi --- .../boot/dts/qcom-msm8974-samsung-klte.dts | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts index 752ab9e99a8c..42fc18804021 100644 --- a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts +++ b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts @@ -152,6 +152,9 @@ pma8084_l19: l19 { pma8084_l20: l20 { regulator-min-microvolt = <2950000>; regulator-max-microvolt = <2950000>; + + regulator-allow-set-load; + regulator-system-load = <200000>; }; pma8084_l21: l21 { @@ -240,6 +243,35 @@ volume-up { debounce-interval = <15>; }; }; + + pinctrl@fd510000 { + sdhc1_pin_a: sdhc1-pin-active { + clk { + pins = "sdc1_clk"; + drive-strength = <4>; + bias-disable; + }; + + cmd-data { + pins = "sdc1_cmd", "sdc1_data"; + drive-strength = <4>; + bias-pull-up; + }; + }; + }; + + sdhci@f9824900 { + status = "ok"; + + vmmc-supply = <&pma8084_l20>; + vqmmc-supply = <&pma8084_s4>; + + bus-width = <8>; + non-removable; + + pinctrl-names = "default"; + pinctrl-0 = <&sdhc1_pin_a>; + }; }; &spmi_bus { From patchwork Sat Apr 11 18:21:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iskren Chernev X-Patchwork-Id: 11484209 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 508D917D4 for ; Sat, 11 Apr 2020 18:22:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3263E21556 for ; Sat, 11 Apr 2020 18:22:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LZd3cbNw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726834AbgDKSWQ (ORCPT ); Sat, 11 Apr 2020 14:22:16 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:33848 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726824AbgDKSWQ (ORCPT ); Sat, 11 Apr 2020 14:22:16 -0400 Received: by mail-lf1-f65.google.com with SMTP id x23so3596832lfq.1; Sat, 11 Apr 2020 11:22:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+niRBGbpnV97QyKJ3armXwVilZlDGTWi89SgKtqNxcs=; b=LZd3cbNwMfr96h4aHJVMGsPGGphTrI0WaypcHWdTscqXOGKrDkU3y8XfnNZo0nDS38 yBdcgxviRe8DtOIZHk9gkyaRdcCKL1q/sTWjp5ek09OAYGz6s5qnTOI7+F7utg6NjEH/ lpKpSNoDo5EXWJJZGYP7YGnv4a3IK+VVykQo8cv6PS8u2xu9YgReC2HJgx3sQT2wh3kz pNbFSZqcP3ny2KrwnRU8NiRn+D7FnDwAF5eIDluFryMUhZ3j9Rm5In2YSQNidZ8dbSyt 07NNnWdOvC5sl5WNUh0zgdeL8gtXiu6I4P6jIPCH3vx49L4aD9SuR1467936lJp0T3m4 s87g== 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:mime-version:content-transfer-encoding; bh=+niRBGbpnV97QyKJ3armXwVilZlDGTWi89SgKtqNxcs=; b=NLowynUKVrysuN1LwCNs+0tsI0EIyCKokCW8U0NBtWD84k5wpjzS/1JHAIF4ZLdvQq zDUMfyNGF4CKBG8TgwSO8E2YGzId2eY8JkEG3REmPCI9EdAhysl8tSiMceJaimlcW3fp ovc1N8MziOTWNopxbw72GUCZ7OAVmej4W1XjyUg30IM+lVzB4UU0YHO6fy/1tdTRBDY2 JA7Rq5F2879Xl+42gZPuO5Sb/ozd41LN3Yp9qOCWDNv/3b+LJA08CLiu9MiQkFQY3ALO 8+PRWU2ky+2iwOjXsdZoF0XVrEerIZde2A+uQa3dwZojmMDE6LqwFEMfd4cf0xYNiYRx h3TQ== X-Gm-Message-State: AGi0PubR1bAhX+dcvbrfZWFGk8UZEjupbsgTxXQ6tiAPhdf/XmiOGxVT xZpsRgPbnXzv2z12kiXPin6FL7zInabZSw== X-Google-Smtp-Source: APiQypJdbNROJyWqpa9aZFh03QK652AMqEDi/LOUvENUP1mgL6ZYk1u1bYXbNSE/Vepi4AHaSa6Hyg== X-Received: by 2002:a19:c14e:: with SMTP id r75mr5879342lff.62.1586629333903; Sat, 11 Apr 2020 11:22:13 -0700 (PDT) Received: from localhost ([213.191.183.145]) by smtp.gmail.com with ESMTPSA id t28sm3860774ljk.40.2020.04.11.11.22.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Apr 2020 11:22:13 -0700 (PDT) From: Iskren Chernev To: linux-arm-msm@vger.kernel.org Cc: Daniele Debernardi , Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v2 5/5] ARM: dts: qcom: msm8974-klte: Add USB node Date: Sat, 11 Apr 2020 21:21:22 +0300 Message-Id: <20200411182122.2677248-6-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200411182122.2677248-1-iskren.chernev@gmail.com> References: <20200411182122.2677248-1-iskren.chernev@gmail.com> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Daniele Debernardi This introduces the usb node which can be used e.g. for USB_ETH Signed-off-by: Daniele Debernardi --- .../boot/dts/qcom-msm8974-samsung-klte.dts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts index 42fc18804021..df85d90100d9 100644 --- a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts +++ b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts @@ -272,6 +272,31 @@ sdhci@f9824900 { 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 = <&pma8084_l6>; + v3p3-supply = <&pma8084_l24>; + + /*extcon = <&smbb>;*/ + qcom,init-seq = /bits/ 8 <0x1 0x64>; + }; + }; + }; }; &spmi_bus {