From patchwork Tue Jan 30 14:05:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 768091 Delivered-To: patch@linaro.org Received: by 2002:adf:ee41:0:b0:33a:e5bd:fedd with SMTP id w1csp1388416wro; Tue, 30 Jan 2024 06:10:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IESzWigxd3rTgeHgd/MLBB4qpf/MGxmnEPIEG+sXQoyNe/DjFFrHKSGhL89oZkIwOHYj9U+ X-Received: by 2002:adf:e90c:0:b0:33a:fcfc:d80f with SMTP id f12-20020adfe90c000000b0033afcfcd80fmr1176487wrm.24.1706623855866; Tue, 30 Jan 2024 06:10:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706623855; cv=none; d=google.com; s=arc-20160816; b=TAAd7De7EdD4KE2+vDLUGzpGMwbRcuzFazlqdXIKAmoI4PVJb4jwfMXkXIAjA17J4T YV9p/3BlaKaB4O8JJGEOJ1VPzAlLJ9MOKnBJMgaDE++IP5bY0kBeFlDAQ8L1tCnF0pOT iaWYWBUnXqfiePUgn+iQe5peALhcK9aITWA+LR2qSIX7EKVaXNkrzbOS/EsR7CVwp9N6 6fASFXJhIk2cC7wJmIaqzLb/PmVUe+YyAB/WGmkB8iQi7iBvC3ki93a4/RWzC+TZ35OD vfg4q1Rk8ofTQXA8CZXWDVOqsf4+ZNzbu1ZwUDbzl4aHEwEPql6lLuC+5Z4WnZjOxs5M Ls5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=H5NQmC7l90h6HABYZqlKqgSEPnfiX6UA0m/Uin4hHm4=; fh=GB9E9KzRIiNXhkRWIZbZpSMjbCjxnqnvE8nYuQxq8UI=; b=T/RkLRLvDaEvpDRf1f4BBTFVwy0cS4LPm1yrAsJeUqtazcG7RCYMBXGgwmAlRudvzN 2BzKs/sb6zC/FVtUIZhmnFi2gVujrgumAjry5z2EOx9dg6HjkbBGpi6F/Z2gj/2SkQ56 8OD7M9NGzHdzSLsjtQGDh/lgmYaAUBpw0YdVGxANBWtF6oyJLrhAt1vlge6ySYHFaFiO BjzN1qHAh/20NQp4geKg3eh8ymNSDwk71s4hpKDhPByryKSYHwVJbc/nUuBREBBSl5TR r1Uef0a0OLZcIdTL25oIqMbNJsrFEpL8FM1cBhFo6PVgpi2SFMlv9TeyYyDfYDvxuXUl 3LDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BkD3VkN5; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id n14-20020a05600c4f8e00b0040e8576e170si5682908wmq.43.2024.01.30.06.10.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 06:10:55 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BkD3VkN5; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A073587E2D; Tue, 30 Jan 2024 15:06:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="BkD3VkN5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 66BDF87D7E; Tue, 30 Jan 2024 15:06:00 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2791187E3B for ; Tue, 30 Jan 2024 15:05:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-40e80046246so22051025e9.1 for ; Tue, 30 Jan 2024 06:05:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706623540; x=1707228340; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=H5NQmC7l90h6HABYZqlKqgSEPnfiX6UA0m/Uin4hHm4=; b=BkD3VkN55X+prsnkOwljd2/a87Kc5KgogGb+QnuCoVds4Ji8ERQvuv2jg+QGMdHRZt rofEpUtP6FioYIcajc5jNM8IDcuemd2KKghxKoD2PECERF+KaSB4ar7mPKVomYXx/Cxk ygqpbpD5eFZfwCiIwiXc96bww7QSEFNjpjt7LPWZcQVdXTsdYyHfVqXvst68lZpxkYn7 WO7bbsoqdoP/SWKL+WYeXDc1pAgpAewSOfqtX3XAWp6/+mzQrXs08egJ0yYKe4+tkKKm VaPwgao6ew5QvcLhtt5if4CM4dl6vkoH6YYXHc8uNdroMs7VjJ+Hn3RW6sYdCxFx+y9T IBIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706623540; x=1707228340; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H5NQmC7l90h6HABYZqlKqgSEPnfiX6UA0m/Uin4hHm4=; b=sCNFPEwNkI1HKNlz76TEvW+TOM5CFi/RQ8C+oR6F2mYnZBjqCIysVEG4zqeDRfowwL 7a88do5Ffwp3LPc+CPI8GtjhDnyfgW4Zi9VsMEk/DdNohuH1pOT1uIjldKgmQCz2B0Om v5Uoi+YH226iTmxNNt56U5AlofoZJuonRYJiLIh6yw04STc89h/kjWxu0mIDj6GVloZm Y8AuG4ue1BtA0NKv4VOdqqFKyxSiCW4GEuL6THJ871GAOarf0nFyaq8qwPb1KDoSf4GT JGJNNt6o9zSKF0Fh8VdLwCOowkerwKR5nHgKed9xskmmztbP5PrYMzuaZkia1r7fncKh oclg== X-Gm-Message-State: AOJu0YzxCe5mkGmAz9gYFQP0BugdhMLMtlUYwBgq56jcqDf+S0ZiVTxL tEpMxSRfDf0uWYYEte4UoVdC0AvYLeXSXyxKbOEOF6DYTeqiTRK9FYcjynrLNDc= X-Received: by 2002:a05:600c:3516:b0:40f:25be:e811 with SMTP id h22-20020a05600c351600b0040f25bee811mr1374514wmq.8.1706623540711; Tue, 30 Jan 2024 06:05:40 -0800 (PST) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id g11-20020a05600c310b00b0040f035bebfcsm1799017wmo.12.2024.01.30.06.05.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 06:05:40 -0800 (PST) From: Caleb Connolly Date: Tue, 30 Jan 2024 14:05:17 +0000 Subject: [PATCH v3 29/36] dts: msm8996: import PMIC dtsi files MIME-Version: 1.0 Message-Id: <20240130-b4-qcom-common-target-v3-29-e523cbf9e556@linaro.org> References: <20240130-b4-qcom-common-target-v3-0-e523cbf9e556@linaro.org> In-Reply-To: <20240130-b4-qcom-common-target-v3-0-e523cbf9e556@linaro.org> To: Neil Armstrong , Sumit Garg , Ramon Fried , Dzmitry Sankouski , Caleb Connolly , Peng Fan , Jaehoon Chung , Rayagonda Kokatanur , Lukasz Majewski , Sean Anderson , Jorge Ramirez-Ortiz , Stephan Gerhold Cc: Marek Vasut , u-boot@lists.denx.de X-Mailer: b4 0.13-dev-4bd13 X-Developer-Signature: v=1; a=openpgp-sha256; l=5871; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=kT4EAkOZe1h7KnKSrDjVdYd3e/cqxnf3NQHCY/ykDu0=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhtSdTEIiVo/aSiPmXp4xiaFtTtbaqGdVpdk/GSc0LNpxy OIPQ97RjlIWBkEOBlkxRRbxE8ssm9ZettfYvuACzBxWJpAhDFycAjCR088Y/gdwKK9dPMds38lf lgzlvEu95zM//G9Zd0UjZveLWV8m/PzGyNBiVyBSwH1un8zLEzcVg87V+W84PT3V3NIp/f/zbXl 10xYBAA== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Import PM8994 and PMI8994 DTSI files in preparation for switching MSM8996 boards to upstream DTS. Taken from kernel tag v6.7 Reviewed-by: Neil Armstrong Signed-off-by: Caleb Connolly --- arch/arm/dts/pm8994.dtsi | 152 ++++++++++++++++++++++++++++++++++++++++++++++ arch/arm/dts/pmi8994.dtsi | 65 ++++++++++++++++++++ 2 files changed, 217 insertions(+) diff --git a/arch/arm/dts/pm8994.dtsi b/arch/arm/dts/pm8994.dtsi new file mode 100644 index 000000000000..d44a95caf04a --- /dev/null +++ b/arch/arm/dts/pm8994.dtsi @@ -0,0 +1,152 @@ +// SPDX-License-Identifier: GPL-2.0 +#include +#include +#include +#include + +/ { + thermal-zones { + pm8994-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&pm8994_temp>; + + trips { + pm8994_alert0: pm8994-alert0 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + pm8994_crit: pm8994-crit { + temperature = <125000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; +}; + +&spmi_bus { + + pmic@0 { + compatible = "qcom,pm8994", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + rtc@6000 { + compatible = "qcom,pm8941-rtc"; + reg = <0x6000>, <0x6100>; + reg-names = "rtc", "alarm"; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; + }; + + pm8994_pon: pon@800 { + compatible = "qcom,pm8916-pon"; + reg = <0x800>; + mode-bootloader = <0x2>; + mode-recovery = <0x1>; + + pwrkey { + compatible = "qcom,pm8941-pwrkey"; + interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; + + pm8994_resin: resin { + compatible = "qcom,pm8941-resin"; + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + status = "disabled"; + }; + }; + + pm8994_temp: temp-alarm@2400 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0x2400>; + interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>; + io-channels = <&pm8994_vadc VADC_DIE_TEMP>; + io-channel-names = "thermal"; + #thermal-sensor-cells = <0>; + }; + + pm8994_vadc: adc@3100 { + compatible = "qcom,spmi-vadc"; + reg = <0x3100>; + interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + + channel@7 { + reg = ; + qcom,pre-scaling = <1 3>; + label = "vph_pwr"; + }; + channel@8 { + reg = ; + label = "die_temp"; + }; + channel@9 { + reg = ; + label = "ref_625mv"; + }; + channel@a { + reg = ; + label = "ref_1250mv"; + }; + channel@e { + reg = ; + }; + channel@f { + reg = ; + }; + }; + + pm8994_gpios: gpio@c000 { + compatible = "qcom,pm8994-gpio", "qcom,spmi-gpio"; + reg = <0xc000>; + gpio-controller; + gpio-ranges = <&pm8994_gpios 0 0 22>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + pm8994_mpps: mpps@a000 { + compatible = "qcom,pm8994-mpp", "qcom,spmi-mpp"; + reg = <0xa000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pm8994_mpps 0 0 8>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + pmic@1 { + compatible = "qcom,pm8994", "qcom,spmi-pmic"; + reg = <0x1 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pm8994_lpg: pwm { + compatible = "qcom,pm8994-lpg"; + + #address-cells = <1>; + #size-cells = <0>; + #pwm-cells = <2>; + + status = "disabled"; + }; + + pm8994_spmi_regulators: regulators { + compatible = "qcom,pm8994-regulators"; + }; + }; +}; diff --git a/arch/arm/dts/pmi8994.dtsi b/arch/arm/dts/pmi8994.dtsi new file mode 100644 index 000000000000..36d6a1fb553a --- /dev/null +++ b/arch/arm/dts/pmi8994.dtsi @@ -0,0 +1,65 @@ +// SPDX-License-Identifier: GPL-2.0 +#include +#include + +&spmi_bus { + + pmic@2 { + compatible = "qcom,pmi8994", "qcom,spmi-pmic"; + reg = <0x2 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pmi8994_gpios: gpio@c000 { + compatible = "qcom,pmi8994-gpio", "qcom,spmi-gpio"; + reg = <0xc000>; + gpio-controller; + gpio-ranges = <&pmi8994_gpios 0 0 10>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + pmi8994_mpps: mpps@a000 { + compatible = "qcom,pmi8994-mpp", "qcom,spmi-mpp"; + reg = <0xa000>; + gpio-controller; + gpio-ranges = <&pmi8994_mpps 0 0 4>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + pmic@3 { + compatible = "qcom,pmi8994", "qcom,spmi-pmic"; + reg = <0x3 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pmi8994_lpg: pwm { + compatible = "qcom,pmi8994-lpg"; + + #address-cells = <1>; + #size-cells = <0>; + #pwm-cells = <2>; + + status = "disabled"; + }; + + pmi8994_spmi_regulators: regulators { + compatible = "qcom,pmi8994-regulators"; + }; + + pmi8994_wled: wled@d800 { + compatible = "qcom,pmi8994-wled"; + reg = <0xd800>, <0xd900>; + interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>, + <0x3 0xd8 0x2 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "ovp", "short"; + qcom,cabc; + qcom,external-pfet; + status = "disabled"; + }; + }; +};