From patchwork Mon Oct 17 18:56:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 615756 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 CD02DC433FE for ; Mon, 17 Oct 2022 18:56:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230439AbiJQS4b (ORCPT ); Mon, 17 Oct 2022 14:56:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230345AbiJQS43 (ORCPT ); Mon, 17 Oct 2022 14:56:29 -0400 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 3E3DF754B1 for ; Mon, 17 Oct 2022 11:56:25 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id a3so19968810wrt.0 for ; Mon, 17 Oct 2022 11:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=n4wSIX+vtaaHqF9t1ZyOTlO/WaEXmbWXEH6gsVeqv78=; b=NRAPXUqh9seuxTIJOEeyb7dSRfcSf5qZpejer29HdPtVV84CSBFEnO6t9yaMlyRBrO kQ2un9wYYHrG+7Go7fzIiWmlplYqbpC0p3yhNQhLGeqShZZuU0IJMJkKyACUPtUu+ldt 3FplUQGZ152Dw6VPaSE6nGhlqzaBJ8SnEE9XIQUcsh+xieqCmvmv6n+P/Do+Tas17ToA to/KckSD6RrNlvRZ06rPbXTIRwvkscbSufC6suuOHsr1+xvy4xUxzC3u2/HDhRLqM6Yp srpg37dVr6TTa3sMXcaW3yA1CwT4Yfjw+WfgfG91czmk3Ak+WcODigOkZWRsQ6ZCbRaf hv6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=n4wSIX+vtaaHqF9t1ZyOTlO/WaEXmbWXEH6gsVeqv78=; b=4yj25LfQ9fUDvzMv5JXbJaa4FjOb3FmaPFMh7gdIS0lIsw+iLgW3sSxHkxNtC6+WPR yFVhbs8gxCM4SRiyDGeWrPshhrl4S1ROsMyhw0YdpoBA7pyrq6SIfmVNboWYqOpalS5G mUogIZ4kIAbW1j0EmSDtDS/AGpF8WeAyYSCEFXyOkgsyi5fLIkLFU1Cgd9F4O9XWRVq7 0cyfIdWSr/tTiXxkBA92wvCuuRxnl8P08KYHHRYV7fk//rvi/Cq4aTCmUeGVm+vHq4U/ mFX0yu0oIxuNSbHMK4e2nWVYAeQIhwdM1UU/1TZHys3spOrOY7OIPhpNx0x0TuJsoywz D1ow== X-Gm-Message-State: ACrzQf2tiIfeW1cqa6it9WCh6KCS5hpDINZOc7DTC50/iVRgYwlh/um1 b1fMUJO/EjenKXdQv8kjTHxbuw== X-Google-Smtp-Source: AMsMyM6BMkpei8gG+IwXYyMpXoJFcfNCC5HOsx6/e5OX5mu9Osi30LsyqNPXLkzNWN/uZewPVKJAuw== X-Received: by 2002:adf:d1cc:0:b0:22e:6359:f999 with SMTP id b12-20020adfd1cc000000b0022e6359f999mr6883201wrd.667.1666032984133; Mon, 17 Oct 2022 11:56:24 -0700 (PDT) Received: from localhost.localdomain (cpc76482-cwma10-2-0-cust629.7-3.cable.virginm.net. [86.14.22.118]) by smtp.gmail.com with ESMTPSA id v16-20020a5d43d0000000b00228d67db06esm9151714wrr.21.2022.10.17.11.56.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 11:56:23 -0700 (PDT) From: Caleb Connolly To: caleb.connolly@linaro.org Cc: Andy Gross , Bjorn Andersson , devicetree@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski , Lee Jones , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Stephen Boyd Subject: [PATCH v2] arm64: dts: qcom: pmi8998: add rradc node Date: Mon, 17 Oct 2022 19:56:09 +0100 Message-Id: <20221017185609.2280067-1-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a DT node for the Round Robin ADC found in the PMI8998 PMIC. The RRADC reports PMIC die and skin temperatures, as well as battery/charger thermals. It also reports USB and DC charger voltage and current measurements. Signed-off-by: Caleb Connolly --- This patch introduces a new dtbs_check warning which will be fixed by https://lore.kernel.org/linux-arm-msm/20221017185105.2279129-1-caleb.connolly@linaro.org/ V1: https://lore.kernel.org/linux-arm-msm/20221016180330.1912214-1-caleb.connolly@linaro.org/ Changes since v1: * Change node name from adc@ to rradc@, see linked patch * Enable the RRADC by default, rather than per-device --- arch/arm64/boot/dts/qcom/pmi8998.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmi8998.dtsi b/arch/arm64/boot/dts/qcom/pmi8998.dtsi index 6d3d212560c1..95c74d88eb93 100644 --- a/arch/arm64/boot/dts/qcom/pmi8998.dtsi +++ b/arch/arm64/boot/dts/qcom/pmi8998.dtsi @@ -18,6 +18,14 @@ pmi8998_gpio: gpios@c000 { interrupt-controller; #interrupt-cells = <2>; }; + + pmi8998_rradc: rradc@4500 { + compatible = "qcom,pmi8998-rradc"; + reg = <0x4500>; + #io-channel-cells = <1>; + + status = "okay"; + }; }; pmi8998_lsid1: pmic@3 {