From patchwork Tue Aug 20 06:42:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171776 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp3992708ily; Mon, 19 Aug 2019 23:44:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwe/4HDGQ8RfpozXx+KTslP6AuXsTOhSSOS+LJ2kRxbvxQHUmQawieHZvbi9wgdtawWHdvu X-Received: by 2002:a17:902:7c8a:: with SMTP id y10mr26210804pll.65.1566283467869; Mon, 19 Aug 2019 23:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566283467; cv=none; d=google.com; s=arc-20160816; b=qST4D/12MDeOqrErOlRqsSxmBTTaRxq17oRe+aHdyWk/XQaHjLSI8WgE9jDoJQ6r7C ubTSTG23bXTack1CObjDxvu0Q0K12cv2YIoJqVTSWMKYiQGul/cqarO3QKULnVhCOjxD NS28BLTdWeNA+wcgHI+JQ0lK7eGtfo7X1GZY/yGIwzBYdgETEEu2Gf4jjMZJf4d2+Zet lY9oqNle92P+GnCbysTj1Avoge9/F1DZPnwgi5Q2gYuJYCMdQYa7HXvHQe3TeJnz6rZA NFo0Fma2bjQ7vTfz5OqQFHTXMxO2ztBsvbGiM15cgiFgMPbzeN9LBsXbxMxZq1BB9TNV 8dzA== 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=a2VdpCkVWvNqD+MjoZ08M7WWfP7BUIBlhc7IB06USUw=; b=n9mVcDKOCZooGo5dnVXC+AySEg0UHHR2fwa9sCoNF/l4S7dymGnOJZJasT3YOvyflU cNm3HsDu3Doe/thHs218cmA8VlfAydDM9COzrku7jd6cFbjhxLXMqfZboxE1mO0jtWv1 qNeqAaamQufB8xp74N3bZr9Rp5iDvWr527umASahfpZNlip9nJ2GhtuY5PlCgyWRGJDH z4kd6trERtPFaGJaZjg4M0AeTh6sV116PtpsKoY1WUWFXNHODdyfXY2Gb/g6DbDG9Ggy bxRYmpwHmaBJNXLwpcs9PUJG8YaDc1Y3WJHq0YeHvH6CnEiVnWIPJ+325o3YK9A724WK S++Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OqpoRVnm; 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 c11si12289784pfd.165.2019.08.19.23.44.27; Mon, 19 Aug 2019 23:44:27 -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=OqpoRVnm; 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 S1729348AbfHTGo1 (ORCPT + 8 others); Tue, 20 Aug 2019 02:44:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:40070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729000AbfHTGo0 (ORCPT ); Tue, 20 Aug 2019 02:44:26 -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 B798022CF4; Tue, 20 Aug 2019 06:44:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566283466; bh=4SBMR80jH7/68DYpHXffaDbU2fga05VP6Dnx4GjzTpc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OqpoRVnm8zItMHVVdmq9CLeSBbQpqGgi61XB7wdmKqhns1DZlL8yh2yOo1BwAYEyQ 1cQhP0AQ7qtzzBPhUnr68PmXeu95Qfc3KKJMeYcfEAdvvQaKuTcEiyd0wzX8D4Rlc9 bXsX3sHmC3G1y8+vMp8LMgNISR43vgANlCnWbUW0= 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 5/8] arm64: dts: qcom: sm8150-mtp: add base dts file Date: Tue, 20 Aug 2019 12:12:13 +0530 Message-Id: <20190820064216.8629-6-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 | 48 +++++++++++++++++++++++++ 2 files changed, 49 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..80b15f4f07c8 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts @@ -0,0 +1,48 @@ +// 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 1 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; +}; +&tlmm { + gpio-reserved-ranges = <0 4>, <126 4>; +}; + +&uart2 { + status = "okay"; +};