Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1176560lqb; Thu, 30 May 2024 02:35:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRtIgX18hyzgmVvgpzc60D1yrqcFkmtBIiHKnJV0fiB62HUYwZse7ZbFjRsfgISL8rYqM9cME02Hk/l9DwydHYNbkJuXquebjLofpPwQ== X-Google-Smtp-Source: AGHT+IFoCzGHKRS3Tga/cQgRhDJQbNGeS4kaykdhWt2TG/a3y6h/iTXCQElxIw4YprPTJL7fFdeJ X-Received: by 2002:a17:906:7955:b0:a62:49ae:cd7b with SMTP id a640c23a62f3a-a65f0a6d331mr119711966b.24.1717061726673; Thu, 30 May 2024 02:35:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717061726; cv=pass; d=google.com; s=arc-20160816; b=wzA9LC0HiXU1b21DR+NKquyAHzKLchpVDXgwymPEFyzKGaW6H7IjxJfVsj/ReMZ4M2 02K13Ifeu1AZOFzTmTki7Vu8hMQC1e24otBJheYhQCPX4G+0SN63KAm7c9Jk97Hayrft veUQ337CmCzvMB8fZGcQ4xioHq2EeY1KBLbvPr24VZp3MrUEfRKhBhunsIlxfdsMh67P lDX87v8Mc2Xr1l4TQ3jYByxZfYsnDKocp/xLcW3PJVDIguAPr8iw83EIYQMAb/37xlNo PUVA338Taa+6ZELpFtUF3rrC6gyusKz1ZocEQsOmtC1NWjkjE0Tq1lSqEW42brSIvMcV Q+MA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ToPOnUT2WK9Nx6feHTnRedyzzlQdAalJ24wXgMwa6dM=; fh=ZXfN+wZM///JsMU8WNpKBiIihFR61myQ+dwPKPRBfnc=; b=x6Sl42vrbbNd7yCq+einmEaWBaqNwLzUnsoxRIhbcMTDRBjHpHiiYZUquCqeErG7u1 LkjlrjSu+iLIDMxF68TpJqMRUimapSqSUAxkCUhqXk3Ykibx4GCaLXNSLES+Y5gMYzRO lP9ugEa0q+acTzqCAwNKJaCUI/CdgDPBA6dWdorQXFZl5UPBJP0Gy4myTy/XMeyqduhn XmOplgbdogf3DQ3MMNVEmVeqOSMgi71+Gg0TS1ln8lS91jo6Eko92MdmTes3kFrpJATy SXQGzrIdf6U3x69O3cMMCgLcfRilt9lc4g0oqmenY0mcFOjpGecmgq+b2ozx1eTxCESl zfcQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=oLQ+2E+c; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-195188-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195188-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cdd15bdsi729400166b.1016.2024.05.30.02.35.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 02:35:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195188-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=oLQ+2E+c; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-195188-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195188-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 62F2E1F24C46 for ; Thu, 30 May 2024 09:35:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84AC717C7A4; Thu, 30 May 2024 09:34:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="oLQ+2E+c" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3167E1761AA; Thu, 30 May 2024 09:34:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717061671; cv=none; b=jEXfU4nqjdFQWOhbQvhUajK5Anx0h0AqIbXkn9x21ymY7zU7THXKbSTQHsbI/Nk0vnfUSBo9awumviGVEsjQ58rcHNbyzcTwZL10u6oMAC0pYG+pJyLZNn91V+vcRjAN9UHsrqU0J16DX/K5ffc3eoR0Ecure1b+M4rA/DnPXkk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717061671; c=relaxed/simple; bh=JeJtrJYP14haTBAvSSoeGgTEideRd3CraAXWHiFMcnk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Vi/QFRaQLmUjxKSI/+IQ//GDlL6Ru5Z0JMEPH/I44QJHOODR4KpREpuoU89DKuPvYbGWPBCYZatxgA7/I1E1qvAOa0apUnR4bXFbyVhD/mz+pt5tDFr03+3makDZaFLuP3NsLW35oK+scgDWJcvcO6yOCNUjP5ungUiaNG2q20M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=oLQ+2E+c; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1717061668; bh=JeJtrJYP14haTBAvSSoeGgTEideRd3CraAXWHiFMcnk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oLQ+2E+cQBx2k6JhXRhzsUjR6utDpVOzpOFCPfimc3nrmaeu+SHjrs1eOCHiQqC90 3FAPBPC6jcERo1CMU/KAqZaKz3RnKLcAp55KVrUtIW11u+l5aUzIA4ziQAVci0YEy+ e6CV5aQDJV7EHbZdrNaTV88onPAXsn4vuu64DT5GHEIvGE5ebajcKsVUnfOBYJj0tS ZlO8j00zOZKCltDB57V8G2RCeXXzXTwYm4g+F2BgI5CLkfh/yJFRzAp0BzloZQaebr nfnqSlsEqOq+xofabVMlLoklVdfNjbkcutOBJmN+RXmbKzenCtGcGITzHIP67mA9HE RCuG9HH5bpt+A== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id EFF0837821AF; Thu, 30 May 2024 09:34:26 +0000 (UTC) From: AngeloGioacchino Del Regno To: jic23@kernel.org Cc: lars@metafoo.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, lee@kernel.org, andy@kernel.org, nuno.sa@analog.com, bigunclemax@gmail.com, dlechner@baylibre.com, marius.cristea@microchip.com, marcelo.schmitt@analog.com, fr0st61te@gmail.com, mitrutzceclan@gmail.com, mike.looijmans@topic.nl, marcus.folkesson@gmail.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com Subject: [PATCH v1 3/4] mfd: mt6397-core: Add support for AUXADCs on MT6357/58/59 PMICs Date: Thu, 30 May 2024 11:34:09 +0200 Message-ID: <20240530093410.112716-4-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240530093410.112716-1-angelogioacchino.delregno@collabora.com> References: <20240530093410.112716-1-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add the relevant AUXADC driver entries to the MFD cells of the MT6357, MT6358, MT6359 PMICs to support their Auxiliary ADCs. Signed-off-by: AngeloGioacchino Del Regno --- drivers/mfd/mt6397-core.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index 4fd4a2da5ad7..c2939e785818 100644 --- a/drivers/mfd/mt6397-core.c +++ b/drivers/mfd/mt6397-core.c @@ -135,6 +135,9 @@ static const struct mfd_cell mt6323_devs[] = { static const struct mfd_cell mt6357_devs[] = { { + .name = "mt6359-auxadc", + .of_compatible = "mediatek,mt6357-auxadc" + }, { .name = "mt6357-regulator", }, { .name = "mt6357-rtc", @@ -175,6 +178,9 @@ static const struct mfd_cell mt6331_mt6332_devs[] = { static const struct mfd_cell mt6358_devs[] = { { + .name = "mt6359-auxadc", + .of_compatible = "mediatek,mt6358-auxadc" + }, { .name = "mt6358-regulator", .of_compatible = "mediatek,mt6358-regulator" }, { @@ -194,6 +200,10 @@ static const struct mfd_cell mt6358_devs[] = { }; static const struct mfd_cell mt6359_devs[] = { + { + .name = "mt6359-auxadc", + .of_compatible = "mediatek,mt6359-auxadc" + }, { .name = "mt6359-regulator", }, { .name = "mt6359-rtc", -- 2.45.1