From patchwork Tue Aug 20 06:42:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171775 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp3992641ily; Mon, 19 Aug 2019 23:44:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7d9XZSO2FzKNeC+4gl6tJ+NyFreWTNRJ05pPTSKOe0LsALcYzzc42Yh10daenSk1awQkG X-Received: by 2002:a63:d04e:: with SMTP id s14mr22241462pgi.189.1566283463761; Mon, 19 Aug 2019 23:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566283463; cv=none; d=google.com; s=arc-20160816; b=A39JJPPgyOG/1h4MGyEWz8ZcliAwPqVaMNng+XDM2rq/RxXouVUHcZLJ6q3ySS9HE1 dBStsOiww60fBbgUIYYyMRU5s+t6KcnBNYWKlHui/EKZvitTcc5d7pWlSwWKIA+nTcK+ E1VrR8YYGq5WexXVavQZ1ZIWkrK5pCn8rtT1l34nN1RmT4eGsTOneKYsEOmJmOqZAWBc iVJ88SHuKUuOXt4UMv1lD9cirUqxLsoFTuZ0Lf2YawTdObJpnZ5h0h4h+IROhWvJD6Yc TIFSNW1n52Xh55IcZMkOKTvjb8bRlz8pFhlI0/L580c4s6rk755E/PXbBVWMk0hQTCiO /3ew== 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=8Bhz+AaFyiFi5YtfLO11BEhbB30RBmJx7xFtPnw5QKQ=; b=jdImLS9StF2EyL97YGypG+5DC5kpkwrvBBlmdb/f/DxYwmBgdvn/Orl5szOMxgbgEM 89it0ZcwnFSKdENT+rL6505MbXnh5zl5uCRVZSh0wYO+JOV9ziCOikBDTsd/v0PgobIO WPzSP66wE5hQKxElJkJuj6uv3UHdczt0nXYSHSSCSqrjvf6BKkYVgXPWE2iurHcIRHv+ slYAtsQspTwX1OYeAHbznwR/oJ83MIYEzWtsBRKefJFHs2OfXP1BhEp2R49e4ixXnA4w CfF4YufKjsiurqwtlwFPlpEsIzSgamZubmFSE24bKUfzG1ZbqWAd9XJwDsVZImB5Wr4l GJfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uAbIRqdG; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 c11si12289784pfd.165.2019.08.19.23.44.23; Mon, 19 Aug 2019 23:44:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=uAbIRqdG; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1729331AbfHTGoX (ORCPT + 16 others); Tue, 20 Aug 2019 02:44:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:39970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729000AbfHTGoW (ORCPT ); Tue, 20 Aug 2019 02:44:22 -0400 Received: from localhost.localdomain (unknown [106.201.62.126]) (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 A7A9D2082F; Tue, 20 Aug 2019 06:44:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566283462; bh=NfH5+HnngHvRgDbBQOyc+Kss1McpQy5HFg3PPi3lqmk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uAbIRqdGlC2a+O+BfxM9SPTVXWGSmjkaeTT3Ae/ulIgqapbL70YbdwF2cNDzdoQNh wtt2gpGdNoFRWVnVoyXwKIlChisO/aR9LEGJFCcVMRTJ9lPGM1R6/z+3CflZ8AKoxy 4Fv2BcRSEOXg2RQkc5tuPufuEq+C4yqq3ma9VSpI= 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 Subject: [PATCH v2 4/8] arm64: dts: qcom: pm8150l: Add Base DTS file Date: Tue, 20 Aug 2019 12:12:12 +0530 Message-Id: <20190820064216.8629-5-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190820064216.8629-1-vkoul@kernel.org> References: <20190820064216.8629-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org PMIC pm8150l is a slave pmic and this adds base DTS file for pm8150l with power-on, adc and gpio nodes Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pm8150l.dtsi | 78 +++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm8150l.dtsi -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/pm8150l.dtsi b/arch/arm64/boot/dts/qcom/pm8150l.dtsi new file mode 100644 index 000000000000..5022ac3fd9b7 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm8150l.dtsi @@ -0,0 +1,78 @@ +// 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@4 { + compatible = "qcom,pm8150l", "qcom,spmi-pmic"; + reg = <0x4 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 = <0x4 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"; + }; + }; + + pm8150l_gpios: gpio@c000 { + compatible = "qcom,pm8150l-gpio"; + reg = <0xc000>; + gpio-controller; + #gpio-cells = <2>; + interrupts = <0x4 0xc0 0 IRQ_TYPE_NONE>, + <0x4 0xc1 0 IRQ_TYPE_NONE>, + <0x4 0xc2 0 IRQ_TYPE_NONE>, + <0x4 0xc3 0 IRQ_TYPE_NONE>, + <0x4 0xc4 0 IRQ_TYPE_NONE>, + <0x4 0xc5 0 IRQ_TYPE_NONE>, + <0x4 0xc6 0 IRQ_TYPE_NONE>, + <0x4 0xc7 0 IRQ_TYPE_NONE>, + <0x4 0xc8 0 IRQ_TYPE_NONE>, + <0x4 0xc9 0 IRQ_TYPE_NONE>, + <0x4 0xca 0 IRQ_TYPE_NONE>, + <0x4 0xcb 0 IRQ_TYPE_NONE>; + }; + }; + + pmic@5 { + compatible = "qcom,pm8150l", "qcom,spmi-pmic"; + reg = <0x5 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +};