From patchwork Wed Aug 14 12:49:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171281 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp791678ily; Wed, 14 Aug 2019 05:51:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaMICm7p+Awp8inMlhtx1hM00mu7NVBrFdCqDxGkei57yhl6ugM/f+d+F5kRKHkVTCvvr2 X-Received: by 2002:a62:5c01:: with SMTP id q1mr46596895pfb.53.1565787116461; Wed, 14 Aug 2019 05:51:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565787116; cv=none; d=google.com; s=arc-20160816; b=0T3bZdG6MGsmtj6MGwUwscGQa3cDB9dW87XLDGk+R7bccFGk83rEQpckcFQ9uH+12A cTiUy9+dKcgmLXL8KNEVrJUhLYoLLzd9EOax8Te35GV+iSbJ1ESF1YZq7xScMydpRcS7 kftyuHkCovGYq/lfSSzn+TVGKv9K7vigy+YNkTvcXvp0kDQboycl28Fp5wSXAveLIkb3 XEYahlQz7Ba8e7WZxtg0HsM9L9k05siHhSmK0ItSg7ViL4ZY9ESYoUGisHNwhF9JD8f4 /GLNC9augP24K8E4d6DI5KICZqZqcGKke1iPDxrKUhapmoXQQGA0akzk4/dAbm5bctQZ 5OwA== 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=BvheDFm4qkFVXFKUpF1f9mL+KIbW3pQ0m6y83P+4ze8=; b=CzkQAq45mtrs4vCjDCS1ymfQm/QZ1ekW+y4T7/3+lIsBbKgV/PixYaJnPETqSBA45i nWYAj14jPZ3Aaar7d9G+7lFd2RkSy6tqoTrU9yqSxJiYVpChDXhydw2e5O1JKABXzWt+ DkweID6D6ka6CXLSiIwQWWTcjj2v5E4v+r6yPrxUSY/6in2lLqX4Zf+3aJjXCfJoyqcC kSzz9tNfaV1JEt4ABpcs2NbTlpV93LhyRMfFJHwg2GgMagywLpcjby64TqLZk2MOZyOV sn3mtxklLmmQ710NiLg1Zer9SHKyYSplM+3Fpeast54FvTGnUl1/TP+TokAiL4Xt6Kzf KClg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SKtONsbF; 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 t16si4015874pfq.88.2019.08.14.05.51.56; Wed, 14 Aug 2019 05:51:56 -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=SKtONsbF; 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 S1727929AbfHNMvz (ORCPT + 8 others); Wed, 14 Aug 2019 08:51:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:34836 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726721AbfHNMvz (ORCPT ); Wed, 14 Aug 2019 08:51:55 -0400 Received: from localhost.localdomain (unknown [171.76.115.97]) (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 04D0A20679; Wed, 14 Aug 2019 12:51:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565787114; bh=U9fFbuVzc4LEqqWOrNyEZ5ikhqBVDg7ffc0M2AFmXig=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SKtONsbFspx+FR85885TpoP/PyvAWb9YgJaLsl/No6Q6z3JCO+AoijFhWm68uuI8W zEgfu65F6krw7VCWgdcQcxiUMFMe2j3DigTmGWpyZRQW4yplSbBFBoEa2P9TEKZHfk GsCQYvy1BKnOJFKRzt2oxPDlesaSne14tk7sfqA8= From: Vinod Koul To: Andy Gross Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , sibis@codeaurora.org, Vinod Koul , Rob Herring , Mark Rutland , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/22] arm64: dts: qcom: sm8150-mtp: add base dts file Date: Wed, 14 Aug 2019 18:19:52 +0530 Message-Id: <20190814125012.8700-3-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190814125012.8700-1-vkoul@kernel.org> References: <20190814125012.8700-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 Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 28 +++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm8150-mtp.dts -- 2.20.1 Reviewed-by: Bjorn Andersson 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..df08ee50510d --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts @@ -0,0 +1,28 @@ +// 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" + +/ { + model = "Qualcomm Technologies, Inc. SM8150 MTP"; + compatible = "qcom,sm8150-mtp"; + + aliases { + serial0 = &uart2; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&qupv3_id_1 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; From patchwork Wed Aug 14 12:49:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171282 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp791741ily; Wed, 14 Aug 2019 05:52:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbgFN9fdmyql7xPBS7AofZ5qk4kBGj6H44ndARkaL+RlRpDFBf6iAyAuGhPK1EVNO1rb+4 X-Received: by 2002:a17:902:bc41:: with SMTP id t1mr11942070plz.171.1565787120486; Wed, 14 Aug 2019 05:52:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565787120; cv=none; d=google.com; s=arc-20160816; b=XmjFrf3U2T3uB+Vd4dK00/7spEMu3dzaBu9BdfIvdJpGWeRKStkZJMChva8tO3HvL4 MTJ5r3cwWGK0f5qykEERriiHxVHSPsl9qniAGDXa0cQED71VGArQdL3jfN8JcTgkjT4M /EDdHplsLdmPeV+zef2YmL9c0B8wLOO+j1aguVh/dUonpntkxhKDXgJA+W/xiAfGvhsy 9qDyBo3utf9eoqISR8Ya6uYMTtC+xotMu+ZUli5KBh4KM64ombjYebgpIb28qKkcmDOz QSnxRcxpFOs4DpEWu3lJsS75z2PNYUekDhfbdysA209uHROoAvAr8J3OYqM9AnX4asEx qJSg== 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=bBczCR60HKftmoHIWgLXX74XCcZqhCurFPHJLdT9P98=; b=mY8WYJPcK9ABYZJUAMQH1RRLT89hk3jhNSBwMvQUnR8uiiMwP7UQt2vGvw7X/K4uFj ItMlR2e4Y18aP0ZNv+tSJJ8ENcL0aa2NRi0FLwzvstM4T2rm9d912cS+C1GPXXw0DH8G EQkVmJZg8jqKQMfbFLju6U8Zj/t7FGVGiqhB2EO1YCDxkZVL0EgWpXW1YT/Km1iEtUcD aA38J7Ikv+hs41BRdvO4EluDvDLTQvi79t8cJ/vbXbwqGCTBAEogW7C8dUxes69+keP9 QpJ4cxfgCEM5l8n4HVtWdTZmw5tZnofNiVhTbb+RmjpWXvtlscJaIdm/8Rc+joac2NhI Q+tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=op3unB+Q; 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 az4si2962383pjb.99.2019.08.14.05.52.00; Wed, 14 Aug 2019 05:52:00 -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=op3unB+Q; 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 S1727948AbfHNMv7 (ORCPT + 8 others); Wed, 14 Aug 2019 08:51:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:34910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726721AbfHNMv6 (ORCPT ); Wed, 14 Aug 2019 08:51:58 -0400 Received: from localhost.localdomain (unknown [171.76.115.97]) (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 DCA29206C2; Wed, 14 Aug 2019 12:51:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565787118; bh=YdtxPf4XXyQuYQucX40BXQ2HBXw1BGso1F7v/Ha34ls=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=op3unB+Qa3Tj6B2MeB+KYSU4h+54f6a0mM1pJtGL/5iMjRGuWM47QDFvkbyuTrYhe bGwlaAkl6XDINGncLOZ7b1f3AP887ixWkJDbpFKdz5Mjgfh18fZVw3f2llreIgJnfH AmBB9U2dmlj3JRvyr7aq2cFUIusThc84X6Sz6IGg= From: Vinod Koul To: Andy Gross Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , sibis@codeaurora.org, Vinod Koul , Rob Herring , Mark Rutland , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/22] arm64: dts: qcom: sm8150: add tlmm node Date: Wed, 14 Aug 2019 18:19:53 +0530 Message-Id: <20190814125012.8700-4-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190814125012.8700-1-vkoul@kernel.org> References: <20190814125012.8700-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 Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index cd9fcadaeacb..5f2f21270e2d 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -189,6 +189,21 @@ }; }; + tlmm: pinctrl@3100000 { + compatible = "qcom,sm8150-pinctrl"; + reg = <0x03100000 0x300000>, + <0x03500000 0x300000>, + <0x03900000 0x300000>, + <0x03D00000 0x300000>; + reg-names = "west", "east", "north", "south"; + interrupts = ; + gpio-ranges = <&tlmm 0 0 175>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + intc: interrupt-controller@17a00000 { compatible = "arm,gic-v3"; interrupt-controller; From patchwork Wed Aug 14 12:49:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171286 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp792076ily; Wed, 14 Aug 2019 05:52:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoxIEPoBT6ZhKskv/8NkJ5pJPfOxJRGXis3jKw71lbb3PFpE/PFuY8MDMhZbIsXNgRY6Nh X-Received: by 2002:a17:902:684f:: with SMTP id f15mr42844778pln.332.1565787137096; Wed, 14 Aug 2019 05:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565787137; cv=none; d=google.com; s=arc-20160816; b=zisNOXQDZzlEXAKwVlMIjt/7A6zrNrZUbKhZJ4s7MDzOrvPbbBtOkCDk7cRAvXmTLk Ibg9jiflQOJbDTRveUy06ERBBGaQidS/zhYVz+u3/L5bHWFSzsd18zSF/e+Zcgf1n1cR 58pjG6KE8+m69pcdDYPWYJXTMd3ND7HhK3yB7mqWZLrvCxrve7ytVDvOJN5j9QHZBndc e9jc6aXTB6b1us04IgILqSXACPYGETafLrD8uFOwGES++dcaDIRqopAGc2+0DRvQGr13 8gl/F8QEAJgLl8Bc5keTGg97u173Vf/f709vsmN7uvN9yOt9K5Nxrszuao0Kw7r6HVeC VZFA== 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=kzbhBIFrbEkOLUU/mCbb7lGd5FZVFmuMXLTCdlOiPwk=; b=iUGVwSZftIOHTQax1YZXH1RVo5BYKzx+WQAJwKnopz6HjzmcF1F/dVDuzp3h+CqpoT NJkk866wl/txAuJKXSu0jW4I8jyACHv1jOawxAm5QxVO7uDMqJe5cxjxF8rarYlzjZ3U cVnHvAJyYNaFrEV8SNbXdrMMBDvXDXt4h6E3HAwQmymNobWPXvM/jgfovxu1asXQSkz5 v4qpunR1X/DEcXzoFh1lCTesK+VWkIdWuTezdCO+A1GCxROntzLEdAHOhfOzFeHFhRB3 0GQQKWgX+yvFlGXusfFXO9EsU7pI46FvFr41S5JwKoVKiJFHvNoPJncna7dKmrKEi/RL Rcdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DDSMH69t; 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 t10si53980759pgu.549.2019.08.14.05.52.16; Wed, 14 Aug 2019 05:52:17 -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=DDSMH69t; 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 S1728018AbfHNMwQ (ORCPT + 8 others); Wed, 14 Aug 2019 08:52:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:35232 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726721AbfHNMwO (ORCPT ); Wed, 14 Aug 2019 08:52:14 -0400 Received: from localhost.localdomain (unknown [171.76.115.97]) (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 8504C206C2; Wed, 14 Aug 2019 12:52:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565787133; bh=yeBAsV9wsLsSufBVbD1jJS7wrJSACIFA1hoU8KqV5kc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DDSMH69tTFr6WcoUkLpAedqFp9WjNowGTFilngHPI/dShg3Dt5PnkPMki6jozh+bq fkoEbxDn9Auf5o9yJixpyhpNF7TV147Gr4BX+3L5zorTxAhMTr7Cpcw6v0dKGVB12i 7g0kg28/tqBu0n0C5/bjWirMCHX1jRNqB4/PAzM8= From: Vinod Koul To: Andy Gross Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , sibis@codeaurora.org, Vinod Koul , Rob Herring , Mark Rutland , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/22] arm64: dts: qcom: pm8150: Add pon and rtc nodes Date: Wed, 14 Aug 2019 18:19:57 +0530 Message-Id: <20190814125012.8700-8-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190814125012.8700-1-vkoul@kernel.org> References: <20190814125012.8700-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 PM8150 PMIC contains pon and rtc devices so add nodes for these. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pm8150.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/pm8150.dtsi b/arch/arm64/boot/dts/qcom/pm8150.dtsi index b533e254a203..2cb727ce30eb 100644 --- a/arch/arm64/boot/dts/qcom/pm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150.dtsi @@ -2,6 +2,7 @@ // Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. // Copyright (c) 2019, Linaro Limited +#include #include #include @@ -12,6 +13,25 @@ #address-cells = <1>; #size-cells = <0>; + pon: pon@800 { + compatible = "qcom,pm8916-pon"; + reg = <0x0800>; + pwrkey { + compatible = "qcom,pm8941-pwrkey"; + interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; + }; + + rtc@6000 { + compatible = "qcom,pm8941-rtc"; + reg = <0x6000>; + reg-names = "rtc", "alarm"; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; + }; + pm8150_gpios: gpio@c000 { compatible = "qcom,pm8150-gpio"; reg = <0xc000>; From patchwork Wed Aug 14 12:49:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171287 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp792147ily; Wed, 14 Aug 2019 05:52:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8mSO+5iODsSavturlB7+DhYwDBzn1+fs5emSXNH9P4+YHHQWA8sKIf/vDvVNcfyUsHwRp X-Received: by 2002:a17:90a:f48a:: with SMTP id bx10mr3181854pjb.75.1565787140432; Wed, 14 Aug 2019 05:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565787140; cv=none; d=google.com; s=arc-20160816; b=fepliJJakeaxq86wo1GNfGu7b6Zr0y8GH+Vl9B7z0FX8bjYF4Wja41gXJsr4BCeAcD 02+3tIwVql6CIS1RbprxDp2c7VsyyhsChveHFmxHuv9W+/OUUFROp3fANYQzbG9hx385 PKZPo/5DxJnQ1yVjduOMHIttZ9pqRItct2b8RPEfHo6f7uEtJDzEePg28/47Xy9t5EBG 4kL+dkVjppyNcWQwX7bu7Zt3OfexLm7ctNvmQKjk6j3Xii4W4Kv9I8+yPm2DkjdUiSie dDa42l5Af7/1EKB8JtpjruxFI1qshqx20pfMjLtC6KzJkGMxMb75PXAYxnH65AIHTO70 gUhQ== 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=3FWmcns8J1jEkHv5LIjaJXjsRjXnncEIO/ZnkmpdYVU=; b=Ca+EC6cnCGhpdP3AxWbbGbBxiG5d08wgDnQPcZ9qhcUW+GvUpv5joigBL3d+xIlyL8 BLIJ5H+r8+NMlAzzsO+9Qr5/0yRaUZtiFRbr0TYZrmG+2QQD+dQGbsLwLLWWAr+abx/W OJC6KS7Imbi8cIqIjC3E3UsYjoo9wgfMOEsxd5HIMoPiy+EQrCtEiVtd+Nq2aRWPRbop JBfwdBKLzYs9XMn3kjooHTv3kW8tqFEu0cEWPFI52lrfby4PB4xVwXiwavRqVwVMBHqj hfqLU4PPVoWhN48wsXQtMneAQbiedqP4rTJgO4Xa24u+tgSsKf7uvWInKnuD6lH5oddV mCQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GE2YkdCJ; 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 t1si2992942pjy.39.2019.08.14.05.52.20; Wed, 14 Aug 2019 05:52:20 -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=GE2YkdCJ; 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 S1728053AbfHNMwT (ORCPT + 8 others); Wed, 14 Aug 2019 08:52:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:35316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726721AbfHNMwS (ORCPT ); Wed, 14 Aug 2019 08:52:18 -0400 Received: from localhost.localdomain (unknown [171.76.115.97]) (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 66F0D20679; Wed, 14 Aug 2019 12:52:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565787137; bh=y9Udmlikj8Xlw26tM8G37ayGSDYc1TpuB5aLIUMtNf4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GE2YkdCJ9dUIF6wcLDjUVKlYAycNf0xMs6EfMEGO1XaopM+0SqQM6S2IR8SsdruF2 4FasFfaEYzaVPhw5V6AyBAyz7c7fWjd0vOO9BsMM8P8aPCQbnIPkstumfDesT6M5el E9ko2Zg+q+jFj/OpA45sIl8SqEoscDYrp7c1RdoY= From: Vinod Koul To: Andy Gross Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , sibis@codeaurora.org, Vinod Koul , Rob Herring , Mark Rutland , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/22] arm64: dts: qcom: pm8150: Add vadc node Date: Wed, 14 Aug 2019 18:19:58 +0530 Message-Id: <20190814125012.8700-9-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190814125012.8700-1-vkoul@kernel.org> References: <20190814125012.8700-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 PM8150 PMIC contains vadc device so add node for this. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pm8150.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/pm8150.dtsi b/arch/arm64/boot/dts/qcom/pm8150.dtsi index 2cb727ce30eb..a137def0e26a 100644 --- a/arch/arm64/boot/dts/qcom/pm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150.dtsi @@ -5,6 +5,7 @@ #include #include #include +#include &spmi_bus { pm8150_0: pm8150@0 { @@ -25,6 +26,33 @@ }; }; + 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>; + + 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>; From patchwork Wed Aug 14 12:50:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171293 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp792550ily; Wed, 14 Aug 2019 05:52:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2MRuM1rjaKL1zPLqRfXeRscL7C9mZfUQNEqBFDJ/EXXqvaXgjkZGZWmw/9e+APklvNJCi X-Received: by 2002:a63:fe15:: with SMTP id p21mr32968156pgh.149.1565787163515; Wed, 14 Aug 2019 05:52:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565787163; cv=none; d=google.com; s=arc-20160816; b=thUtJBGu6ggyXKA0VK2jeOVBBl1mAKBR6qJ3+pdvFgHTx6QvU+QUr7GaimORwB0PZn 6FIF+T/GDsKMk6ivzPwHWGg7cCTQnT3bxaLDIcmFavbUXfz2Yil0BrEOoIiMoPQtYCYH MfuEWTzzkA39cxz5ofQlF59Sg4BP+yL63omyzetVxOakFF929LGViYqZJOwFRrLmHFmW SgooctDn0QlVXMjjmj8Ulrr8mejQApMod0pDAeYq8hG7rtviUfSINUehZSPA0Bh7pap2 9tKwbP3BkomRUB1RxifTrZi8ppwLNPkBKV3FpUcLnoC5ZMClCE57Aqt85h+CKO7B0+hk 474A== 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=MIW5/t52njtrOL0zDmx/e8GZu8HpxNogBVeHNRxkoc4=; b=VxBTVg/GP0bwT83Xzj/GK9Gm+XJkKXWoZSDiRH3jPgyzxfHR3BB8mdl9ugGK1SHQ2S jFsrpERJKamZTq7xMA5c6lG0nTumTQT4T68GKcETOjMQKE6WV0zR2RgfSg0NWhgPQco5 DuIJyf4nJQAgO8S5o0JbkDfeHQlDPH+SCGZqAslnQbtAl9FFXIOUEzRnCch2YDxLzK4L gcOdOz83CyR4d6uPKIo2zSK9r5OQnSyfrOUXa9UDBd4RAOjxEtMXcABE/d359kUqAmho N9Zad5ZPEusGsvVSGeXJTTRySi72FJbI4/a56wCXaEKZHqqbOoISai1awEMb+5hY9vX+ qXEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fkHc2JmO; 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 go19si7420868plb.150.2019.08.14.05.52.43; Wed, 14 Aug 2019 05:52:43 -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=fkHc2JmO; 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 S1728177AbfHNMwm (ORCPT + 8 others); Wed, 14 Aug 2019 08:52:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:35772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727687AbfHNMwl (ORCPT ); Wed, 14 Aug 2019 08:52:41 -0400 Received: from localhost.localdomain (unknown [171.76.115.97]) (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 B66382173E; Wed, 14 Aug 2019 12:52:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565787161; bh=12jQA7SKu9YWp05BoGshP3ZwcVafGjl4GiaRbND/YMw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fkHc2JmOf1Tx4Hqp4VoD5knj/EBXXSLxiY1jo6zsjxQPqFtJiyDeSr1cafElFC5H6 wlRQUjXJb24Zn/IBGwUQbcv8v9oNRY21Xm4F2N8DlY27LLkvDd0kFf7II2jPW6JsnQ ScGjGv34zWjH+J8yHiPrTY76guraDOnfOtAoP0ow= From: Vinod Koul To: Andy Gross Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , sibis@codeaurora.org, Vinod Koul , Rob Herring , Mark Rutland , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 14/22] arm64: dts: qcom: pm8150l: Add gpio node Date: Wed, 14 Aug 2019 18:20:04 +0530 Message-Id: <20190814125012.8700-15-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190814125012.8700-1-vkoul@kernel.org> References: <20190814125012.8700-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 Add the gpio node found in pm8150l PMIC. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pm8150l.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/pm8150l.dtsi b/arch/arm64/boot/dts/qcom/pm8150l.dtsi index d685dac426a3..dce72bff0e7a 100644 --- a/arch/arm64/boot/dts/qcom/pm8150l.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150l.dtsi @@ -44,6 +44,25 @@ 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>; + }; }; qcom,pm8150@5 { From patchwork Wed Aug 14 12:50:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171299 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp793024ily; Wed, 14 Aug 2019 05:53:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzeMihfNM2w6U0Mkl4owXPKcu1u2E7wCJeif1lfEWFOLRxLoqOfWr33bqSlYt+TIPxgW/ri X-Received: by 2002:a65:6093:: with SMTP id t19mr7883118pgu.79.1565787190037; Wed, 14 Aug 2019 05:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565787190; cv=none; d=google.com; s=arc-20160816; b=HSovbS39YSohSaR0vVW9n/OEIteUk2tui+d2wAftrL/z6sbKMy9Dg3VTMs3TyI/nHV s+Xt5vT/Fo/EcpNtpeE7WG9cJIueX47v/te7xZBWHTivhNkQ8qHbyMbTC7tCF6GCjiIF jXcWIp07n+wU/1aVwHJRCQsdefILp8ZAimU83CdnTT9SR9HuD0ViKP+zJ8WTZNJJHNdv ARZ55Ua2hDf9BxuxGJSXQadHU0rwJF3Box48IpwZkE7LwZqWDIO/8F9VF2FdfoXBs4d6 AXncZpIQZhyqCRdXpSph62U2NRBVuW6aQlsPLaWsZ6l8CXftUvDiBdcty16WPS7SMiwU hJXQ== 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=zKqus9DvXhC3fxgqZvSnVicO4CUrjDKOvrjSG6FDRk8=; b=LL9m07IpSdagf6SX+53EwTsyNTHaiAxl9991uHLq7PF9QmEPZQw6Rb7MT3V234gB3u kRN/gJiCtrqr7LxZR/+omxfxt3Us0W8wvi11RxATchiz2hTiFRCzGDQFregQzarOCoi2 LkA37pqWnBSOCKifjVeCZTZ7Zn4yBnpr1mab1ApyU/gJwlRz5vUWbvXkW2BSVT3RDh9q 4cOnccrtuy5wVf9hyPhnl5smdFHwO6JSC4lWGu8ZG/F5ydzvrU3rYJajLaJigynALmtM YE465s0mC/BNlmDUJFsWAARbv5wbCECC5OKXzqDaO2GIWJH9E3kEK5NYuNqJ6IzdYWdW kxLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RlsOWELG; 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 i188si67561845pfe.96.2019.08.14.05.53.09; Wed, 14 Aug 2019 05:53:10 -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=RlsOWELG; 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 S1728325AbfHNMxJ (ORCPT + 8 others); Wed, 14 Aug 2019 08:53:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:36414 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728313AbfHNMxJ (ORCPT ); Wed, 14 Aug 2019 08:53:09 -0400 Received: from localhost.localdomain (unknown [171.76.115.97]) (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 F22AB21721; Wed, 14 Aug 2019 12:53:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565787188; bh=gs8YwW4FIVXjeU76YzcChMtnH93LCEseIpUWycteCh0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RlsOWELGOULQK3kmo+9knvtqVjgvu4r/sYHN3jTQmh0nmRRWaUoQ8Xrr+g074nMrJ 9EcKCg1g0z+XouTFqAkDreqwzLHs4oLNEaO3IN3fHMQaNIjmTJWkhZ89G4qB9FJIY0 J16mQWO6XQ84N25yp0faKH2/2Lpf8wPvJUWUqJfw= From: Vinod Koul To: Andy Gross Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , sibis@codeaurora.org, Rob Herring , Mark Rutland , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vinod Koul Subject: [PATCH 21/22] arm64: dts: qcom: sm8150: Add SMEM nodes Date: Wed, 14 Aug 2019 18:20:11 +0530 Message-Id: <20190814125012.8700-22-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190814125012.8700-1-vkoul@kernel.org> References: <20190814125012.8700-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 From: Sibi Sankar Add the necessary dt nodes to support SMEM on SM8150 SoC. Signed-off-by: Sibi Sankar Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 19be87dc893f..5df3f335272a 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -142,6 +142,12 @@ }; }; + tcsr_mutex: hwlock { + compatible = "qcom,tcsr-mutex"; + syscon = <&tcsr_mutex_regs 0 0x1000>; + #hwlock-cells = <1>; + }; + memory@80000000 { device_type = "memory"; /* We expect the bootloader to fill in the size */ @@ -269,6 +275,12 @@ }; }; + smem { + compatible = "qcom,smem"; + memory-region = <&smem_mem>; + hwlocks = <&tcsr_mutex 3>; + }; + soc: soc@0 { #address-cells = <1>; #size-cells = <1>; @@ -306,6 +318,11 @@ }; }; + tcsr_mutex_regs: syscon@1f40000 { + compatible = "syscon"; + reg = <0x01f40000 0x40000>; + }; + tlmm: pinctrl@3100000 { compatible = "qcom,sm8150-pinctrl"; reg = <0x03100000 0x300000>,