Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1206297rwd; Wed, 7 Jun 2023 12:39:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ581awUM/T0jw68zPJN94IhMVfNwWpX/9NiqNr+Na8Cn9jrOXijhjHUI4Oea+2I/qNOVRkP X-Received: by 2002:a05:6a20:4303:b0:10c:4c76:e909 with SMTP id h3-20020a056a20430300b0010c4c76e909mr2596143pzk.8.1686166780235; Wed, 07 Jun 2023 12:39:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686166780; cv=none; d=google.com; s=arc-20160816; b=bn0VPUfFkBsSpMufpxcUl7A+1UnOegXIJF2X9IR4fM24A8731XFor0xpglgbN6/uqT FJTqlheaTQXgrFEKJx7t2ONdkQEMbiCsksxs1HkBtmZ9q4vnLm7x3sBLxhKX06tWCbtE PENlBi839AnxPYBKE/RzOUoWAPFGHvXJdrJBBVhH6Y/RzmlVo6hWRHLEvGhykRDQtn4B EPr1ZxHUotPraP+lcVFk5cIuiOO9IqXU4n3iFwxzt3j50omhz37EP7hImwbIxfc1EHWv IXXgaDOSfV0Jutuy5Zd16yMoJsSLOloPsifqnROBKe76QT3OXLUHVt6NJNw1jUHdE95U lhwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=k1u2R6kgxvDFNKARcsVD2fJrn977MYP6Tc2v9DawHyk=; b=uKajxr4/NuQt6dHN1hjsxrecsdh77njs4xcf9liOPjKdXXA9EC4mKEDQvPR2WiKriy lBqFvEU+z1+qRuNxRgI9IWvhIKz2Wv836tFiKp2BNyCghIrAyaK4BeT1GLxMdwxiX71r MVzhSuiVRj0ZWF/zzCEwnj4MixdzcOF2qWmosrXjkrERW/wT1cvbExxv9pl/v8wyYgVX vV2tGI7rVGR4tThH/nw6iI+f0ceyblCPI/KHyc5vWI9eSrO8b4CSag6o07hfUOWOB+WN LXZ0peo2efvIzmuTeINtHyY/uflowFwhcpbUiJ8CZw72O045no+qnc3AwREbH3itwLYe DsHQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020aa79dc6000000b006627ba17a6bsi815706pfq.360.2023.06.07.12.39.26; Wed, 07 Jun 2023 12:39:40 -0700 (PDT) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229655AbjFGTcQ (ORCPT + 99 others); Wed, 7 Jun 2023 15:32:16 -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-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> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 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