From patchwork Mon Oct 31 18:10:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13401 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2473128wru; Mon, 31 Oct 2022 11:30:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6yj4ighdEJE4TkKTYaA/zRYTCgr4ENmeqgAUnSp3QjOk472LUO2ZQssw39wj1w973vk/Xn X-Received: by 2002:a17:902:e552:b0:179:e795:71c5 with SMTP id n18-20020a170902e55200b00179e79571c5mr15429059plf.57.1667241008181; Mon, 31 Oct 2022 11:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667241008; cv=none; d=google.com; s=arc-20160816; b=Tp/hA0Rj065XUh+KUeeXPbg8FSyLQo9IFy2EW+BUQ+ZdvlI5GjVctdxL7YgICRpJLt B0gWOBGLOc8HrKw74WLWfnVJ+sDEcoRDA1hS6xgk4m/VoXnFzhLP1Um13xoDrJP4dHQz 6VStOtRksAwQ22INhT+wdnG0R5wPlNdYLenGhMgzwtH+Ug1JAVISzQLJleZzsSLAiPoF t/1S9mhIlwiXbdYLr0GrDamSPhmlk+tyeoibTFfWB+j927abeZ+JmYDLKAzAAHUklUlX Q71Eo8O1CxPGPUy/6hPGXC3wiMmR1ySQBIT9TESlPIWfkQUSstMsrDbXbXGcu2XWNKi7 a7EQ== 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=57qUNgqeSs/DFFZxwCBYRitY9nVPllambaA8JwNLDmA=; b=NpZ+Jg4caHATrzKdUxf653VCRKyNC8sgKsr1dkxtlgaSkJesvWW3QwgjQprSJ+iRqI NC2rd4A+0FdLWNOQoZhZbgjxloVFXR9Zr87uYFWemvKW1ZGOTxwSsVPsYTTkf2ftifa2 P8T9tMh+R7kv2EGCoF3aerezDbhK/0+gV6EQ8hH7cwklPsoUQnQozVdiY8xScguhRKnn Rw92fySGjAE22tGRFXC028qfGWJY/cKYfKExlA1mjuVAQ5mOgvAqRePh4HdwWsgosBI0 O+KqvP9gYDxKQJw0fuecqMUW+8edn4RcrNtfDlNU6UnjDpVwHp28hhJEj0dEeYcK4YqT ZQAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=p4AKdEyM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a170902d48300b001841134e3b1si11595237plg.160.2022.10.31.11.29.55; Mon, 31 Oct 2022 11:30:08 -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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=p4AKdEyM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229772AbiJaSLF (ORCPT + 99 others); Mon, 31 Oct 2022 14:11:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbiJaSLD (ORCPT ); Mon, 31 Oct 2022 14:11:03 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 465CFF14; Mon, 31 Oct 2022 11:11:03 -0700 (PDT) Received: from g550jk.arnhem.chello.nl (31-151-115-246.dynamic.upc.nl [31.151.115.246]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 9CB72CFEA4; Mon, 31 Oct 2022 18:10:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1667239831; bh=i42qv3Hr7FKl1J9sbq/JpgJ5uEkM4T+MkVM2bNzRhiM=; h=From:To:Cc:Subject:Date; b=p4AKdEyMBjJaQy6L/iBRhDsawnvL23pKZa9JuT2DiGgCQWcuMHAPZu0Hl2/5/moCQ E184udnL7SwQCbg5AVRNgd/QsnfnDuhy6XkZxP8aW8kgQzLa86zLVjjo16mikNVE+p /ZpbMe8M8gsumqZbyIoIy0TnWXrDzvjsikkC6ksM= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, afd@ti.com, Luca Weiss , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] ARM: dts: qcom-pma8084: fix vadc channel node names Date: Mon, 31 Oct 2022 19:10:21 +0100 Message-Id: <20221031181022.947412-1-luca@z3ntu.xyz> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, FROM_SUSPICIOUS_NTLD_FP,PDS_OTHER_BAD_TLD,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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?1748228907859509765?= X-GMAIL-MSGID: =?utf-8?q?1748228907859509765?= The spmi-vadc bindings require the '@' in the node. Additionally change the node name to adc-chan which both makes it a generic node name and also removes the underscore from it. Signed-off-by: Luca Weiss --- Changes in v2: * Make commit message more accurate * Make number actually hex in node address (made it decimal before) arch/arm/boot/dts/qcom-pma8084.dtsi | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/qcom-pma8084.dtsi b/arch/arm/boot/dts/qcom-pma8084.dtsi index 0da6c1a5d547..2dd4c6aa71c9 100644 --- a/arch/arm/boot/dts/qcom-pma8084.dtsi +++ b/arch/arm/boot/dts/qcom-pma8084.dtsi @@ -64,22 +64,27 @@ pma8084_vadc: adc@3100 { #size-cells = <0>; #io-channel-cells = <1>; - die_temp { + adc-chan@8 { reg = ; }; - ref_625mv { + + adc-chan@9 { reg = ; }; - ref_1250v { + + adc-chan@a { reg = ; }; - ref_buf_625mv { + + adc-chan@c { reg = ; }; - ref_gnd { + + adc-chan@e { reg = ; }; - ref_vdd { + + adc-chan@f { reg = ; }; }; From patchwork Mon Oct 31 18:10:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13399 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2472641wru; Mon, 31 Oct 2022 11:29:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4gLFRhi4tJEc5RLY10o6s/hbMHGVKcLkFTxkgMJ0qtvmy1YuOGl/yige8oBF09BzOcobj1 X-Received: by 2002:a17:90a:50:b0:20a:b146:e75e with SMTP id 16-20020a17090a005000b0020ab146e75emr16190264pjb.216.1667240942156; Mon, 31 Oct 2022 11:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667240942; cv=none; d=google.com; s=arc-20160816; b=sFRvXqCZcEEKCjWbQ/xVUq4tn81QZn+zbfd/Cd4wxxI2wPycbymhv9qPhuHO5Orrvs iRTkDZxpLE1C2o44vf8JvHp4afec/m5ry9evL1BLJIhp0KOaGrJpwLad0GbmFrblGasH fCvDuKRnsZwZNFcpY54O1BQOOqVHs4ChfrvCJogTO33YeqlMDpTl3o+lN/uecFwglaIM hwo3YJutMYf60jEBFzimeF0Y5lVvAZUU4/yeB+iab/ZA4E2zcikHHpRAHLiuzj8sHUsm r1LgwRW2Btb8mQvdGbc8VT28L2Rowtlzkp6scP7rYqSH+ZwZz08XkLi6qqoSNIwj+Azy CS2A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5FGfovbGZ3snpwcwKSw7q7fZyCZiRW6tNNqU6EbkFKU=; b=LqqNHyXtz1MZUeYPF4QsUkvgXQ0UCC/eVCINl+HzPbO/Kg604u9J2nbKD2RbuUn7g0 SNLvP2y6lJdbBDF24cyK8B1+mmQdoBOkEecBlxTKWRx+QikWrsCXV2Up7YrednFtF4DE bF+lwM26sccBGgjwN/IlfpnP3kWZtdM4vsoMuqOdkLVPTbhYkPNbHznB/lwo9eASdodc eHRA6uyp8CMiW+rbPssEZg+j8ooVLEsg6HgS9g4fidgCSaTGiklxss8sxLoHJmgZpgGa +rHBXstx+VsG/LJHtKdRKzhhZ/bcqTZz8EIL3KkQPxoRXWEcKD88fe0BpFOxKSkKOtOJ bkXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b="jxb/3Odv"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u16-20020a170902e5d000b00186c3af9680si11314638plf.98.2022.10.31.11.28.46; Mon, 31 Oct 2022 11:29:02 -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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b="jxb/3Odv"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229674AbiJaSKh (ORCPT + 99 others); Mon, 31 Oct 2022 14:10:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbiJaSKg (ORCPT ); Mon, 31 Oct 2022 14:10:36 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FC59100E; Mon, 31 Oct 2022 11:10:33 -0700 (PDT) Received: from g550jk.arnhem.chello.nl (31-151-115-246.dynamic.upc.nl [31.151.115.246]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 1B387D03F1; Mon, 31 Oct 2022 18:10:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1667239832; bh=03cs4/GWsyd+zjE3smFFK0Esd6yU/N6x5URAFrq3wvo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=jxb/3OdvVt08kmnwvFljeu24VvqY+2DSRdzzVQ2SxLOtTeA1gR941UQzO+9K7RrxL CDwSrosLe8DWgoRZvcMlLPLhAt8ngoXJV+TFpBGRs3ysckQJjeQZXy6EwZ5HnmC/qO wH8MNrq371XiaApjahIBXERXqBZZWLQvA18tyJOk= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, afd@ti.com, Luca Weiss , Konrad Dybcio , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] ARM: dts: qcom: pm8941: fix vadc channel node names Date: Mon, 31 Oct 2022 19:10:22 +0100 Message-Id: <20221031181022.947412-2-luca@z3ntu.xyz> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221031181022.947412-1-luca@z3ntu.xyz> References: <20221031181022.947412-1-luca@z3ntu.xyz> MIME-Version: 1.0 X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, PDS_OTHER_BAD_TLD,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748228838142222995?= X-GMAIL-MSGID: =?utf-8?q?1748228838142222995?= The spmi-vadc bindings require the '@' in the node. Additionally change the node name to adc-chan which both makes it a generic node name and also removes the underscore from it. At the same time sort the nodes by reg value. Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss --- Changes in v2: * Make commit message more accurate * Make number actually hex in node address (made it decimal before) arch/arm/boot/dts/qcom-pm8941.dtsi | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/qcom-pm8941.dtsi b/arch/arm/boot/dts/qcom-pm8941.dtsi index 863e598591b7..a9e83836bf86 100644 --- a/arch/arm/boot/dts/qcom-pm8941.dtsi +++ b/arch/arm/boot/dts/qcom-pm8941.dtsi @@ -101,26 +101,33 @@ pm8941_vadc: adc@3100 { #size-cells = <0>; #io-channel-cells = <1>; - bat_temp { - reg = ; + + adc-chan@6 { + reg = ; }; - die_temp { + + adc-chan@8 { reg = ; }; - ref_625mv { + + adc-chan@9 { reg = ; }; - ref_1250v { + + adc-chan@a { reg = ; }; - ref_gnd { + + adc-chan@e { reg = ; }; - ref_vdd { + + adc-chan@f { reg = ; }; - vbat_sns { - reg = ; + + adc-chan@30 { + reg = ; }; };