From patchwork Fri Jan 6 20:10:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 639722 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 16B47C63797 for ; Fri, 6 Jan 2023 20:12:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236441AbjAFUMH (ORCPT ); Fri, 6 Jan 2023 15:12:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236655AbjAFULQ (ORCPT ); Fri, 6 Jan 2023 15:11:16 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D4F27CDCF for ; Fri, 6 Jan 2023 12:11:07 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id ay40so1834476wmb.2 for ; Fri, 06 Jan 2023 12:11:07 -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=TxTuDuP9N5RzZdY9G7Umgi4OKE3T+v4Fwox44/I+AkY=; b=ym8ODnUjwWmqbPdMcuGOrJrHfg/wjZ1fHYum+vz6tqD3aqfX5tyuIZET9wQ4uQaKH3 SOjfbWoEMfBBbbLZFE7ICxOkzTq/rHWRC+ictxwxhxDSj4swVtCumYrgKlkANENFVpYG 14FhUbVTmlLKMGa04JwmVrjIoi1tzQiOLRcpS9U76neoMj4xEMJOWMtltxyrgN7IKlj9 CnVKJpLYi/JwU638HdnuOySgPaxTprYP6xZAtmzMyGkkcKuYn4YiwEx10012Nh8OluuL xrKoTDtkbQNZfsy8CL53p7xCk72N0MRNuodVXLXNWFxeDVjswfIUGiBMdhNZl68DYpSu ZicA== 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=TxTuDuP9N5RzZdY9G7Umgi4OKE3T+v4Fwox44/I+AkY=; b=lsLvpV7WGeJkw1luJwMtd1mxpzOUyDryxGBaD1YaUs0rB2FTTwzh4Y0+zJepU8gHRO WadXs2NDeceehO4lzOpehV0L1aThczeys2P9sXjh0DMRPAaWYj1ACM9qskZzarmnDliW 8PCBJTdnI3Dy3xSEyWNz54ygTn0iphPg5hedD1Qho4fcF3iE3b8xK0V2qG+0wnOJUuJ6 VKXQJ3EFBb3w3qUIT8rV0Irw+RKvUe7flVLC4SDsK9X/huU7OEb8Cxf+CTb42g9bEdbU N6Kt9ceKi878q2nl0+d4tcuU5A+ALPNlOfvycah7MqJFZR8dccrf/8nYwlqKt/impZDH HQrA== X-Gm-Message-State: AFqh2koe/+shASX0ZIMqSSisyYMX93XisqmqtFGjQhgtaxrZCy+TcLWl V7l/6dfAnRxIXfaGFH1XEfR9Qw== X-Google-Smtp-Source: AMrXdXu85XurgnPr4XCvF6eaIcTASW2mhWvVElRsFBm/X0XXvH6yqoRXSXhR5pDWr7EO3Ye0v8864g== X-Received: by 2002:a7b:c3d2:0:b0:3c6:e62e:2e72 with SMTP id t18-20020a7bc3d2000000b003c6e62e2e72mr40982516wmj.13.1673035865758; Fri, 06 Jan 2023 12:11:05 -0800 (PST) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id z14-20020a05600c220e00b003d99fad7511sm2665240wml.22.2023.01.06.12.11.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Jan 2023 12:11:05 -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 09/10] arm64: dts: qcom: Add PMR735d pmic dtsi Date: Fri, 6 Jan 2023 22:10:46 +0200 Message-Id: <20230106201047.337409-10-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 PMR735d in separate dtsi file. Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pmr735d.dtsi | 104 ++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pmr735d.dtsi diff --git a/arch/arm64/boot/dts/qcom/pmr735d.dtsi b/arch/arm64/boot/dts/qcom/pmr735d.dtsi new file mode 100644 index 000000000000..41fb664a10b3 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pmr735d.dtsi @@ -0,0 +1,104 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Linaro Limited + */ + +#include +#include + +/ { + thermal-zones { + pmr735d-k-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + + thermal-sensors = <&pmr735d_k_temp_alarm>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + pmr735d-l-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + + thermal-sensors = <&pmr735d_l_temp_alarm>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + }; +}; + + +&spmi_bus { + pmr735d_k: pmic@a { + compatible = "qcom,pmr735d", "qcom,spmi-pmic"; + reg = <0xa SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pmr735d_k_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0xa 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + + pmr735d_k_gpios: gpio@8800 { + compatible = "qcom,pmr735d-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pmr735d_k_gpios 0 0 2>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + pmr735d_l: pmic@b { + compatible = "qcom,pmr735d", "qcom,spmi-pmic"; + reg = <0xb SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pmr735d_l_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0xb 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + + pmr735d_l_gpios: gpio@8800 { + compatible = "qcom,pmr735d-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pmr735d_l_gpios 0 0 2>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; +};