From patchwork Thu Jun 17 05:45:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 462121 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp118993jae; Wed, 16 Jun 2021 22:46:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1NNQhIn+mUiHKP/h+w1GWCE1rDeKXcUmhHIJmeX9WsRADd8txn5RvfWQh3meNdk5JVDfy X-Received: by 2002:a02:a41a:: with SMTP id c26mr2868159jal.87.1623908801016; Wed, 16 Jun 2021 22:46:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623908801; cv=none; d=google.com; s=arc-20160816; b=HKBLtE46/hH89skyy8Urhiv1R3fMt6m9rsO8hDqZg3pyWhwCmZ0vEMBNA4WbGR6K/I H2OIeCM4pIIjw9oikoIWaOGEAfmkBjkczE8EygGCn3jy341URMloFEpe7QOfpFT1PgOD NSXrQVJK/nLrFWre1x9VgVO1WDtyJJOkpiJ08L0k4nwPzNGv1PqbqmXbJqrW57AICZlm gmX3dtbLlKVJqmtmW//A13tO3x/zoTFtrUT4WE37sR1THhjcVDDkg3EHNVacsmm6hRv/ PToEgj4J1d/cS5dEz3w4Buum92LprA0NzpdythGkuXLWCglMF0F0VCKxwjBPEVXzWHKY PiUg== 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=/UKzT5tHNyrCtmsqkqYRrpb8fD178fqkEWWYV9zJ+Sw=; b=Cdg3Ri8nJtBlPrJxR+N20gz0emVKgIHQNFMRRZm6Iv6PVgRkQqDpfMinds3TJagAWF UbDffGCXD9EglRS8pZKHHOUR/rZNlttagpeTGh8dUBiwXwbXseseLOd/CmuF/aKvwtPy ZcAv1HHgJ1Zzv0Ss8yYyWhtwwYMPepAfQFtN32YBCyIdkH0Yq2rAYxjaf3fn3+WQIyl3 5ByJQ5O+EVimtiCA7tzeJUCO4/8ZWH51iu5sSl5mDYYaT7TOQmydKQIJS4p4G8K672aA d8N9YI/UW416/Lsaws8/sj3o9UPHZnE7Uy138kRfmBFo0Hp2uEZJJh13IfJSYOqbyQRq QJlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RCJlYV66; 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 y17si5298891iow.61.2021.06.16.22.46.40; Wed, 16 Jun 2021 22:46:41 -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=RCJlYV66; 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 S230167AbhFQFsq (ORCPT + 3 others); Thu, 17 Jun 2021 01:48:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230212AbhFQFsm (ORCPT ); Thu, 17 Jun 2021 01:48:42 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E41EC0613A2 for ; Wed, 16 Jun 2021 22:46:33 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id e33so4033554pgm.3 for ; Wed, 16 Jun 2021 22:46:33 -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=/UKzT5tHNyrCtmsqkqYRrpb8fD178fqkEWWYV9zJ+Sw=; b=RCJlYV66QaV7p11YyDciyWIvseLVxMEpd3sIXfr5dEqljBi/gBcoDUTTN8WgrJn5IC ECJiUXcnNnzFwN2FB1g3V3z/GfGTOjbWpx5Ct/rOKNn3q6qhxPoko1mqXtGH3+03xWna h6yL/6puWOL6PymhwB6uugcb5zPPb0cYC/r3Mk+rnG0jo3i9PQOkzaX/ZED5mMSzlhai Ld/h2bJyQ80wcAiVzLczhk7Ht45dUajQHSoINkBGdb2yBTPN/Or55SJZuSXoAgOIYBVx MTA/ix8FmtVFJRyARsWe5G9o23P89v3elgtgELacPyCd1wF8S9mAXvUupOyH8rbaObll 8myg== 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=/UKzT5tHNyrCtmsqkqYRrpb8fD178fqkEWWYV9zJ+Sw=; b=hK2rxQmrD8994EvafwJEXAQ6AAy6cWz4r7OIKcjWJxKmP1N2AMj+1D9vB0f3Kkgl3a xSzEwJZaU+UeA1ixNczGrad2wACFOTZ7i6HSulXWSQCd2z3MbzsjXBzLVGyK7xsJb7SZ nfxJ+VM7z6TgrPpLUEVP1gDunlwBKIAAX1LEFwtOL0XLWvFPs63/6rpZoT9ghmcBLVZV enZ/RKenTe9/SBD60AM58trO9lDIdaSVWL/07dKtJ9OXAxNcl7EaKIsCIJ4XoG5ZZ++W BSvr7VLCa4lUSDxND+m93xtPmOK5h1AAAYVtAaYMvY3W59DTfocVFejdcLwVcWmz87D6 mUng== X-Gm-Message-State: AOAM532R/m1rWpWyq1zaEGvwVDOfH89tRroSagtZaFaVHSeZcqX33arr NsTQ/6pCvWos/wXtvXhNUdTUJw== X-Received: by 2002:a63:1a4f:: with SMTP id a15mr3295630pgm.313.1623908793161; Wed, 16 Jun 2021 22:46:33 -0700 (PDT) Received: from localhost.name ([122.177.46.2]) by smtp.gmail.com with ESMTPSA id y27sm3882700pff.202.2021.06.16.22.46.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 22:46:32 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, agross@kernel.org, Mark Brown , Vinod Koul , Bjorn Andersson Subject: [PATCH v3 4/5] arm64: dts: qcom: pmm8155au_2: Add base dts file Date: Thu, 17 Jun 2021 11:15:47 +0530 Message-Id: <20210617054548.353293-5-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210617054548.353293-1-bhupesh.sharma@linaro.org> References: <20210617054548.353293-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_2 along with GPIOs, power-on, rtc and vadc nodes. Cc: Mark Brown Cc: Vinod Koul Reviewed-by: Bjorn Andersson Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi | 107 ++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi -- 2.31.1 diff --git a/arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi b/arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi new file mode 100644 index 000000000000..0c7d7a66c0b5 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi @@ -0,0 +1,107 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2021, Linaro Limited + */ + +#include +#include +#include + +/ { + thermal-zones { + pmm8155au-2-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + + thermal-sensors = <&pmm8155au_2_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 { + pmic@4 { + compatible = "qcom,pmm8155au", "qcom,spmi-pmic"; + reg = <0x4 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + power-on@800 { + compatible = "qcom,pm8916-pon"; + reg = <0x0800>; + + status = "disabled"; + }; + + pmm8155au_2_temp: temp-alarm@2400 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0x2400>; + interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; + io-channels = <&pmm8155au_2_adc ADC5_DIE_TEMP>; + io-channel-names = "thermal"; + #thermal-sensor-cells = <0>; + }; + + pmm8155au_2_adc: 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>; + + 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_2_gpios: gpio@c000 { + compatible = "qcom,pmm8155au-gpio"; + reg = <0xc000>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + pmic@5 { + compatible = "qcom,pmm8155au", "qcom,spmi-pmic"; + reg = <0x5 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +};