Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3007371ybt; Mon, 22 Jun 2020 12:28:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfiWJVPnUEkF9a9Otg7qsO9rCWJUhgwUOVR6lv9vg5y8HE6eAfGhxFfsHpDDQtY8z/TkG8 X-Received: by 2002:a17:906:39b:: with SMTP id b27mr16727654eja.421.1592854119204; Mon, 22 Jun 2020 12:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592854119; cv=none; d=google.com; s=arc-20160816; b=uyxks3J8aTrnqrPhEGjD8lBlVcjx6O8xsTOlqzqvkz8UdtDbqXRWpRhvo/XenRAYt1 ZG5xYe/CsmFysQygWEpkVTzJ6oZkwQmrcJ+uJ7QshH3OJ/PHT3yaGTmL9poqmHG9cE54 AFe2UayQmVGO9yJdwKw0QW1UXdVroKVg+n2PhLvKfyDm3tQtf3ChwbeUrtpDPZb5uZ4P vN8UboorIod+iiuJpAdwh2xZbAO23cVkIOEc+4cvj7r2DZdFRhB6pFVAfJitKcmn1PWa hygRZes8hwVAblbieO8akDS2pg0txzeycdZss4U9ghy86cx6Q/R8SOv1ydFJMpZFp2nd /zxg== 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=pshXNbHhXYXnw+WZFtsd3zneBLkfQnAzRx2TcR6ogZ0=; b=kZbfLS/+mojZiRvsBG85L+D9GFZcmU/zoiad/h8t1udJnEPWmgKxliBMlU/QZkLtr+ acioGjb37UPZlkKSkoftuCMMrYmTBwJShUYiJBIJzdvGZUsYlBnmrZfy0HRJE8993p2h qnTaB/mqrF1kz1/wlC/S/Q7XXXSJ2++bZWBn+U79QMYL/4ndEXYUikXl0HBFH3L1mZKT oLqzBGgKzHf5X/3se+5RvQN6kXheIkl6iV59AQBuhvTTkGnf+1gwBkytCjAw+24xVFRb rztDi0W2fT0NAHAdvsomQ6WO0VB4ct4uz7OA8Zf7V1iy9QHA/8Wh1j2GCiNG65Fa/1Jx TuXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FAi99I1n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c25si10508134edw.456.2020.06.22.12.28.16; Mon, 22 Jun 2020 12:28:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FAi99I1n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728361AbgFVT0X (ORCPT + 99 others); Mon, 22 Jun 2020 15:26:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728245AbgFVT0T (ORCPT ); Mon, 22 Jun 2020 15:26:19 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0673C061573; Mon, 22 Jun 2020 12:26:18 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id l12so19162279ejn.10; Mon, 22 Jun 2020 12:26:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pshXNbHhXYXnw+WZFtsd3zneBLkfQnAzRx2TcR6ogZ0=; b=FAi99I1nHYz0kRO7eOiX/PYbU8ZNfG1ju2IKR9/z/Rc9x9tHRs9ZtAJcJAM5MPj5jl i4RzxumtTSoxwF2hvh4NWoJ2sTRYM8xvPrzd/0YKoZmasgQWHp8liyGTqhPaMKSgYHi8 8Fzqod1Ufrj766+5nrGw1RCVk+LTgOPrdA1bRW0uqFrqGbO163DJhk8WSIw6iXbqhoNM ewZCi9wkamSWpD0fjerEW3n1/LBk5OS9IlaZ9MZ7LgmD9+73XVi9sLerTuTVtEds/wnI jjvUk/6f0l5IE7w4aBzKLTNZSb5M0OuuNUcnPzRFc94jWXEanD150BGbVkpWCBIA/hWU oUHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pshXNbHhXYXnw+WZFtsd3zneBLkfQnAzRx2TcR6ogZ0=; b=bJiWSFNY8ORdjBfO1bMd27QWaSu8JhrVGBgxz1feXnIcjaXXbhIydGzSoO27kMVF+A lhmKmvvjqlFwG4pttTC+K+cwuNcQ9iHGJDD/yHea3ga177ery1G9hiURD7lSclt8vmA7 Y5nuxhbYPDK0OeeXS+QHTatdziHcqs3fJBqb4T92qAO2e3CkZd1yRFcUaG+b/wWWnidN XAk5AXE2WaqQkAj4DtQQ62lxWhIdnbeAHWbtG4eqVJ6hXKK5XS8RLw5+S8auFk88OKwt poGJ8vzZKN9cmVICDZKUn18wXjvC8oaALHEYW24Br5tNSGeSgc6ohJ+m9ja1wQz5y8tS xMzA== X-Gm-Message-State: AOAM532Wsepp9mykdq7EAc9UWyGO8QjTTDMIFmHWH3jYlIhruzkp8Afw MCS1Nt1V1DwLmjCifE90zC0= X-Received: by 2002:a17:906:9381:: with SMTP id l1mr17501986ejx.380.1592853977585; Mon, 22 Jun 2020 12:26:17 -0700 (PDT) Received: from localhost.localdomain (abag196.neoplus.adsl.tpnet.pl. [83.6.170.196]) by smtp.googlemail.com with ESMTPSA id d16sm4043336ejo.31.2020.06.22.12.26.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 12:26:17 -0700 (PDT) From: Konrad Dybcio To: skrzynka@konradybcio.pl Cc: Konrad Dybcio , Andy Gross , Bjorn Andersson , Rob Herring , Linus Walleij , Jassi Brar , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , Sivaprakash Murugesan , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: [PATCH v3 3/7] arm64: dts: qcom: pm660(l): Add base dts files Date: Mon, 22 Jun 2020 21:25:53 +0200 Message-Id: <20200622192558.152828-4-konradybcio@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200622192558.152828-1-konradybcio@gmail.com> References: <20200622192558.152828-1-konradybcio@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add base DTS files for pm660(l) along with GPIOs, power-on and rtc nodes. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm660.dtsi | 50 ++++++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/pm660l.dtsi | 36 ++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm660.dtsi create mode 100644 arch/arm64/boot/dts/qcom/pm660l.dtsi diff --git a/arch/arm64/boot/dts/qcom/pm660.dtsi b/arch/arm64/boot/dts/qcom/pm660.dtsi new file mode 100644 index 000000000000..ea0e9558d0f2 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm660.dtsi @@ -0,0 +1,50 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2020, Konrad Dybcio + */ + +#include +#include +#include + +&spmi_bus { + + pmic@0 { + compatible = "qcom,pm660", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + rtc@6000 { + compatible = "qcom,pm8941-rtc"; + reg = <0x6000>, <0x6100>; + reg-names = "rtc", "alarm"; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; + }; + + pon: pon@800 { + compatible = "qcom,pm8916-pon"; + + reg = <0x800>; + + pwrkey { + compatible = "qcom,pm8941-pwrkey"; + interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; + + }; + + pm660_gpios: gpios@c000 { + compatible = "qcom,pm660-gpio"; + reg = <0xc000>; + gpio-controller; + gpio-ranges = <&pm660_gpios 0 0 13>; + #gpio-cells = <2>; + interrupt-controller; + interrupt-cells =<2>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/pm660l.dtsi b/arch/arm64/boot/dts/qcom/pm660l.dtsi new file mode 100644 index 000000000000..edba6de02084 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm660l.dtsi @@ -0,0 +1,36 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2020, Konrad Dybcio + */ + +#include +#include +#include + +&spmi_bus { + + pmic@2 { + compatible = "qcom,pm660l", "qcom,spmi-pmic"; + reg = <0x2 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pm660l_gpios: gpios@c000 { + compatible = "qcom,pm660l-gpio", "qcom,spmi-gpio"; + reg = <0xc000>; + gpio-controller; + gpio-ranges = <&pm660l_gpios 0 0 12>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + pmic@3 { + compatible = "qcom,pm660l", "qcom,spmi-pmic"; + reg = <0x3 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +}; + -- 2.27.0