From patchwork Wed Nov 16 10:31:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 20920 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp70149wru; Wed, 16 Nov 2022 02:45:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf4q76N275Pl81cYnKyY//3cNe1981A7d7oB1X9islmU4ndVy8OMNxN4qVJ94HwmeI2oIPkJ X-Received: by 2002:a05:6a00:8cc:b0:56c:ba99:8735 with SMTP id s12-20020a056a0008cc00b0056cba998735mr22232303pfu.15.1668595543948; Wed, 16 Nov 2022 02:45:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668595543; cv=none; d=google.com; s=arc-20160816; b=tm8RBslKS/SKqcq27yGhr/P3ZuMK0+enp3+iQ00ncjzjA9TD05QEjxNHKC/VjkEDeW pr+HkxfGDgG3V61/nF4Eb6qKBlSWaxmbRSFxEJFIUIf2sivHnDG1h1JPhKQUiUOfqKzd /9lBtgmg5TWuBcWIBbd0gSddJLhhmwj+Jjyw8K8UHMTtLEGfWX4vXIwPWjxvBtVoxW27 6pAcE6xaCLw/S2b/XHWllKG/TxN3wYKiia5WuoX/9PHff4hvyXr4Hl7LJ8mYnDoVy5TQ OBQ3+5Z83Q2Hy663aNW35NLLDK9kpR3hGJ8FfjWlk4VuZyTAHhvAKqyYgqmR/yT/fVC6 AAdA== 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=jXGEEgZKJBWa8C/rhY3g+R200GQq5Ds7ySOfHwjfhow=; b=DW28b/sCNAtnkOW3lPUqqTbMKCJU5GApfXAn4ficooExeUSmIP5H4FWMMc1nNK68dO 4iiyjLJhJeLtmGGYQ2qNXXF3s7VVq7HW1MR+3MI8p6HriA74/NjjwomvbAnywSiGNQhH 0ZWm2Y3lkTJ1bKGIWeWKb2bI9PuT/P7PNqIbtER7Ie9iOYgEokJAhVtqe7TnJNtRgzAy zbevtfTytymuDPMvQC0EwjxR6Jz5Lki2N8PGUVRJS1hJqvDqNGNML+9qp3G0bkiybYqL dVfcTksGsSHAE6IRohKRWawkQXnhLPlXhLzowI/EkjjSbRuw0OmJdavlr+XaJiJcfGVk bg3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qHqSZfWZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o22-20020a170902779600b00186a3bc939esi14270518pll.211.2022.11.16.02.45.31; Wed, 16 Nov 2022 02:45:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qHqSZfWZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S238911AbiKPKpN (ORCPT + 99 others); Wed, 16 Nov 2022 05:45:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233719AbiKPKoZ (ORCPT ); Wed, 16 Nov 2022 05:44:25 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C17C32B81 for ; Wed, 16 Nov 2022 02:32:30 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id fn7-20020a05600c688700b003b4fb113b86so1154333wmb.0 for ; Wed, 16 Nov 2022 02:32:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jXGEEgZKJBWa8C/rhY3g+R200GQq5Ds7ySOfHwjfhow=; b=qHqSZfWZyABjzwKchlejuEOXtVQS2sevYxzBN3HLOsAQFiWQu6/qxZDBHSI/Op50Vt TUJu9Km1qAo10FRJeohvUTsPNsPqMBkd7xM/WFx0qrfqftkdoz59yuEGPHs7BOHk31aV w7Lcc1lrNosvsSW9Ky1VW1XLY0Hq6wluvAkbaSKlzjo5fNx7yjpmjMe9n1qQtC2B7JmY R60YoS8bNxXETss+f9CPmpfgh96eIoRe7CZHMNBDAdYfOr599xZU7voXJ/p4CrKcoL2K Rx4TiUCPKQApIoi6+XOown4LIvm7H1uUPgnDIdWYaWz36xjFPIUQZWlUO07xpS9yF8fN It1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jXGEEgZKJBWa8C/rhY3g+R200GQq5Ds7ySOfHwjfhow=; b=8IanijegP4XdK2RwjUnM8pp7bvTHKzQlXCilkcQWb1TUeDwPqmMJ9L619bwC47WcmS Cu0VYwDuYp8RrvrdrXldPMnQttwACECRUPps2NLkZoeQ3QJ0GhcVMOtcm1rTGP64U6Hs 2QJ0Q7HsrDtzuhdrvSRTgvBhXopvJ8p6P5He73R4d5ND63ysr+9DfY5kAtGcC8zK8ro6 nwSqLio/h2C/ImPlkNHeOx2eOXfeJU/Vwv2Heyz8VwV1fDbVGMEMnEF9Jy6j5vWAdJDy zNCzzQjtkfDEl/u/1SkJ92TRpblcZoF/vSCPXhHFkuneTXzjlg70cOq1jPH1uRs6DGCQ XOWg== X-Gm-Message-State: ANoB5pmJ7S88HcxD0dRzBlh15a5FbSw7XpdTSJlyykIjbsxoiIbcmH8q /9GtFw4FxhFTl9hVChJK41IZog== X-Received: by 2002:a05:600c:54c2:b0:3c6:bf5c:a325 with SMTP id iw2-20020a05600c54c200b003c6bf5ca325mr1684136wmb.54.1668594748777; Wed, 16 Nov 2022 02:32:28 -0800 (PST) Received: from localhost.localdomain ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id bh9-20020a05600005c900b0022e36c1113fsm15107032wrb.13.2022.11.16.02.32.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 02:32:28 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Neil Armstrong Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , "vkoul@kernel.org" , Srinivas Kandagatla Subject: [PATCH 06/10] arm64: dts: qcom: Add PM8550ve pmic dtsi Date: Wed, 16 Nov 2022 12:31:42 +0200 Message-Id: <20221116103146.2556846-7-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221116103146.2556846-1-abel.vesa@linaro.org> References: <20221116103146.2556846-1-abel.vesa@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749649241038949220?= X-GMAIL-MSGID: =?utf-8?q?1749649241038949220?= From: Neil Armstrong Add nodes for PM8550ve in separate dtsi file. Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm8550ve.dtsi | 59 ++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm8550ve.dtsi diff --git a/arch/arm64/boot/dts/qcom/pm8550ve.dtsi b/arch/arm64/boot/dts/qcom/pm8550ve.dtsi new file mode 100644 index 000000000000..c47646a467be --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm8550ve.dtsi @@ -0,0 +1,59 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Linaro Limited + */ + +#include +#include + +/ { + thermal-zones { + pm8550ve-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + + thermal-sensors = <&pm8550ve_temp_alarm>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + }; +}; + + +&spmi_bus { + pm8550ve: pmic@5 { + compatible = "qcom,pm8550", "qcom,spmi-pmic"; + reg = <0x5 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pm8550ve_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x5 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + + pm8550ve_gpios: gpio@8800 { + compatible = "qcom,pm8550ve-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pm8550ve_gpios 0 0 8>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; +};