From patchwork Wed Jan 6 12:53:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 357565 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp843525jai; Wed, 6 Jan 2021 04:55:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmpWBapP74cmXMk7LbqQhsafXenByvojv1x+rOgEAsiA+CpgneK4ucqz7VMPAR7EUz0LaJ X-Received: by 2002:a17:906:d782:: with SMTP id pj2mr2827303ejb.387.1609937750323; Wed, 06 Jan 2021 04:55:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609937750; cv=none; d=google.com; s=arc-20160816; b=JV1zM4TE56JJ5T23dB6UOlcWcb6AG5FZOcdLdULIi3us+dAFX+xMPSPXfK+jfMomhs 4vK8khUJMV2x8f5JY5iYMikN6ED3npDGivfAOLyXbaIU8UohAwK67fNxU6cXPWm5cKCO hLh1IaSZdrlnOFCyF3fKCMUafNpsKA5LqkL+aiE5g3YYGf9rUdsBOZVagYI0Z0X+uut+ YqRY1IFkk40e1vEg1WAN6oAZn/TAf92I4Vt9m76RIHt5KfF6zoCN6Ryk6Fil6IXq0zca bFR9P48Ob2lt8tFJxh2dQpQeNH/nPzw+WBuU9Gjh5nVgLN7G0FYrjJMW2RHHW/sf6Rps aypQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=b0jqBat3BonuQvaOdiiTz0KA0EHm42GNNSe+AuL4HxE=; b=iJK6qbeHK8M237VlE1n27EPFAz2pKYoO3W+wZ82i9i6NbSHHrj1kqm6MTOld+2xGdC jSfYVdzQsiU+LPm1R2/zDbNSL5D8t2TGKqFgBs5wUvR0WqB7i9PG1sWDPnFz78VljgUL vHEVWozhQpS5k9sMByQHYhKgCrKJW8qCPDxRHrdyxAa0YLCdWwpyg8T5wTzbDCyC0GpX rt1+sR2sUf/g3szBAbCZZ1ER0WqWysAFq2MyY6k+3Wjq6RRoSkZMmz+Zex1jAryCgPXG nua+ufpWTNF9/YUFS0GK/0p46qi/Aglluko7WILPS8x0OkWNZdEakkVChyz4KZDPDMTD 4s7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u5MrPQNT; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u9si930006edv.418.2021.01.06.04.55.49; Wed, 06 Jan 2021 04:55:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u5MrPQNT; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726894AbhAFMzi (ORCPT + 15 others); Wed, 6 Jan 2021 07:55:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726799AbhAFMzg (ORCPT ); Wed, 6 Jan 2021 07:55:36 -0500 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6A93C061376 for ; Wed, 6 Jan 2021 04:54:49 -0800 (PST) Received: by mail-pg1-x52f.google.com with SMTP id p18so2149230pgm.11 for ; Wed, 06 Jan 2021 04:54:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=b0jqBat3BonuQvaOdiiTz0KA0EHm42GNNSe+AuL4HxE=; b=u5MrPQNT9IIqcQbzJQZx7ResLriMMT3qfuRwH2ffzSxl/SZJ6WLfg3RWW9U0sKgVpo 8EO2rBwoYDBKEpzE0z356GDn42McauraHfr2FeB7B3js5ZDYskxysU3i+wybqvsBhsTj dFlgqtAC3ny0v/J0nqzHRLAd6eaMRao8EM4Ah6r+Pi7ylLZFQ1PYgPoJCKsLxHD+gBGx qV1qUxbQevYJjiLFqv+CKReO7FBucut4GdL28mH2o7OgtjGTMDeuW//d86XSnJMMVmCc Mz+fx2n7j+KzoL1kK2zD+NCveem+ZdIAGpkXrpAISUw9+3hUV5hQ3zNvZl7DBAIUsJ9N Z92w== 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=b0jqBat3BonuQvaOdiiTz0KA0EHm42GNNSe+AuL4HxE=; b=Y/q8gEv1isxIO7VoUaaURyiMzTRRSwExe+eHDZLhvV2JIwDwN1b4ODkqQzMFlZg5F9 PbPa0Rt+QcVNodVkTg6xkoD/rcHoz5ew/DqIKDzGbXVOwDfY9oU/Bi/K04I8gNubNvPo 9f2zFouJ9LckJiMdrMvhgg5LCS7XjQD5kXr4DBHltZxAQ4kg45x2GCkVwE4H9fy3Mi60 UfSBtQum06bmHuEQy2YbRMqIuyg0CRBhsAD7ZwzcHZGWrofIw72rp6yA6gxajBQMZjPG sc+XFXBKZY1emKkgQYez4l80ZfqcedytYmz/7FiiAuO6BPYlNJfO7PjlQYydnLWmgEsU etzQ== X-Gm-Message-State: AOAM531r7z2Ob3U+sHjUhdlylVetGntXQCNhwYUvnqjgl3ttMexWgoSb GfO0US7ziJhI2quA1t/KO2sv X-Received: by 2002:a62:97:0:b029:1ab:93bf:43a1 with SMTP id 145-20020a6200970000b02901ab93bf43a1mr3679852pfa.75.1609937689402; Wed, 06 Jan 2021 04:54:49 -0800 (PST) Received: from localhost.localdomain ([2409:4072:6102:e7a2:51f0:bf72:bf80:ec88]) by smtp.gmail.com with ESMTPSA id n128sm2918182pga.55.2021.01.06.04.54.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jan 2021 04:54:48 -0800 (PST) From: Manivannan Sadhasivam To: agross@kernel.org, bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Vinod Koul , Manivannan Sadhasivam Subject: [PATCH v3 17/18] ARM: dts: qcom: Add PMIC pmx55 dts Date: Wed, 6 Jan 2021 18:23:21 +0530 Message-Id: <20210106125322.61840-18-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210106125322.61840-1-manivannan.sadhasivam@linaro.org> References: <20210106125322.61840-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Vinod Koul This adds DTS for PMIC PMX55 found in Qualcomm platforms. Signed-off-by: Vinod Koul Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/qcom-pmx55.dtsi | 84 +++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-pmx55.dtsi -- 2.25.1 diff --git a/arch/arm/boot/dts/qcom-pmx55.dtsi b/arch/arm/boot/dts/qcom-pmx55.dtsi new file mode 100644 index 000000000000..6571b88d018a --- /dev/null +++ b/arch/arm/boot/dts/qcom-pmx55.dtsi @@ -0,0 +1,84 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2020, Linaro Limited + */ + +#include +#include +#include + +&spmi_bus { + pmic@8 { + compatible = "qcom,pmx55", "qcom,spmi-pmic"; + reg = <0x8 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + power-on@800 { + compatible = "qcom,pm8916-pon"; + reg = <0x0800>; + + status = "disabled"; + }; + + pmx55_temp: temp-alarm@2400 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0x2400>; + interrupts = <0x8 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; + io-channels = <&pmx55_adc ADC5_DIE_TEMP>; + io-channel-names = "thermal"; + #thermal-sensor-cells = <0>; + }; + + pmx55_adc: adc@3100 { + compatible = "qcom,spmi-adc5"; + reg = <0x3100>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + interrupts = <0x8 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + + ref-gnd@0 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "ref_gnd"; + }; + + vref-1p25@1 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "vref_1p25"; + }; + + die-temp@6 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "die_temp"; + }; + + chg-temp@9 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "chg_temp"; + }; + }; + + pmx55_gpios: gpio@c000 { + compatible = "qcom,pmx55-gpio", "qcom,spmi-gpio"; + reg = <0xc000>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + pmic@9 { + compatible = "qcom,pmx55", "qcom,spmi-pmic"; + reg = <0x9 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +};