Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4609755ybg; Tue, 29 Oct 2019 09:40:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkaB3EjNqFeuUVuWuRBBtGdI1u59VtLLv+CNmpxcuxPesOtkI71Wshq6iH46bO3cQ4Hon1 X-Received: by 2002:a17:906:2458:: with SMTP id a24mr4147933ejb.139.1572367216053; Tue, 29 Oct 2019 09:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572367216; cv=none; d=google.com; s=arc-20160816; b=At3wvUUhXzi26T1UytNRFRbsNYQzhB8A3EtadpMpaiweUpnP2VZCCZxKSZABVexxWF 5FoN/GKJ7rM6iCVbhdDTGhBeyGkIklKriPtcaVk1t1ZnqfMFGKkRhHuaLTxFhU6S5igu vNOWilxrYwFu56faOUt708iSgB8iIkemgDgZss7YxjeY6jf2J6bsfvMRru7dwOtyfK/3 zdY+//D2QjOXj3ma8uLC55GRGmbMEIT9wugngxLBi3duAkWJiXq2kiG1lOilEv4PBxuR Rtt/s9/gk0YOxSLKuFxmPw6AEtpEPtubw+TxgPKvZqczEqY1rhMDmScW3loA+AKKW7Wc D/DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:cc:to:subject:from :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=fkJrk/kfVxQguzbrbg9fdusjiwsNmvcP5LpS/OsgTnw=; b=VJplCFCSDe6bzwQ7L40XKR1BAErcHhG6vmupAhDrcw/PhK+PZ1+77g9zgd598FlI86 ws+XeLhjI7Mgkchmlb0Ms59TGDjp/xCL0ju3HuxU3IrKHsa9TFcAUOBBGBlkp9pEtKnX cCV5Yt0tnqRKc0ZMgeS+GjV84rH/KS40oRfBK39GzuXT37HZi7OY0KZ1wbdn4E1wk3fa 1NzU6VyqtjMjzhOAR9/ZO7R9a7bqlABW0wV72KIzoBnY1VfnLrSlwbmqJ4jHo8mIJOW/ 02yxhR7lxblT1bQm+ZNOPG9Z/22AISO1txdhbnjBd4OIog3dewxalQxa2vlsi0S7TI// XLkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=F+i8IugY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b52si2478221ede.287.2019.10.29.09.39.49; Tue, 29 Oct 2019 09:40:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=F+i8IugY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390363AbfJ2Qiy (ORCPT + 99 others); Tue, 29 Oct 2019 12:38:54 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:33186 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389940AbfJ2Qix (ORCPT ); Tue, 29 Oct 2019 12:38:53 -0400 Received: by mail-pg1-f195.google.com with SMTP id u23so9973736pgo.0 for ; Tue, 29 Oct 2019 09:38:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:from:subject:to:cc:user-agent:date; bh=fkJrk/kfVxQguzbrbg9fdusjiwsNmvcP5LpS/OsgTnw=; b=F+i8IugYOL2tstifFFmcV9ZKmHpHIaUKjvf1AF2769RlOttvWFQG1WfYJtmuShHZCx 8+67Y1Hfq9kVhUgsPN54KLprRu74C52XOgpNNLD2exsd0ttEKENS61HG4L0Ie3z1isvc ybtfCyeheSK4w2K9F3UD5gOVxyAOjxxSizEqw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:from:subject:to:cc :user-agent:date; bh=fkJrk/kfVxQguzbrbg9fdusjiwsNmvcP5LpS/OsgTnw=; b=obJCjuEkdxngmdfcTtc8QJ+QGLNdBEoPOKT5sXxUP+/rSbdIZFM55HDx3rN/KQPrtA 9DhOR9GOLZpQNlWBscRV/X8IozEkTb0nbzWsULn/xqQKk4iekxxNuVy3pehw9MzJkrxh D0tpxFA161AS7eXnBs+6sZRLOOxwOHgLqq0vg+1lo1Hf3PVqsvvHtOrFHGNH+Wvj3Kku ZITGYkQsJzQ885Dgr7wu3c3ndjNrAoxHs/8n2RE2MKJvSkCLoBGaSi4E4yvAMFnfNIeG /ZJ2sUcUPmEU+FcJUo3gqOZNtzH7HD2NzG326Jp3tYlt+ghqiZjUjF+64Mt7DkAJ6mYX gxdg== X-Gm-Message-State: APjAAAU3fnrkN4bwd/abrn6Ud0CKjoEYJOp+Y3/Wa0ewC1Dm0fhWT59i OmOhRX58Eu4EN6aoNNURTUYXzQ== X-Received: by 2002:a17:90a:b38b:: with SMTP id e11mr8034463pjr.115.1572367132818; Tue, 29 Oct 2019 09:38:52 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id 127sm14666005pfy.56.2019.10.29.09.38.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 09:38:51 -0700 (PDT) Message-ID: <5db86b1b.1c69fb81.be45f.0bb2@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20191023090219.15603-9-rnayak@codeaurora.org> References: <20191023090219.15603-1-rnayak@codeaurora.org> <20191023090219.15603-9-rnayak@codeaurora.org> From: Stephen Boyd Subject: Re: [PATCH v3 08/11] arm64: dts: qcom: pm6150: Add PM6150/PM6150L PMIC peripherals To: Rajendra Nayak , agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mka@chromium.org, Kiran Gunda , Rajendra Nayak User-Agent: alot/0.8.1 Date: Tue, 29 Oct 2019 09:38:50 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Rajendra Nayak (2019-10-23 02:02:16) > diff --git a/arch/arm64/boot/dts/qcom/pm6150.dtsi b/arch/arm64/boot/dts/q= com/pm6150.dtsi > new file mode 100644 > index 000000000000..20eb928e5ce3 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/pm6150.dtsi > @@ -0,0 +1,85 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +// Copyright (c) 2019, The Linux Foundation. All rights reserved. > + > +#include > +#include > +#include > +#include > +#include > + > +&spmi_bus { > + pm6150_lsid0: pmic@0 { > + compatible =3D "qcom,pm6150", "qcom,spmi-pmic"; > + reg =3D <0x0 SPMI_USID>; > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + pm6150_pon: pon@800 { > + compatible =3D "qcom,pm8998-pon"; > + reg =3D <0x800>; > + mode-bootloader =3D <0x2>; > + mode-recovery =3D <0x1>; Can this have status =3D "disabled"? Or is the idea that if the pmic power button isn't used it should be disabled in the board dts file? > + > + pwrkey { > + compatible =3D "qcom,pm8941-pwrkey"; > + interrupts =3D <0x0 0x8 0 IRQ_TYPE_EDGE_B= OTH>; > + debounce =3D <15625>; > + bias-pull-up; > + linux,code =3D ; > + }; > + }; > + > + pm6150_temp: temp-alarm@2400 { > + compatible =3D "qcom,spmi-temp-alarm"; > + reg =3D <0x2400>; > + interrupts =3D <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING= >; > + io-channels =3D <&pm6150_adc ADC5_DIE_TEMP>; > + io-channel-names =3D "thermal"; > + #thermal-sensor-cells =3D <0>; > + }; > + > + pm6150_adc: adc@3100 { > + compatible =3D "qcom,spmi-adc5"; > + reg =3D <0x3100>; > + interrupts =3D <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING= >; > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + #io-channel-cells =3D <1>; > + > + adc-chan@ADC5_DIE_TEMP { > + reg =3D ; > + label =3D "die_temp"; > + }; > + }; > + > + pm6150_gpio: gpios@c000 { > + compatible =3D "qcom,pm6150-gpio", "qcom,spmi-gpi= o"; > + reg =3D <0xc000 0xa00>; Drop the size? > + gpio-controller; > + #gpio-cells =3D <2>; > + interrupts =3D <0 0xc0 0 IRQ_TYPE_NONE>, > + <0 0xc1 0 IRQ_TYPE_NONE>, > + <0 0xc2 0 IRQ_TYPE_NONE>, > + <0 0xc3 0 IRQ_TYPE_NONE>, > + <0 0xc4 0 IRQ_TYPE_NONE>, > + <0 0xc5 0 IRQ_TYPE_NONE>, > + <0 0xc6 0 IRQ_TYPE_NONE>, > + <0 0xc7 0 IRQ_TYPE_NONE>, > + <0 0xc8 0 IRQ_TYPE_NONE>, > + <0 0xc9 0 IRQ_TYPE_NONE>; Isn't this supposed to go away? > + > + interrupt-names =3D "pm6150_gpio1", "pm6150_gpio2= ", > + "pm6150_gpio3", "pm6150_gpio4", > + "pm6150_gpio5", "pm6150_gpio6", > + "pm6150_gpio7", "pm6150_gpio8", > + "pm6150_gpio9", "pm6150_gpio10"; And this? And have gpio-ranges and use the irqdomain work. Basically, should look like pm8998. > + }; > + }; > + > + pm6150_lsid1: pmic@1 { > + compatible =3D "qcom,pm6150", "qcom,spmi-pmic"; > + reg =3D <0x1 SPMI_USID>; > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + }; > +};