From patchwork Wed Nov 30 10:17:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 630376 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 9041AC4708B for ; Wed, 30 Nov 2022 10:19:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235717AbiK3KTA (ORCPT ); Wed, 30 Nov 2022 05:19:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235754AbiK3KS4 (ORCPT ); Wed, 30 Nov 2022 05:18:56 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07A542A40B for ; Wed, 30 Nov 2022 02:18:53 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id fy37so40087703ejc.11 for ; Wed, 30 Nov 2022 02:18:52 -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=YiSyzj5bxhBZ228Fs3MQ7cHv3+MhOBcyO/fL/boI7rc=; b=baDCorx0sp2SMwdHMpSuaC78AEJ8NRBcKd1QnxcI9dSU0SKdrBBfYmGwi2L/3+TFGX N7mYtYEK25081YngGaho0JUX+iHF6Iy8nmqZ3pY6ithDpyu2NXIrIj6TQfurj71kACRQ AhFjCWp1GuCNQ7t977YpjRjdw3Lm6oY57R/c3NsSvr5wrhEUjZk8y55VMMxPKAjCOIAF WEGlXL5Jw4LbrV17MveF+yB9/dminFmPLhlCehcpjpDGWbhZESQJgCD8dhq4dXuj+gli RTtgOQDIWwgZpWLTeJU7st0OCPJiFlCra45i91TZDZ3oA+kQxv+CgOpMoLgjSVzmUw+C epEQ== 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=YiSyzj5bxhBZ228Fs3MQ7cHv3+MhOBcyO/fL/boI7rc=; b=EiHLxbFjAfHdvS93C7pbuLTwTAe+CR9HV2uou23cWJKTYD9CDcFwAAnsEMC7tRKT3q BpblMbsN9xd4m77+XKR+DtoQ0VlaVLtGM07Cpt8FVFNosN+wJqpqBaM76BsiHUEsx9cX 1C39I/DF90yHD5MVE9zAVv4TTlHmnuguHkrqooWVwIQLabXIpB9m+JY4ENhUedid8wcf X9yls6apfhP5WaD7bLY/wwihOYFdkC34h0FzFga9kHKwI2se3H+17MUVrrVSCsQxRu6w lD8AWyZxPnGtKxYhLN5wUlrH+6aW0iYFHj9o+UzN2uOwJwFFDFatm7Kff0eaOVKgVcWp VL9Q== X-Gm-Message-State: ANoB5pmUowUaslPFx8f5DGRWXT3uqaim/3OhkMTHVAdHPF5yJbIUuGj8 wiWHdR2nXKDn7YZxvQ4X8my30g== X-Google-Smtp-Source: AA0mqf5mIBoyan1GjJGTBigK0do70J+YsCnMKUuI9F9/r811WfdEyQTdx1D/wlZYBqblXQZJ35FCoQ== X-Received: by 2002:a17:906:cd03:b0:7c0:27e6:582e with SMTP id oz3-20020a170906cd0300b007c027e6582emr10685696ejb.370.1669803531484; Wed, 30 Nov 2022 02:18:51 -0800 (PST) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id l4-20020aa7c304000000b00458dc7e8ecasm449462edq.72.2022.11.30.02.18.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Nov 2022 02:18:51 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Sai Prakash Ranjan , Neil Armstrong Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List Subject: [PATCH v4 04/10] arm64: dts: qcom: Add PM8550 pmic dtsi Date: Wed, 30 Nov 2022 12:17:38 +0200 Message-Id: <20221130101744.2849294-5-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221130101744.2849294-1-abel.vesa@linaro.org> References: <20221130101744.2849294-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 PM8550 in separate dtsi file. Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm8550.dtsi | 59 ++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm8550.dtsi diff --git a/arch/arm64/boot/dts/qcom/pm8550.dtsi b/arch/arm64/boot/dts/qcom/pm8550.dtsi new file mode 100644 index 000000000000..46396ec1a330 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm8550.dtsi @@ -0,0 +1,59 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Linaro Limited + */ + +#include +#include + +/ { + thermal-zones { + pm8550-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + + thermal-sensors = <&pm8550_temp_alarm>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + }; +}; + + +&spmi_bus { + pm8550: pmic@1 { + compatible = "qcom,pm8550", "qcom,spmi-pmic"; + reg = <0x1 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pm8550_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + + pm8550_gpios: gpio@8800 { + compatible = "qcom,pm8550-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pm8550_gpios 0 0 12>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; +};