From patchwork Thu Sep 15 11:35:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 12977272 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 CB6B1ECAAA1 for ; Thu, 15 Sep 2022 11:36:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbiIOLgG (ORCPT ); Thu, 15 Sep 2022 07:36:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229616AbiIOLf6 (ORCPT ); Thu, 15 Sep 2022 07:35:58 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 436BF985A2 for ; Thu, 15 Sep 2022 04:35:57 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id bj12so41364703ejb.13 for ; Thu, 15 Sep 2022 04:35:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=tc0xiA0Fwrt0tr5qIWgvRfBTzVbLIFg6idBAE+8WU/I=; b=UdhlByvOOIEZcWyzkI63iyDfrAbG8EujZhjIJPchJIWGMsQrgfKyhK5hScvEyRzbK3 wHTdCAk/hIE8PVXNCt5Zj7x0mFREs/Jew5pmtu5FMmUAwiKFGs84rSnrFnpP2vX8W4B+ SvHK/ngnjdw7tSvM7uWihgtO6i1ywnuq/P0j2VC2ViRgDstV2+QNc6wwRr+IbO1YkO3l nzzx+2sM2td+Q7DibKY+uVPnwe02wadaog2imNTk8I0JRCqVEibu7TnwRxoaqxdTnqyg 0fQddevMbNgoYoAZtuqBMo1FHXEhJ6XbtHIG20T5+mkJJe2st+3F3xzCy+wpOaPJ5+Il ELMw== 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; bh=tc0xiA0Fwrt0tr5qIWgvRfBTzVbLIFg6idBAE+8WU/I=; b=bcboG/gQn4W0evPneMK+e83EIqTZwSrVeK2o9EoxWKWcpUFdAs8VNltdDMwaBiwyF0 M40StTF63zO/hNy9hBKUj6osiweI1/gjF0HCZP0grUlMOQgvhrk7m0nmNiy+KYWQsN1+ cEhN2PBprMtznB7VbNwClwoyEXsJmaSUMSeFDFoiCjQQvZIDZvQVx/L9R5gRemBGOy0m 34l4Vz73fV+6FM4K4zGTnmpP8Cm9mkJKWUv6Vs2HnPllVI/Yv3eOs4WVGALA81wbIEOq BMvHLEKAfCX8s1mjq1k6I+Q+2iF80ToXfwSGyOpJj1yQOxJrQSMZSy7cV3HcEURjTZ0Z 3HPg== X-Gm-Message-State: ACgBeo1xXzhXABkmqR9a0vogkucjFUEDoPRz91YxVv9C3LUMIdeEd+Fi M0WPk5sofi6wajzD8R6HGQWBfFal3tU46g== X-Google-Smtp-Source: AA6agR523eREVuiFhSt4qHKnQ25GTFAQ2xdd14LRUxO2aGmYQVlEroNaRDIw81THUGy4j4inSaePaA== X-Received: by 2002:a17:907:a413:b0:780:1ca3:5424 with SMTP id sg19-20020a170907a41300b007801ca35424mr7338817ejc.671.1663241755411; Thu, 15 Sep 2022 04:35:55 -0700 (PDT) Received: from otso.. (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id fi24-20020a1709073ad800b0072af4af2f46sm8910424ejc.74.2022.09.15.04.35.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Sep 2022 04:35:54 -0700 (PDT) From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , Jonathan Cameron , Lee Jones , Dmitry Baryshkov , Caleb Connolly , linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] mfd: qcom-spmi-pmic: convert hex numbers lowercase Date: Thu, 15 Sep 2022 13:35:20 +0200 Message-Id: <20220915113523.44074-1-luca.weiss@fairphone.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org There are some IDs that are written in uppercase. For consistency convert them to lowercase. Signed-off-by: Luca Weiss Reviewed-by: Dmitry Baryshkov Reviewed-by: Caleb Connolly --- Changes since v2: * Split out to separate patch include/soc/qcom/qcom-spmi-pmic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/soc/qcom/qcom-spmi-pmic.h b/include/soc/qcom/qcom-spmi-pmic.h index 72398ff44719..fde0148d0077 100644 --- a/include/soc/qcom/qcom-spmi-pmic.h +++ b/include/soc/qcom/qcom-spmi-pmic.h @@ -29,9 +29,9 @@ #define PM8998_SUBTYPE 0x14 #define PMI8998_SUBTYPE 0x15 #define PM8005_SUBTYPE 0x18 -#define PM660L_SUBTYPE 0x1A -#define PM660_SUBTYPE 0x1B -#define PM8150_SUBTYPE 0x1E +#define PM660L_SUBTYPE 0x1a +#define PM660_SUBTYPE 0x1b +#define PM8150_SUBTYPE 0x1e #define PM8150L_SUBTYPE 0x1f #define PM8150B_SUBTYPE 0x20 #define PMK8002_SUBTYPE 0x21 From patchwork Thu Sep 15 11:35: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: 12977273 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 7140DC6FA8A for ; Thu, 15 Sep 2022 11:36:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229652AbiIOLgI (ORCPT ); Thu, 15 Sep 2022 07:36:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbiIOLgA (ORCPT ); Thu, 15 Sep 2022 07:36:00 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 381B59A9A2 for ; Thu, 15 Sep 2022 04:35:59 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a26so12718236ejc.4 for ; Thu, 15 Sep 2022 04:35:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=d1PF4A4boDjofVzPABAZCXmsEh3HYlGwljIdr1GvZSY=; b=otFuK1b0JYh824F62FadqTGHIlSv28ORFGj0Po+O5iD4qf/XgeaA1TBuw5AX+BvMX1 S0zbhI1+R5Zv/fazlRyvkjWZpSoatyoievQ/ZlnlTl2son/8Af0xNHSMGcg4rxh1gvMK QQW+8YukXq5F2H8dftQlqSF7ouXyxB4qGZzI64IwI3mqYhk6pYwTqaMhwEpA2awQvmd1 Cju+K2AI4ZzdqjrxizSSoE3CJmhUZzm6x4gBlOxc2irPdpPcb7kcIV5XaNag9ZCtAdKL nuDO8DxvuO7dYLlwkkzlmuW8FzWIYyf2WpF5N+BZyrRnYxBwHJA+3Ih9prqfWyGtE/Mg 3gPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=d1PF4A4boDjofVzPABAZCXmsEh3HYlGwljIdr1GvZSY=; b=DcBqJIN/MzcqDy0ofDAsn4vn4DneSnxS39Sbl8blrSJNm7Mdqh+oQUuPB8yDiaFRs0 uV5NrMBkxdj+AWL3FpjLyRxZhhO8jJf8GfUQlpcWQfVAVZy3O2tS3mx7/5a2HmPR9MhW dmJA5ngOZSExo48V2I+AGWIMtNW4KVwYLnZGKtLATCkDLjHb/RtBAGWSNvMAoZMgBUaC Tx8GWYFHvJ33gLUDTGVf+PrJqkNkqMC+eCtZWfkTF2R0BP9mb0sltYOCkHg/0PKy4ZJU fyeam6K/4k9WbQCIohdufMC84WUBHtdgxhoQ7+wGQ8BzvPUSOtwwrPIzCu+pmnkyoSsM BmnA== X-Gm-Message-State: ACgBeo2CaUGeJytIKO37cysm61xUli0rCos81aEIiWbReyq27s1V4W4/ KYL76wgDGF/BBnudde/eT7ma5WzSfdAwJA== X-Google-Smtp-Source: AA6agR6uIndMgHYkaS4uybZJbwSLEfFeKw1jYmyds8Mv50OPSJUBarei9PR9ooqlse+45+4k5Lx9Bw== X-Received: by 2002:a17:907:9603:b0:742:9ed3:3af2 with SMTP id gb3-20020a170907960300b007429ed33af2mr28653453ejc.510.1663241757579; Thu, 15 Sep 2022 04:35:57 -0700 (PDT) Received: from otso.. (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id fi24-20020a1709073ad800b0072af4af2f46sm8910424ejc.74.2022.09.15.04.35.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Sep 2022 04:35:57 -0700 (PDT) From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , Jonathan Cameron , Caleb Connolly , Dmitry Baryshkov , Lee Jones , linux-kernel@vger.kernel.org Subject: [PATCH v3 2/2] mfd: qcom-spmi-pmic: Add more PMIC SUBTYPE IDs Date: Thu, 15 Sep 2022 13:35:21 +0200 Message-Id: <20220915113523.44074-2-luca.weiss@fairphone.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220915113523.44074-1-luca.weiss@fairphone.com> References: <20220915113523.44074-1-luca.weiss@fairphone.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add more IDs that are found in the downstream msm-4.19 kernel under the path include/linux/qpnp/qpnp-revid.h. Signed-off-by: Luca Weiss Reviewed-by: Dmitry Baryshkov Reviewed-by: Caleb Connolly --- Changes since v2: * Convert hex numbers lowercase * Remove SMB* IDs added in v1, given it's not sure they're actually spmi pmics or just i2c pmics (keep SMB2351 because it supports spmi) include/soc/qcom/qcom-spmi-pmic.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/soc/qcom/qcom-spmi-pmic.h b/include/soc/qcom/qcom-spmi-pmic.h index fde0148d0077..c47cc71a999e 100644 --- a/include/soc/qcom/qcom-spmi-pmic.h +++ b/include/soc/qcom/qcom-spmi-pmic.h @@ -26,6 +26,8 @@ #define PM8901_SUBTYPE 0x0f #define PM8950_SUBTYPE 0x10 #define PMI8950_SUBTYPE 0x11 +#define PMK8001_SUBTYPE 0x12 +#define PMI8996_SUBTYPE 0x13 #define PM8998_SUBTYPE 0x14 #define PMI8998_SUBTYPE 0x15 #define PM8005_SUBTYPE 0x18 @@ -36,8 +38,17 @@ #define PM8150B_SUBTYPE 0x20 #define PMK8002_SUBTYPE 0x21 #define PM8009_SUBTYPE 0x24 +#define PMI632_SUBTYPE 0x25 #define PM8150C_SUBTYPE 0x26 +#define PM6150_SUBTYPE 0x28 #define SMB2351_SUBTYPE 0x29 +#define PM8008_SUBTYPE 0x2c +#define PM6125_SUBTYPE 0x2d +#define PM7250B_SUBTYPE 0x2e +#define PMK8350_SUBTYPE 0x2f +#define PMR735B_SUBTYPE 0x34 +#define PM6350_SUBTYPE 0x36 +#define PM2250_SUBTYPE 0x37 #define PMI8998_FAB_ID_SMIC 0x11 #define PMI8998_FAB_ID_GF 0x30