Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp727203ybp; Fri, 4 Oct 2019 04:06:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqznurRVTuJADjow7PkPP2eOtCGTKCiASdG7mtSgh788ZcuxkxBx7eGYQjZUQWYeUaX8GdDr X-Received: by 2002:a50:f747:: with SMTP id j7mr14541100edn.73.1570187218740; Fri, 04 Oct 2019 04:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570187218; cv=none; d=google.com; s=arc-20160816; b=Vw/r0J9wmrAILec/oNW5sBLh/3WwDhHnt3XTLucYEfM2Ru+Yn0EAcmvlUHJppK8atM yuoawEhMIRhCdqZsbU62HSGUSK923OQh0yJPw5LBHviSy4KKz/W7241lWqxpZ4O6m2xk Vl6Ztc40IirkqgxoaMWdk1qUUXCsRfEvVM5yBktq0eKpyeHKlSQAj73/UoiLMyAuOdhz 7Kur3Z1oTvXPrH9varSJc7nlNj6RymiAkmkVF3pYQcUuGLvXLZ+gUfCgSs5/phTu7M8B 1Qbpw3mz7dFVTW1u7ZhHd6iebqxYJwK4sVtVzYR3pEdp+dcSMa8tOExkNa2se5xf59DQ OIJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature; bh=yTUM8jZJB5UKGCfT7MFNn2PfVkqM5bcoRx3QFtA4zMA=; b=D/OxvTJCK9tlREQvnuh+UHQ8RKDR9SMs7rFUn5ZZgpNQNqHbTXKkUC5ZIAamgAjA2B 92x6vAyt8UoVohveIw2dRrSPQ2yYVpC3IdEJ3ut1+RKnKZIJ9DUnKNJfGIZo7FgbqyhK KShsMvbuFTBn0qUoD+0Es09GXlmH6emSB1u6y+lPTfC9HiOcK+JzEpwZUFD2dZ1LM94H GLkvGBfCIxuqSH/kiZdVgytI91EzKFHyuiAAXLVN26TpCMRGYh7lvZ+jiEpP0fZSrQat yFKSSo8B0szCTxHCwWruHbSLxeVKLX0iSCCXQad6R7RKM3bT0gJa1hgeCGuywAZD2Y1f fUTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=kDg62MuN; dkim=pass header.i=@codeaurora.org header.s=default header.b=iFBZmGlN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id um16si2696065ejb.12.2019.10.04.04.06.33; Fri, 04 Oct 2019 04:06:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=kDg62MuN; dkim=pass header.i=@codeaurora.org header.s=default header.b=iFBZmGlN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730394AbfJDLEJ (ORCPT + 99 others); Fri, 4 Oct 2019 07:04:09 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:41564 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725788AbfJDLEI (ORCPT ); Fri, 4 Oct 2019 07:04:08 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 376C1615E3; Fri, 4 Oct 2019 11:04:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1570187047; bh=o9Q3oVGsIq8ddRmA0Y32IL0bB6MQt35nd+BPbREYsbQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kDg62MuN+DPQV/vNMDi668tfLEFtl0qTVxcPy+JIa5QVck7a8rYs3+XG6EXDYKQ+m D5+CT1b/Uds9lfRQLWK5oPSV3Nhe4HbHlU6CKwHXSog+r4mFg3NiMHF5n0/C7GU5NP 7JWH9zv2Eh03RkWiVbwVFImnRpnn+w2whZSAWbfo= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from kgunda-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kgunda@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id E4FFA60A37; Fri, 4 Oct 2019 11:04:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1570187045; bh=o9Q3oVGsIq8ddRmA0Y32IL0bB6MQt35nd+BPbREYsbQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iFBZmGlNLIcWpDzQqOiVO8F99nPvDdQbhnF5r7PZc6wrCd6xnlfpcIyOT2Wl2sjCo BlrPSSk79hz4z7M2PN7ZRrZqaYI5wKAsMqDTsKY/pALJbg7dzL8Ko+tXg1XgeonZM/ 8WAylQJozYjxKz3mTjLRMeOtnCKAz1r404vXbHv0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E4FFA60A37 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kgunda@codeaurora.org From: Kiran Gunda To: bjorn.andersson@linaro.org, Andy Gross , Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Kiran Gunda Subject: [PATCH V2 1/2] ARM: dts: qcom: pm6150: Add PM6150/PM6150L PMIC peripherals Date: Fri, 4 Oct 2019 16:33:48 +0530 Message-Id: <1570187029-12470-2-git-send-email-kgunda@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1570187029-12470-1-git-send-email-kgunda@codeaurora.org> References: <1570187029-12470-1-git-send-email-kgunda@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add PM6150/PM6150L peripherals such as PON, GPIOs, ADC and other PMIC infra modules. Signed-off-by: Kiran Gunda --- arch/arm64/boot/dts/qcom/pm6150.dtsi | 85 +++++++++++++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/pm6150l.dtsi | 47 +++++++++++++++++++ 2 files changed, 132 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm6150.dtsi create mode 100644 arch/arm64/boot/dts/qcom/pm6150l.dtsi diff --git a/arch/arm64/boot/dts/qcom/pm6150.dtsi b/arch/arm64/boot/dts/qcom/pm6150.dtsi new file mode 100644 index 0000000..22d2445 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm6150.dtsi @@ -0,0 +1,85 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2019, The Linux Foundation. All rights reserved. + +#include +#include +#include +#include +#include + +&spmi_bus { + pm6150_lsid0: pmic@0 { + compatible = "qcom,pm6150", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pm6150_pon: pon@800 { + compatible = "qcom,pm8998-pon"; + reg = <0x800>; + mode-bootloader = <0x2>; + mode-recovery = <0x1>; + + pwrkey { + compatible = "qcom,pm8941-pwrkey"; + interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; + }; + + pm6150_temp: temp-alarm@2400 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0x2400>; + interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>; + io-channels = <&pm6150_adc ADC5_DIE_TEMP>; + io-channel-names = "thermal"; + #thermal-sensor-cells = <0>; + }; + + pm6150_adc: adc@3100 { + compatible = "qcom,spmi-adc5"; + reg = <0x3100>; + interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + + adc-chan@ADC5_DIE_TEMP { + reg = ; + label = "die_temp"; + }; + }; + + pm6150_gpio: gpios@c000 { + compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio"; + reg = <0xc000 0xa00>; + gpio-controller; + #gpio-cells = <2>; + interrupts = <0 0xc0 0 IRQ_TYPE_NONE>, + <0 0xc1 0 IRQ_TYPE_NONE>, + <0 0xc2 0 IRQ_TYPE_NONE>, + <0 0xc3 0 IRQ_TYPE_NONE>, + <0 0xc4 0 IRQ_TYPE_NONE>, + <0 0xc5 0 IRQ_TYPE_NONE>, + <0 0xc6 0 IRQ_TYPE_NONE>, + <0 0xc7 0 IRQ_TYPE_NONE>, + <0 0xc8 0 IRQ_TYPE_NONE>, + <0 0xc9 0 IRQ_TYPE_NONE>; + + interrupt-names = "pm6150_gpio1", "pm6150_gpio2", + "pm6150_gpio3", "pm6150_gpio4", + "pm6150_gpio5", "pm6150_gpio6", + "pm6150_gpio7", "pm6150_gpio8", + "pm6150_gpio9", "pm6150_gpio10"; + }; + }; + + pm6150_lsid1: pmic@1 { + compatible = "qcom,pm6150", "qcom,spmi-pmic"; + reg = <0x1 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/pm6150l.dtsi b/arch/arm64/boot/dts/qcom/pm6150l.dtsi new file mode 100644 index 0000000..a262092 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm6150l.dtsi @@ -0,0 +1,47 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2019, The Linux Foundation. All rights reserved. + +#include +#include + +&spmi_bus { + pm6150l_lsid4: pmic@4 { + compatible = "qcom,pm6150l", "qcom,spmi-pmic"; + reg = <0x4 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pm6150l_gpios: gpios@c000 { + compatible = "qcom,pm6150l-gpio", "qcom,spmi-gpio"; + reg = <0xc000 0xc00>; + gpio-controller; + #gpio-cells = <2>; + interrupts = <4 0xc0 0 IRQ_TYPE_NONE>, + <4 0xc1 0 IRQ_TYPE_NONE>, + <4 0xc2 0 IRQ_TYPE_NONE>, + <4 0xc3 0 IRQ_TYPE_NONE>, + <4 0xc4 0 IRQ_TYPE_NONE>, + <4 0xc5 0 IRQ_TYPE_NONE>, + <4 0xc6 0 IRQ_TYPE_NONE>, + <4 0xc7 0 IRQ_TYPE_NONE>, + <4 0xc8 0 IRQ_TYPE_NONE>, + <4 0xc9 0 IRQ_TYPE_NONE>, + <4 0xca 0 IRQ_TYPE_NONE>, + <4 0xcb 0 IRQ_TYPE_NONE>; + + interrupt-names = "pm6150l_gpio1", "pm6150l_gpio2", + "pm6150l_gpio3", "pm6150l_gpio4", + "pm6150l_gpio5", "pm6150l_gpio6", + "pm6150l_gpio7", "pm6150l_gpio8", + "pm6150l_gpio9", "pm6150l_gpio10", + "pm6150l_gpio11", "pm6150l_gpio12"; + }; + }; + + pm6150l_lsid5: pmic@5 { + compatible = "qcom,pm6150l", "qcom,spmi-pmic"; + reg = <0x5 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +}; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project