From patchwork Thu Sep 15 08:57:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 606541 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 D819DC6FA86 for ; Thu, 15 Sep 2022 08:58:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230088AbiIOI6p (ORCPT ); Thu, 15 Sep 2022 04:58:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230063AbiIOI6n (ORCPT ); Thu, 15 Sep 2022 04:58:43 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6D9D8C47D for ; Thu, 15 Sep 2022 01:58:40 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a26so11823506ejc.4 for ; Thu, 15 Sep 2022 01:58:40 -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=m9yLILp4WwPiYPfrmomBBkZCXUlxugBoSzuRJ4gxLjc=; b=bnLWuZ4RadQfGDEQzXl4KWkIcHxQ7NO8ex7Xglu+gz+ke75ySUd7ILPp6rsqufvvoD Uscn+1yYI3hGELimcR9FosA7gnlgx+Na6EA93atQgI9GJvmIUKtmQeT3t2GvjFWEMp8t P5LeAx7VFM7H1bcTfCZpirpwr+dGmfeIgYxPc6DsHg6rW3Jiwh3WDye1sRbtJd0vOI3o J2+9e2g8wP7Qg7oaW9H4TBUCa4G4LClfF/j+y8p92WA45K6+NnZ88JNJrbt84efC/qDy xmrXcE7OzYwVfVsWFq5B703e9J1+5ka/SL3iAfvAVTRowp40G1/G7DbvzHQgkM7VQn5U opNQ== 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=m9yLILp4WwPiYPfrmomBBkZCXUlxugBoSzuRJ4gxLjc=; b=S8WZKqb+FvnPS9qiqbpprYntoj+4fsZ1As1w3Uu3L9HHdK+dwsuRk8WA7Kl+NhaFpP HyLdt0jcScEtjT2nRKRkCKXGFazopUlF2fmXA8GklwVqWZmQUmlx9L9KFuCR+8WAkpd9 WbvzqRG3lHVbHKiSC0086kHRBkbp1sXu+ufqkte5jZWRf43o8M9v8WOdrokB29XAQaqL BVmVJywRSpk/zNCAY9EXzUTbbUKoNq5wucDhuHPydT1rq3kU06feJlM4N9dpLCnK1lwA r5DaewygecC8SK4x5wuO2f08mx8667dL9bAlwgNDe/cnlPPO6yvZe1QEFz92PTbg2Bo0 axjg== X-Gm-Message-State: ACgBeo34mn8ml2FMH5+FSdCtQTLWZhX2H6Dq1XFeaJ8wVstLwLr19I1I eG1+T931BEXVWd7mFEjbOJR1v+Q+DrKBjw== X-Google-Smtp-Source: AA6agR46Ww65XaZZFcTK2CTunJ9f1x2s/iBJHMNA6PT6/lJ8OHN+1eL8nYhSqDFY+FvDRa29fs8JsQ== X-Received: by 2002:a17:906:2bc7:b0:72f:dc70:a3c6 with SMTP id n7-20020a1709062bc700b0072fdc70a3c6mr28903983ejg.645.1663232319205; Thu, 15 Sep 2022 01:58:39 -0700 (PDT) Received: from otso.. (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id ov22-20020a170906fc1600b00770e405ad4esm8731235ejb.124.2022.09.15.01.58.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Sep 2022 01:58:38 -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 , Caleb Connolly , Lee Jones , Dmitry Baryshkov , Jonathan Cameron , linux-kernel@vger.kernel.org Subject: [PATCH v2] mfd: qcom-spmi-pmic: Add more PMIC SUBTYPE IDs Date: Thu, 15 Sep 2022 10:57:32 +0200 Message-Id: <20220915085733.20290-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 Add more IDs that are found in the downstream msm-4.19 kernel under the path include/linux/qpnp/qpnp-revid.h. While we're at it, make sure all hex numbers are uppercase and consistent in this file. Signed-off-by: Luca Weiss --- Changes in v2: * Convert existing lowercase hex numbers to uppercase include/soc/qcom/qcom-spmi-pmic.h | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/include/soc/qcom/qcom-spmi-pmic.h b/include/soc/qcom/qcom-spmi-pmic.h index 72398ff44719..f1c9f1676fb4 100644 --- a/include/soc/qcom/qcom-spmi-pmic.h +++ b/include/soc/qcom/qcom-spmi-pmic.h @@ -18,26 +18,40 @@ #define PMI8962_SUBTYPE 0x07 #define PMD9635_SUBTYPE 0x08 #define PM8994_SUBTYPE 0x09 -#define PMI8994_SUBTYPE 0x0a -#define PM8916_SUBTYPE 0x0b -#define PM8004_SUBTYPE 0x0c -#define PM8909_SUBTYPE 0x0d -#define PM8028_SUBTYPE 0x0e -#define PM8901_SUBTYPE 0x0f +#define PMI8994_SUBTYPE 0x0A +#define PM8916_SUBTYPE 0x0B +#define PM8004_SUBTYPE 0x0C +#define PM8909_SUBTYPE 0x0D +#define PM8028_SUBTYPE 0x0E +#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 SMB1381_SUBTYPE 0x17 #define PM8005_SUBTYPE 0x18 #define PM660L_SUBTYPE 0x1A #define PM660_SUBTYPE 0x1B +#define SMB1355_SUBTYPE 0x1C #define PM8150_SUBTYPE 0x1E -#define PM8150L_SUBTYPE 0x1f +#define PM8150L_SUBTYPE 0x1F #define PM8150B_SUBTYPE 0x20 #define PMK8002_SUBTYPE 0x21 +#define SMB1390_SUBTYPE 0x23 #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