From patchwork Mon Jun 7 11:38:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 455284 Delivered-To: patch@linaro.org Received: by 2002:a17:906:72d5:0:0:0:0 with SMTP id m21csp3224032ejl; Mon, 7 Jun 2021 04:39:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8z5QRf0q8+bSfOkc8yftp4q3qI5VanXK2RwQ2eMxRqRVrvr5Lh/mEQ9vu4WIC7Af46r0H X-Received: by 2002:aa7:dc42:: with SMTP id g2mr7169782edu.362.1623065997008; Mon, 07 Jun 2021 04:39:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623065997; cv=none; d=google.com; s=arc-20160816; b=RL7QQ4TGcNbbrM+S8zqbrps5ZKmg3WYWnbd8O8FnkB5nMsQuZqI+4HPnt2AuaaCSUS biAfLQGKqrLSR7ipO7bZnm3+Gu6qsQUp6Vj/d6eqc9iJczDTjyjPxqaq5JF9R3NlU8FO q7wv44/9hHEr/NIIs8Z/PfVQYI/+VfJOlYkvMCbMzV7Hri0omnV4kWJzhTBL+hcxH8E2 bTL8dw+EOuyuMTknt3PS5Pzy9De3iBquWlBXVohON5Wihf4WeesIpC4RbIzT60W9KJ9c zqpci0s1RxAo69fwWyi7IthT+XVKzPixtGVmm42tTHDtGd/Zy54W/UmNz0UqDN5ZyBHd e9Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=a7axnRN7J0TgpBrh+Kb0fw1d7DU02xsKPrnGXvbuVaw=; b=bijhdXnYDp3zYp+mU1bDxMiMMQ5y+ARsO7cUSCJs0d1T3OaDpOdoaV3SML0NXqfsnR rg9Ir6IC3HuNTAb0HOu0iIZfbZJW/J/Q++OnY+RxnMLcAAuFwKwik7GDItvnGo0OeJQl 1V967gJtj9S7q9WWINl75cEGwNwaYS4Q/y1+OJvVWPiNUnwvddlgcBtOK7OudynfNWsG PG3E4ENnd53pdzk/J0hiO0fzQqkTOmnVpsETYTPca2uOBfuMaMOMCXE/2+8CA3TXlDbU j8srtHXYyDqeVDDhO0X1ccRYJuDdYEjYSFUrhTrSRQBx/z4CHyzV/LHYJ+rM+N7sJcb1 6wLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vVkRkAih; spf=pass (google.com: domain of linux-gpio-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w4si8407501edq.419.2021.06.07.04.39.56; Mon, 07 Jun 2021 04:39:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-gpio-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=@linaro.org header.s=google header.b=vVkRkAih; spf=pass (google.com: domain of linux-gpio-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230289AbhFGLlm (ORCPT + 3 others); Mon, 7 Jun 2021 07:41:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230374AbhFGLll (ORCPT ); Mon, 7 Jun 2021 07:41:41 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48740C061787 for ; Mon, 7 Jun 2021 04:39:39 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id k7so9629611pjf.5 for ; Mon, 07 Jun 2021 04:39:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=a7axnRN7J0TgpBrh+Kb0fw1d7DU02xsKPrnGXvbuVaw=; b=vVkRkAihLJJtBX4HTGi9pn9BV3vX7Qe0XrIoTcWjOPnHT24fkDYpqXhAkKoqgMzE6Z e7TNWfcRWEq/QJRDbFjc0Cf64Q5dyJSpaAOgeHImeR2OJJdN+0b/m7dqLv+LA8JiKluq EPUjauEqlo/yfXZFcahub8d6P7S66vhV6fupaRfD2LzkpUjSmf+sP+7rFpo0AmY6SAUB 2Yolb/9yaq/v65/qSANPGCIe3S3PwAwyJxB+6BpAJXDgcksarZohaVyoOrq8A4wKACGt xb26UB665E97tauqd0Xxp9eIm3gL+KV1RSA3VzUNWFI1Z51tST2GRmwImSxfXr8KvuJ3 x7wQ== 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=a7axnRN7J0TgpBrh+Kb0fw1d7DU02xsKPrnGXvbuVaw=; b=Yre2Xgn4CGhd00W0m1sZdILNmUP3L53EFZ1Qz7OohlnRA3m76f+g3uJSdJsU6IPQvv fdxjGAfzMWAzdiheaiCcZ3xUlCcA1YtFm2noP1VJ6KJ9BnJ/tcvLdTsOEqi7UxNSBb79 IF0ruyBo9XeKtXZIxCihWSsq+IcoQWI3u464vrR645+eiTla3jfw6Z6LAgnsXYYz/W1S EWRwsNpfonlyZ6AwFrlbCukBjgMayIFitYClV4oxWOog8PfPXhKr6LCRLP6/1QItT5M+ uUvUtffurSF6YiSqo2vP//wdJsrhXC1fiH87z4p8E3PfTz8H64yw1eGJRhbrfvYrHcA8 OUsA== X-Gm-Message-State: AOAM530pWXPvfIy1GFhVYn1S37lLriHk7duc4MuAOFKYBBXzP+ORPL2m 0GZmX3ATroi8DtKUwlTJNp6KAA== X-Received: by 2002:a17:90a:e298:: with SMTP id d24mr19962376pjz.36.1623065978833; Mon, 07 Jun 2021 04:39:38 -0700 (PDT) Received: from localhost.localdomain.name ([122.177.177.211]) by smtp.gmail.com with ESMTPSA id j7sm7223939pjf.0.2021.06.07.04.39.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 04:39:38 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, Linus Walleij , Liam Girdwood , Mark Brown , Bjorn Andersson , Vinod Koul , Rob Herring , Andy Gross , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, bhupesh.linux@gmail.com Subject: [PATCH 6/8] arm64: dts: qcom: pmm8155au_1: Add base dts file Date: Mon, 7 Jun 2021 17:08:38 +0530 Message-Id: <20210607113840.15435-7-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210607113840.15435-1-bhupesh.sharma@linaro.org> References: <20210607113840.15435-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Add base DTS file for pmm8155au_1 along with GPIOs, power-on, rtc and vadc nodes. Cc: Linus Walleij Cc: Liam Girdwood Cc: Mark Brown Cc: Bjorn Andersson Cc: Vinod Koul Cc: Rob Herring Cc: Andy Gross Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-gpio@vger.kernel.org Cc: bhupesh.linux@gmail.com Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi | 134 ++++++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi -- 2.31.1 diff --git a/arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi b/arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi new file mode 100644 index 000000000000..2392c742021d --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi @@ -0,0 +1,134 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2021, Linaro Limited + */ + +#include +#include +#include +#include + +/ { + thermal-zones { + pmm8155au-1-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + + thermal-sensors = <&pmm8155au_1_temp>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "hot"; + }; + + trip2 { + temperature = <145000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + }; +}; + +&spmi_bus { + pmm8155au_1_0: pmic@0 { + compatible = "qcom,pmm8155au-1", "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"; + }; + }; + + pmm8155au_1_temp: temp-alarm@2400 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0x2400>; + interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; + io-channels = <&pmm8155au_1_adc ADC5_DIE_TEMP>; + io-channel-names = "thermal"; + #thermal-sensor-cells = <0>; + }; + + pmm8155au_1_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"; + }; + }; + + pmm8155au_1_adc_tm: adc-tm@3500 { + compatible = "qcom,spmi-adc-tm5"; + reg = <0x3500>; + interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + pmm8155au_1_rtc: rtc@6000 { + compatible = "qcom,pm8941-rtc"; + reg = <0x6000>; + reg-names = "rtc", "alarm"; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; + + status = "disabled"; + }; + + pmm8155au_1_gpios: gpio@c000 { + compatible = "qcom,pmm8155au-1-gpio"; + reg = <0xc000>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + pmic@1 { + compatible = "qcom,pmm8155au-1", "qcom,spmi-pmic"; + reg = <0x1 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +};