From patchwork Mon Oct 17 19:09:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 13009276 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 68010C43217 for ; Mon, 17 Oct 2022 19:09:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230237AbiJQTJp (ORCPT ); Mon, 17 Oct 2022 15:09:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230208AbiJQTJn (ORCPT ); Mon, 17 Oct 2022 15:09:43 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63688183BF for ; Mon, 17 Oct 2022 12:09:41 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id y10so9317185wma.0 for ; Mon, 17 Oct 2022 12:09:41 -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=JQwvrZM0NdshJK8bg4tJ/wU/2YDF+xO/AxCNgwM//+A=; b=t4r0XCUanikK7kDAe0IyQZratPozV7OLPNFeESUFTmq+VlGygZdidlfnTRXLYCAOcP V45bWJL+6UgMnJL1vzIzftPEUWzMQ1MfrJGQSoZsRAKjGhAVXErLu/xbJu1ALDLwAU74 wSwZUc9hdZjMaNbzXAtZkxWgk13XGzwLTQYg/wVk2vkaNWbypW5GIOIVt+dYYjN7CsCo ARl/8QXFu/PWLHv9nJli7RVksqUUX4mu9PfbnhxK9ZJufQ9Uru6kbv0vWL1NI3hk8/D/ QdkYjXNvzynVEGiPZ0sZcxLJcKTlnlcsBdyClp/I65BlskQp/WMFKjV/9VfgnB57bM3f lv5g== 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=JQwvrZM0NdshJK8bg4tJ/wU/2YDF+xO/AxCNgwM//+A=; b=WvHXI2gqmUcC1rRX2xqVpYh/0lcrRdJM9GlpYCN62vjTBbzT/8+VZpdHra9KXxRJaj 1MhdGfiNHIiWlGjQQ54sdBHWWOEJhZRZ1oaAhyxiZrwH1ydXCdGpEAAHT3LUL4m2f0Z1 DvrBfUaT65lotV97d/trkn2EdDPXiTx9Hq618IfCXwfdhgEroCGNoQ1oQ/OOzTkt59gp z45i+leJCbQsslffpBuyTbsYkq7GLgwy1JE8IO/4c+uz1tIbel1jlqwRDkiJa/dwjj4y CdpRdZiy0K125ehEUKExYFwnVBIP8GWLCt7595gTLCZrFS9Q/Bs8Wvi3s+uX1tIz0fII DtJg== X-Gm-Message-State: ACrzQf2qY6mSjbSWfwCGX0vv/vuhe36AMG6m/nFFp2I64wC8jYbaJrIe faPj1bjtsw4o2JwoFAZyZ/B3Wg== X-Google-Smtp-Source: AMsMyM61UUbxtQgNyb/ViwXfWuIo3K+CVJYqgyg3v5VLQT+AXiidWyPuJ3ee3VCx5bUct0zo+pCSKw== X-Received: by 2002:a05:600c:2754:b0:3c6:aba7:5c93 with SMTP id 20-20020a05600c275400b003c6aba75c93mr8154776wmw.177.1666033779901; Mon, 17 Oct 2022 12:09:39 -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 c25-20020a7bc019000000b003c6b874a0dfsm13830232wmb.14.2022.10.17.12.09.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 12:09:39 -0700 (PDT) From: Caleb Connolly To: caleb.connolly@linaro.org Cc: Andy Gross , Bjorn Andersson , devicetree@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring Subject: [PATCH v3] arm64: dts: qcom: pmi8998: add rradc node Date: Mon, 17 Oct 2022 20:09:02 +0100 Message-Id: <20221017190902.2282899-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 Reviewed-by: Konrad Dybcio --- 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/ V2: https://lore.kernel.org/linux-arm-msm/20221017185609.2280067-1-caleb.connolly@linaro.org/ Changes since v2: * Remove 'status = "okay";' 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmi8998.dtsi b/arch/arm64/boot/dts/qcom/pmi8998.dtsi index 6d3d212560c1..08c9ec2cafa6 100644 --- a/arch/arm64/boot/dts/qcom/pmi8998.dtsi +++ b/arch/arm64/boot/dts/qcom/pmi8998.dtsi @@ -18,6 +18,12 @@ pmi8998_gpio: gpios@c000 { interrupt-controller; #interrupt-cells = <2>; }; + + pmi8998_rradc: rradc@4500 { + compatible = "qcom,pmi8998-rradc"; + reg = <0x4500>; + #io-channel-cells = <1>; + }; }; pmi8998_lsid1: pmic@3 {