From patchwork Thu Jun 4 00:43:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 187449 Delivered-To: patches@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp979351ilo; Wed, 3 Jun 2020 17:43:34 -0700 (PDT) X-Received: by 2002:a19:f813:: with SMTP id a19mr1052016lff.212.1591231413947; Wed, 03 Jun 2020 17:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591231413; cv=none; d=google.com; s=arc-20160816; b=RiFQqPru/gc+1g7VNGMPEjismDpxGWvnxQh+6mWMvtBMhEabbuO8M7FEEhPYZ6MMiD 0G0J5gHAXM+0VC8YS87Q5+T/5jSTWFop/MgIkGwWBnQfNCddxo74SNHj2CGOw0LWj2e2 5OvXxl9CXRugDLlLm6+jBOGNiIVTEvl/bu8L+sN5KKoLhnZqPHVKXu8DTzN/W9dx/ogr Gbg0NwAJONhjCWZdRQY+mXMYHS3eN3fHBQ3f9NYa8jG1Z1Op6HXkOZCZH70iO9YhbdOw 521zDmuhbXfgHpCsV+anXjA/CUbD4zq+VndiChw80SAjdo05za4VFj7D1l0cRoPEMgLT ODDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=cRs2X+oeKdHfeX7eb6eCjnPnFevRST0za6Vh4RscaYk=; b=0xvOaQKm654ZrNOaDN9YyuaCgVjLdacrz0noqRs2tdDdWrE07N9Sg3DO10ofTiGS70 wHFj9TBxpsrkicQNVYu3xlyHlnYVGSLoR30yRX3FEKS+19eWzFDMCHYPXzr16d+U8opg hjBEhcqW5dsMsQfsgO7h+ra+5htkOauTjDN4z/GsCP6lrdBrzN9K2ShhaV6+KSe/pIaT q4sEI9lFTyuDAf+iYNP8/hWeBQO0Yj24kDS5bbTrELpjnEN9AoTaQy6ukh0QOFUKSsuP /jtX2Qrk/dDQ+CWaBNYSuYrJC/68XuVyY/3uJrgZaHrQjdcWlOpbxL2ZgknlqgtlNKRH czqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F61Eg71t; spf=pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dmitry.baryshkov@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id u1sor2085075lji.68.2020.06.03.17.43.33 for (Google Transport Security); Wed, 03 Jun 2020 17:43:33 -0700 (PDT) Received-SPF: pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F61Eg71t; spf=pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dmitry.baryshkov@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cRs2X+oeKdHfeX7eb6eCjnPnFevRST0za6Vh4RscaYk=; b=F61Eg71tZo7yLrSch48uDBf0KGXE71dR3HqNioWJV55S47JVRdokkrYs80rBGWti5/ XEV1n92aHxZsHxfcwi32EyGaIXmtYgacwjIGmqmIzrMif3TSuH31NEOL8GClMmPwj8Bf 9XTRws7vdUclGUMSMgL2sxdjno7P9KhvriiO0nDn3BVQZj/lwM2+ctlcKOMcSZ610PAG OBbnqFVftCDzTnIt6JtDFtS88DzYhVpvPorl3aKDfzGHssRxOfaH/k9tlT6spSHqFfnj wdIX2n8W2d4WxgAHcV28FMC9Fx3MnxDVtdBu9G+QUyNbQA+RmLu1PhTcw+y36vz/kFqJ ndEA== 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:mime-version :content-transfer-encoding; bh=cRs2X+oeKdHfeX7eb6eCjnPnFevRST0za6Vh4RscaYk=; b=WQW/eIod2AK2ujwx08WBdQ+eL89uujcKlRYrLLCpaaBf6goQzNzilcFJhxuEfWVFJM 8gxr5vo5zMCzOHHVQg8ZUNsiJWFyBhTIzhKnvTa2yTVLzlP3cbN01YuzNGS7QKXGUDdu +c0XytcKfU9Znbnl4EEmFIdFAgv3jvSqvhEtLb2hxdeCouChsaNbT62oNCR1my5GOEMl zsBKTgPWpX+9jfIEkwlhLKMQNkqfhnJFNAreQj/mBOxLiLjXchfmguSpVLbTkx5IoZLb iiiqtvJ64+HjecohhIYaJrS/Agyb2XvI3XcyohqjUXZ/yaAg1NW+gPSvIkDyOUQDUfE3 AQYA== X-Gm-Message-State: AOAM53347ak4fOQ9V5KPb55S3Oc6lDQ5nSJhHb4cjZo7roZLlG741XvV wYVTJRwTETuv+cRT0zIZR2rzg9wm X-Google-Smtp-Source: ABdhPJxKJLWg8HQ02rdlWfobnc/UXxVw60sSX6mDM4NyyI2j3u4EiXaSOG8SVYMOqXoJMYQ9gnhVnQ== X-Received: by 2002:a2e:9783:: with SMTP id y3mr733957lji.457.1591231413382; Wed, 03 Jun 2020 17:43:33 -0700 (PDT) Return-Path: Received: from eriador.lan ([188.162.64.226]) by smtp.gmail.com with ESMTPSA id t16sm858527ljj.57.2020.06.03.17.43.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 17:43:32 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org Subject: [PATCH 1/7] arm64: dts: qcom: pm8009: Add base dts file Date: Thu, 4 Jun 2020 03:43:25 +0300 Message-Id: <20200604004331.669936-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Add base DTS file for pm8009 along with GPIOs and power-on nodes. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/pm8009.dtsi | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm8009.dtsi -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/pm8009.dtsi b/arch/arm64/boot/dts/qcom/pm8009.dtsi new file mode 100644 index 000000000000..9f3e19b5bd00 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm8009.dtsi @@ -0,0 +1,40 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2019, Linaro Limited + */ + +#include +#include +#include +#include + +&spmi_bus { + pmic@a { + compatible = "qcom,pm8009", "qcom,spmi-pmic"; + reg = <0xa SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + power-on@800 { + compatible = "qcom,pm8916-pon"; + reg = <0x0800>; + }; + + pm8009_gpios: gpio@c000 { + compatible = "qcom,pm8005-gpio"; + reg = <0xc000>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + pmic@b { + compatible = "qcom,pm8009", "qcom,spmi-pmic"; + reg = <0xb SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +}; From patchwork Thu Jun 4 00:43:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 187450 Delivered-To: patches@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp979362ilo; Wed, 3 Jun 2020 17:43:36 -0700 (PDT) X-Received: by 2002:a2e:9a08:: with SMTP id o8mr831447lji.126.1591231416081; Wed, 03 Jun 2020 17:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591231416; cv=none; d=google.com; s=arc-20160816; b=CIGxzbptlSYlZ/iveOMACY9Cx3eIDUweL/gq6f8c3qd77f8OzyGrG80Dai0sskXj3I O8lmB8NTqecrkpYfCibV1jtV3MKuYch8XRRxgZEDki0bX+vcfPLdm0itGUUVzh4/kiey TgphNrn4DiKV2B0if1+LmmkEh+XT4GY9SagKOunYWVQY0+bOHAH7Ldo94WaNOnANlEPc /KHcsqGXT5vzVz7cbT8sdwsGIhaT6oXzTKFnYBcU/nmJbxgQSUFd8P7DBUouZUI+ToJl d2qGVMpn7/aURxLs0ZBYxubtBY5+JmhLGijpDC90jNZYrHEtZ3BK39LChDLgAPwiCjqY hN+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=jK4gLNB0iAkstlca7qoP4zJlhYvGOTtNahstZSraRpg=; b=jo0u5OtQlf80zvPK5XYqOcoQVz3HXOaqAxyJ0nK6L0TuZReyfCWRQ6OjeMuOKp/PHE 8EqBcWRtezNlDe44kTaQHGg9+JRC/aCwHyoUh8J2Ulbtj6CRu49Ajw5U5DegnPNDMMfZ h6meL/RPdrIm/SHC4VbeS8QMi2oHo6JGnVB2sUjQvqor0TfdLKKWTIvqXEE28ByP1Ceu B4VGWlRNCBNB14ZtUU4fosOW95rFoOgn2jOq+x8w7vZHCOIQ8qiqvXhM4gCgiYuWsaVI 7KQJ3GM2QpaEoLt1esWYOkzG7B+wfxa2iFqUfroqZLHr8ihg+obB4n0cXARlObBNyjRk rnDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cCwwAKq0; spf=pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dmitry.baryshkov@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id p12sor2055406ljc.37.2020.06.03.17.43.35 for (Google Transport Security); Wed, 03 Jun 2020 17:43:36 -0700 (PDT) Received-SPF: pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cCwwAKq0; spf=pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dmitry.baryshkov@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=jK4gLNB0iAkstlca7qoP4zJlhYvGOTtNahstZSraRpg=; b=cCwwAKq08vlmsQEaK2dSt46t4VXNA2dZ+afSQLj43FfFMNgP5oshgzO4bPqLHTfWrO cReCcNsaLKMiz2Vu7bL66S67G2C9lsVn5ymXO63P6d6Si7EnmuDux8zLrfluHh5Bewf5 j/CTjcJXuy3kRqATbcruSyZuIxlvPSUNmEfFnjh8pjXAikvwDZTUvOMzuEiL/B6f2AeQ MWsiT7AbPywwgyfLWPApInfWucQGv+ZK5X0xUlyCxcak9XsrcD+rhjlCWfy7/ESWQ6as qlbwW8Uowh/otcJQNpjtQkWETxrpg89d0K1YOJULEWDjUwY43xrZsGHm3rvD8Q2R8WC+ 6oSg== 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=jK4gLNB0iAkstlca7qoP4zJlhYvGOTtNahstZSraRpg=; b=ng5+hJEJ3bSypjT14RkQh+WDInt7nyqTGfr0EZXmoAaVO6GcNo2Xf9c4E12li2bDrf FirFkdCP0GhXgccRQU9hO0UOdi/pMqEawIJ/DZr0XsHwt23J9YzWBFCA3tpbtm39DFyH uu/p9RFSXgZdQ/bfrPbXiLhazFjUb5H/xPX2J44g7h32pT1A2Au9+xnbsHCuNHX9rBo8 xi83Tv8ZlVrBSLSZAtnPZbLRnXIY1BJHQrU00FC6LvgEi6EwUJPbAk37pKERLIK9ujO/ P+qlsPBTv9u0GwOCTra0jRJFfRowkE91qJv6s7lKQAeL+P7vGUqMvdI46IGD+nCgjt6v 3u/Q== X-Gm-Message-State: AOAM532804RuYL5/H1nmdOJWWVrbZQ+LdrJNTndR6pXq+TdIPDMuRqmO Gu98BB221AqMIpmlqaIIvXbjgZm/ X-Google-Smtp-Source: ABdhPJzGQH/1wlwxWBwOnsU2Po1UuVjpSQkfwVV0LUI8KJh2OlSnivi8UeOwMY0Y2msbWHKE8UmB/A== X-Received: by 2002:a2e:83c9:: with SMTP id s9mr281773ljh.166.1591231415709; Wed, 03 Jun 2020 17:43:35 -0700 (PDT) Return-Path: Received: from eriador.lan ([188.162.64.226]) by smtp.gmail.com with ESMTPSA id t16sm858527ljj.57.2020.06.03.17.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 17:43:34 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org Subject: [PATCH 2/7] arm64: dts: qcom: sm8250: change spmi node label Date: Thu, 4 Jun 2020 03:43:26 +0300 Message-Id: <20200604004331.669936-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200604004331.669936-1-dmitry.baryshkov@linaro.org> References: <20200604004331.669936-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 PMIC dtsi files (pm8150*.dtsi) expect to have spmi_bus label, rather than just spmi. Rename spmi label accordingly. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.26.2 Acked-by: Manivannan Sadhasivam diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 1e2862bbfb11..9dd27aecdfda 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -991,7 +991,7 @@ pdc: interrupt-controller@b220000 { interrupt-controller; }; - spmi: qcom,spmi@c440000 { + spmi_bus: qcom,spmi@c440000 { compatible = "qcom,spmi-pmic-arb"; reg = <0x0 0x0c440000 0x0 0x0001100>, <0x0 0x0c600000 0x0 0x2000000>, From patchwork Thu Jun 4 00:43:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 187451 Delivered-To: patches@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp979383ilo; Wed, 3 Jun 2020 17:43:37 -0700 (PDT) X-Received: by 2002:a2e:5cc9:: with SMTP id q192mr836130ljb.66.1591231417352; Wed, 03 Jun 2020 17:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591231417; cv=none; d=google.com; s=arc-20160816; b=Xwdo86ZX0vNU/5SgCmLz4zK6rqb398zFhIbSrENeHy/P1v9PXdmMLhHsUg8OUp/yN8 d2bHnb50pa3V43r7VN/hCw3z1OKyVZlBtLwZx2uyjz3h1fD8j4Okz8O1/aNnHdGWmRQX 1oFK/JllzmQTRMALGFQBsUaLgjDrr9JM/3594YnrreQXNSiWnLZSDTCT3DpDODGByy7+ NmRitW3EA9wWQRbCDFmcVCKDsRNuVrXOIFTSZUMR6+vAj3X4CWMeHakqi2ueFO5uEiIk aOVGFGF9Mys+CfT4JTiKHIscKRHs7nYCBCGH6M/YxG8zECGZB31r6/kDZBGbktlInL9+ 8dTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Lf2AkgbZNNBLszG0Yic70a6dubyQ2Qb8wbjXSRCkiy4=; b=SDkXFhKaGAlx1vxFXUBevHGAbDWvgDmd3R+5nKrbuMPbhaDWbfHwi7d7B6VM36QTXU uJqrLEB3fWPyl4EVl1YFRBDqcmPO3UEm7DSQArShXNKQTNktJJEjqOQi9U9jgy5rs8ca /1Z7ECtdM1FswVJf7F6GHu56+SdwRUge0FwAcJhctDZqS2prcI0Px+PcPxv0IMZtFcjY Ehb5lbxuBnQxJv3PgUntFtMzAlQ5TQQ8vpFWYF+e2c+86wFBF6+s84shz1w9EHuFwxtb 2PVlxEPu3xTImaPqNDA2arDVBQbF7GKpwpjSszlJwCcepNe5SocdEEsTQZCg9qIhituC K5Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FIRvt2hI; spf=pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dmitry.baryshkov@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id i6sor2065101lja.46.2020.06.03.17.43.37 for (Google Transport Security); Wed, 03 Jun 2020 17:43:37 -0700 (PDT) Received-SPF: pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FIRvt2hI; spf=pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dmitry.baryshkov@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=Lf2AkgbZNNBLszG0Yic70a6dubyQ2Qb8wbjXSRCkiy4=; b=FIRvt2hI9pF83v+VUTI3gFpqZ2LhQZyoRHgtcOuRSRNyRPocoaHuxMtGwhuHqYVoo5 vJJhSUXr4gVXnLZkk8SOaiCUE47PhvWqWbOVcLgCGNbP4VyRCqPG2ksxgsgc1atcnizL jvNdwcziPfIGHJpPfTOnw2dAztZxO9rTSLiIDxmF3NhtymgFE4QMQ1oQZypXEuuXOgjm 1mu4RU4od4DuVJWjifSXUMXkiL4h7rzY1ke+WgKCLue30jOXzLYDLOKEpVFOhzzYvHOY avaBK+wuwxmdq00vq19TUXfC35TbJMbZm7U5T+7DpLc/QxVWK+oAs2CAhwTKv1ThW8BD EGVw== 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=Lf2AkgbZNNBLszG0Yic70a6dubyQ2Qb8wbjXSRCkiy4=; b=Ff5T6J9yKbfSGYZJAsd7TbotRPfPdZct2X5RU0rp+7L1Bb2Bbu6vLsP/PGJquE3KIj GOGvpT/jJdf9ymQzcQ2xhyNQdCWmhSe6DjBWMRVnS4GITq2BPMFpyg2ZNuiwh8JoPO7G kgL2VZQ2UhDDxRv24k7YrwC0ipJa9hxrk8IWjyKg0nHL7coJNbtWTRz+DnudyVGCmo4O SoW/IOyUKl4pkiEZStYpRck4rfLkFM+WL9gxGz4/zr5Ff2RdRLRKoZ1xWwXqVvPacpXw VsI6PiCu8xM0LNZ4dCTfR2oNRbh3sCcLF3aAki45zcnoMs34ma9WZzEBxj8zzVLfw2q8 IUfg== X-Gm-Message-State: AOAM533wVNwfB50a23vxZ+tTSScP/hRDqv0nQspAykWL9J3b94IrMgjw MyOsuWVwxQbjACaM5U6MvOXR8SZS X-Google-Smtp-Source: ABdhPJy/QFf3BjDD2Vmrs7DO/JnE1fQxk2CfAIaD+dKQyNNaoN3pIR1k1G1zp9qZsqCnVOzP2BM0pg== X-Received: by 2002:a2e:5415:: with SMTP id i21mr860383ljb.233.1591231416931; Wed, 03 Jun 2020 17:43:36 -0700 (PDT) Return-Path: Received: from eriador.lan ([188.162.64.226]) by smtp.gmail.com with ESMTPSA id t16sm858527ljj.57.2020.06.03.17.43.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 17:43:36 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org Subject: [PATCH 3/7] arm64: dts: qcom: sm8250-mtp: include pmic files Date: Thu, 4 Jun 2020 03:43:27 +0300 Message-Id: <20200604004331.669936-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200604004331.669936-1-dmitry.baryshkov@linaro.org> References: <20200604004331.669936-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Include files describing used PMIC chips, GPIOs, power on, etc nodes. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250-mtp.dts | 4 ++++ 1 file changed, 4 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8250-mtp.dts b/arch/arm64/boot/dts/qcom/sm8250-mtp.dts index 0bc4b1e037c4..c20ae91d3026 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8250-mtp.dts @@ -7,6 +7,10 @@ #include #include "sm8250.dtsi" +#include "pm8150.dtsi" +#include "pm8150b.dtsi" +#include "pm8150l.dtsi" +#include "pm8009.dtsi" / { model = "Qualcomm Technologies, Inc. SM8250 MTP"; From patchwork Thu Jun 4 00:43:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 187452 Delivered-To: patches@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp979396ilo; Wed, 3 Jun 2020 17:43:39 -0700 (PDT) X-Received: by 2002:a2e:8053:: with SMTP id p19mr840599ljg.199.1591231418996; Wed, 03 Jun 2020 17:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591231418; cv=none; d=google.com; s=arc-20160816; b=t8+XivDUWlQI2InlXTUY61Sl+7MaGOK9ortSoSkHs5r0YnxIVJ4pA5pOAebTE3mBeW 6NT66mZTuaKEb3Ez+9CoWSc7E7VCZpfcINsCXRer7xObsvAgkNLcinXsI/+JV0FT/tVC SoPRDIEAJ/WWjV/3df8F+SxoC1Ex1GH6Bn6Shu9pvgZr/FIsFNCBDym+7rPoPoAWq0S6 EkO0ERgRG6pc8xRPQ2M2qm3Q7au3ShxOuMdcD0gjZVo4zzCkZubd+4/tt1LcFxuLSPyo E9IHIMmu1m8OBBZlymzly3iaJyeMpYmk26TGF/WRmf7JM7Y/WDWo+2FxvoRoMDkk64bf ZkSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=WIkdJuvo5vgQuU83Odu1i4xYBGADX3T9viV7I7q9F8c=; b=ziSo+Djc4BandO/wdHz5zTcn3TdzRGc9Tn8Kt4w6AWKstjb2ZrlC9FJJ/rSCbuMp6j HUSA95b6e5/qAp57PxLf3nhygPZ2eypNO+/oa4xKrZF8lgWkQAQI2uZXpTxLvoQ81SBp FhMGpkNflxu296XGTeswOGBnPfBa3i2Gv1KMoW5bXZZ04H1dvJsSmfTYtbc7X9k0ZWY1 0UiqL1KtBfJGZLJya1fQRlg2uJAk5ydD198BMSp2t4LzahSyKw73193CqreW860c/sYG rs/DkehGqBQjyEAQi3vzCStfqHT5csEWl3Y55XbMV421qfnikhdTHq/wpQMsO8zlgk7l FvcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nUCFwJBH; spf=pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dmitry.baryshkov@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id q24sor2069558lji.2.2020.06.03.17.43.38 for (Google Transport Security); Wed, 03 Jun 2020 17:43:38 -0700 (PDT) Received-SPF: pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nUCFwJBH; spf=pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dmitry.baryshkov@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=WIkdJuvo5vgQuU83Odu1i4xYBGADX3T9viV7I7q9F8c=; b=nUCFwJBHHqa3pQTGJvj1uRrvHzBusitDErdDpnmRg6SwwEMg03Ak214lkfD0CR+lWV Fi52bfCTeWAFStBqYAgLpirn4aX+VRqff7b9hb8nW8GCyfUQnoyfB8qRqsSgdIXzAHR8 lkhO52ddG7XQ4lfkDuMTa/77vBvC8z5ZxTOI4xSefHcQfeqX3t36RRJN89lpRunymOq9 PYi9KO+Br8JzijMYKhkYDAT6ZpM94r6CJyDvecytKjIFxKU3WHbg7S3WYyjX5PNSQIy/ H9KieDfl9mV1bYRbDioPE83pvcrIzW3Acl+FjuEg+16+9yUTKLUObgzUzePcIKn3aDJ4 kd1Q== 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=WIkdJuvo5vgQuU83Odu1i4xYBGADX3T9viV7I7q9F8c=; b=tYR3/mmylXIVX70bFMlD65CJ5XvCweJCxA4XnRjex1eqlpXapEYw7HckLeF3Kohjha XStadR6RDKN/sTs+UZmtAV0sH+A66y02XONxvfwqdSaDoJHVYHUvyZUGZ8XUqkS5lSqX o/A4BhZ5XMXS42wb59eu9QM6bE0gbgu5unae2N4vL+IaUzVyfx0gySmK5CKBbMrCGdCT HTInqVe2bXbNHA4ZTk4A+0/de6z2vwc9fbKKCKw97JV5kJ7zbMib9FuyfU4MvuX0Wprn PF69hUCwj05h+P2tPbnijwp/aWQ6nVRZONAqjHS+DqkgxzFT8eGlco/vKl0MoUIKHhRu Jk6Q== X-Gm-Message-State: AOAM532Sb0jMaSZzs3D1j+Nu3xoQrpf4gTHG3deRj7TLasqWXAKzxje1 qxE+xFEGkZPxmo9bgfnIxv9xIHxO X-Google-Smtp-Source: ABdhPJxEhy3UQF7ZQOqBFprb8bfVManzAo1C92YFtPg35GyKtK0pEE04QtivQ6E2A/58ddPqIIQF+A== X-Received: by 2002:a2e:9b50:: with SMTP id o16mr888749ljj.164.1591231418401; Wed, 03 Jun 2020 17:43:38 -0700 (PDT) Return-Path: Received: from eriador.lan ([188.162.64.226]) by smtp.gmail.com with ESMTPSA id t16sm858527ljj.57.2020.06.03.17.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 17:43:37 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org Subject: [PATCH 4/7] arm64: dts: qcom: sm8x50: add empty thermal zone nodes Date: Thu, 4 Jun 2020 03:43:28 +0300 Message-Id: <20200604004331.669936-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200604004331.669936-1-dmitry.baryshkov@linaro.org> References: <20200604004331.669936-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Add empty thermal_zone nodes. They will be populated by PMIC dtsi files, describing thermal sensors and trip points for zones handled by PMICs. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 3 +++ arch/arm64/boot/dts/qcom/sm8250.dtsi | 3 +++ 2 files changed, 6 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 141c21dfa68c..869a54352d77 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -857,6 +857,9 @@ cpufreq_hw: cpufreq@18323000 { }; }; + thermal_zones: thermal-zones { + }; + timer { compatible = "arm,armv8-timer"; interrupts = , diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 9dd27aecdfda..972d8e04c8a2 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -1736,6 +1736,9 @@ cpufreq_hw: cpufreq@18591000 { }; }; + thermal_zones: thermal-zones { + }; + timer { compatible = "arm,armv8-timer"; interrupts = X-Patchwork-Id: 187453 Delivered-To: patches@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp979407ilo; Wed, 3 Jun 2020 17:43:40 -0700 (PDT) X-Received: by 2002:a05:651c:1207:: with SMTP id i7mr836038lja.86.1591231420059; Wed, 03 Jun 2020 17:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591231420; cv=none; d=google.com; s=arc-20160816; b=n4EJNjEq8suCGP59mfVnoRoYtx5WZtRpLJUcg+dfRowMr+kjwmGMx+ICvE1Snddjp/ 5eRk/pp21VKaObcYZW1zfi3eOMx8MFk+Qo8XRAr1aDRK5aTAYBsDQ/v26zeCegqL1ivi PYtN6lV8t5xPwLb4ttakFjS9aA6YM/cGKRIJZ2daw8S/kDRU9Q3VSTx3eiOUNoPcE1bT 7M5Gqw9/foLODk9Spwx0Ys77U+ZD/gzr1fZkdtdBhc7iK+twGT94yUp8jSAyzb0LBB7E r9oabSWwIFYIxIY2AFdJTVcGLIR3P8GIkH/Ly/f+gGA7n6FAYRImXfVAY12Sy1KTqbZS wwdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=e8BiH+YD2FKWrMy4bD7JxcTUGyvBydk031tokVyLWD4=; b=O8rGbGjv29lGf0Lbgs8E8RLOy98g3re+y2hHbX/QdnncXMCrsq0tYUb8NhTvhnQxRj huLS+/ruReTUTh53aFURKxErNR449epijBS7VXxy31GfSByg04Hh6sKN4egc2wJa1GtA NdAjcnpffU1GGrc3cIKHWuWI4SG9jFN2jlnfcG2fEU7VFydzDJQHFcvCELMARwmYr3wj 9/bOu/xYJckCtFdqa/BiP27WDHNTBXlkaKxIiSfR69cIpAVip5vcsIyF8e5J6JRYhKGZ lC63dWBny6Wd5CUWJ3dUnLsJ7ByxtibfCrazDC0XQR6MV0G70ik/Mr5bwC9l46scsSDf 7hkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hv4X8JRM; spf=pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dmitry.baryshkov@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id u21sor2057356ljk.62.2020.06.03.17.43.39 for (Google Transport Security); Wed, 03 Jun 2020 17:43:40 -0700 (PDT) Received-SPF: pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hv4X8JRM; spf=pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dmitry.baryshkov@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=e8BiH+YD2FKWrMy4bD7JxcTUGyvBydk031tokVyLWD4=; b=Hv4X8JRMqxKzbSFSO+41odIp10r/X+1Bt1SUySryY6Vqr+8WNrn+Z3Ay5+eWqhw6Cd e3cbxBk5Jfxq/JD9Tdoqf+FjaXKY3YIoQH2BtsF16rf9/k7gpeMak2eNBGCxRnUFFS3d BTifZK5s6PxtnkJk2XE8Sco4xsoe4RIY8UyxVUOnEeCw8fWeLKMyWISv4z/jKpPKn9DL t7hZc9uqPkj0H/daN8LHl4ibYncleMOpgV9uTgQ0yr5DJfQkDXmBIxP08hcZYLtwy0mP 8pIsxAU8+hng8iu3XMfOpJ9TJEcNOmjD7lrB48q0vuwUlA3tq4EkAp1/NIwz53XZ92KM oVzg== 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=e8BiH+YD2FKWrMy4bD7JxcTUGyvBydk031tokVyLWD4=; b=rUoixwKkquudxG76W7kCvL/XGVh6rm3SOahDK7Ayb2zLjzwc4uU29Olr+WueypIUzg iBK/sBXGWW9SZu5aoOeFN0GWbmmJnM0fNlgFBpz2HInTHRR6uqq9Tu5xLmFTbYzvNH4y 8zjmZO9fxCZIRgkPW3wkob7YLHScPCBBM7ewO2zdqMr8dbhfo/hT9WtXmT+ZF1GrlmyW C0Z4CopCoU8Huo3c88NyliFhycRQ+li7jKDTmbj9wdjKer7cjGHXbURw7I9zb27KqSd2 iwLx6yfuOPFQxd7PXCI0eZ2eE47yDSgzk+CD1pZPSzemCrlO4Z8H2ig8Xxf2qvGKerym 4Dyg== X-Gm-Message-State: AOAM530iVb4LyjhNo7kFmGuBs+Op5ZkIQ9zyIthg9RpuK7RCRGv2VtmT Jghc1TSAxrLxCi5TdT2coXxKN35p X-Google-Smtp-Source: ABdhPJzfsHQp91kAMcBshgDrYmMhgpb5w56PBUwYOKgIFFfEI8TwDZ1RLE5mnKRDKMefhaanUGtfIg== X-Received: by 2002:a2e:81c5:: with SMTP id s5mr798337ljg.372.1591231419609; Wed, 03 Jun 2020 17:43:39 -0700 (PDT) Return-Path: Received: from eriador.lan ([188.162.64.226]) by smtp.gmail.com with ESMTPSA id t16sm858527ljj.57.2020.06.03.17.43.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 17:43:39 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org Subject: [PATCH 5/7] arm64: dts: qcom: pm8150x: add thermal alarms and thermal zones Date: Thu, 4 Jun 2020 03:43:29 +0300 Message-Id: <20200604004331.669936-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200604004331.669936-1-dmitry.baryshkov@linaro.org> References: <20200604004331.669936-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Add temperature alarm and thermal zone configuration to all three pm8150 instances. Configuration is largely based on the msm-4.19 tree. These alarms use main adc of the pmic. Separate temperature adc is not supported yet. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/pm8150.dtsi | 41 +++++++++++++++++++++++-- arch/arm64/boot/dts/qcom/pm8150b.dtsi | 43 +++++++++++++++++++++++++-- arch/arm64/boot/dts/qcom/pm8150l.dtsi | 43 +++++++++++++++++++++++++-- 3 files changed, 119 insertions(+), 8 deletions(-) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/pm8150.dtsi b/arch/arm64/boot/dts/qcom/pm8150.dtsi index c0b197458665..fee2db42f4cb 100644 --- a/arch/arm64/boot/dts/qcom/pm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150.dtsi @@ -30,6 +30,15 @@ pwrkey { }; }; + pm8150_temp: temp-alarm@2400 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0x2400>; + interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; + io-channels = <&pm8150_adc ADC5_DIE_TEMP>; + io-channel-names = "thermal"; + #thermal-sensor-cells = <0>; + }; + pm8150_adc: adc@3100 { compatible = "qcom,spmi-adc5"; reg = <0x3100>; @@ -38,8 +47,6 @@ pm8150_adc: adc@3100 { #io-channel-cells = <1>; interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; - status = "disabled"; - ref-gnd@0 { reg = ; qcom,pre-scaling = <1 1>; @@ -85,3 +92,33 @@ pmic@1 { #size-cells = <0>; }; }; + +&thermal_zones { + pm8150_temp { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&pm8150_temp>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "passive"; + }; + + trip2 { + temperature = <145000>; + hysteresis = <0>; + type = "passive"; + }; + }; + + }; +}; diff --git a/arch/arm64/boot/dts/qcom/pm8150b.dtsi b/arch/arm64/boot/dts/qcom/pm8150b.dtsi index 40b5d75a4a1d..e93d16f2d1e0 100644 --- a/arch/arm64/boot/dts/qcom/pm8150b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150b.dtsi @@ -22,7 +22,16 @@ power-on@800 { status = "disabled"; }; - adc@3100 { + pm8150b_temp: temp-alarm@2400 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0x2400>; + interrupts = <0x2 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; + io-channels = <&pm8150b_adc ADC5_DIE_TEMP>; + io-channel-names = "thermal"; + #thermal-sensor-cells = <0>; + }; + + pm8150b_adc: adc@3100 { compatible = "qcom,spmi-adc5"; reg = <0x3100>; #address-cells = <1>; @@ -30,8 +39,6 @@ adc@3100 { #io-channel-cells = <1>; interrupts = <0x2 0x31 0x0 IRQ_TYPE_EDGE_RISING>; - status = "disabled"; - ref-gnd@0 { reg = ; qcom,pre-scaling = <1 1>; @@ -74,3 +81,33 @@ pmic@3 { #size-cells = <0>; }; }; + +&thermal_zones { + pm8150b_temp { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&pm8150b_temp>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "passive"; + }; + + trip2 { + temperature = <145000>; + hysteresis = <0>; + type = "passive"; + }; + }; + + }; +}; diff --git a/arch/arm64/boot/dts/qcom/pm8150l.dtsi b/arch/arm64/boot/dts/qcom/pm8150l.dtsi index cf05e0685d10..1edf87c95a27 100644 --- a/arch/arm64/boot/dts/qcom/pm8150l.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150l.dtsi @@ -22,7 +22,16 @@ power-on@800 { status = "disabled"; }; - adc@3100 { + pm8150l_temp: temp-alarm@2400 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0x2400>; + interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; + io-channels = <&pm8150l_adc ADC5_DIE_TEMP>; + io-channel-names = "thermal"; + #thermal-sensor-cells = <0>; + }; + + pm8150l_adc: adc@3100 { compatible = "qcom,spmi-adc5"; reg = <0x3100>; #address-cells = <1>; @@ -30,8 +39,6 @@ adc@3100 { #io-channel-cells = <1>; interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>; - status = "disabled"; - ref-gnd@0 { reg = ; qcom,pre-scaling = <1 1>; @@ -68,3 +75,33 @@ pmic@5 { #size-cells = <0>; }; }; + +&thermal_zones { + pm8150l_temp { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&pm8150l_temp>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "passive"; + }; + + trip2 { + temperature = <145000>; + hysteresis = <0>; + type = "passive"; + }; + }; + + }; +}; From patchwork Thu Jun 4 00:43:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 187454 Delivered-To: patches@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp979416ilo; Wed, 3 Jun 2020 17:43:41 -0700 (PDT) X-Received: by 2002:a19:ed17:: with SMTP id y23mr1074594lfy.162.1591231421238; Wed, 03 Jun 2020 17:43:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591231421; cv=none; d=google.com; s=arc-20160816; b=U4PjBLhxrEL6NSHs9y3689r2qo2iy+/vo1OsM1BLDTO+xhkCS1Kh3hZrGPJT59059C rCtXtzsym+6ewUIgcjUKCy/zPNgTiYqDQzLShMU91jH44RuO1EJxYeKxwXvHYvNvUkvG 32TySiaovKGbWUlu3IJWAZeLQU/ZI6UkQ0ehDBZW1EEzR9g1Lwu54+wELvNcRCitjfUx 3J/Gm/zQ3tbJ5LwEn4mVh35Bs7z0JhCpz2PuMMA0qhMNyT32E1zy1/6Z3l848xcGpoK/ S9TOrq5wJTIAqzU52KBma669ntZiBFBJnt58v2AByU6BN30qmPpqdgl7ZaFQ6MnxS/ED p+Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=rrUx7tQwdeFto3pPHVu+2ZiRJ+YEecFZO1PGKQ0zZ4o=; b=S6aMcqIfarrsh44E1c0z7z/V0gTaWlJEkSqo5pMGxsDXjRxOSgtCkbZj1Tgr6Zdnrn 5q2IrldaPfF0N0rE+g/nTnkh4DGpnn2I+v0ejsowEO8fjq8TpnJony9T23xza4BAw+O6 hDGHl+Sm/ORnQXyskhMkqQNxtTfK96n/OZoQ8+czLZtPADsZvPXn2ggqk28+qGKTtFsa TMUg6P6w7Jps5tcJV0vmp+prGlWRyjXtE9b8n/8/dOyv7zw8zwmDiVg971s9GhFvagDc 0ZzOM9qWlGIUoGPNeB0DFuXo9Oz1p+/oJkB2HsAiAGi9njBDYjHOTba5xNrYAIyqhBH/ 5NUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=khZdz1Ta; spf=pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dmitry.baryshkov@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 197sor2077821ljf.24.2020.06.03.17.43.41 for (Google Transport Security); Wed, 03 Jun 2020 17:43:41 -0700 (PDT) Received-SPF: pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=khZdz1Ta; spf=pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dmitry.baryshkov@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=rrUx7tQwdeFto3pPHVu+2ZiRJ+YEecFZO1PGKQ0zZ4o=; b=khZdz1TauH+tHn838sjIWoF85Oql5N6z/A4OOWuaGY9ZJ4cpRTHoZtAwBsh2Jvf+GR ZIXOt8REjHnFSu1wBb54G6bzSf1d2pNUOObe7Mf2NsNEZF0AWLvaNqi+1PuBeUlYhOXP kIZMBf0ugWtOqVZzqKJZxn5e3F90Qo+/F4E1iQwyX7PGSu8LK+iVtlrlFTgpxvpc0inL Vl+Bw5U5UH6S4HhzVpKuBzes5FRWN8UuylrzC+MPK1ICGKhY6QXxn6M2PGaGKcL1fC26 6o6xNWICBnoH5do56Hfk/bexa7GwHKauaUE9ZcQoxGuuY6VEGZlFuhHAp2pjtb0dp4TT qeOw== 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=rrUx7tQwdeFto3pPHVu+2ZiRJ+YEecFZO1PGKQ0zZ4o=; b=HMYzLqvCaXdXYbYcaPTRV3ueklwAOO175ymmLTzKQ5oS+jL9R2kJhjU7bMRMNNCbCa sEa/fyKWHW/PiOK0ItqmM4TUHhGV91ozcxMIR/BM+NKpqIeWvmGbsFYYTwBp5ImM9Yec zUy35BnPkIK532nuirgHk/+uApPH6LO4GnuSe1M6e5APMvEASJoagOcG2atRCWx0mUsm CQhzCzPUmYpZO9cuiqnW7dYFS6Md2NozyVbQ5wGW7WA3p5QtkH0ld4icIhTgV8fDMxRq woQpczKWka178axG6aZ9aflpzM2RpOyuYEQZ1y4lIqWRBZ+inihno8kYSixSyoS9ZcqN HWcQ== X-Gm-Message-State: AOAM531FntetxTDjcSA6TCSx0e5JzlFZQdPiXqktUT9glsMV2diMmNov VqywB4NeK8AFnO0zhcYm5W9jtIQXQZ2x1g== X-Google-Smtp-Source: ABdhPJzdz/bJmDVRtzfkAWEJSgZbuJ9yBX8M+106D/OCtibAa42JOFnF6TuJJk/vEzUCZAUld0pbeg== X-Received: by 2002:a2e:8091:: with SMTP id i17mr896539ljg.141.1591231420879; Wed, 03 Jun 2020 17:43:40 -0700 (PDT) Return-Path: Received: from eriador.lan ([188.162.64.226]) by smtp.gmail.com with ESMTPSA id t16sm858527ljj.57.2020.06.03.17.43.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 17:43:40 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org Subject: [PATCH 6/7] arm64: dts: qcom: pm8150: enable rtc device Date: Thu, 4 Jun 2020 03:43:30 +0300 Message-Id: <20200604004331.669936-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200604004331.669936-1-dmitry.baryshkov@linaro.org> References: <20200604004331.669936-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Enable rtc device provided by the pmic. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/pm8150.dtsi | 2 -- 1 file changed, 2 deletions(-) -- 2.26.2 Acked-by: Manivannan Sadhasivam diff --git a/arch/arm64/boot/dts/qcom/pm8150.dtsi b/arch/arm64/boot/dts/qcom/pm8150.dtsi index fee2db42f4cb..762fb902db81 100644 --- a/arch/arm64/boot/dts/qcom/pm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150.dtsi @@ -71,8 +71,6 @@ rtc@6000 { reg = <0x6000>; reg-names = "rtc", "alarm"; interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; - - status = "disabled"; }; pm8150_gpios: gpio@c000 { From patchwork Thu Jun 4 00:43:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 187455 Delivered-To: patches@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp979432ilo; Wed, 3 Jun 2020 17:43:42 -0700 (PDT) X-Received: by 2002:ac2:499a:: with SMTP id f26mr1068663lfl.76.1591231422583; Wed, 03 Jun 2020 17:43:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591231422; cv=none; d=google.com; s=arc-20160816; b=uEc1c1rMjkAZj09IQ2eqdtHaBp+qCTwxwyrfJlbRZCxo8zSPj3nVua9b5/F4rtFU0j CWBemmA4/GVlDLj+e0LQKl2G35Z/8i0klzidN0XnuetLoNHGWbz6xRTFouesGt5TQky/ LUaJYgP2415+pTw15dOwob3ikF9HMavrXYitEPijAJ9UWVN1yqonB6Gok2a3A2EnEPm6 9jYRUHj+kAPbDnF0daGjbupxnhXBA8uUtzQAv2kQgnolxf39QCw7KlflqLDws7I2uL1S 1BWrMXaaxDItt493DycPfnz+iEuODXo9y2v6kzDR1+Q/Fd/+maP1dIzjGHcOzQPyjPnJ pgdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=P61ZzuXXSFTvpekn3oEJIai3Ga3OpTbw/6LAfNZjF3U=; b=vNHvqNajss9/IXb7Y7io+3Kaos90ohH4aVgF9cmp79RdCdiPeFu9dh4uxzZMkoZYbz k34dGsLVNl1Q2H7r5Z+gwLTpHg4rphaTFZlVZ9jJy3QdkmDP/GzH4Y+u6dl0ogeimPFI YXczvIpEuE4Lo02sxJA433Gcmj+PTe7h5oD0n/4SWanePbrHXd0nQhqVI1GQ/cCVVU/s s6G+WDZgoH73uswsozITnu/NX1/SbCD/Ox4yb4sKEWGL6ZXsMPUn/DUTx1vjRe/nmSce g99yhVN0AJK5CaFI1uSlzQ16x4qdBBX6D7G9TxOuTaogJ59lrcnAczTgQa1JoPmDnwa3 TDUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JC9G65jZ; spf=pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dmitry.baryshkov@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id g17sor2131506ljj.56.2020.06.03.17.43.42 for (Google Transport Security); Wed, 03 Jun 2020 17:43:42 -0700 (PDT) Received-SPF: pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JC9G65jZ; spf=pass (google.com: domain of dmitry.baryshkov@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dmitry.baryshkov@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=P61ZzuXXSFTvpekn3oEJIai3Ga3OpTbw/6LAfNZjF3U=; b=JC9G65jZ7ZqdKv+w/Qhes+AAVxiyLtdyiW8Um2yQUeeq3a5tXfvFTNprVQa5eJbdcn 4Tv02NfoOzDhQKo7LEAIU72fIJpjpipkf3g6Adw6dnsNbRxFSVx6TiLkvRHiXZq8bxhg N/d55ZVj5oy8DbPXD+PqrxgLfIOpV5xQ8uU3GAoyBTV0bZNtdtuQDI88OuUmNq4+nymK xIm4YJDF1TOsqIxLjwl1znahccTYN1B/XGubgdSs5Gkp4A/1X+L1Z8+1Q1V+lcDxcCle 8oDL5m1qII93SZXGNZUuiM+zpYD4Vntc7EEmXubHLcSr3+x3Tmua5fEjuFP8e3cKy+Pq l8Cg== 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=P61ZzuXXSFTvpekn3oEJIai3Ga3OpTbw/6LAfNZjF3U=; b=Sb1HhS/HuGelV0DCM0AVXzAqp+jYhqPiV2wbAU4mlXqjhzqcgq874ANp6SFnEfM7f+ tMzfVQdCUV/MZzwLR9UfTb/9i/C1zC/DURrxQXg7bW3Ju4iS3gr9dV93eAAGz7Lq3sWV 1kIQKf45sXEMpjzThQH4/iBAQbXC390dDp3P9EySKMIKh65N0lp+n3lPHnAFDrpcdkDg wjHz4YoRdTtVdwRy9fXvnDp/wBNWvxnVsndxEXirDYSJY/V3cBh3KZpO9AS0ChMhx15B k83u8MvqldpLLJBHn6dsCpVsHyt2B0xpwWyWK7o1HdoD/6w39yr5ednRmFmiSQoqdEKv ogEw== X-Gm-Message-State: AOAM533YEC0I9DLHEnIMUJOEcI7OdWxOeCTcb9cErB3vi1+tuMXU5dE0 LqDA/4JoadZ8Wzv7V/cdV9bAA4I1 X-Google-Smtp-Source: ABdhPJx77AB3h9TWpyuXHJa10RvSHHVtjR8txT+E/YKVFLjmEEaje//dqcs/nbWSS3nWY8e2svw6MA== X-Received: by 2002:a2e:b0f9:: with SMTP id h25mr884888ljl.18.1591231422209; Wed, 03 Jun 2020 17:43:42 -0700 (PDT) Return-Path: Received: from eriador.lan ([188.162.64.226]) by smtp.gmail.com with ESMTPSA id t16sm858527ljj.57.2020.06.03.17.43.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 17:43:41 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org Subject: [PATCH 7/7] arm64: dts: qcom: sm8250: add watchdog device Date: Thu, 4 Jun 2020 03:43:31 +0300 Message-Id: <20200604004331.669936-7-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200604004331.669936-1-dmitry.baryshkov@linaro.org> References: <20200604004331.669936-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Add on-SoC watchdog device node. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.26.2 Acked-by: Manivannan Sadhasivam Reviewed-by: Vinod Koul diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 972d8e04c8a2..f1641c6fe203 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -1662,6 +1662,12 @@ config { }; }; + watchdog@17c10000 { + compatible = "qcom,apss-wdt-sm8250", "qcom,kpss-wdt"; + reg = <0 0x17c10000 0 0x1000>; + clocks = <&sleep_clk>; + }; + timer@17c20000 { #address-cells = <2>; #size-cells = <2>;