Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp543591ybg; Wed, 23 Oct 2019 02:04:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2WZv9i+ohhjUPFYofHKfWobUJm7h3D4JdNjrHxqzbAD2sPViOR/E8qyiQQMAvkXxcQV0C X-Received: by 2002:a17:906:5911:: with SMTP id h17mr1875141ejq.194.1571821493155; Wed, 23 Oct 2019 02:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571821493; cv=none; d=google.com; s=arc-20160816; b=NwQy4fxEi7AwgqkRs67fMxl/xTqTWpYl7vtasvZNqnRNHhCOkMf2M+AzBflsBDFDeU XpycRFwxOeM8P4lPVVBXrC6agV4qrVuqv+VztYrPbZqBuOzv8iLyHUac6vhyb3aZI8BP YxKpreT7OvFu0LfzbKLToSPVvw5f681GBrKsk1NL/h0dmtHRNpMIH87QVDFnv7wMvKbE n7Vp6C8uKeOg9svJ+H+mMujXW4qqVZlzLAHkzPIzInBBz1pYBFS6ak9bNywqPJVQIHOd H3kAhe0pA5cY48htP6grkHPYw+eKsgCZNiHrLcj+Exg3jHQQpswhbfwRzNtl9u6nTg40 bSbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature; bh=rJ6TK/IYosmtwiNu3Tra2nbCU+bRJv8LfRpIujWnsiY=; b=vSb2I7yAQcwlUwzBghfwhEZauzpz9dKayPRshFczzpj9dF3+9hAdZEl1zTco59j5DR 6lYmnY26rF9G39Z5rOwplai0e7OXNGr2bWQHtaF3hzAzsj0T3u5bbEMkjhDQr/IcROiE Qvmij7GtrNK6w7De1eKhA23A6pFGaJ6wjQvEBZSHt57Y+ri9KQ5LI3oV8RUn7GyNMMtM AELF4sSQ2IR92yZOpHfdQfLGsPnykutPfSuOis9BOa8co/2+REBcCVuy/S8ZyHRz+jEG dItZTUZmV7wYDZtBaVF6HTFdLFZClDjuBJ9f2eYyIteSaccnoztqT9mOgQT/pj++kNgy ittg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=FWNnyY7C; dkim=pass header.i=@codeaurora.org header.s=default header.b="dGy/a5SJ"; 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 h1si12637994edn.93.2019.10.23.02.04.28; Wed, 23 Oct 2019 02:04:53 -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=FWNnyY7C; dkim=pass header.i=@codeaurora.org header.s=default header.b="dGy/a5SJ"; 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 S2390789AbfJWJDS (ORCPT + 99 others); Wed, 23 Oct 2019 05:03:18 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42526 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390773AbfJWJDN (ORCPT ); Wed, 23 Oct 2019 05:03:13 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7542B60DB6; Wed, 23 Oct 2019 09:03:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1571821392; bh=lJM/i8R82I+g6HCpZyypWkU2fNxaBTZzxjmpRV+iRdw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FWNnyY7CReT6dLKzhp+V6T/Ar3Y2XvhDubohmGeJz+f9oMfN6sT6VIW+XoPjhmtbC 9M1W05BQVRC9Wn8t4V5H3vbKu1U2/40msZGM0UDW1doR6ZIRubFL3nikWgRayPWULi q8C3BuduiuHhKiN3XgoEZDwkZB0UUHVjsjEnePbw= 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 blr-ubuntu-173.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rnayak@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 894BC60DA9; Wed, 23 Oct 2019 09:03:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1571821390; bh=lJM/i8R82I+g6HCpZyypWkU2fNxaBTZzxjmpRV+iRdw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dGy/a5SJ/DsacPVQjXGeE/XaB0MaDDaA9UzX4G0jNASFgnWYMGJAWXKY8/vBGdzo2 v5b6ZScEHRzd0ezdnFnqerja7XdZEDawJuoeA6J6b7S9tc/xrEyeMJ3B920SvQDIw3 5IgFpyYbJb6FvJIhIUr4P4NZPHMJWFzt+NCGRza4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 894BC60DA9 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=rnayak@codeaurora.org From: Rajendra Nayak To: agross@kernel.org, robh+dt@kernel.org, bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mka@chromium.org, Kiran Gunda , Rajendra Nayak Subject: [PATCH v3 08/11] arm64: dts: qcom: pm6150: Add PM6150/PM6150L PMIC peripherals Date: Wed, 23 Oct 2019 14:32:16 +0530 Message-Id: <20191023090219.15603-9-rnayak@codeaurora.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20191023090219.15603-1-rnayak@codeaurora.org> References: <20191023090219.15603-1-rnayak@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kiran Gunda Add PM6150/PM6150L peripherals such as PON, GPIOs, ADC and other PMIC infra modules. Signed-off-by: Kiran Gunda Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/pm6150.dtsi | 85 +++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/pm6150l.dtsi | 47 ++++++++++++++ arch/arm64/boot/dts/qcom/sc7180-idp.dts | 2 + 3 files changed, 134 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 000000000000..20eb928e5ce3 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm6150.dtsi @@ -0,0 +1,85 @@ +// SPDX-License-Identifier: BSD-3-Clause +// 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 000000000000..b17bb1af9367 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm6150l.dtsi @@ -0,0 +1,47 @@ +// SPDX-License-Identifier: BSD-3-Clause +// 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>; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/sc7180-idp.dts b/arch/arm64/boot/dts/qcom/sc7180-idp.dts index 5ee6eb3e2b99..be42ae9d2d9d 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-idp.dts +++ b/arch/arm64/boot/dts/qcom/sc7180-idp.dts @@ -8,6 +8,8 @@ /dts-v1/; #include "sc7180.dtsi" +#include "pm6150.dtsi" +#include "pm6150l.dtsi" / { model = "Qualcomm Technologies, Inc. SC7180 IDP"; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation