From patchwork Tue Aug 20 17:23:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171820 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4722245ily; Tue, 20 Aug 2019 10:25:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRfikm4YhRjh3GoQVdR7nZqUaoXubWrr6Bq5fUCO1QKnTEveRYYUHnblPyN0Xhm8OiLvei X-Received: by 2002:a17:902:2f24:: with SMTP id s33mr28067281plb.314.1566321925980; Tue, 20 Aug 2019 10:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566321925; cv=none; d=google.com; s=arc-20160816; b=rabI5xjxbnTiqm+X21CQpM7mLWsQsT35YUl9t/QgmtYgEDq5eU1ZTe9scRXpp9f6ur DoHoRH+A+qBjVnyTAGDJTSVWpfoOIj/QT5xrfHxKBN2a+/OEjBoRg/JMHQohtWstZco6 kbyJa52020++KCdsSyF+xA9GWFzo37KeuCGKKAn2A0/XQUD8xSDRyV1YNNRsdeRR/Tq5 pLg17FvNFMsAJbRUWhmdUU0NMZlVwjcWI7VoMztxJjNMzO/PFwvPWQGR6agwIhwq2oJK 4WF1FwPMWhmG/wUEHRBCvjxtD8mdL2Jd++kaKJ/kOfga0kQZK3xrZvICwSblHTqBtF/T 9z8A== 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=a0Rqs/wz/L/YcRTBN03Qh5dD1CGd0vyF17WrxBijIis=; b=Sb9JsBJKda2qvXcA8nLxuzorP0rQ6y6OFmyXDXLAyuokFamn8IhZfZz8iJnTZagN3A 7M1WX0orX20av2sttD30TZIrnUgKDZQYgFsGbCFg6Hvqxje99llYD6vvNfpBOiAdElUB Xc2d56lLZXPnfC+a6T8p+uzJgaQsZ2P1QM8YigUjRUPrciQjJx2HoKQPEVEHpk9Sx7T9 9WBCJcscOWHxjIwWctPUoAvO0a/H+uw/CY6pGlUv07L96WZAsz2jL9HTTQoU8lV9EO27 HoZ7cad6r0hOFW8Xg1FxhZt1FnlmzbFZSXnmAnKqT7MK0nQ/XsXSIx5rcrVjW9AeoudP Mxrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SzGDu3gJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 u5si12615697plq.207.2019.08.20.10.25.25; Tue, 20 Aug 2019 10:25:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=SzGDu3gJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1730535AbfHTRZZ (ORCPT + 28 others); Tue, 20 Aug 2019 13:25:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:48424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730473AbfHTRZY (ORCPT ); Tue, 20 Aug 2019 13:25:24 -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 E428D2064A; Tue, 20 Aug 2019 17:25:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566321923; bh=eEIuYGPYKoFY8PlSL+W/d5xaw2PcBLUCYliqwJfiS6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SzGDu3gJtIjCYRv0dvYbMMlav2zSQClc5s7XWxDuHs2B3xy08PiX5017RJ9NH/mEi wMBgeQMbYkOGFl9KA6EBwiMyuQ8aXrqlk2Jr+q9LTqiwqgoy9xzcy+N2XzxWT+OEFJ wXFgZD+aAxvF3Ve/b5/n09jI9seOtDYzJBFNNd+c= 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 v3 2/8] arm64: dts: qcom: pm8150: Add base dts file Date: Tue, 20 Aug 2019 22:53:44 +0530 Message-Id: <20190820172351.24145-3-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190820172351.24145-1-vkoul@kernel.org> References: <20190820172351.24145-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add base DTS file for pm8150 along with GPIOs, power-on, rtc and vadc nodes Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pm8150.dtsi | 97 ++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm8150.dtsi -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/pm8150.dtsi b/arch/arm64/boot/dts/qcom/pm8150.dtsi new file mode 100644 index 000000000000..b6e304748a57 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm8150.dtsi @@ -0,0 +1,97 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2019, Linaro Limited + */ + +#include +#include +#include +#include + +&spmi_bus { + pm8150_0: pmic@0 { + compatible = "qcom,pm8150", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pon: power-on@800 { + compatible = "qcom,pm8916-pon"; + reg = <0x0800>; + pwrkey { + compatible = "qcom,pm8941-pwrkey"; + interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + + status = "disabled"; + }; + }; + + pm8150_adc: adc@3100 { + compatible = "qcom,spmi-adc5"; + reg = <0x3100>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + interrupts = <0x0 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"; + }; + }; + + rtc@6000 { + compatible = "qcom,pm8941-rtc"; + reg = <0x6000>; + reg-names = "rtc", "alarm"; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; + + status = "disabled"; + }; + + pm8150_gpios: gpio@c000 { + compatible = "qcom,pm8150-gpio"; + reg = <0xc000>; + gpio-controller; + #gpio-cells = <2>; + interrupts = <0x0 0xc0 0x0 IRQ_TYPE_NONE>, + <0x0 0xc1 0x0 IRQ_TYPE_NONE>, + <0x0 0xc2 0x0 IRQ_TYPE_NONE>, + <0x0 0xc3 0x0 IRQ_TYPE_NONE>, + <0x0 0xc4 0x0 IRQ_TYPE_NONE>, + <0x0 0xc5 0x0 IRQ_TYPE_NONE>, + <0x0 0xc6 0x0 IRQ_TYPE_NONE>, + <0x0 0xc7 0x0 IRQ_TYPE_NONE>, + <0x0 0xc8 0x0 IRQ_TYPE_NONE>, + <0x0 0xc9 0x0 IRQ_TYPE_NONE>, + <0x0 0xca 0x0 IRQ_TYPE_NONE>, + <0x0 0xcb 0x0 IRQ_TYPE_NONE>; + }; + }; + + pmic@1 { + compatible = "qcom,pm8150", "qcom,spmi-pmic"; + reg = <0x1 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +}; From patchwork Tue Aug 20 17:23:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171822 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4722485ily; Tue, 20 Aug 2019 10:25:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8mDybJCsGDVI92+xc20uoR5Fzt4axsMSm3fDvdhJg0rvVgVjWXG1QRCfukYCgNjK+Dsis X-Received: by 2002:a63:fe17:: with SMTP id p23mr25548464pgh.103.1566321935323; Tue, 20 Aug 2019 10:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566321935; cv=none; d=google.com; s=arc-20160816; b=XwlDhmZNtjKqV91wjzYPVOA3z2WrcuKgCyriwG5Km8V3Z4uZwdY07u1C90yJlgbwuM 0sl8ov6QZtV7ebHxHyubPzNypOO0ApeAKDb3LX5XPZ2MYfs02f7q5U8yA7LeLLTr3sUn OlbZTYXH4uY5Jbf4P6x+vucsrVt+OizaPKea8U8KgTAGYLt/0xbnUEVTaJ385U4KBfQJ eG9EYB7JlMhcvAYpPlroFvXFHdXIg4Xt80sxOmMUKuuwg66HX8cWHicez/9YZqJexnd2 ZC8+B52Iwt234TN6oH2/8M6Y6vpoI1V4KgaOVH/mCUzgkYRZwmYCxXoFlGcnRPoMKFX2 Fn2g== 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=pRmlLjmtl1665zXPQk7KUR2ei81bXLj8cvrskhiGO9M=; b=NfsCoPHRUZl9sz4dWCFtW4YT8CTCrgv5QZ+xQz4thF3DxLD6qnA88Q+puAYsl9Qhn1 +lhS1NSGUhGbYFxxBwzU10Opw62K2947+N8VwUJY+YA/pxueqk24w21FD+JL0r8J2cqJ OzIL063BwoF4Ovk6Nf/bT6Q1F2CVAwkx/KrdBTZUSms8JoCvQWaUIr2ldO9RfB+rfhGJ fuRWQzSndGlI+FpTXZl4h1pWaL027nA5ktv1WaW0Hj4YopTot9vT4J/bnMmJgIBX1/1G EqvBuhz8M3bTnaVGqOhwHIOt/uaShdxv0iQWQnuwEDr+qQV4gLsa5uX+iT9WzY7X/n5M vvYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rgfyNPTw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 h3si382469pjq.21.2019.08.20.10.25.35; Tue, 20 Aug 2019 10:25:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=rgfyNPTw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1730605AbfHTRZe (ORCPT + 28 others); Tue, 20 Aug 2019 13:25:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:48546 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730473AbfHTRZb (ORCPT ); Tue, 20 Aug 2019 13:25:31 -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 D72EF2064A; Tue, 20 Aug 2019 17:25:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566321931; bh=CsWsdFRah5A3pS+L/zksbleHaSdJ1VKqa/FWXuG8FLA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rgfyNPTwNYeM80kAeW+hOfedXPNhP4KkRH0cXfLQ6Vfz5qaD4BJuYJboeZdVFVP5F i0DO6ajGszRKpT1Tx1eyRneQVwl5zGpnZTgWbzDS8/LCzb4rs9U6CDZOwhq+40FJ0K nBoNre9GBgXDDEZg7PF31cuEa5i9VgPcPM24F2c8= 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 v3 4/8] arm64: dts: qcom: pm8150l: Add base dts file Date: Tue, 20 Aug 2019 22:53:46 +0530 Message-Id: <20190820172351.24145-5-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190820172351.24145-1-vkoul@kernel.org> References: <20190820172351.24145-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 | 80 +++++++++++++++++++++++++++ 1 file changed, 80 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..eb0e9a090e42 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm8150l.dtsi @@ -0,0 +1,80 @@ +// 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 0x0 IRQ_TYPE_NONE>, + <0x4 0xc1 0x0 IRQ_TYPE_NONE>, + <0x4 0xc2 0x0 IRQ_TYPE_NONE>, + <0x4 0xc3 0x0 IRQ_TYPE_NONE>, + <0x4 0xc4 0x0 IRQ_TYPE_NONE>, + <0x4 0xc5 0x0 IRQ_TYPE_NONE>, + <0x4 0xc6 0x0 IRQ_TYPE_NONE>, + <0x4 0xc7 0x0 IRQ_TYPE_NONE>, + <0x4 0xc8 0x0 IRQ_TYPE_NONE>, + <0x4 0xc9 0x0 IRQ_TYPE_NONE>, + <0x4 0xca 0x0 IRQ_TYPE_NONE>, + <0x4 0xcb 0x0 IRQ_TYPE_NONE>; + }; + }; + + pmic@5 { + compatible = "qcom,pm8150l", "qcom,spmi-pmic"; + reg = <0x5 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +}; From patchwork Tue Aug 20 17:23:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171823 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4722572ily; Tue, 20 Aug 2019 10:25:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1NNbQCQj9/95dZlebBNcaxkcMp6MLZsviYgAfUKUsQLH14TWmSXPVm267ARqycTEF69Gb X-Received: by 2002:a65:6104:: with SMTP id z4mr25023949pgu.27.1566321939017; Tue, 20 Aug 2019 10:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566321939; cv=none; d=google.com; s=arc-20160816; b=ur+rcK4v/oPcq38Fnmu4rRDmph7HyLVaufKg4Vsgg6fw4xK49V6MbSb/4yCHI9HfPU sTszRid6gjc7axPB7bH+jq3nexTeYTa6uew/d/5xqe8X+/e2EzvYpCjNn3ig7vv1kbQe zeJW9h6KBhup29gYVsLorYkA9o3wvg/Rhxx9ZcsVQCNCev4fYeLnTMD9H3QCh8vU0kLl VNJgCiaWSXEciRCAIXb4pdZk9QUnLsszmnJOwSgznqMoHGmiVdphkLu/+nf/jGREHvCI H/Uuar1cmQ6j7DO5S4UpGZnG+sT2eLofLOH1aNy27eqswS5uB1MIoMV6rZ5fIWr/Jv2a kLcQ== 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=exflV8TJljvmmGYw8ajN81AjEyHcba2W3Q850RtHqFY=; b=dmTMja/lNPWqvwBcidIjBRctfiQ2FZimF31r0rvpU7IuZtolkuXQCl+tiqkYBZTm4b WHQkpMQVw61fmVqleL522UZ3z3mU4IumsWjw7K2V2OB43kMEWHBaX1HStPUIyYN1XQC8 gHbo8+HyV/m2dQ1UzcyJ3NixGYroBIBwbZFs2c8M5hSDly0W0cDztbfDR/t34ccq7GGD zjkUSirIKg7WSVMaXhiaTyvRjBqD3X7F7Gd10pSez6YwBO53QU2u58VVlVTnDW8Nq6MA A9WfeDh2YsQj4UdT9MX/hU6Y5FuQDXBpWe8PGktW82Fsj38UN19bs08rS6nGFtLm6J4o /ekA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lYhOIV1K; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 b19si8835654plz.53.2019.08.20.10.25.38; Tue, 20 Aug 2019 10:25:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=lYhOIV1K; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1730628AbfHTRZh (ORCPT + 28 others); Tue, 20 Aug 2019 13:25:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:48638 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730473AbfHTRZg (ORCPT ); Tue, 20 Aug 2019 13:25:36 -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 D7E1D22DD3; Tue, 20 Aug 2019 17:25:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566321935; bh=M+6+1x75KEPkx+lE9S3iYX+zdQsZ2R3sBYFxh6yUG3E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lYhOIV1KNg/fyfAzDtqXxhoYykS+kwW96NaGTBSwFzPgGOP0D6Wr40KR/VFGsoRe5 SXYz796YUR9F9MEQeE1NrQk+/NeZUhyBQUyR0sc1sQ43TozHB5qJqsKdrorgifIRyp 04NluO+PR025H6XGtErm1+B7xYJuUKU9+pGvKgKM= 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 v3 5/8] arm64: dts: qcom: sm8150-mtp: Add base dts file Date: Tue, 20 Aug 2019 22:53:47 +0530 Message-Id: <20190820172351.24145-6-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190820172351.24145-1-vkoul@kernel.org> References: <20190820172351.24145-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This add base DTS file for sm8150-mtp and enables boot to console, adds tlmm reserved range, resin node, volume down key and also includes pmic file. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 51 +++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm8150-mtp.dts -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 0a7e5dfce6f7..1964dacaf19b 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -12,5 +12,6 @@ dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r2.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r3.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-db845c.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-mtp.dtb +dtb-$(CONFIG_ARCH_QCOM) += sm8150-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-1000.dtb dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-4000.dtb diff --git a/arch/arm64/boot/dts/qcom/sm8150-mtp.dts b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts new file mode 100644 index 000000000000..6f5777f530ae --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2019, Linaro Limited + */ + +/dts-v1/; + +#include "sm8150.dtsi" +#include "pm8150.dtsi" +#include "pm8150b.dtsi" +#include "pm8150l.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. SM8150 MTP"; + compatible = "qcom,sm8150-mtp"; + + aliases { + serial0 = &uart2; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&qupv3_id_1 { + status = "okay"; +}; + +&pon { + pwrkey { + status = "okay"; + }; + + resin { + compatible = "qcom,pm8941-resin"; + interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; +}; + +&tlmm { + gpio-reserved-ranges = <0 4>, <126 4>; +}; + +&uart2 { + status = "okay"; +};