From patchwork Wed Nov 16 10:31:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 20924 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp70312wru; Wed, 16 Nov 2022 02:46:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf4f+m3k4ofS9iKMVsixxSZmo0lmdCmJjS+RYH0sCbsIytRoAluezJXHLNAunYVC3pwjt8B1 X-Received: by 2002:aa7:95bb:0:b0:571:3fb3:9b5f with SMTP id a27-20020aa795bb000000b005713fb39b5fmr22298719pfk.86.1668595571515; Wed, 16 Nov 2022 02:46:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668595571; cv=none; d=google.com; s=arc-20160816; b=O/Ex9BbIP30fybn94uNmUv9jTrvP0FDHINDyJDMDMSNoHBmHJF8RptGJuXR9i9owzE vfKXjvZ+PtyhQi4gsZgq88pm5MqpMOvKKb+Voxjj2jkMg6t+wjJ0YWSgOj+UZ4C7GxSk ngceAGah9J46mrK52yfhNUZWfdMLcNLIKR147im0wUIhXbx/oGTdfASt0IeA3r1MGLFY +zz0azH+yMHMKQ3elhMXTXnTMmokHj9iEjZbqQyp7cca1P9b4HKmvzTqTH/QXDWXshT7 dE/shvBffT5FCVA4r/RX+3Dt/kOMGiM1G/5rRsOG3ZzzQbErdyrk+yB01sr8RMm3k2Zx nIHw== 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=R9i0aUERYAp64Dg3f9TW8aPPux8LTTvHSLBDJ/TZVE4=; b=WFfgwCUccmpyOJuC1fvalONctS3AMWhXkGcAp1hLa5KaM6SiC5kxwc+CHEynUHSpmk IA2M/TpIV0PZKdJLuDCsyR1CUDlcW07QZl7Z6M/Y715nXkDn/Z8C5w1rSiAHSgqb4yFI k2hwL3wR6fyeG6wpYdJ3iHV4FhH7lprK3kmJ/5SHCxcHmoq/m1p+mIm4BJCvo9GghT6A boKLOU/igpKdFu4uA/+S0FIiFsiWgiWJsWhCp2ifLOvQgrqp0a5+pH5nC1s9arC9ag/x F7XWNCKeBzOeLTJ9Hnq9oNPyikx0x2LG06u4mGP4BesCBq2xdO3BPaW+cGXh9TtVRudr 6cag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S3vzocug; 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 d17-20020a056a00245100b00565de49c24esi15266336pfj.107.2022.11.16.02.45.57; Wed, 16 Nov 2022 02:46:11 -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=S3vzocug; 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 S238941AbiKPKpa (ORCPT + 99 others); Wed, 16 Nov 2022 05:45:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231979AbiKPKo1 (ORCPT ); Wed, 16 Nov 2022 05:44:27 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9FB6326FD for ; Wed, 16 Nov 2022 02:32:33 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id v1so29140190wrt.11 for ; Wed, 16 Nov 2022 02:32:33 -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=R9i0aUERYAp64Dg3f9TW8aPPux8LTTvHSLBDJ/TZVE4=; b=S3vzocugdeUAWvM5RXMdcDH0b1jUav8so8uLUqOFV4LynypFw6SIuhEPF20sWvr8Hl odnZcK7BrAILEYewx/Pqrb1du7IWOwzP5q+E2r+/I3jKDUB+gUF/OJNh2P7hNV1lSOj2 FnIeWQHuFVzBfwF6bWlg1cmNYqy4bT6nRpvZZZzHG6uYjlkd5F+X4lCM3RuNrteh7Bgr Bwt6ShpFcjHKQThcDNuKXADS0GSy58yASUIX/e/w4nI9VL97aqtD5ZbSF1932BYBb+kf JNcFKHmadN+20GFO+Cgg3nJukDMoRG2FmmjvuwvsSBVO5o/D48TN/U/2okqjIqEBIw1I TCGA== 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=R9i0aUERYAp64Dg3f9TW8aPPux8LTTvHSLBDJ/TZVE4=; b=qo0wDvFvqfnsr/CHnd+g6eGxUUY+G1I6B0wX2CxSwexesZQ8Io7ChKVuziAJ19PzU1 kl6bTxLgn6NUhqfCti84Ee4vIzIEsLMsqArMUgWFgZx6v+zUziE27nIKAg4aqDqFn3+A aKEKDmMg7aIKX0GB6HR0WSRv8FTo2Z3DbJJXX3Veg/G9xoPnegIni8SaxGYpDk08Ccu1 cpWsNYnS6fwfXKK534SEam/+CJ1LwOYON4gUpMJmjuSJg1W9iTJ+cRk6feasF5zN8CGz dEOWwiooecReYWew/y3zu3klCwyDd96qGPtoLeKMQ4aM4Op7mNYcjwT0IrDLBqzIgPRU orjA== X-Gm-Message-State: ANoB5pnwM2Fq6nO9Q0kpsiJHy+iLB09AigSkSMlbf6IHfbSYYtRPjU5U ErSoqqId38yaIFApjGgTw2LBWoBpJWd26Q== X-Received: by 2002:adf:eec3:0:b0:236:737f:8e2c with SMTP id a3-20020adfeec3000000b00236737f8e2cmr13023058wrp.639.1668594752443; Wed, 16 Nov 2022 02:32:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 02:32:32 -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 09/10] arm64: dts: qcom: Add PMR735d pmic dtsi Date: Wed, 16 Nov 2022 12:31:45 +0200 Message-Id: <20221116103146.2556846-10-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=ham 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?1749649269935410276?= X-GMAIL-MSGID: =?utf-8?q?1749649269935410276?= 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>; + }; + }; +};