Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1466779pxj; Wed, 19 May 2021 06:43:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkSGsKffYe/34YvycENlm+vXjuYTh+3UBbGLe9SnB5kqDRR/YM7tQwhS1TasAy3BQuQoFA X-Received: by 2002:a02:a10f:: with SMTP id f15mr13162663jag.124.1621431789458; Wed, 19 May 2021 06:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621431789; cv=none; d=google.com; s=arc-20160816; b=R4Y8wWeET0xLCpVWy00c03zY3YADOAcW/MKWfYOJ9kA7MJrEziiwF/HrWNz3rVaSLz qnR2+16lZhUc/iCKM6LTDXidn5SLS7BgLHrpbnQytN60ey8qCfK20CcB3bwACwt94hD6 K9Zyh3KF85Kgj3CSS0JTmoxMim6qusW9MbUZA0eUDFSs4+bsm4WExylFIxCd6HHuc6UW feChDLbOSSBnU4tzAIAzKHB/K8YslsHOyMDYtj7y4aRSU7cGbXBEwE0zscTLYdHapUy2 w9CoF5EuWwu8/tdrPheYJoZ5EK48sj4RnivgM/GDNyAUAyzycwkJkcUJ0k+ailFJirgv O37Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=NfCGkBBwo5jXm+a2WIeuIVpSGG1ANmfCjchq5td2kes=; b=M/7NLCdIBkVamDMcWAXKGnyghjcEKj/QMuL6xMF7rzA5xKqnKw13JeeJEM5iDfVUsI DvQw25hgO3TaMceU+0EiU6878kQC4HL0d0Rqeo+Sdpn4JgjlGvET2AmesokmB1tUiBJt w2H8fhZTSs+l7bccJvz+cXKMAXtEJpB22/8sQxBkhmnK8almBNKtsgioXmOJH1uZNtRh i6gy82WRwx+/n7MRLP8WQ7YJTGWU0GofBOjwr8cGi47PBbO5e6tcECR4m3334Hopjf0S dWBT/wbIBV+MBI0N8IflWl0t6CKEQexyES0eba093ArK35BtA8ObfiAgJ1r1kcX6WzcP okdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si1138577ilj.7.2021.05.19.06.42.57; Wed, 19 May 2021 06:43:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346664AbhERGWM (ORCPT + 99 others); Tue, 18 May 2021 02:22:12 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:8690 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346576AbhERGWE (ORCPT ); Tue, 18 May 2021 02:22:04 -0400 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 17 May 2021 23:20:46 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 17 May 2021 23:20:44 -0700 X-QCInternal: smtphost Received: from c-skakit-linux.ap.qualcomm.com (HELO c-skakit-linux.qualcomm.com) ([10.242.51.242]) by ironmsg02-blr.qualcomm.com with ESMTP; 18 May 2021 11:50:26 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 47A444FDA; Tue, 18 May 2021 11:50:25 +0530 (IST) From: satya priya To: Andy Gross , Bjorn Andersson , Rob Herring Cc: mka@chromium.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kgunda@codeaurora.org, satya priya Subject: [RESEND PATCH V4 6/8] arm64: dts: qcom: pmk8350: Add peripherals for pmk8350 Date: Tue, 18 May 2021 11:50:20 +0530 Message-Id: <1621318822-29332-7-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1621318822-29332-1-git-send-email-skakit@codeaurora.org> References: <1621318822-29332-1-git-send-email-skakit@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add PON, RTC, VADC and ACD_TM support for PMK8350. Signed-off-by: satya priya Reviewed-by: Matthias Kaehlcke --- Changes in RESEND V4: - No Changes. arch/arm64/boot/dts/qcom/pmk8350.dtsi | 51 ++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/pmk8350.dtsi b/arch/arm64/boot/dts/qcom/pmk8350.dtsi index 1530b8f..04fc263 100644 --- a/arch/arm64/boot/dts/qcom/pmk8350.dtsi +++ b/arch/arm64/boot/dts/qcom/pmk8350.dtsi @@ -3,6 +3,8 @@ * Copyright (c) 2021, Linaro Limited */ +#include +#include #include #include @@ -13,10 +15,57 @@ #address-cells = <1>; #size-cells = <0>; + pmk8350_pon: pon@1300 { + compatible = "qcom,pm8998-pon"; + reg = <0x1300>; + + pwrkey { + compatible = "qcom,pmk8350-pwrkey"; + interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>; + linux,code = ; + }; + + resin { + compatible = "qcom,pmk8350-resin"; + interrupts = <0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>; + linux,code = ; + }; + }; + + pmk8350_vadc: adc@3100 { + compatible = "qcom,spmi-adc7"; + reg = <0x3100>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "eoc-int-en-set"; + #io-channel-cells = <1>; + io-channel-ranges; + }; + + pmk8350_adc_tm: adc-tm@3400 { + compatible = "qcom,adc-tm7"; + reg = <0x3400>; + interrupts = <0x0 0x34 0x0 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "threshold"; + #address-cells = <1>; + #size-cells = <0>; + #thermal-sensor-cells = <1>; + status = "disabled"; + }; + + pmk8350_rtc: rtc@6100 { + compatible = "qcom,pmk8350-rtc"; + reg = <0x6100>, <0x6200>; + reg-names = "rtc", "alarm"; + interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>; + }; + pmk8350_gpios: gpio@b000 { - compatible = "qcom,pmk8350-gpio"; + compatible = "qcom,pmk8350-gpio", "qcom,spmi-gpio"; reg = <0xb000>; gpio-controller; + gpio-ranges = <&pmk8350_gpios 0 0 4>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation