From patchwork Fri Apr 10 02:31:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iskren Chernev X-Patchwork-Id: 11482683 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 3082B81 for ; Fri, 10 Apr 2020 02:32:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0F8F120B1F for ; Fri, 10 Apr 2020 02:32:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZaJ2VA+k" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726707AbgDJCcj (ORCPT ); Thu, 9 Apr 2020 22:32:39 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:44081 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbgDJCcj (ORCPT ); Thu, 9 Apr 2020 22:32:39 -0400 Received: by mail-lf1-f68.google.com with SMTP id 131so367715lfh.11; Thu, 09 Apr 2020 19:32:36 -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=/BjaClGsv2QfVYrtrGl8x80P9NmKuxyd3Zm0+/Zkvbs=; b=ZaJ2VA+kwmi8/Iy7QhhUgxssafCeWV/5lom5hSbqhWHCE1iSKSq8ETffyK5BlSvfZq 2+QgMp4o92TTNmyKhXc8G2g+6pJ8zlCfDsZ3Cjdv19yqiBXVNYyiRd9Nb20ivviUSRb4 GKf97AtefJ+BtnbwvFK6tbkguK2bDejsLyJJ3tih8o9eoBWss/PbvCzPfvRYcC6rQUuR KpIwKuLZWPHS41sMwMalW/sTAo/6Ptly84cE22vT8tZ0j50MRPCaXCHsO5k9nJ7bsSsi lof8ziyDmgvepPy43uhP6RTwC5cn+JXsJurEwGUedt8o8FHUocPjvevwj2sIy9ombZHe Gw8g== 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=/BjaClGsv2QfVYrtrGl8x80P9NmKuxyd3Zm0+/Zkvbs=; b=tD8fnQn8e/jtYsVCrxXiJ9WG9nIkpsfcb/nh8Wo5ymAWQTMAB/BgtllUzSN10fTuhJ 5S5NgOx87oLIf/O5K9Ew86kJYMHewua7HgEEFrcx3lRBNjbr7CKSk39ytwX6CzmXMgDP kHK3K8QgtbFtAmsOmxgFAeR54klra2DQZKLzIuZjA+X8J7ofsYo7e+C28rTaTGeZ5Uc4 OiuthX8GQd+1jjd0budRBZMA4TK7YILA4gtXGX9bif4E4BtFFSo513lwBYoeXbGqANFN Nc8KKPaE4AvmuZb0hHEIVt72nFoN+HOsoMy7pOIJmswcCDVVh/DpXY4beVyCod7x/6VN aUbw== X-Gm-Message-State: AGi0PuZVUTdFdOHgGwTcDsnQFnsV035f3ZpGJ06BpZso34rBV/8BlMBC S19mTX9lJgZSCiftDE95uVhEHiPqyC60sA== X-Google-Smtp-Source: APiQypI2IlDacgBvHjWuGdNmHD98+rBt6DrKIzXrX4QTHwObsrlDtfbgCal+QMozCv21LNdQouKXcg== X-Received: by 2002:a05:6512:10cd:: with SMTP id k13mr1241168lfg.173.1586485955626; Thu, 09 Apr 2020 19:32:35 -0700 (PDT) Received: from localhost ([213.191.183.145]) by smtp.gmail.com with ESMTPSA id o16sm264331ljp.53.2020.04.09.19.32.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Apr 2020 19:32:34 -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 1/6] ARM: dts: qcom: msm8974: Add pma8084 regulator node Date: Fri, 10 Apr 2020 05:31:58 +0300 Message-Id: <20200410023203.192048-2-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200410023203.192048-1-iskren.chernev@gmail.com> References: <20200410023203.192048-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 regulator node is added with status disabled. It is used in the Samsung Galaxy S5 (klte) for various things including gpio keys, sdhci, usb, dsi Signed-off-by: Daniele Debernardi --- arch/arm/boot/dts/qcom-msm8974.dtsi | 53 +++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 2ea2308d91b3..fdb93138be25 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -1600,6 +1600,59 @@ pm8941-regulators { pm8941_lvs2: lvs2 {}; pm8941_lvs3: lvs3 {}; }; + + pma8084-regulators { + compatible = "qcom,rpm-pma8084-regulators"; + status = "disabled"; + + pma8084_s1: s1 {}; + pma8084_s2: s2 {}; + pma8084_s3: s3 {}; + pma8084_s4: s4 {}; + pma8084_s5: s5 {}; + pma8084_s6: s6 {}; + pma8084_s7: s7 {}; + pma8084_s8: s8 {}; + pma8084_s9: s9 {}; + pma8084_s10: s10 {}; + pma8084_s11: s11 {}; + pma8084_s12: s12 {}; + + pma8084_l1: l1 {}; + pma8084_l2: l2 {}; + pma8084_l3: l3 {}; + pma8084_l4: l4 {}; + pma8084_l5: l5 {}; + pma8084_l6: l6 {}; + pma8084_l7: l7 {}; + pma8084_l8: l8 {}; + pma8084_l9: l9 {}; + pma8084_l10: l10 {}; + pma8084_l11: l11 {}; + pma8084_l12: l12 {}; + pma8084_l13: l13 {}; + pma8084_l14: l14 {}; + pma8084_l15: l15 {}; + pma8084_l16: l16 {}; + pma8084_l17: l17 {}; + pma8084_l18: l18 {}; + pma8084_l19: l19 {}; + pma8084_l20: l20 {}; + pma8084_l21: l21 {}; + pma8084_l22: l22 {}; + pma8084_l23: l23 {}; + pma8084_l24: l24 {}; + pma8084_l25: l25 {}; + pma8084_l26: l26 {}; + pma8084_l27: l27 {}; + + pma8084_lvs1: lvs1 {}; + pma8084_lvs2: lvs2 {}; + pma8084_lvs3: lvs3 {}; + pma8084_lvs4: lvs4 {}; + + pma8084_5vs1: 5vs1 {}; + }; }; }; }; From patchwork Fri Apr 10 02:31:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iskren Chernev X-Patchwork-Id: 11482685 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 F324981 for ; Fri, 10 Apr 2020 02:32:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CB7B020B1F for ; Fri, 10 Apr 2020 02:32:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="i5j3PFiP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726082AbgDJCcq (ORCPT ); Thu, 9 Apr 2020 22:32:46 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:39032 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbgDJCcq (ORCPT ); Thu, 9 Apr 2020 22:32:46 -0400 Received: by mail-lf1-f68.google.com with SMTP id m2so383111lfo.6; Thu, 09 Apr 2020 19:32:43 -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=1CEo3THdQrqkALDacLlhylmnLwp0CQxNGpQ3ynPcoU4=; b=i5j3PFiPlZ8UAFsg3Mc9PbC9MGmVfAMp+JCu6mGobqXbOoD4kkLcRyI8pdXvgVziZq r3T0ewRzae2SHJUlXCLK/hJIqcSA1WvkJacWSmfxyVMKr75+VYErMrcWfdicZRwauTq4 4iIAPKcVLqrB6SIMaF7snuB3i+1uL8/xZID+gqOrW9fKM8KV7OHV6ZvfhctEc/zR43sl 8V69c++sPsLIWp6ca4pY3zbLuMNWyz2rgw60ZAoiYmAzrD5O0llX8LOu8xrmgYwYYyF7 0CLxGdiDe14PqIoSvVVeXSjbcclRDkJ24MKTUuojgRixlQc90tPaIYgCoGTRxGz0ABdl W9WQ== 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=1CEo3THdQrqkALDacLlhylmnLwp0CQxNGpQ3ynPcoU4=; b=uZFW1X6s4IpcXf79jpLgFuRpgptsJesp695dB/rn37SIyop/wCu6icxykYtSsny3o8 b2klhJfj96kcOhrzlXcuo7B/vDkDiigcp2/6r2k2BXEH6tFI4OV9k+l1f9UkzKGofXO5 pviHKVIHCEoQ1gKunfjWHXuLFd28b0P+RJwzl8apG0ONEGplbT7a6rMzm/JewJp1Qqkb GYmUIOsbvN5TPH6N+9Fmh/sfhJs6zx2vHVupmm484m/kFRp6sZNg+NIkJA1dfwcb56G0 f2Angljtthb1WvunfzwtKnf6kseC6Vf5iRq+vc4QKROnTvirGbENqk+vIXg4ebqZlQEt ETEg== X-Gm-Message-State: AGi0PuaPRM0Z63j/PV1L3Ksuc2La6yYSRze+PpgIrw2/gXiXt0WGB4ba o3pm/aJ0i2hUA7FIHRdLotH5gQCGgMwqPQ== X-Google-Smtp-Source: APiQypI4Ks8H4DdYDla9cXARasH4ua2bXjOd5Bm7Ywt/vfV7gQQZJNvS1R6zkzo6MGN0i0z6LldHZg== X-Received: by 2002:a19:e00e:: with SMTP id x14mr1295936lfg.111.1586485962299; Thu, 09 Apr 2020 19:32:42 -0700 (PDT) Received: from localhost ([213.191.183.145]) by smtp.gmail.com with ESMTPSA id x17sm565567lfg.36.2020.04.09.19.32.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Apr 2020 19:32:41 -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 2/6] ARM: dts: qcom: msm8974-klte: Add regulator nodes Date: Fri, 10 Apr 2020 05:31:59 +0300 Message-Id: <20200410023203.192048-3-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200410023203.192048-1-iskren.chernev@gmail.com> References: <20200410023203.192048-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 voltages are pulled from the vendor source tree. Signed-off-by: Daniele Debernardi --- .../boot/dts/qcom-msm8974-samsung-klte.dts | 176 ++++++++++++++++++ 1 file changed, 176 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..6b184819f1ce 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,181 @@ aliases { chosen { stdout-path = "serial0:115200n8"; }; + + smd { + rpm { + rpm_requests { + pma8084-regulators { + status = "okay"; + + s1 { + regulator-min-microvolt = <675000>; + regulator-max-microvolt = <1050000>; + }; + + s2 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1050000>; + }; + + s3 { + regulator-min-microvolt = <1300000>; + regulator-max-microvolt = <1300000>; + }; + + s4 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + s5 { + regulator-min-microvolt = <2150000>; + regulator-max-microvolt = <2150000>; + }; + + s6 { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + }; + + l1 { + regulator-min-microvolt = <1225000>; + regulator-max-microvolt = <1225000>; + }; + + l2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + l3 { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1200000>; + }; + + l4 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1225000>; + }; + + l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + 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 = <1300000>; + regulator-max-microvolt = <1300000>; + }; + + l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + l13 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + 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 = <3300000>; + }; + + l20 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + }; + + l21 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + }; + + 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>; + }; + + l25 { + regulator-min-microvolt = <2100000>; + regulator-max-microvolt = <2100000>; + }; + + l26 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2050000>; + }; + + l27 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1225000>; + }; + }; + }; + }; + }; }; &soc { From patchwork Fri Apr 10 02:32:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iskren Chernev X-Patchwork-Id: 11482687 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 D573A81 for ; Fri, 10 Apr 2020 02:32:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B23B120B1F for ; Fri, 10 Apr 2020 02:32:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QyeRCji/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726774AbgDJCct (ORCPT ); Thu, 9 Apr 2020 22:32:49 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:40128 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbgDJCcs (ORCPT ); Thu, 9 Apr 2020 22:32:48 -0400 Received: by mail-lj1-f194.google.com with SMTP id 142so615995ljj.7; Thu, 09 Apr 2020 19:32:46 -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=WbfQJnH6RMbPR4Tuk3580npqQDobRyP1jPZtOu/Ghcc=; b=QyeRCji/WcqVGUHvdf8W1orbFoexxlm7dh9Z95ODigM+MYexOTa6Oduxg+i0tH6zo/ kIxAVId8ouCPBWXRJAGIGI8Suv3Wrfjr6scNcH8sbWIYzxJl3m6stdPLy+mN9s3Bfray kdt2G2aVOScIlCcziSOzRW8Eyy9ve6QbtDtObZ9v6shI7g3kyE0+g9XBpdFnT/GLj5PL xF0v6qoIZqwJ8eeMq+nK5SW+PQhwj5R0iec4UcZ3JAH8PuPdinIziOBJzDZpORwkfliy LnK2biCUym6lf4P5rtNKSuMdlN/0lyLwGZjCt1xBfhG0bhCwKi8F4XZAHeTwGVqtPhfW do6w== 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=WbfQJnH6RMbPR4Tuk3580npqQDobRyP1jPZtOu/Ghcc=; b=UtztMntSPUiOY34z2GU3EHr/13wuFaBZt8lqv9Qb5G5o/VySltpQ2OWYV3w0U47Oon N2AXXQfMo7OOiajKVio8yrWDqIb2ymaXGDcuSF6QEqPuRz6+dycWNoWaAIzpDiuzTQ2R fRf/5z0h4SSiMQQjD6OVQLL80Y3QOsZtS+ECHmfMi5PcG2oyWwT+duTnXdXqR/3BsA0F To/O5kRTidOdAeEMSH9ijbvqV2fgBCHosW7Ohh+kT16ka/FGGxwejeTzVOA9zrmzz3GO OOT0EFY4lXcfFlWMdk4+t06DBy2IxFGk9uc56/FqYDd0xv77ufXIIk3IXYGwh0gn/ln3 TBFQ== X-Gm-Message-State: AGi0PuYYFNs0gKzrKxVsWqQh/D4Jcv2i66nCc4UKUopgK1DBHiIjCvtq 9s8LDlVPPv41d4MtDjcFUQXbeqU8cAsHEA== X-Google-Smtp-Source: APiQypJ8qmC96lKSJTFD2dHk2PtFiCANE21tJ3bjp4WgY8iJMmXHMu9aK9kXSo5F6H19/3JkmJL0wg== X-Received: by 2002:a2e:a365:: with SMTP id i5mr1628618ljn.246.1586485964943; Thu, 09 Apr 2020 19:32:44 -0700 (PDT) Received: from localhost ([213.191.183.145]) by smtp.gmail.com with ESMTPSA id b16sm268446ljh.20.2020.04.09.19.32.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Apr 2020 19:32:44 -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 3/6] ARM: dts: qcom: msm8974-klte: Add gpio-keys nodes Date: Fri, 10 Apr 2020 05:32:00 +0300 Message-Id: <20200410023203.192048-4-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200410023203.192048-1-iskren.chernev@gmail.com> References: <20200410023203.192048-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 6b184819f1ce..21335999a024 100644 --- a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts +++ b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts @@ -3,6 +3,9 @@ #include "qcom-pm8841.dtsi" #include "qcom-pm8941.dtsi" #include "qcom-pma8084.dtsi" +#include +#include +#include / { model = "Samsung Galaxy S5"; @@ -197,4 +200,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 Fri Apr 10 02:32:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iskren Chernev X-Patchwork-Id: 11482691 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 B92BF112C for ; Fri, 10 Apr 2020 02:33:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9989C212CC for ; Fri, 10 Apr 2020 02:33:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="en6Vh+d1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726793AbgDJCcv (ORCPT ); Thu, 9 Apr 2020 22:32:51 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:40156 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726776AbgDJCcv (ORCPT ); Thu, 9 Apr 2020 22:32:51 -0400 Received: by mail-lf1-f68.google.com with SMTP id 198so381031lfo.7; Thu, 09 Apr 2020 19:32:48 -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=VWKi6VRDm5SDW3y0ubYhqiYe82Hc9AZr1BHz5r8B5mA=; b=en6Vh+d1e9XamkEvUkTUxnRAjg7pJmsXs+ztaaiCVXZKTn2sWLWn3wbRwuHlScA4Xr 5IR8v6yHAfPI1rNoQWJxBEMG1b8kbkww0ReDLl0pLCfeEll4PTAfkM0h/9MMXqBJkHe9 WuOmXBqjU26af2jNTRQapA/oLaONrsXCBEVZLHszv1v6fKunB+x8TLi0P95+UtBbI86K k+88BzWoDE00vPJ6eHl2cSO0fxdoditbmVrI5thrjtomwzJxtvGvPGmRqCI+o69yEzQ+ TNmINHtsWsXi4McxM1Pt3fg94tHWj9nlc45iWoHycm1nvCT1WNVecvA1EqTrheV9Shnf nFIg== 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=VWKi6VRDm5SDW3y0ubYhqiYe82Hc9AZr1BHz5r8B5mA=; b=RIWeaVgpexRB2pxcRU40j7vov/gP/hHvKUFFtW401DdN2e+sN09+Kq+5gYNCtat69u iVTNp72ij+xr6jsmVLpRq9IFt5oHnfIdcU4abYCImSZRmRPmCqDfPtFqFw3kTWYVzLG0 e8/FMYJ8Na8YMw0NfzT5swmX8/ZNUqlFw7GJfpkfQ/4QV+yW4oNESJN1X1qlbVFBPt/0 vDsMf+F3UB8vDiQgVkOXWmQr0Gx/WrCypbOrig1xOxR0DhEhxHm3MYNjwmBqzIHuWZaQ xBZ12Q2yzrpLvIaoDMX4jn4jWKXGYSVyIeF5QcJnzMTJ0MY4brUX8bQztl/d/tt6UsS0 Cteg== X-Gm-Message-State: AGi0PubBwUPbOVzm0BQyS+cw6gSxpEE6Q1qLG6MaaVdDU28h+hJxCbVi Cpm0o5/EryGFThJM/QYWCo8P8I5gP+ay6w== X-Google-Smtp-Source: APiQypKHmu6pb2IVpV0u1Uuc4X5XVu8meQGR4TaY71qteOknvUfldY2eA2qlks7OFDj/XazjtchAcg== X-Received: by 2002:a05:6512:3135:: with SMTP id p21mr1274558lfd.36.1586485967642; Thu, 09 Apr 2020 19:32:47 -0700 (PDT) Received: from localhost ([213.191.183.145]) by smtp.gmail.com with ESMTPSA id u7sm433361lfu.3.2020.04.09.19.32.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Apr 2020 19:32:47 -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 4/6] ARM: dts: qcom: msm8974-klte: Add sdhci1 node Date: Fri, 10 Apr 2020 05:32:01 +0300 Message-Id: <20200410023203.192048-5-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200410023203.192048-1-iskren.chernev@gmail.com> References: <20200410023203.192048-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 21335999a024..de0bf6b7e732 100644 --- a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts +++ b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts @@ -153,6 +153,9 @@ l19 { l20 { regulator-min-microvolt = <2950000>; regulator-max-microvolt = <2950000>; + + regulator-allow-set-load; + regulator-system-load = <200000>; }; l21 { @@ -232,6 +235,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 Fri Apr 10 02:32:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iskren Chernev X-Patchwork-Id: 11482689 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 759E281 for ; Fri, 10 Apr 2020 02:33:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 55F87215A4 for ; Fri, 10 Apr 2020 02:33:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BBAYw+BG" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726812AbgDJCcz (ORCPT ); Thu, 9 Apr 2020 22:32:55 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:44091 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbgDJCcw (ORCPT ); Thu, 9 Apr 2020 22:32:52 -0400 Received: by mail-lf1-f66.google.com with SMTP id 131so368065lfh.11; Thu, 09 Apr 2020 19:32:51 -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=GRYexHiGlHYS2OWu1UqqdC4MhAnmblXrqW381GPECfY=; b=BBAYw+BG3rrs+XEE4ed6Qv/Qmwavu8nNLw7Re8Pv9v8p7xNHcZK3AaLVX9cPOTmIFx yUmOdmugsHW1ydXn0383VDZ31hDFyRIeiZlOAlZltuINRu/J2KcXF75SIMbTcEbVG84I R5JBPn37l2mIxcAh8+JK/wve3Shc1S2zQ89bi9MYHoL7fEBRT5KJucWXBaWj7UCsHCjw XyVrDnk77E/SCB2OxW6qmAjVS29vZd0r0hEdtJEBG5PuHDJDyuJFX0qRZBZXaPp++iCp VhkjaQBCr5AzdJnlv90zVh1YDxp1jI+NikU9eNSGAmvfmXwy3YaDYiL0xN6yrhEsx3RN 1w3g== 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=GRYexHiGlHYS2OWu1UqqdC4MhAnmblXrqW381GPECfY=; b=ZRBIP/ebmdt8kB2Nnubzg1VHE7jCbBFSygEN7cLqyBCBWxwzVpFK53w5vxOTaugBry 63oaHKavWxhN7zCzNcQK1xp8qUE5ldSmEgwZg5frXfsTISjz2WvyE5c1qEgzZIN0TkR8 V1qJq2at/1ur9LgMINBzpqJpf/zTtV4Fa1gQvmL05VrTvur3TBr53UIhjutRO13QdBqR qveJZYRevRIVQq3/kjcSSJtB1MpB+yUjeDbFpylurFH4fANO96jak2IyWGA9BUL2Iwz4 QQqQsUFUPXAlnpMwECOrLFnlsn5sFCnzo2wA0PcOGLNneIHV6ILMVhYWE0B33XXrA2u1 HYRQ== X-Gm-Message-State: AGi0PuZFJWsVeSyYGk6AvS/WIRiY+QtvaRAzwjubyQo5HFNjwH7VYTGq 0EC+SQnl7+r2ia8KMG2b7roe5OR1YLxukA== X-Google-Smtp-Source: APiQypIAaoBNNNTErcLAiMjEaEPexcgivbo0e3XytA6AzZFotVDr8zQ4mmaN/zExBKg4F1qjX0VgIA== X-Received: by 2002:a05:6512:3049:: with SMTP id b9mr1320447lfb.176.1586485970329; Thu, 09 Apr 2020 19:32:50 -0700 (PDT) Received: from localhost ([213.191.183.145]) by smtp.gmail.com with ESMTPSA id v3sm415033lfo.62.2020.04.09.19.32.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Apr 2020 19:32:49 -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 5/6] ARM: dts: qcom: msm8974-klte: Remove inherited vreg_boost node Date: Fri, 10 Apr 2020 05:32:02 +0300 Message-Id: <20200410023203.192048-6-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200410023203.192048-1-iskren.chernev@gmail.com> References: <20200410023203.192048-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 de0bf6b7e732..ad26c83fee81 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" #include #include @@ -196,6 +194,8 @@ l27 { }; }; }; + + /delete-node/ vreg-boost; }; &soc { From patchwork Fri Apr 10 02:32:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iskren Chernev X-Patchwork-Id: 11482693 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 DE8E081 for ; Fri, 10 Apr 2020 02:33:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BEEF320769 for ; Fri, 10 Apr 2020 02:33:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hzo34WeH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726571AbgDJCdC (ORCPT ); Thu, 9 Apr 2020 22:33:02 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:43212 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbgDJCdC (ORCPT ); Thu, 9 Apr 2020 22:33:02 -0400 Received: by mail-lj1-f196.google.com with SMTP id h25so599718lja.10; Thu, 09 Apr 2020 19:32:54 -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=Jl9+MFoz9FOVeQYZvGEhfQsUzeR6H5+fWjwrI15x2z4=; b=hzo34WeHzqF2MRVekRCB6qQ2to+82InUQzzrEI3aHJE38TD2HK0mkYL8XmXe5U8/Ug dhkFmz32aonURvzYSQmBfDf4Y5bJgSRmK4c/7iZyejYluqqpH4j/cdkNAIVPEzkUNcEU YJIXvLVax7P5GiAiNrZ8t86nFtsj3YK+PWZHSIsW6XIx+hHG0QQaG/fP+tDfiOeOD/d4 WeJXYjrHaWkGter4N//y0HIxIPAnlIfIB8R3jZC4kxgZx4ddyedcSUVXzBPuFem+41mw i30TJGB5Bg+3URW5FqjCBBj8Tubreog0XYXPiXZoUcvH6VjSmEQwD40PZBHvtRG/JWhm CjBw== 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=Jl9+MFoz9FOVeQYZvGEhfQsUzeR6H5+fWjwrI15x2z4=; b=YbIeg6alQIoT0HOQs21zl/a80TgndsLvLBI+DQpEup866Fy+SXBC2AP05fL7CiGJn3 3A5cEuwSPS6nYLJVWfOjAnCS6MgBlRMjOIjlQYFEQdeN4XFtb2sq6J4edwpAXXIAFTkA WybErX7XDE4flRUD876gvbMtJ9JiumdH/v7FjIL0N15DnXWn16cvotDj1f6fYhIHEnG1 p28nFM+iEfMze2BXmfZLAezGkXpV9fDaRt7gDA8hlKWiv7EpcyHPaB7VFkfp/D5sISrW EFBVx+e5fx4S5MH1ZxqFVuMx7/F1Fkk9iG6H+DHitcNij8bwMw2AUDD5ibJ4pIaJEK3i Ikzg== X-Gm-Message-State: AGi0PuZQ5c+rSeTZ4B8CxMf1SBmXUd03H88C+aw8bpStoX2b1vvZLfIA kZwV1wez6Ooy5PXnB8IYocIaG7SE9BT84Q== X-Google-Smtp-Source: APiQypJWofmM8Qlyb2FI7O0p2padX/aOtgYx9otx/2dnfLObyekNxIuKl5+r6b20D5ZTWeEQ44DyKw== X-Received: by 2002:a2e:b52f:: with SMTP id z15mr1642957ljm.38.1586485973083; Thu, 09 Apr 2020 19:32:53 -0700 (PDT) Received: from localhost ([213.191.183.145]) by smtp.gmail.com with ESMTPSA id f7sm274127ljj.4.2020.04.09.19.32.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Apr 2020 19:32:52 -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 6/6] ARM: dts: qcom: msm8974-klte: Add USB node Date: Fri, 10 Apr 2020 05:32:03 +0300 Message-Id: <20200410023203.192048-7-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200410023203.192048-1-iskren.chernev@gmail.com> References: <20200410023203.192048-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 ad26c83fee81..691a3cf2dd96 100644 --- a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts +++ b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts @@ -264,6 +264,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 {