Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp713334ybp; Fri, 4 Oct 2019 03:53:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDa/zDSUOdh+ZH90WWHyYnZWhD1WQSXTxEY2VTJRabe9mLURyWWX471tTh5XGezDRBJOMQ X-Received: by 2002:a17:906:493:: with SMTP id f19mr11636776eja.285.1570186422974; Fri, 04 Oct 2019 03:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570186422; cv=none; d=google.com; s=arc-20160816; b=F8kJZKWHlGpYUwgICwcmiC4g9PwAWwxwgtwJ/6OKoTDRgpx5qqPi/BGjzaa2/Ncedw egJSJjvKLB3ysQ695Kf4YHpVF+YbFdxfMmMh4SiRdFhiuvsn58o30j+ZpDOx2yI6Y5FQ 8cXnR8G7SNnn8i6SpgM5Wwuif303O7vUsVE3OPFhVfnls+fiU3a59BNGKo7hUKJuOAcg eRNo1THCYNjkEFUTGY/wnTohlX41K6DHUUcTzydSTX+JoDZ8EB2KYp5C2aXfE4m90tPw 00AvBJb0HrNN1dcBOprja8jdqHcgmNxeKWnivpdeZP2xcJmKWmNSG/E/Jl5uyTeOB4Qp hWJA== 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=Wtys1YbF+h0UVwIZDtxDkPSpnHc/UBkzmYcYaNdZ3kc=; b=WgmSXfa9FEs/6REbINt1eNTC4OuIkJTBQHIyNbkTwBW0+4JZ6HSGxPmd5W2wVZWOmm SftKoBkE6L6SSAgX0aToq1WKS2bTshFx2sLzyJ5yZaFXgklqsmEvfFyAkk5AjbUjTgPy Ck+xC2dlhgCmgSu/ILTryHus+P5ZS9nZYWOnAGcLBHYV+B27+I7L3JWt90E9j9Urv7w8 32E74sfx7ObHGfxs+NFL0UU/t3ZKBLWwLS2j1WTpDKc2b4dqKomwjKPJ7eNLZy4Escne QPDck53g/updhpLf5udXEcSJ0AxTakj7CiQB9NMqkpy6FX2mN87paLhs2Aev5ZqMefLE tORw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="i57Z6hf/"; dkim=pass header.i=@codeaurora.org header.s=default header.b=USInRJTD; 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 j38si3300155ede.374.2019.10.04.03.53.18; Fri, 04 Oct 2019 03:53:42 -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="i57Z6hf/"; dkim=pass header.i=@codeaurora.org header.s=default header.b=USInRJTD; 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 S1729874AbfJDKvT (ORCPT + 99 others); Fri, 4 Oct 2019 06:51:19 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:37668 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725788AbfJDKvS (ORCPT ); Fri, 4 Oct 2019 06:51:18 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 27062619F8; Fri, 4 Oct 2019 10:51:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1570186277; bh=HV49UDYcx9vV6GbDfltmdOxPSBL7taXdXdyTC0caYgE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i57Z6hf/kPqvxGmcVZYTBu7fd5vapnsRg5tH7j1C1lf2306KAd0UEozaI65aYnaQi xNDsJpKfkPNU7E8fKhICOALnWfOirPAQ0orNjWuhxhjhWx1pBJTWLFYL8tIUOthW5t ubdajj/Q91XUJetOJDoepXHLVVXQudHur4Nh70zQ= 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 4FC52615C2; Fri, 4 Oct 2019 10:51:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1570186276; bh=HV49UDYcx9vV6GbDfltmdOxPSBL7taXdXdyTC0caYgE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=USInRJTDeyRMxdPGVMYt84yx5J+en5EUGC0T0vgzzo10krozg4sMgfJVCA8STamcP k8OD5HiBvIjlYUg/KxtSH2feXSPvP8XDaAfmIINjWqRlmc0S99fxKXR2Hnfos34MQO HGV/sve5RppBb0BGqLa+qgWvDiulNPYcO+0EYfqY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4FC52615C2 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 V1 1/2] ARM: dts: qcom: pm6150: Add PM6150/PM6150L PMIC peripherals Date: Fri, 4 Oct 2019 16:20:56 +0530 Message-Id: <1570186257-10254-2-git-send-email-kgunda@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1570186257-10254-1-git-send-email-kgunda@codeaurora.org> References: <1570186257-10254-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 | 82 +++++++++++++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/pm6150l.dtsi | 47 ++++++++++++++++++++ 2 files changed, 129 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..c2389866 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm6150.dtsi @@ -0,0 +1,82 @@ +// 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>; + + interrupt-names = "pm6150_gpio1", "pm6150_gpio2", + "pm6150_gpio3", "pm6150_gpio4", + "pm6150_gpio5", "pm6150_gpio6", + "pm6150_gpio7", "pm6150_gpio8"; + }; + }; + + 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