Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4241604pxj; Tue, 25 May 2021 03:37:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMu4aL40/PJGDVov87/eNhxjL88Z2zeTSnwBCH1R3jz9UxlTqaHDsjNHIGiP69iMXG6g1R X-Received: by 2002:a17:906:b259:: with SMTP id ce25mr27768673ejb.245.1621939057120; Tue, 25 May 2021 03:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621939057; cv=none; d=google.com; s=arc-20160816; b=vnwGfPg5gibvCdgZYQo3Q2HDXhCQhCLQkWDWclqBRA8K6e+B75RWK6W5pYlI3iVCs7 QtWZ6JGfSWKOFNJ56G68LgnDBoNYUfeYeyHYwDwRqFHsRLJE1qmIrZDbwr/VFIKZcn7X caElzEVrnkpnYjjrSxv9hQcoRzOwbhkXCT2FrJDhpcU1ArBlZrBAeL5ilYd+P0kYzWkk XxZUwhoD+yTGUwDCTAjAQY2+MSkFq+tWPOGXu977tVKZPpcRtSxupo/cqr3S11vy7Wh9 OeP8XKJTslT2Z4/lrwJ2l+kumRsNJwl/sjdixE1dgwwJUuFuxmNYehvnJh67daY7BaBq rH+A== 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=8/O98EA+GpQeUdKozP3uFwYwnjipWxUMGIx20N1Lo0c=; b=eID6yzrSUBPcpB27txd4yw4YistExWM69oZgKasU/f3oLmCW0RyhPAwoB7dOXVfRTp OYpGYoZHuysbJAWIUOoLcfbc0Qwou9avCcqSWlc/AoFx6TrUeoqAMkE33OW5SESLzW1a yaKN2Yhboc9L+pCeQpy1OY05Bh4S+/Tuk4ed7cDJ9/3dA4Z9ZhmEyYJWK4KqE9TAmr6T HSyuTIj+GFvWJAO0xdHGIBO6cUuf1Pq9mzW16uf2oKOuNbcbSFbV0aWAN1hJClI2kh5D oRjXltK4993MBJjf+CwtWStMkwIG3u+/NVNGsbIh83Poeh+UEBxCK+N+GYXahjMvUQxv Upjg== 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 k13si15815875eja.2.2021.05.25.03.37.03; Tue, 25 May 2021 03:37:37 -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 S229962AbhEYKNX (ORCPT + 99 others); Tue, 25 May 2021 06:13:23 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:50028 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbhEYKNW (ORCPT ); Tue, 25 May 2021 06:13:22 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 25 May 2021 03:11:53 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 25 May 2021 03:11:51 -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; 25 May 2021 15:41:26 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 1496C5053; Tue, 25 May 2021 15:41:25 +0530 (IST) From: satya priya To: Andy Gross , Bjorn Andersson , Rob Herring Cc: mka@chromium.org, Lee Jones , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kgunda@codeaurora.org, satya priya Subject: [PATCH V5 07/11] arm64: dts: qcom: pmk8350: Add peripherals for pmk8350 Date: Tue, 25 May 2021 15:41:02 +0530 Message-Id: <1621937466-1502-8-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1621937466-1502-1-git-send-email-skakit@codeaurora.org> References: <1621937466-1502-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. Changes in V5: - Split this patch into two. One for adding pmk8350 peripherals and next one to correct GPIO node. arch/arm64/boot/dts/qcom/pmk8350.dtsi | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmk8350.dtsi b/arch/arm64/boot/dts/qcom/pmk8350.dtsi index 1530b8f..ecd5ccd 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,6 +15,52 @@ #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"; reg = <0xb000>; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation