From patchwork Wed Aug 21 18:42:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171984 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1347384ily; Wed, 21 Aug 2019 11:44:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqztvGPx8tjLRiQPEjqOFPaED1HfQX2i3Iuy1GfZsHzezn08ifZ4C+UERj6jnm0sDNnkyseY X-Received: by 2002:a63:b46:: with SMTP id a6mr30871266pgl.235.1566413061509; Wed, 21 Aug 2019 11:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566413061; cv=none; d=google.com; s=arc-20160816; b=a3BJ5Ew4PjitovsnujjzpwwwY0u4zyM/lOiYw7QWgbvkge78Bszz4WXZxfAeIG2O2x dZmezrfdDjJKchUjJzJmqis5aBqJVnuOJBOjPoRqSnLtxetjM16itIEKE+x6NAfYkDAF wL3Ro5RcMoL3WO5M9jzzD/9+kVToinIVk8yDZSFgjR7jMEPtGSoVYj1hDT4wcB2mk+O2 uBrvfOlYZFVmJCr4lkTwgc7UfxZWuhkmiZupK9hIhwIv5ZBZ3NIZo5+IcM7ExyqR0IFJ Os4FKiXfBMROxORH9eMNBFi/F3TtyX2BlIwpibtrsgvoHOGRECZShQ280k8N9SWtNyNm KfHw== 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 :dkim-signature; bh=VgT4IC4KqpW35o9SbHRbWuMdRMmOl0abx89uBQNDh64=; b=In0fPGlMcHKa1lYPWS9cfQfo8ssZAucgmZDbjGzXz7zXGdqGeVXdywbZveBQolGFON g6+BtywTXt//5RuGSZAnoc5MhhwWnVstA1UQ88VaI6q+q85sucQBK5DxyDa+9QPcMtt4 3haaFvi88fUPQLKvrnwLEPhZ/CqlnC9Mp801tiDnmtI+11un2wURRXSBVm8h/JvnKCbV rMUSwdfxVcZkokzQ0ZyCAES2BB+pwGRcjXufWRPl9XvHW51f/7SE3PAYo2X/q27FK9Av NejgevPubG6rLXBrrEqPFKYBG8BGlo0P0cc6wmPgdfA6izoRrLk6xjxr0lsMaFpApoVq C6iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mZgAmIaf; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9si15360467plz.346.2019.08.21.11.44.21; Wed, 21 Aug 2019 11:44:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@kernel.org header.s=default header.b=mZgAmIaf; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728836AbfHUSoU (ORCPT + 8 others); Wed, 21 Aug 2019 14:44:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:39980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728653AbfHUSoS (ORCPT ); Wed, 21 Aug 2019 14:44:18 -0400 Received: from localhost.localdomain (unknown [106.201.100.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D3FD822DD3; Wed, 21 Aug 2019 18:44:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566413057; bh=MH7aCXOtgP6JdJSFdMV7Lsp/vhD9jRbCbOMgglwiDHI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mZgAmIaf6ZlQrwuJDVCC9rLt9Wgo7ThZc5u3w0HfN9RvY37cAF2Z6p2vtCb8yF7Lf w5oC00rv6GmCCVlhrLUv1rg0fyvcetpemfAWNke4MLucb38fiBdubBoQNwSGDu4tD2 5AWRInQVBLvWyI5V0aZLhZoFR8DJhvARsoRKoCG0= From: Vinod Koul To: Andy Gross Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Rob Herring , Mark Rutland , Stephen Boyd , Sibi Sankar , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Niklas Cassel Subject: [PATCH v4 3/8] arm64: dts: qcom: pm8150b: Add base dts file Date: Thu, 22 Aug 2019 00:12:34 +0530 Message-Id: <20190821184239.12364-4-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190821184239.12364-1-vkoul@kernel.org> References: <20190821184239.12364-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org PMIC pm8150b is a slave pmic and this adds base DTS file for pm8150b with power-on, adc, and gpio nodes Signed-off-by: Vinod Koul Reviewed-by: Niklas Cassel --- arch/arm64/boot/dts/qcom/pm8150b.dtsi | 86 +++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm8150b.dtsi -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/pm8150b.dtsi b/arch/arm64/boot/dts/qcom/pm8150b.dtsi new file mode 100644 index 000000000000..322379d5c31f --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm8150b.dtsi @@ -0,0 +1,86 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2019, Linaro Limited + */ + +#include +#include +#include + +&spmi_bus { + pmic@2 { + compatible = "qcom,pm8150b", "qcom,spmi-pmic"; + reg = <0x2 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + power-on@800 { + compatible = "qcom,pm8916-pon"; + reg = <0x0800>; + + status = "disabled"; + }; + + adc@3100 { + compatible = "qcom,spmi-adc5"; + reg = <0x3100>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + interrupts = <0x2 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + + status = "disabled"; + + ref-gnd@0 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "ref_gnd"; + }; + + vref-1p25@1 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "vref_1p25"; + }; + + die-temp@6 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "die_temp"; + }; + + chg-temp@9 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "chg_temp"; + }; + }; + + pm8150b_gpios: gpio@c000 { + compatible = "qcom,pm8150b-gpio"; + reg = <0xc000>; + gpio-controller; + #gpio-cells = <2>; + interrupts = <0x2 0xc0 0x0 IRQ_TYPE_NONE>, + <0x2 0xc1 0x0 IRQ_TYPE_NONE>, + <0x2 0xc2 0x0 IRQ_TYPE_NONE>, + <0x2 0xc3 0x0 IRQ_TYPE_NONE>, + <0x2 0xc4 0x0 IRQ_TYPE_NONE>, + <0x2 0xc5 0x0 IRQ_TYPE_NONE>, + <0x2 0xc6 0x0 IRQ_TYPE_NONE>, + <0x2 0xc7 0x0 IRQ_TYPE_NONE>, + <0x2 0xc8 0x0 IRQ_TYPE_NONE>, + <0x2 0xc9 0x0 IRQ_TYPE_NONE>, + <0x2 0xca 0x0 IRQ_TYPE_NONE>, + <0x2 0xcb 0x0 IRQ_TYPE_NONE>; + }; + }; + + pmic@3 { + compatible = "qcom,pm8150b", "qcom,spmi-pmic"; + reg = <0x3 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +};