From patchwork Wed Nov 16 10:31:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 20922 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp70231wru; Wed, 16 Nov 2022 02:45:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf6bLeKfwTaOJl62fGWApe53hw3zcT/Q0Ue6yXI2zAtnOEFqMC84UGX5j6Xk4LnB9c7KtYGJ X-Received: by 2002:a17:902:bc41:b0:177:ed70:70ff with SMTP id t1-20020a170902bc4100b00177ed7070ffmr8474229plz.28.1668595557281; Wed, 16 Nov 2022 02:45:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668595557; cv=none; d=google.com; s=arc-20160816; b=i/PVn1c7nCNWZSes+njAg6qgtqH6gVaeTVxbBra3vO9fZTBw1kz8JJxTfnQz06PGnU cHwo7fD13h71TsnSHIlZxM+FwPMK02F8Svx685W7gaMFs6vtGMqGx5kbmHvBO1AIzq9q 5C4bS05ehtQua/QfcxPp08Zw7/55hydsFU8dKTRcZQGa2JCDvaZgqM4G+y9waG04B103 hKAm57W860g8tzBqaEaJt1MVG0Dnj1C9ZAcy8PyoypObb6qNOWrxR0UoLwuvtXm6iTvs YDKAIBFGtdumiUD/gstenO+k0tGW3rmTseucWKRo+VIUWQuCvkbcQOm0QL43EHk3C8hc Sjew== 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=GfhVZ/BVYLN1ISOzaAC+apO93yea8c8znHb9gCW91uc=; b=JzqowjjYZVYOXMHy2K2Xh/ywZPsJIryIAtq1Z06FLdxvkq0uUl4zA+gql6ks9KpDj6 5BjiR5BDWjwweDzF7elTnIrDj4ShCEAhIuYfpM33ll5dT4LEUyrH9FtNpsx1ama6j42c ysWu5+0tzqNrLDsxsDNwRShy0a9jkyLgMRju7fxWCCeI4fRIpEwb1OBzSxr0cdoSYQrK gj9ut19hEahL5aBc3+lV9xP5QGUEzqluUiSZwYJ0vb7XCXfBPoSMnx7j+P1CZmBHCxG5 2WSIlYgp+RtQTgP/430mInYH0CgRR5Gu/wPUvrSSi7H8vBNS2rRIk0Yigs4wfqUbpnd9 WCQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FYNQPCkj; 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 pi3-20020a17090b1e4300b00213cb58e47bsi1923971pjb.8.2022.11.16.02.45.45; Wed, 16 Nov 2022 02:45:57 -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=FYNQPCkj; 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 S238927AbiKPKpW (ORCPT + 99 others); Wed, 16 Nov 2022 05:45:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233751AbiKPKo0 (ORCPT ); Wed, 16 Nov 2022 05:44:26 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C260131FAB for ; Wed, 16 Nov 2022 02:32:31 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id 5so11579340wmo.1 for ; Wed, 16 Nov 2022 02:32:31 -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=GfhVZ/BVYLN1ISOzaAC+apO93yea8c8znHb9gCW91uc=; b=FYNQPCkjZciEFjQGp0QcfZjmqSMIbuF02k34DOI7YTG/NPautTYPX/qpPJQlNNj2Fg Umpr9IWyaeTXnRN1D93x2n7k+ShLI4d7JVuknfeRxsR0B+TeNQy51qzwwWFzI5UUIxpK LcMS9QLpAK517edVua5XTpgVeaKiu6pT8MVvO2ydrk6db6ALAIONOLUNWQpU5jyUgNIo KPNPDyTgHmxh1yp+tgoMgBNEGmnspegO2ChqqCFTRDrx2+64lfqFzNMnRE96jnK7FGI8 YoGNlYFfZKP5IqjXKlqWgIzvaG3ezxvQ4gyQo7qyjwLrp0O03gnBzgpXB1pQ9DmcjlTc xcYg== 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=GfhVZ/BVYLN1ISOzaAC+apO93yea8c8znHb9gCW91uc=; b=79060778iBEk8v364LYjrbPBb+BoPxFFXHVXfwu4D9eDkVjPgL/XSD980ls+I/lrDz mjO8h93WPgOqZMejFREcY7H9lsooFl8wShGIDUDJZ+/iEORYqBXqzt+gmg4Epgv/V5my krFVMjtgHdFYFLXKPhZPtNEgcgrtLK3LPRV1e1ThuiKcEciqVuhth6+pZ1D4s2jqFUxh UafKSn1LReAI/nHF+rEl5LZxwYKhVOx0zhtjN6aGpVeh82zAwQKqL+7UTWKW4wmiVjLG yUtMkdi1MsmRtqWm4bCcMVp45KtxIO88W+AG+jO0X8qZ0WoZLl/fxuraB0NgUqqUoJJ0 Yf6Q== X-Gm-Message-State: ANoB5pn+zrwFUJdzWojjQUPpEVCmZeIbIBvwTT4LBy80UukQLohkpeqb 2RLoBSbUrTxvGoGkgkugk7Ppdw== X-Received: by 2002:a05:600c:3d1b:b0:3cf:670e:63cc with SMTP id bh27-20020a05600c3d1b00b003cf670e63ccmr1709046wmb.150.1668594749982; Wed, 16 Nov 2022 02:32:29 -0800 (PST) Received: from localhost.localdomain ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id bh9-20020a05600005c900b0022e36c1113fsm15107032wrb.13.2022.11.16.02.32.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 02:32:29 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Neil Armstrong Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , "vkoul@kernel.org" , Srinivas Kandagatla Subject: [PATCH 07/10] arm64: dts: qcom: Add PM8550vs pmic dtsi Date: Wed, 16 Nov 2022 12:31:43 +0200 Message-Id: <20221116103146.2556846-8-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221116103146.2556846-1-abel.vesa@linaro.org> References: <20221116103146.2556846-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=unavailable 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?1749649254911899190?= X-GMAIL-MSGID: =?utf-8?q?1749649254911899190?= From: Neil Armstrong Add nodes for PM8550vs in separate dtsi file. Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm8550vs.dtsi | 194 +++++++++++++++++++++++++ 1 file changed, 194 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm8550vs.dtsi diff --git a/arch/arm64/boot/dts/qcom/pm8550vs.dtsi b/arch/arm64/boot/dts/qcom/pm8550vs.dtsi new file mode 100644 index 000000000000..97b1c18aa7d8 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm8550vs.dtsi @@ -0,0 +1,194 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Linaro Limited + */ + +#include +#include + +/ { + thermal-zones { + pm8550vs-c-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + + thermal-sensors = <&pm8550vs_c_temp_alarm>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + pm8550vs-d-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + + thermal-sensors = <&pm8550vs_d_temp_alarm>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + pm8550vs-e-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + + thermal-sensors = <&pm8550vs_e_temp_alarm>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + pm8550vs-g-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + + thermal-sensors = <&pm8550vs_g_temp_alarm>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + }; +}; + + +&spmi_bus { + pm8550vs_c: pmic@2 { + compatible = "qcom,pm8550", "qcom,spmi-pmic"; + reg = <0x2 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pm8550vs_c_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + + pm8550vs_c_gpios: gpio@8800 { + compatible = "qcom,pm8550vs-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pm8550vs_c_gpios 0 0 6>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + pm8550vs_d: pmic@3 { + compatible = "qcom,pm8550", "qcom,spmi-pmic"; + reg = <0x3 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pm8550vs_d_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x3 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + + pm8550vs_d_gpios: gpio@8800 { + compatible = "qcom,pm8550vs-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pm8550vs_d_gpios 0 0 6>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + pm8550vs_e: pmic@4 { + compatible = "qcom,pm8550", "qcom,spmi-pmic"; + reg = <0x4 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pm8550vs_e_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x4 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + + pm8550vs_e_gpios: gpio@8800 { + compatible = "qcom,pm8550vs-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pm8550vs_e_gpios 0 0 6>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + pm8550vs_g: pmic@6 { + compatible = "qcom,pm8550", "qcom,spmi-pmic"; + reg = <0x6 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pm8550vs_g_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x6 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + + pm8550vs_g_gpios: gpio@8800 { + compatible = "qcom,pm8550vs-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pm8550vs_g_gpios 0 0 6>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; +};