From patchwork Wed Feb 16 13:49:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 543115 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 97E89C433EF for ; Wed, 16 Feb 2022 13:49:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234716AbiBPNt5 (ORCPT ); Wed, 16 Feb 2022 08:49:57 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230377AbiBPNt5 (ORCPT ); Wed, 16 Feb 2022 08:49:57 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27EA629924A for ; Wed, 16 Feb 2022 05:49:44 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id hw13so4719333ejc.9 for ; Wed, 16 Feb 2022 05:49:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=46n4LaD4ZyMBoEv7QyqZkVx2QkFYWM4XtM2ZRYBTQAc=; b=R2xg/A4umSYaqwB+IDnWON6cWpWUJdRbV5ECKt1Aw2xZSJNRpz+f1i98qPkwQx02mX 1EcbcikQeujSLIP9G/9cLZnZgt1epqSl/ajz7zLrYprOFU0bPVTAmO9isPVDYwu6ELep TYr0JOCzdCd0HuLsGS39GRC2WpbwhDxr5NQlc9RmV7/QL4mMW1gc+2T087/bEtuNF1cL nlSBiCjKqhzu4BeGd5YapegnT0LD1x1qpJgzkVESgkZJ90FqpUaB4ZTv0yldN+aKEHZ+ lxC0mJGEb+12elginW9NAa7ylB1AEJvIHwbNEtokxOGoKxZ96zOOIFtVaU1NejXIOE2C vYlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=46n4LaD4ZyMBoEv7QyqZkVx2QkFYWM4XtM2ZRYBTQAc=; b=jlUhOb41DM7QFTtXiTc7LnxUreCdUsnqLDaz2ERcjhrptstuOsb5brLzc7S37Fc4d8 Umt4jATDqxvmGnD8PmyZQbRXPysxwNgisgCGhC1H8SJccDliuAgZ3Slh3mvwNbfXXbfX OlCy1nPs7OXBNR9CM0s8nXQOx/jZWO+3kpH6oHy8Na7YmF5dHRb8o9QX3GTgx075/zNx bqNUY5VwtUxE4ZszosnNCnL0xpzLaAAh4UblBJlTSfuX/2cHrJofmhNfQbVM3uQcwGPB e6pB4DDSGFrrcE7xVFviYC+uwSTwQpEW7wOc5WBIxLWgcmqTzm4fRoOF7N2Lm6lHdosN obLA== X-Gm-Message-State: AOAM530FKn2FZxYA8S+aj6Ca7VmTX2fS8nvUf5T1Sy5tKLktKn6/75wl YHAd+A2klzA1NBpdoCsNxOuUhQ== X-Google-Smtp-Source: ABdhPJwRu3yFYlwaq6c6uxX1murbAtN9dkyfAI+Nvy6JioXYxnORUo5QLsTP9WtxS2AzlGhk2RxgZA== X-Received: by 2002:a17:907:766a:b0:6cf:bb20:70c with SMTP id kk10-20020a170907766a00b006cfbb20070cmr2346786ejc.94.1645019382745; Wed, 16 Feb 2022 05:49:42 -0800 (PST) Received: from localhost.localdomain (cpc78119-cwma10-2-0-cust590.7-3.cable.virginm.net. [81.96.50.79]) by smtp.gmail.com with ESMTPSA id o20sm1711996edc.84.2022.02.16.05.49.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 05:49:42 -0800 (PST) From: Caleb Connolly To: caleb.connolly@linaro.org, Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Andy Gross , Bjorn Andersson , Lee Jones , Stephen Boyd , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: sumit.semwal@linaro.org, amit.pundir@linaro.org, john.stultz@linaro.org Subject: [PATCH v7 1/9] spmi: add a helper to look up an SPMI device from a device node Date: Wed, 16 Feb 2022 13:49:12 +0000 Message-Id: <20220216134920.239989-2-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220216134920.239989-1-caleb.connolly@linaro.org> References: <20220216134920.239989-1-caleb.connolly@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The helper function spmi_device_from_of() takes a device node and returns the SPMI device associated with it. This is like of_find_device_by_node but for SPMI devices. Signed-off-by: Caleb Connolly --- drivers/spmi/spmi.c | 17 +++++++++++++++++ include/linux/spmi.h | 2 ++ 2 files changed, 19 insertions(+) diff --git a/drivers/spmi/spmi.c b/drivers/spmi/spmi.c index b37ead9e2fad..de550b777451 100644 --- a/drivers/spmi/spmi.c +++ b/drivers/spmi/spmi.c @@ -386,6 +386,23 @@ static struct bus_type spmi_bus_type = { .uevent = spmi_drv_uevent, }; +/** + * spmi_device_from_of() - get the associated SPMI device from a device node + * + * @np: device node + * + * Returns the struct spmi_device associated with a device node or NULL. + */ +inline struct spmi_device *spmi_device_from_of(struct device_node *np) +{ + struct device *dev = bus_find_device_by_of_node(&spmi_bus_type, np); + + if (dev) + return to_spmi_device(dev); + return NULL; +} +EXPORT_SYMBOL_GPL(spmi_device_from_of); + /** * spmi_controller_alloc() - Allocate a new SPMI device * @ctrl: associated controller diff --git a/include/linux/spmi.h b/include/linux/spmi.h index 729bcbf9f5ad..6ee476bc1cd6 100644 --- a/include/linux/spmi.h +++ b/include/linux/spmi.h @@ -7,6 +7,7 @@ #include #include #include +#include /* Maximum slave identifier */ #define SPMI_MAX_SLAVE_ID 16 @@ -164,6 +165,7 @@ static inline void spmi_driver_unregister(struct spmi_driver *sdrv) module_driver(__spmi_driver, spmi_driver_register, \ spmi_driver_unregister) +inline struct spmi_device *spmi_device_from_of(struct device_node *np); int spmi_register_read(struct spmi_device *sdev, u8 addr, u8 *buf); int spmi_ext_register_read(struct spmi_device *sdev, u8 addr, u8 *buf, size_t len); From patchwork Wed Feb 16 13:49:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 543114 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 31C77C43217 for ; Wed, 16 Feb 2022 13:49:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234729AbiBPNuB (ORCPT ); Wed, 16 Feb 2022 08:50:01 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234721AbiBPNuA (ORCPT ); Wed, 16 Feb 2022 08:50:00 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 607B029924A for ; Wed, 16 Feb 2022 05:49:46 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id x5so3981953edd.11 for ; Wed, 16 Feb 2022 05:49:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FNxZnQWwG3AA+5zjZr6bjMk+OGB5iWm30KygedH2/Bk=; b=nXXKiUGFrOFcLVSZ6SO9Gg9jxXz1BG4paYxeJX11UxydSzgBZPcNAtFdn2/zdyBMdb UiyVD1iSxdMvgjXCVFAugFsReabH+cA52VHZCrRUbwWi2x3kZ/8dQObAtuXMLpwXSOOh jSfXvRjskF0fQxtbakDr3y8UI6g+e+IrsJfOtiWkO6E8dlMi/U7nAyA0Y2i/HFeGVJ0a woNfK/Ysj46rvFg2EJhORRjUoZ0VhxQuYtQp1NLLCaKDd9546+RrU0hkcazLI/osoJlX rwAdiUn6CefrsXFLlmursRiYW1OivYsl2WlZhu1ggP3txIh6WYzKK3IxwVRp4CFPRegb 4wRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FNxZnQWwG3AA+5zjZr6bjMk+OGB5iWm30KygedH2/Bk=; b=kWEDO+RsYvoQHBEQfz0X8NyGMpQcfORGzNPoZ/kFzaqX3Up6zwhFuQGLyjpy5CPqHC C12zPKg8L+W7NaTpvMUOunkEev6eMli8HRtS4dKFAvJp02qwZ95YVIn2YDSaMDtNefsx lMVTYjkozaMmGFAiTuPIOBCAnwhsmB6dxFQyWoowu6yjEIxeEFRkYuDUJBHbx7lDwrl5 3buS8qyv84a4RRRiGzU2c67ybFLfCm1Ts+FfSo+3HCI7voX1rzvGcyCzYfJRFZDzKZUf 2SvKz/igdczakRG9jvP4bfkunkrro0e13PwnB3dw0lNWiRMD8UXlwHoz1/0SDIe2qo+0 dv1g== X-Gm-Message-State: AOAM532iVKaskwFBI6YqaQH2M8BjP8SsQCYg20sstQ0eWaMlMUOpVZbq hYYxfANZpd9Y4y1efp/BYVwYXQ== X-Google-Smtp-Source: ABdhPJxE+x90FKHVnvvKlo3q5mQUipJ1lCcEh26NzaiJEfBTbJJn29uIU1o5r5n9pM+eilfmfjkAtg== X-Received: by 2002:a05:6402:5191:b0:40f:b9e0:4d1b with SMTP id q17-20020a056402519100b0040fb9e04d1bmr3166531edd.149.1645019385008; Wed, 16 Feb 2022 05:49:45 -0800 (PST) Received: from localhost.localdomain (cpc78119-cwma10-2-0-cust590.7-3.cable.virginm.net. [81.96.50.79]) by smtp.gmail.com with ESMTPSA id o20sm1711996edc.84.2022.02.16.05.49.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 05:49:44 -0800 (PST) From: Caleb Connolly To: caleb.connolly@linaro.org, Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Andy Gross , Bjorn Andersson , Lee Jones , Stephen Boyd , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: sumit.semwal@linaro.org, amit.pundir@linaro.org, john.stultz@linaro.org Subject: [PATCH v7 3/9] mfd: qcom-spmi-pmic: read fab id on supported PMICs Date: Wed, 16 Feb 2022 13:49:14 +0000 Message-Id: <20220216134920.239989-4-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220216134920.239989-1-caleb.connolly@linaro.org> References: <20220216134920.239989-1-caleb.connolly@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The PMI8998 and PM660 expose the fab_id, this is needed by drivers like the RRADC to calibrate ADC values. Signed-off-by: Caleb Connolly --- drivers/mfd/qcom-spmi-pmic.c | 7 +++++++ include/soc/qcom/qcom-spmi-pmic.h | 1 + 2 files changed, 8 insertions(+) diff --git a/drivers/mfd/qcom-spmi-pmic.c b/drivers/mfd/qcom-spmi-pmic.c index 5e656485cd55..28600e5899bc 100644 --- a/drivers/mfd/qcom-spmi-pmic.c +++ b/drivers/mfd/qcom-spmi-pmic.c @@ -21,6 +21,7 @@ #define PMIC_REV4 0x103 #define PMIC_TYPE 0x104 #define PMIC_SUBTYPE 0x105 +#define PMIC_FAB_ID 0x1f2 #define PMIC_TYPE_VALUE 0x51 static const struct of_device_id pmic_spmi_id_table[] = { @@ -169,6 +170,12 @@ static int pmic_spmi_load_revid(struct regmap *map, struct device *dev, if (ret < 0) return ret; + if (pmic->subtype == PMI8998_SUBTYPE || pmic->subtype == PM660_SUBTYPE) { + ret = regmap_read(map, PMIC_FAB_ID, &pmic->fab_id); + if (ret < 0) + return ret; + } + /* * In early versions of PM8941 and PM8226, the major revision number * started incrementing from 0 (eg 0 = v1.0, 1 = v2.0). diff --git a/include/soc/qcom/qcom-spmi-pmic.h b/include/soc/qcom/qcom-spmi-pmic.h index a8a77be22cfc..c821f6c6c8a8 100644 --- a/include/soc/qcom/qcom-spmi-pmic.h +++ b/include/soc/qcom/qcom-spmi-pmic.h @@ -50,6 +50,7 @@ struct qcom_spmi_pmic { unsigned int major; unsigned int minor; unsigned int rev2; + unsigned int fab_id; const char *name; }; From patchwork Wed Feb 16 13:49:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 543113 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 7E542C433F5 for ; Wed, 16 Feb 2022 13:49:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234739AbiBPNuJ (ORCPT ); Wed, 16 Feb 2022 08:50:09 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234732AbiBPNuI (ORCPT ); Wed, 16 Feb 2022 08:50:08 -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 330CE2A414C for ; Wed, 16 Feb 2022 05:49:50 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id t21so4028653edd.3 for ; Wed, 16 Feb 2022 05:49:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zozG4Oy5Pt0vWjsRDZ91928+qvWs4STBKU9M4pGg1h4=; b=QoFjoMeG7+RftmJsxTMAlfUkuoZlCqqvKR7llC6nNi1mHuak98r2mLaJx8rFd+9Tjg MPQ2vnbS6oQtQCUnGEEtJf988URbFDxjd1SUJxNy+kBJL/UDo27eJaNcJlK0iZEzevSc jjgq2eiUZQianObMTc8gY+i64ZCsUotiMUlBpNroLzLOUqRabIUZN55fVE2gD/x6CsCD ZV9NlUh7QJZzl/4DYdEOPeYvl7Wat7KfKD8kh3KubNXYAc54DxmRFxEOy7pC3K8d52T7 KIgltVhUDbW2mIYo4AUw93V9/ZCVQvQbO6YXvCF5pwoLUAAwMHkYxUs/Sk41fCpmSDsl OGgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zozG4Oy5Pt0vWjsRDZ91928+qvWs4STBKU9M4pGg1h4=; b=GfEs0jKfjNiS0Ol06PKh0GXQJRPTVP/qbIcgYIOV9sPOzrzziqwwYWIbuZUwdmKJ8o hLoWcyQFRvVOQKe+YBXYU7G5Htb22fkcT+2QwsKtSlKW2B6Ju6wpKxj5SG+IidUepAex lX/hE3ox5Vclh1LWHTdnrUPfIdV5cSEij0Dm6nLs424yUmPoZUMv8N2F2nAzr1eU9sOF MxhLTrEohB0iJnEKA1zSvyc85ftrUWwfrkIT+H5Hq4SPUsNwgKdMzODPxSujekcnM0Im AXDkuJtk0PqG8vi2zNvoVwrbnvOCv8OOWxK79ewMldv9u/7vGyFsrfgvMfU66jWDq/rN 0NYA== X-Gm-Message-State: AOAM531v2IBjRdpNwnhJFh66NJkgL0dXqJp0sg4XnrJCjs4k6I27Sq9A KfRSaqYy1DkrfNK6n6OBNUp6aw== X-Google-Smtp-Source: ABdhPJx3yCM0qzGCCShJICOBsovwzhEyf/OMU3d7kI6X/MoHQk0zs+oySrtsoTbRE0MJtDmxDyfvAQ== X-Received: by 2002:a05:6402:2748:b0:408:c807:8db7 with SMTP id z8-20020a056402274800b00408c8078db7mr3164168edd.4.1645019388785; Wed, 16 Feb 2022 05:49:48 -0800 (PST) Received: from localhost.localdomain (cpc78119-cwma10-2-0-cust590.7-3.cable.virginm.net. [81.96.50.79]) by smtp.gmail.com with ESMTPSA id o20sm1711996edc.84.2022.02.16.05.49.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 05:49:48 -0800 (PST) From: Caleb Connolly To: caleb.connolly@linaro.org, Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Andy Gross , Bjorn Andersson , Lee Jones , Stephen Boyd , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: sumit.semwal@linaro.org, amit.pundir@linaro.org, john.stultz@linaro.org Subject: [PATCH v7 6/9] arm64: dts: qcom: pmi8998: add rradc node Date: Wed, 16 Feb 2022 13:49:17 +0000 Message-Id: <20220216134920.239989-7-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220216134920.239989-1-caleb.connolly@linaro.org> References: <20220216134920.239989-1-caleb.connolly@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add a DT node for the Round Robin ADC found in the PMI8998 PMIC. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/pmi8998.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmi8998.dtsi b/arch/arm64/boot/dts/qcom/pmi8998.dtsi index 0fef5f113f05..da10668c361d 100644 --- a/arch/arm64/boot/dts/qcom/pmi8998.dtsi +++ b/arch/arm64/boot/dts/qcom/pmi8998.dtsi @@ -18,6 +18,14 @@ pmi8998_gpio: gpios@c000 { interrupt-controller; #interrupt-cells = <2>; }; + + pmi8998_rradc: rradc@4500 { + compatible = "qcom,pmi8998-rradc"; + reg = <0x4500>; + #io-channel-cells = <1>; + + status = "disabled"; + }; }; pmi8998_lsid1: pmic@3 { From patchwork Wed Feb 16 13:49:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 543112 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 51430C433F5 for ; Wed, 16 Feb 2022 13:50:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234740AbiBPNuN (ORCPT ); Wed, 16 Feb 2022 08:50:13 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234738AbiBPNuN (ORCPT ); Wed, 16 Feb 2022 08:50:13 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B6B82AB520 for ; Wed, 16 Feb 2022 05:49:51 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id p9so4748074ejd.6 for ; Wed, 16 Feb 2022 05:49:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qImSYxU2i/y/qV71r8EFW+LTWk9ZfhM4KeM2jcTcklQ=; b=USB9Cfv3xa7zGVhWDc9Zzp8uWp1kvjlb4YY/qTVb6gFRcd7lYNz1X+WcUefoTPp2aA xCArzUygJs0XlFfjMWTzZ24fNA4SFjUssWdeD5FOQP65LgDaVF0V73epaODl58a4SL0P yZW1F6zNIJoSLZf/Ib9iXoa+BrOB80KAllcZOUCpShymeF2KuhyM27qDVLJCHqAY2Tqd lzWXVcH2/8MaWS5m6erPW7AbbjD4fJA8DHHSqDeMmN2ddD/jN8KOQT7JE+O59rd68dSL 5s8NCaGBerWHNavx9RK3IxO5Z/fvjh5uQVOvymAFzNognoAe5UzY1y7MqgU6FSTFzMgg bzmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qImSYxU2i/y/qV71r8EFW+LTWk9ZfhM4KeM2jcTcklQ=; b=HFvVt73cer9U/Mg8VnW9L5XtFYpIoyHdNNv7h3DXYqlLH0Zsns/6c6xWxsorI692ko 2My+y7pTwzRGMysqa0bl54ezO2OSATTxmu14v1WhRdjJTLfTVcQfhsXiPdVURWkpcBZi cbYGxiTIr9Spfb6lZXiiPZG5S/CwDuRdAIEFqBDzvbnBN1EEwWhfOfRZ2MVs0GJ3sBel VH6Nes4S3upi0c1/llHbJTuwE+poaKHZRIteugwRSluFlwQeLC4FQZE6JZfpVI+T8hVx /nPBszYuyBuDGL6FFWE69BBD1dyUcPxXgBAZmk/qJ9p37jzeYSQyEYkBVNaqoeSAlB5x mdgA== X-Gm-Message-State: AOAM5330w4SKUNDCb+EZu1ef3f4jOEsMN8VRbwawFPyi+lAqFtCbgaV5 eCDKSinKXDJA1gJecTBQglJvlA== X-Google-Smtp-Source: ABdhPJxM6GQvnEXRmIMQdUPSDtUdumITcQ19d4GofkdvAd5RY2MgX7o6AeLYbe62J28zFTKWNN4+5Q== X-Received: by 2002:a17:906:1393:b0:6ce:f3c5:49a5 with SMTP id f19-20020a170906139300b006cef3c549a5mr2404632ejc.123.1645019389927; Wed, 16 Feb 2022 05:49:49 -0800 (PST) Received: from localhost.localdomain (cpc78119-cwma10-2-0-cust590.7-3.cable.virginm.net. [81.96.50.79]) by smtp.gmail.com with ESMTPSA id o20sm1711996edc.84.2022.02.16.05.49.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 05:49:49 -0800 (PST) From: Caleb Connolly To: caleb.connolly@linaro.org, Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Andy Gross , Bjorn Andersson , Lee Jones , Stephen Boyd , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: sumit.semwal@linaro.org, amit.pundir@linaro.org, john.stultz@linaro.org Subject: [PATCH v7 7/9] arm64: dts: qcom: sdm845-oneplus: enable rradc Date: Wed, 16 Feb 2022 13:49:18 +0000 Message-Id: <20220216134920.239989-8-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220216134920.239989-1-caleb.connolly@linaro.org> References: <20220216134920.239989-1-caleb.connolly@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Enable the RRADC for the OnePlus 6. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi index 7f42e5315ecb..e8287cf02511 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi @@ -450,6 +450,10 @@ pinconf { }; }; +&pmi8998_rradc { + status = "okay"; +}; + &qupv3_id_1 { status = "okay"; }; From patchwork Wed Feb 16 13:49:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 543111 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 A4A2DC433FE for ; Wed, 16 Feb 2022 13:50:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234749AbiBPNuU (ORCPT ); Wed, 16 Feb 2022 08:50:20 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234743AbiBPNuT (ORCPT ); Wed, 16 Feb 2022 08:50:19 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99D8B2ABD0E for ; Wed, 16 Feb 2022 05:49:53 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id x5so3982471edd.11 for ; Wed, 16 Feb 2022 05:49:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=60je+LDflCDSpm+PbhIAk73PJa9MombVHWRyiPaaQWE=; b=F3NHurYKl9o/EgwB4OsNpjY3DQ0nR2AJS3FAZf5AJXz4+QxWPtugQ3X6pN0uUGO5FJ rOjXfQYuCwQP7MdRa2RgTwcanJAphfvNlRPBaR4MGxRZeCcMo57l+dfkzJYsn2jBrhf8 atY4ciLDt/5mS0V4nDqSlcde4UwBeOBKwXv26aiVdu97cOHT4x+5zV1NM+NqiLrDZSmU vXsj3cCaJGkKflzcgkwMC0TY8fPrIOGElZLzsN6ZMKUdswEUlmwF5t9OpsN7s+9QcWGN YglwX4/z3zXky9rU9sxhULn7QpdYKbMPBp0cV1XScgUmuLEba4/lWoHncNHdUSa0UsRK KBrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=60je+LDflCDSpm+PbhIAk73PJa9MombVHWRyiPaaQWE=; b=rs8tIs/YhV978lFm3Q+0blLXVcjWpFit6Kv3PaozEyNefoAkFkbj5i49hFopcF/XKE Fnz1yleRXt+SPBMHwbRjEyN4UF5stlQKJdMNzVMwQH/UCsxbVA6uPn6k7bjQS6X/7vPO 9mWYaycYeSk+DQVgHBKsIw8iJkDAFQVturmr490Ktz4tSOvuTYf9aeEAV1knmGMmx5wq a+BvD53CDurK/HjP89kmN/8PeEvjPRnC43veJTroJualBMfIQBnN4p1dUsRFR7t8KCKm 862/p1QXcXFfWe0vZFOJa7ClBwS6ate0pan8Pn663Bmqj1VXbz9SKxhCcwcwUY0Zk6T1 3Xsg== X-Gm-Message-State: AOAM531N5HFfxtrcUfxiEz99IlHSftXEKK1cFOrBMPC5t4KCwbnf9ZUI BeqdkpjH6Qzq0bKTvIkRvV1Zaw== X-Google-Smtp-Source: ABdhPJyOUq+UAaJkZIbN2IrhQOUWJFe3idwcENbpbYMWGivse7wyW6wUUyGn7bALOnLM3Ty3MaMRWQ== X-Received: by 2002:a05:6402:176d:b0:410:80df:ff8e with SMTP id da13-20020a056402176d00b0041080dfff8emr3175720edb.324.1645019392147; Wed, 16 Feb 2022 05:49:52 -0800 (PST) Received: from localhost.localdomain (cpc78119-cwma10-2-0-cust590.7-3.cable.virginm.net. [81.96.50.79]) by smtp.gmail.com with ESMTPSA id o20sm1711996edc.84.2022.02.16.05.49.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 05:49:51 -0800 (PST) From: Caleb Connolly To: caleb.connolly@linaro.org, Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Andy Gross , Bjorn Andersson , Lee Jones , Stephen Boyd , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: sumit.semwal@linaro.org, amit.pundir@linaro.org, john.stultz@linaro.org Subject: [PATCH v7 9/9] arm64: dts: qcom: sdm845-xiaomi-beryllium: enable rradc Date: Wed, 16 Feb 2022 13:49:20 +0000 Message-Id: <20220216134920.239989-10-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220216134920.239989-1-caleb.connolly@linaro.org> References: <20220216134920.239989-1-caleb.connolly@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Enable the PMI8998 RRADC. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts index 367389526b41..b3b6aa4e0fa3 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts @@ -312,6 +312,10 @@ resin { }; }; +&pmi8998_rradc { + status = "okay"; +}; + /* QUAT I2S Uses 1 I2S SD Line for audio on TAS2559/60 amplifiers */ &q6afedai { qi2s@22 {