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: 3659 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1602863wrs; Mon, 17 Oct 2022 12:13:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5yYGVrY1gxR46BDoGSIyxCrVTCdGEQSyaPHrNo6bjLKR3+G6YRlzY3Q/Lxc5JG2orW4CKq X-Received: by 2002:a05:6402:2552:b0:45d:ecf:b23 with SMTP id l18-20020a056402255200b0045d0ecf0b23mr11620903edb.255.1666034028304; Mon, 17 Oct 2022 12:13:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666034028; cv=none; d=google.com; s=arc-20160816; b=lSJfWcM3Wr/k0pe/JjMLr2mQiNA+lDMcJ0nFS4WRHIWQ5egz67jk0BFrFeyvaKSy64 5DY9o5veUNxyNfA/TjQGN+NzgQ/7WZ3wUmmbX16XRgfyid6jIL9RlNVHVXtbRU52Yw+K YTEVdTkuyAaWv4RkzYAfx9Wgnnw2+l397FynvLSp9cV4bRojdAH26hi3pJORzGGSlA+f DeR0PsfWHThaaW7FuUGs6HtbMjXgc/jNrjLCZbCi8jFvCnvrUKJ4yG6+LG6c753xFEw6 coFg+1Ozfgl/Wo04zX4U64g/OwWAKvmviI+uvJ9tHiJ7jI1ronScnRNT6GrHK+NNTybW zqfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=JQwvrZM0NdshJK8bg4tJ/wU/2YDF+xO/AxCNgwM//+A=; b=pwApIKxOmpsXyBI+/tYxAJeLSU1CsN2/G8wrcWwOqPUZ+59pCQ6aZhhQgs3Uh2eqkF 8xG+u4uuIatNoRJ5B4z3Bj3FXaPn+uMBR3uPob71DxTwBOdRNlIL5GSJlpiq+LgpwXa7 WPw8p/GnptpKT1H8cFvZsPjzRbvfF6GRNUcxosvyBjwPFG/jlQYvDDW6aJAt1s9DXJ1d vpCt4k1Fp2ldjwN2qpFDsF6PT2lfMWAnzBgb4OUkKdIoHXk5PNU7GwpgclnrQeUlmCx3 FHTkrGFw6Fkr83AZ+WqYjtGxGooEcOIppLwuRIwdw+t70IM7sH0eHn9E7Ls1mlyrcdtI GJbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t4r0XCUa; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k6-20020a50cb86000000b0045c97cb9027si8592896edi.421.2022.10.17.12.13.22; Mon, 17 Oct 2022 12:13:48 -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; dkim=pass header.i=@linaro.org header.s=google header.b=t4r0XCUa; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230250AbiJQTJq (ORCPT + 99 others); Mon, 17 Oct 2022 15:09:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbiJQTJn (ORCPT ); Mon, 17 Oct 2022 15:09:43 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 661AD186C0 for ; Mon, 17 Oct 2022 12:09:41 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id m29-20020a05600c3b1d00b003c6bf423c71so12982551wms.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=HIU0X+PCubtvOcWGLn6DNfE2nvmQ8EBKfr1V2omCbu5aFVTjow2OMF7T/6C/BgqDyV E5v3S7khpqerfdx4wsSSFoeL0ReUepSqC5yZjfkCMrrmwYK6VKS49U+0KsyEzP/1Ii3Q ayePQy0hBoxvFkqL1Wx32VJ9IKHpvEwiM066HFIHC0knCGURXVRbwXZ1WCF88AtQbhqD 0WbLIpEX69c8HoAX1q8D3guVA7JxMBheOXtOXPhHcBVKf0sEPXWecZVO8zCzzPFSFZfp NzPOyIhduWWgrHW2hae1v3xz4IMqfFdfd47+NIHkMilLbtrMz1ZLm47UZnpdDdEBDsKq 5wbg== X-Gm-Message-State: ACrzQf3WZhKs5HbHcSs8OpWl2nu6ZcJFUIYK/lqh6/hRHlF/ztRzHZkj OrYyHcTTaDw9gKkbPDDzuyqdSA== 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746962640549055210?= X-GMAIL-MSGID: =?utf-8?q?1746963297037187950?= 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 {