From mboxrd@z Thu Jan 1 00:00:00 1970 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 796E0C7EE25 for ; Wed, 7 Jun 2023 19:32:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229837AbjFGTcO (ORCPT ); Wed, 7 Jun 2023 15:32:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbjFGTbl (ORCPT ); Wed, 7 Jun 2023 15:31:41 -0400 Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 983B21FEA; Wed, 7 Jun 2023 12:31:40 -0700 (PDT) Received: by mail-io1-f52.google.com with SMTP id ca18e2360f4ac-77807e43b7cso156545339f.1; Wed, 07 Jun 2023 12:31:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686166300; x=1688758300; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=k1u2R6kgxvDFNKARcsVD2fJrn977MYP6Tc2v9DawHyk=; b=SxABloHv+cgyaafDl0uV8dXDemrwDi4hObvI8bwnItiok1co6mNlKztzqKwG1JR7O6 PG7KjF/0Ragv0Yo5yXvR6w07KKUJirLRJGoEKcpMEITvwXuJcex3vCfMFvXAyq3BQJMi 2wxj6jzEq+W6Yhyja4TlF8Zkp9HY5ybximM92pwVFDDqXKIL2Ig0Cz72lBhTBhltphjd GEv37o2gcMMfJWrw6SI7b0ke48IMqzmWCaz47Zu7tIVFw/apom1Qjubz6PeeR+g52Tg3 QIODnjaBCpfpfFz2Yc/KLY14qeHXOg79CwW+BGJXr/Sg6Aw/s/jH86nllXeO715yEWgI jUxg== X-Gm-Message-State: AC+VfDwKLts8/TMB8ECDZ24XkKXsNuhbkB83//JVWti3e6BMPwvwyI+Y 1AAnhS93dQkGvuwwaRwTn5vPcFNbnw== X-Google-Smtp-Source: ACHHUZ5S2ceWX4iPBmKUeRfViIixtZuHANUofqYLyWjtNJqUbChDXwaucONOETKXNqf7lakhI9TD4A== X-Received: by 2002:a6b:6502:0:b0:777:94ea:3658 with SMTP id z2-20020a6b6502000000b0077794ea3658mr8852783iob.5.1686166299738; Wed, 07 Jun 2023 12:31:39 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id t17-20020a6b0911000000b0076c872823b7sm3945979ioi.22.2023.06.07.12.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jun 2023 12:31:38 -0700 (PDT) Received: (nullmailer pid 3880182 invoked by uid 1000); Wed, 07 Jun 2023 19:31:37 -0000 Date: Wed, 7 Jun 2023 13:31:37 -0600 From: Rob Herring To: Vinod Koul Cc: Bjorn Andersson , linux-arm-msm@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 13/15] arm64: dts: qcom: sc8180x: Add pmics Message-ID: <20230607193137.GA3874033-robh@kernel.org> References: <20230530162454.51708-1-vkoul@kernel.org> <20230530162454.51708-14-vkoul@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230530162454.51708-14-vkoul@kernel.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Tue, May 30, 2023 at 09:54:52PM +0530, Vinod Koul wrote: > SC8180X based platforms have PM8150, PM8150C, PMC8180 and SMB2351 PMICs, > so add these as well > > Co-developed-by: Bjorn Andersson > Signed-off-by: Bjorn Andersson > Signed-off-by: Vinod Koul > --- > arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi | 326 ++++++++++++++++++++ > 1 file changed, 326 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi > > diff --git a/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi > new file mode 100644 > index 000000000000..8247af01c84a > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi > @@ -0,0 +1,326 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. > + * Copyright (c) 2021-2023, Linaro Limited > + */ > + > +#include > +#include > +#include > +#include > + > +/ { > + thermal-zones { > + pmc8180-thermal { > + polling-delay-passive = <100>; > + polling-delay = <0>; > + > + thermal-sensors = <&pmc8180_temp>; > + > + trips { > + trip0 { > + temperature = <95000>; > + hysteresis = <0>; > + type = "passive"; > + }; > + > + trip1 { > + temperature = <115000>; > + hysteresis = <0>; > + type = "hot"; > + }; > + > + trip2 { > + temperature = <145000>; > + hysteresis = <0>; > + type = "critical"; > + }; > + }; > + }; > + > + pmc8180c-thermal { > + polling-delay-passive = <100>; > + polling-delay = <0>; > + > + thermal-sensors = <&pmc8180c_temp>; > + > + trips { > + trip0 { > + temperature = <95000>; > + hysteresis = <0>; > + type = "passive"; > + }; > + > + trip1 { > + temperature = <115000>; > + hysteresis = <0>; > + type = "hot"; > + }; > + > + trip2 { > + temperature = <145000>; > + hysteresis = <0>; > + type = "critical"; > + }; > + }; > + }; > + }; > +}; > + > +&spmi_bus { > + pmc8180_0: pmic@0 { > + compatible = "qcom,pm8150", "qcom,spmi-pmic"; > + reg = <0x0 SPMI_USID>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + pon: power-on@800 { > + compatible = "qcom,pm8916-pon"; > + reg = <0x0800>; > + pwrkey { > + compatible = "qcom,pm8941-pwrkey"; > + interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>; > + debounce = <15625>; > + bias-pull-up; > + linux,code = ; > + > + status = "disabled"; > + }; > + }; > + > + pmc8180_temp: temp-alarm@2400 { > + compatible = "qcom,spmi-temp-alarm"; > + reg = <0x2400>; > + interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; > + io-channels = <&pmc8180_adc ADC5_DIE_TEMP>; > + io-channel-names = "thermal"; > + #thermal-sensor-cells = <0>; > + }; > + > + pmc8180_adc: adc@3100 { > + compatible = "qcom,spmi-adc5"; > + reg = <0x3100>; > + #address-cells = <1>; > + #size-cells = <0>; > + #io-channel-cells = <1>; > + interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; > + > + ref-gnd@0 { > + reg = ; > + qcom,pre-scaling = <1 1>; > + label = "ref_gnd"; > + }; > + > + vref-1p25@1 { > + reg = ; > + qcom,pre-scaling = <1 1>; > + label = "vref_1p25"; > + }; > + > + die-temp@6 { > + reg = ; > + qcom,pre-scaling = <1 1>; > + label = "die_temp"; > + }; > + }; > + > + pmc8180_adc_tm: adc-tm@3500 { > + compatible = "qcom,spmi-adc-tm5"; > + reg = <0x3500>; > + interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>; > + #thermal-sensor-cells = <1>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + }; > + > + rtc@6000 { > + compatible = "qcom,pm8941-rtc"; > + reg = <0x6000>; > + reg-names = "rtc", "alarm"; > + interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; > + }; > + > + pmc8180_gpios: gpio@c000 { > + compatible = "qcom,pmc8180-gpio"; > + reg = <0xc000>; > + gpio-controller; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + }; > + > + pmic@1 { > + compatible = "qcom,pmc8180", "qcom,spmi-pmic"; Not documented. Rob