From patchwork Fri Jan 6 15:39:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 639819 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 149F7C54EBE for ; Fri, 6 Jan 2023 15:39:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235496AbjAFPj5 (ORCPT ); Fri, 6 Jan 2023 10:39:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233560AbjAFPjx (ORCPT ); Fri, 6 Jan 2023 10:39:53 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A64F877D2A for ; Fri, 6 Jan 2023 07:39:51 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id kw15so4210998ejc.10 for ; Fri, 06 Jan 2023 07:39:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=NpkG2iR0UwWdydoahMJc9hyZ5gZYg9PaDSDM09B2by8=; b=hAXkKOvRnZeyOHvhWhrsKr+W9+QkGEcmw7NHYO0rLBGVHP/4Tm+JVMd8eBRKLMaAJT KJpveSZmD19bTLd8kM5JGxm5gG1WwIqD2jMEggSDyAPkJDdtIFbnQSwIzZNyNoKvg+HZ ceef176g3aG4BL1TFlLNh80cpEVuY6bWtUEP8ZXjY1XSxE7Rm0pnd9PhqYEBE0KhSyqy DBwlnNsId2bH5uromjldB2xxI+Mf6fjcGINxNjQWztfudoFk1fOMhVn0zErpdM6pl4ba xKW1rGgppefIhvZfqp/c5oOC+CPvWFQsd8fAfGNqrwXK8T5XY1taEQlKmo64sG75aajQ VmyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NpkG2iR0UwWdydoahMJc9hyZ5gZYg9PaDSDM09B2by8=; b=p9LFeDBO5yr3w7lFcC8nyS4ohHfZ0XHqHtVAhgawnzU4SFeIWJ8WUET6DTrWmfOdPm PskxrtUt2HynukIfP1BMbnzpH218k/y0E7puZ+hPF/BKJo0C07ztV6uBu51Zr7J7zf0g nHjerPD/rZ39/yFrOSxAOxjpjlKCTCDoaetVylWcRv4GliGZZVN3t2ZL108KkeoXN18N 30x9YW7l4rVMiTgMD+rvNd/kpVWhqSZZPpT2SBleHpovMH4tz+Og2RDy8DQp0oPfRTom +H/LV7u18bEvRpsRIjgmm3T/dffoBQebLrMHq1GXgzpcFpwbuWjc9cuTuZDNyUq57lhu vFFQ== X-Gm-Message-State: AFqh2kpVeKSEFxPa5tKw4IrBWs+Dbqb7VOfDyEDooHmQANM5qKgcahn6 bzSbj8y+SC/o1ohQO6kPzFkW1A== X-Google-Smtp-Source: AMrXdXtCz2VxsduHFn7Iu/9+O5xy6oPKtf5ciiIpoxGaBNjyjW6LzJn4v6l+97kvsAcLckwVhP9ZCg== X-Received: by 2002:a17:907:a08d:b0:7c0:dac7:36d8 with SMTP id hu13-20020a170907a08d00b007c0dac736d8mr49899341ejc.10.1673019590109; Fri, 06 Jan 2023 07:39:50 -0800 (PST) Received: from [10.0.0.3] (217-149-174-217.nat.highway.telekom.at. [217.149.174.217]) by smtp.gmail.com with ESMTPSA id gx8-20020a170906f1c800b007aed2057eacsm496235ejb.221.2023.01.06.07.39.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Jan 2023 07:39:49 -0800 (PST) From: Luca Weiss Subject: [PATCH 0/2] Support ADC5_BAT_ID_100K_PU and use on PM7250b Date: Fri, 06 Jan 2023 16:39:41 +0100 Message-Id: <20230106-pm7250b-bat_id-v1-0-82ca8f2db741@fairphone.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAL1AuGMC/x2NWwqDMBAAryL77cImxRR6FRHJY60LGiXRUhDv3 qWfMzDMBZWLcIVXc0Hhj1TZsoJpG4izz29GScpgyT7IkMN9fdqOAgZ/jJLQUEfRTi6RcaBR8JUx FJ/jrFk+l0XlXniS7//SD/f9A0KVect1AAAA To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Luca Weiss X-Mailer: b4 0.11.2 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the bat_id channel to vadc driver and add channel to pm7250b dts. To: Andy Gross To: Bjorn Andersson To: Konrad Dybcio To: Jonathan Cameron To: Lars-Peter Clausen To: Rob Herring To: Krzysztof Kozlowski Cc: ~postmarketos/upstreaming@lists.sr.ht Cc: phone-devel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org Cc: linux-iio@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- Luca Weiss (2): iio: adc: qcom-spmi-adc5: define ADC5_BAT_ID_100K_PU channel arm64: dts: qcom: pm7250b: Add BAT_ID vadc channel arch/arm64/boot/dts/qcom/pm7250b.dtsi | 8 ++++++++ drivers/iio/adc/qcom-spmi-adc5.c | 2 ++ 2 files changed, 10 insertions(+) --- base-commit: 88603b6dc419445847923fcb7fe5080067a30f98 change-id: 20230106-pm7250b-bat_id-1050c2f6d016 Best regards,