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: 12001493 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14DC0C43331 for ; Wed, 6 Jan 2021 12:55:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F163022CE3 for ; Wed, 6 Jan 2021 12:55:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726894AbhAFMzi (ORCPT ); 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-Google-Smtp-Source: ABdhPJzL4UpIcoQQft4bDSprEfpkaFa9oFVGGhbvc5lJRrfc9tjJO0ei4rgIaN5sIYPHXlRH7A3hFw== 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 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>; + }; +};