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: 640141 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 B5553C3DA7A for ; Fri, 6 Jan 2023 20:11:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236503AbjAFUL5 (ORCPT ); Fri, 6 Jan 2023 15:11:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236569AbjAFULP (ORCPT ); Fri, 6 Jan 2023 15:11:15 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 269157CDC3 for ; Fri, 6 Jan 2023 12:10:59 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id m26-20020a05600c3b1a00b003d9811fcaafso1846992wms.5 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=H6gDMpbhDtGnh68bqiL4RPL+5mthsO1fAOdZnKeYOxsN9n2ukmdBRSFenV0ooTkJqI QMZWdlCWxAt5wXJlqMMLMqNJI8biu2KpQDEDh9hUg7nKDMh/CZ7iEJTLQ2RUtboDfWEs ewYqYyXh9EwrdGH/hQzYCVWDqpKkhVcgOdWZx2uMwsf1up4+Fsk2dg7coL6/eesto3jJ ch7fQqfq42Pf94eK9VrT5Ik7ta5ij462IZL5PToEjjQ6JZpQ/aaVVfky3j8rlCJU7S9A epNZHon5bFHqIJ9bPAJPzkzF+py9th924fT5CWWlC7MxugIxEY2PQhNAjHEwQvHCT0Cv 2oBg== X-Gm-Message-State: AFqh2koOYTeaklzCp5J6gqOIdn08RimEWDEDPcjBIYQUxL+WSbWOjrmn qFBNZFeBueuuwa6bs/UMkDSMQg== 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: linux-arm-msm@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>; + }; + }; +};