From patchwork Fri Jan 6 20:10:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 640438 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1C21C63797 for ; Fri, 6 Jan 2023 20:11:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232981AbjAFULz (ORCPT ); Fri, 6 Jan 2023 15:11:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236520AbjAFULP (ORCPT ); Fri, 6 Jan 2023 15:11:15 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26F1868CAA for ; Fri, 6 Jan 2023 12:10:59 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id m8-20020a05600c3b0800b003d96f801c48so4357946wms.0 for ; Fri, 06 Jan 2023 12:10:59 -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=q4rFInHPvXMY21RVSYqFleaDBM1EbzDLtUryUWQU3DY=; b=bf+NG/wBJGAxF8Wj4YZ4Qt4P4h3fRJWDMXrpHuXhVKi8T/b1daLZGXBe524kkUj2iy JU1rD3XR6IOHx/YHNiWSCD9eZpz6JgMGeMKFv/Rc15FssCSkRg9Oyeu5xBy1CO9VhfdU sWodZarfbv4cs5lP2DYOiS/4xVVLTFZihY+GPiucXKqVrQyy8L3LvsuFjvjyK4MG6B5X 4RKrnzaQFqWJGhqW0q/LTcijslzGGQ36NgDz+dq0WYNzAF70aM9nx6Z3yi+sprYCurKL SseR63fc/rKDpG6qsU0MMIjFiIJjoJzZTjGYoopRi0VDLj279Sisc82z2qqI66tYLOyK pnzQ== 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=q4rFInHPvXMY21RVSYqFleaDBM1EbzDLtUryUWQU3DY=; b=n584V5fYjfvJg9huCwWMrMH3GjIi2FK6b+/S2SxCMHaBuQW2EGYLbU3sb8X3IClmpz ivaiuUimZlSmRrEHJig/EUUNtZIWLIES3nlSzxiPIobCoWDL7a+oML2h2h7uKEeab3/v wPt/j2Xfc4Rlim2pIocdosgM9O/66mOpePM/YABAbjZgbvmbVYMWqISBFssb4oZgemVI nerkxX73x5kJyggnDREMineXjLVMSfsRePLKxib77cQT2UE4oVuqc0DqlLq9ZcYUZf4t c49C6AnNEGGgEUQr7VKTLs5BZ7f0C0rJxkz3NStUIjk+3GWzO7zZi1xF0WctSnasclVw cbBA== X-Gm-Message-State: AFqh2krPbKtBJDbL7U4SEJfunE3SMndqr6k1hz00NrcUpwMYe3F3zW/m 3/EfOH08vYVtgetUpdg/aSCCvw== X-Google-Smtp-Source: AMrXdXvhgrGkG1id1pbXz4/fdTSsVi9VzERmmG1E96YdxY2YemzxmpvDB8vfJP+a13n3GoWMcRUucw== X-Received: by 2002:a05:600c:4c21:b0:3cf:f18b:327e with SMTP id d33-20020a05600c4c2100b003cff18b327emr41123939wmp.4.1673035858368; Fri, 06 Jan 2023 12:10:58 -0800 (PST) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id z14-20020a05600c220e00b003d99fad7511sm2665240wml.22.2023.01.06.12.10.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Jan 2023 12:10:57 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Dmitry Baryshkov Cc: Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v9 03/10] arm64: dts: qcom: Add pm8010 pmic dtsi Date: Fri, 6 Jan 2023 22:10:40 +0200 Message-Id: <20230106201047.337409-4-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230106201047.337409-1-abel.vesa@linaro.org> References: <20230106201047.337409-1-abel.vesa@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Neil Armstrong Add nodes for pm8010 in separate dtsi file. Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- 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>; + }; + }; +};