From patchwork Mon Feb 13 21:55:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 56579 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2599307wrn; Mon, 13 Feb 2023 14:02:37 -0800 (PST) X-Google-Smtp-Source: AK7set9cznT93TC3QWAm0/XVs3J6bPKMHn0tAJYD8USALBLJDnpDeE9JFyFdMp2N2WibKsO1y5bb X-Received: by 2002:a17:907:3f93:b0:82e:a57b:cc9b with SMTP id hr19-20020a1709073f9300b0082ea57bcc9bmr25638866ejc.24.1676325757175; Mon, 13 Feb 2023 14:02:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676325757; cv=none; d=google.com; s=arc-20160816; b=GJ6f5EpNZQkex2JGBWrNqk46Y3UE+Xu1xmmkZeoSVdF+fyg/sOSw2e/FIIISxh5JzB t1LjTuc5ZdC2c2bHTH13nPYvi5kjtK0k8yU/26DsiR66Ezadpk+fL4J0gN7zAn8I5PXX zY9kfCY9C8HIEjoiGLjWzklUs4IvksfgtFIiO+QUkJwBVJbxtK5Gjszc/mNGk2/ajrcy uRY4gJNWKKn8SdEk9kW+bnoT0NXM1GfgiddaOAOalV7c7CWCmIh2BewSK3EbIqHAXSnB zWuXyMJCKZc8MANNByPih8mHQolQElJfv8QWRBE+50f2TfnVHm+T7Hr2pN5XUErcP/VM phOw== 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=iKAZgUcGAsaoUrTcrozzl66DRQFN/kA73HojvdU9gsg=; b=txr/mfIhwULWrf7rcPLXiC6zM2BEWyrFOrkRObrJuXecdr3IGf/OnSVXrEQ1mhk0V3 5WSvzZRkacfCrwwLgITYUIS1+rMCJEuPr/qMIOC4jL7UMrGKfulU2gUcdMBtj5oaXrjB TkFRzpI+jC2Zg76bogU5vEJQcxd3rqBiIbzKMJbCx4naTkvKeRhS/i3g8W4H2bYqQ+wi PRdOyjJrfL7bpOhsa6e/ARGByd6jI189SsSlX/RfbhyyUttYK0x7zq+MUnNYryRSIE0C /lS8Lq7+XKxtuZx/3J+OYx8obs/akUMnpsSR6eOZUaRd/3gCmlquBcNsiBa+SGXTLe2L Gn7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=szI7X+aM; 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 1-20020a170906018100b0087bdb523367si21759602ejb.222.2023.02.13.14.02.13; Mon, 13 Feb 2023 14:02:37 -0800 (PST) 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=szI7X+aM; 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 S230286AbjBMVzH (ORCPT + 99 others); Mon, 13 Feb 2023 16:55:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230128AbjBMVzF (ORCPT ); Mon, 13 Feb 2023 16:55:05 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4096E222ED for ; Mon, 13 Feb 2023 13:55:04 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id s11so7138753edd.10 for ; Mon, 13 Feb 2023 13:55:04 -0800 (PST) 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=iKAZgUcGAsaoUrTcrozzl66DRQFN/kA73HojvdU9gsg=; b=szI7X+aMLGgxPmWUyoGnyXn4Yt1POMEP3p3aGLtUiGc5iphf+mRgubAJfWazo/wDaU 8DFT9D300PJEfNjz3vZxyG1juL6h63NYIjQQvkeeXCNxaa+zHaLMX2v+po918HiaiXyX t2cEaWP67YWuZT/O8CRGk7Eo5KleivU2DHxkMyb3BDlYOyFf3E382OdItG+/BFcxZR3c 3DR0+/Er7CNTgK9buimgwUvQXJ9bmQ0LSxzg0vHb0WmPa3x3w/uaHfR3XD1zjRVHFNpF BCQJaP8eP4tKyohoBMX50Tq1akPjS3kLvhIplq0LPgxNHwKMSOu/OVXosK/+6HS3yZKf WOdw== 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=iKAZgUcGAsaoUrTcrozzl66DRQFN/kA73HojvdU9gsg=; b=TvNqUqq+yLcibHDpyYJ9cqYdNeBmwMJ8NPnLG9193t3kQiz2t0sSflluCskcyNA8kZ XxJOtIl27ME/oSfho0nr71I6s3r5VBH5vTQO3PKpcG4zdknh+qCrwjkOLRrC3lqgxTEy /GlbZ9FVwuNTQDMCJg43fdqdDBVA+PjDy+sZBz/OnqlniwoMJ+/jgMgdSZZD+p2Kh8ET jrNT0lvpU0t5zPRK5bNOxrrXDq1oTdG5kjSWMOxM7An0oC2/m2KJUk2TreYtKSfQGTCj VVG+GQpf7wB31e25BBgJlOQWCNQ0BOEeO02uwvNPT+hXXXGI8AjtGUutImulZPW+GWOB 7Idg== X-Gm-Message-State: AO0yUKVqZc6Nd0pSUEUizBwMYKlJ77lwMeN3fWDb6GoUrJxymL40OJHm Ko5sS85lqTNrMtltI9oGTKbykw== X-Received: by 2002:a05:6402:320a:b0:4ab:1db8:df45 with SMTP id g10-20020a056402320a00b004ab1db8df45mr10635503eda.8.1676325302829; Mon, 13 Feb 2023 13:55:02 -0800 (PST) Received: from localhost.localdomain (abxh117.neoplus.adsl.tpnet.pl. [83.9.1.117]) by smtp.gmail.com with ESMTPSA id v1-20020a50a441000000b004aab66d34c7sm7264837edb.7.2023.02.13.13.55.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 13:55:02 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , linux-kernel@vger.kernel.org Subject: [PATCH] soc: qcom: socinfo: Add some PMICs Date: Mon, 13 Feb 2023 22:55:00 +0100 Message-Id: <20230213215500.2131511-1-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.1 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=ham 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?1757754957119253757?= X-GMAIL-MSGID: =?utf-8?q?1757754957119253757?= Add some missing PMICs based on the _SUBTYPE defines in include/soc/qcom/qcom-spmi-pmic.h Signed-off-by: Konrad Dybcio --- drivers/soc/qcom/socinfo.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index e9012ca1a87b..b9d58b6ed6b4 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -109,15 +109,20 @@ static const char *const pmic_models[] = { [32] = "PM8150B", [33] = "PMK8002", [36] = "PM8009", + [37] = "PMI632", [38] = "PM8150C", + [40] = "PM6150", [41] = "SMB2351", + [44] = "PM8008", [45] = "PM6125", + [46] = "PM7250B", [47] = "PMK8350", [48] = "PM8350", [49] = "PM8350C", [50] = "PM8350B", [51] = "PMR735A", [52] = "PMR735B", + [55] = "PM2250", [58] = "PM8450", [65] = "PM8010", };