From patchwork Thu Nov 24 13:56:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 25554 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3411519wrr; Thu, 24 Nov 2022 05:59:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf63QtbtEWerqAFq718cV7Q8vzyBQP9x9cDrJJSpk/kdJOxC8o3h/5M2FSkjQA4khhElQtlx X-Received: by 2002:a17:906:edce:b0:7ad:dd43:5d18 with SMTP id sb14-20020a170906edce00b007addd435d18mr11498059ejb.389.1669298366225; Thu, 24 Nov 2022 05:59:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669298366; cv=none; d=google.com; s=arc-20160816; b=ervoRzv5KGxAQlWTVcw6bowM8kN+5ms8q2q01z1aXwEugM5pEszrGZH41L8fqQ7EmO ZUgsIpxsK5HKAbGiU19TS/fpC8BpRAW7QtkcHJKRWXHF4dCsX/E+zwj0/vMB2nUSskIS TLxUEu+q5xFKZrfOJq7SeALKILQ8hEMYUzD4muyIvCS+ZWG0jRnghU2rVfLyDXgeg9ua acpW45jt+qhn9VYYD8h0gskoZu+1STkJ+4JMCpxOfwGpz23AttttvA3jbVD8mzGisWIF s00wdl1DAamFB+jozrn0a5FiSWXoY5O+jrCdtbYhCjsJOQ5CcgP6FxyDAzzWRMTFzd+L dlqQ== 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=oC5GY5vSjtH1DZZ6gY+F4sPk3L9SBT+hndjFSVGCeWc=; b=GA6LOpVUq9/fwXY+V3HnK+aHOmiHfyV3KAl3W+HGuaegwsmQ1YV7qNtSU35pVIfe9Y I+4Wbqgg5SPXYKOYJE0OD/REtEN1auXTgw0EBsSUAvBeBYeJ20r8URDEynej1gnJQLk5 A1E5Bh4Ih2kzTBMzC1SeJXe7X54pTDNooseuJniAqj7NvLcQaSUqn7ZsmJ4816RqbdAR AXscuHMz/ersXmeMRRZdyLWyewlHrb93m+Z47DSJVemgL+vqM3vlV8W8zMacnYGvMYY0 7p7qTRs2rRhvoaJqm+DU5yu3nuef5dPcf7PisIP2zcUDxrYXLMWwAwocyJlnY17CThVh Gd/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C1oEAEjR; 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 t33-20020a056402242100b0046903099907si1034711eda.275.2022.11.24.05.59.01; Thu, 24 Nov 2022 05:59:26 -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=C1oEAEjR; 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 S230353AbiKXN62 (ORCPT + 99 others); Thu, 24 Nov 2022 08:58:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230264AbiKXN5z (ORCPT ); Thu, 24 Nov 2022 08:57:55 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9680F116583 for ; Thu, 24 Nov 2022 05:57:00 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id n3so2598246wrp.5 for ; Thu, 24 Nov 2022 05:57:00 -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=oC5GY5vSjtH1DZZ6gY+F4sPk3L9SBT+hndjFSVGCeWc=; b=C1oEAEjRJi4wg6m57PJLh63+7tWfjDq5ha7dcl0ZrSD3e4aGAfJVXggZviJgrgdZKU mzSuQcKB96EbEYLdGhav88wDi+bzR2mlzi7//4TaJ1dTnLjNFuHLxLcQmCXszwBO7A7u RaIJh056w7xkujdc+zdJGhbo5qRKqGeN1US7uIyWmRrHH9lOcvaEr0DRNB9HDHpyn4Ll NKkGNyggnL718QBY+9HVOw1A6JzmGBmClDFXkRGSwJpPoVj7udQDo89311PjbJY2L+6U 6mhdEjz4Zd5xg3SX5Nx1+9XwTVJBYrDbOfxiJgvZ7JVaXT6z0HSFLFcrjH16Moj3TceA CYLw== 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=oC5GY5vSjtH1DZZ6gY+F4sPk3L9SBT+hndjFSVGCeWc=; b=XvJhE8QV/jtRZmXveNvy14rpR3t4kK+5gGuh6RTs+tDfpaxGXIEJ/nPNg38MYiJ4sL l3hYJ22xp2xkNj4I25+9jf/FgAP3Bld2hGAyhYPKK7ulKc9Et6msSqRxxoD3XrZLixgA pVJ0Czn6yqIYUPW0IlACdvsqswAV5hs+eUEkAFyVzd06DQlHmZ5IigM5tHbcXTnvThal 34Klw5arMidQjClY9rZdmi/10qfyfRk54ul1DMH4XixnD5u5SIbKjExnQMpaz5hBIak7 S1P370r0c/xSqSqfTd8dlDyXRFh2UplpuHdB600LNhlZ6a1iW3XG2CiFaQOtS+Pt3hKA ycfA== X-Gm-Message-State: ANoB5pk+qJo7YzKXC4QEFS4mpOLcR46TI6VRnulQpvoIvUTIFyxsMFlZ rO4a+mF51pYe26Vfv8qNwC8jOg== X-Received: by 2002:a05:6000:18f:b0:241:a046:91ff with SMTP id p15-20020a056000018f00b00241a04691ffmr20006530wrx.23.1669298215427; Thu, 24 Nov 2022 05:56:55 -0800 (PST) Received: from localhost.localdomain ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id v14-20020adfebce000000b00241d21d4652sm1414322wrn.21.2022.11.24.05.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 05:56:54 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Neil Armstrong Cc: Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v2 03/10] arm64: dts: qcom: Add pm8010 pmic dtsi Date: Thu, 24 Nov 2022 15:56:39 +0200 Message-Id: <20221124135646.1952727-4-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124135646.1952727-1-abel.vesa@linaro.org> References: <20221124135646.1952727-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?1750386203851925461?= X-GMAIL-MSGID: =?utf-8?q?1750386203851925461?= From: Neil Armstrong Add nodes for pm8010 in separate dtsi file. Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- Changes since v1: * added Konrad's R-b tag arch/arm64/boot/dts/qcom/pm8010.dtsi | 84 ++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm8010.dtsi diff --git a/arch/arm64/boot/dts/qcom/pm8010.dtsi b/arch/arm64/boot/dts/qcom/pm8010.dtsi new file mode 100644 index 000000000000..0ea641e12209 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm8010.dtsi @@ -0,0 +1,84 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Linaro Limited + */ + +#include +#include + +/ { + thermal-zones { + pm8010-m-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + + thermal-sensors = <&pm8010_m_temp_alarm>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + pm8010-n-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + + thermal-sensors = <&pm8010_n_temp_alarm>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + }; +}; + + +&spmi_bus { + pm8010_m: pmic@c { + compatible = "qcom,pm8010", "qcom,spmi-pmic"; + reg = <0xc SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pm8010_m_temp_alarm: temp-alarm@2400 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0x2400>; + interrupts = <0xc 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + }; + + pm8010_n: pmic@d { + compatible = "qcom,pm8010", "qcom,spmi-pmic"; + reg = <0xd SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pm8010_n_temp_alarm: temp-alarm@2400 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0x2400>; + interrupts = <0xd 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + }; +};