Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp322043pxb; Wed, 14 Apr 2021 16:42:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNhEE+q4Xn7I+3uMdny9k8FfrzZ/Ff2MAWAGUPfnmdOBm1CvqXiUQI+csE7pY9VQbpUeKR X-Received: by 2002:a17:90a:f3d1:: with SMTP id ha17mr649792pjb.123.1618443739531; Wed, 14 Apr 2021 16:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618443739; cv=none; d=google.com; s=arc-20160816; b=yO6JmauWurkcLu/5EwDcxqG/GjNqViEwSEkymThKn/qxZ3VAkTuEsmBZfWCI6WEbxT NvBHVwq1HAalEuqnpvYFVCqaKG/Gz1LxkyRz6UcBF9ClxtRqp4ZDUw8iSvhGD6YKvrmX Oezh8oYRkySMok5CAxETLBWuH0bmztGSC26HaMgsg1K0965ryFM0OjRdG/U2UhXI7EfT J4CWTDvz4B+W87aS8dgFSrQseKRzz11NM2M2MYjGVX5emlkGp8iLBcbYPdpxD2Jcd/sJ KGhYLZRwp7uWsxC0ksqEXOTVotCGrG4eBxshh20sy1/rrB/OVULZtTBS+XzImL5yvwXd lOvw== 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=TmhPIgbb9Ym+7jCVCA02BknASssKGuDnwDBOFsB8egc=; b=hCCvFJS50UtNLxDaZN33NQDfBfurINFSRegVSq8SlJ2c8GfpjzYfnSDi3wVnXU19b4 xASL2mPTFbZbTqI4luv5H9+9u65ZR9IU7T2K87VYqZX8VwgVmtIHuUpjqVhmfAmIvBDX 3/QZ4oBux9uCMlEFOAQ6pxJHK1b/ifWsvZEbAduHFF6ntyI9fm5kMU9Sm+ZLU5OLKKRI kLe3+DcFcq9BBtnNnpf39w0JJd6vpQZK8f52BLfdr8eQ2EtjiZN87tDZeEQtk9CmxU1T NK/JSqHl5dvndYetp/h+9ttBqJ+bvv7iNF5/GOiqEIrluftZKjgFaHm+8XwQw2z0dLL8 0FGA== 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 n12si1086437pgm.477.2021.04.14.16.41.37; Wed, 14 Apr 2021 16:42:19 -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 S1344040AbhDNLOD (ORCPT + 99 others); Wed, 14 Apr 2021 07:14:03 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:14873 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233782AbhDNLNy (ORCPT ); Wed, 14 Apr 2021 07:13:54 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 14 Apr 2021 04:13:33 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 14 Apr 2021 04:13:31 -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; 14 Apr 2021 16:43:11 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 4AE9A47ED; Wed, 14 Apr 2021 16:43:10 +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 V3 4/5] arm64: dts: qcom: pmk8350: Add PMIC peripherals for pmk8350 Date: Wed, 14 Apr 2021 16:43:00 +0530 Message-Id: <1618398783-7834-3-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618398783-7834-1-git-send-email-skakit@codeaurora.org> References: <1618398783-7834-1-git-send-email-skakit@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add PON, RTC and other PMIC infra modules support for PMK8350. Signed-off-by: satya priya --- arch/arm64/boot/dts/qcom/pmk8350.dtsi | 55 ++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/pmk8350.dtsi b/arch/arm64/boot/dts/qcom/pmk8350.dtsi index 1530b8f..bbd9fa7 100644 --- a/arch/arm64/boot/dts/qcom/pmk8350.dtsi +++ b/arch/arm64/boot/dts/qcom/pmk8350.dtsi @@ -3,6 +3,12 @@ * Copyright (c) 2021, Linaro Limited */ +#include +#include +#include +#include +#include +#include #include #include @@ -13,10 +19,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