Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp69496lqb; Tue, 4 Jun 2024 05:31:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVVDSibR9jV/hrjFQ/uMMsT+QR7yhBz1Y4uNGZjBXMDwtCnnlMDdyaF5Re476HLQlXNnxz0vd8Y+Q2/XuVZlneF0o8Av4Q80Va+yKcfjQ== X-Google-Smtp-Source: AGHT+IEAvnWU+6YwPtLQg1V2sbceuGV8YVmcuajX8JoqHYHGrBbLd2wzZ357RZonR7ud6QFOH8gD X-Received: by 2002:a05:6a20:734a:b0:1b1:d2a5:c7b1 with SMTP id adf61e73a8af0-1b26f25de52mr13342791637.49.1717504314204; Tue, 04 Jun 2024 05:31:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717504314; cv=pass; d=google.com; s=arc-20160816; b=FuALu8bOOXo/TFwuzO2/EN8Q6OU9ZwUs4Ht4R6AQtR6KHpt68+WH84Z8VR4lX5bz3R iOik1E7rI729IldcIBFaaN3StwUySqwqmLhD22c3XwZadZq7LuizqhLwvW61wh/29aVO N+H8FxJG8qrOy5fRQlpQoIAkBbc3ZOWAHkTmWCh/bD33HI/1KeNake46xdic/PGN6wAR 0VA0FEXhcxlOYVVYnMsW5rGIV+FiTNfHtWmTRJDPdZbvREXOAEQgI9wDOhSmakN6CSia 10TomfqC8Q3F9eZu4f3amTColYWOM8KTEhcqiNfqAtjS8OWSfxyW8iVpbsJ2NSSiEXao axGw== 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=5WKb59GdaZ16vWTFxCjE3qZ2BMCsjK481LH3SrRs+fk=; fh=JQ3ikGhlcptO474a/cwMfUas3YJbAJtlEXumRDo7cM4=; b=RXGIOuEYpVT7IPE5gQSdFAgEnb7obBtvIk1QnPpQ5wrDCpiknX8be7VYT/tDmkcLY6 aY2rsMBS9tIZIR5ufjaSg3wx8EDr/J8SQTDzCKk3RU0boVT+Cq0PbBJmc+0jD+cDfJ0n ibceQnTbvYciD2fHdGdWtm4/fm1M+E8eaTZLXiW6ds8ZKgF4axL7V4dR00XTgQfCpp/y 0DbjIFEypbuQr+TmkHpJ95kY9yviZSsYFEi3JIfKqMY6LY6viDESrBSf6UYBTZ05FK7Q QT9C9IlutbFiV8b8oZUQG/l37cdKhr5k0LWpeWJw04OivcJCuKUTW/3re3gU37ZZ1SYW AKiw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kDFUSPMQ; 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-200599-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200599-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f63236cb56si16451975ad.195.2024.06.04.05.31.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 05:31:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200599-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kDFUSPMQ; 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-200599-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200599-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BB0C92830B2 for ; Tue, 4 Jun 2024 12:31:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 19E96147C9B; Tue, 4 Jun 2024 12:30:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="kDFUSPMQ" 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 969751474A6; Tue, 4 Jun 2024 12:30:24 +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=1717504226; cv=none; b=oie7HRtICpsmBvlwyb0fd9M1sgkOLQqpDVmOZi1P9RvxQsF4Mj+0vVTbQgzXeR7GUCHg2WVMa+Hkt6Vhp50QGgnpFWmxUA6pD0K+4uc+tsjN8qYfJy710nIEC5EpgL9Vg/4v153j4FETSlu51omS5SGcANnxIUhRJ7DR68g6I1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717504226; c=relaxed/simple; bh=4isRwFg+lFtocx2ttK9dTVWtREPPc/h5BSwfHPf+To0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lLCbKVUQ8M6aGZHej7/EtR8HA1GXpKBieufn9LgxoJsG43Owr8/GjGuErxQ5L14d8LMnxrnZgVmkWlDSf8C8+8OcMePJEmMDD8BsKDR61862ZmVa3XVE9caydaXuWdSDiDIrpggyGS3CPROHkAcrvsyvQMlCWQxWNPVbUkfMRnM= 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=kDFUSPMQ; 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=1717504223; bh=4isRwFg+lFtocx2ttK9dTVWtREPPc/h5BSwfHPf+To0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kDFUSPMQgViXEXAe/nwxu4sO/3IfQMTtY58QNx41aL2W/3ilHMMLXOXaeW8j4WAil tqzXsdCWy+xfiFDOxInXvt1uEspY4iOgFMShoFU27mmIwC17E1kh7LpaADywBFzQMy OJEGrapfv+udD32gIHQWeoz/FqoJXW0XIgNBQvfzbwsaD0FMOHWCwYp2RLnD/dza9k K7cy6HDewopEZecN3MJmQ992Mi183dePq4gHwGpnuM4tYYNJtZxr7HWK0SU+pfgGAV ea00b2yt+WJmy5O1CZWkU37HwqNriI2KorKpLpgUCxZUaIKcM3+SaQ+M/bg8zEUT/p 9vdCQQArjPo1Q== 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 B443737821FA; Tue, 4 Jun 2024 12:30:21 +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, andy.shevchenko@gmail.com, kernel@collabora.com Subject: [PATCH v2 5/5] arm64: dts: mediatek: Add ADC node on MT6357, MT6358, MT6359 PMICs Date: Tue, 4 Jun 2024 14:30:08 +0200 Message-ID: <20240604123008.327424-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240604123008.327424-1-angelogioacchino.delregno@collabora.com> References: <20240604123008.327424-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 support for the ADC on MT6357/8/9 and keep it default enabled as this IP is always present on those PMICs. Users may use different IIO channels depending on board-specific routing. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt6357.dtsi | 5 +++++ arch/arm64/boot/dts/mediatek/mt6358.dtsi | 5 +++++ arch/arm64/boot/dts/mediatek/mt6359.dtsi | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6357.dtsi b/arch/arm64/boot/dts/mediatek/mt6357.dtsi index 3330a03c2f74..5fafa842d312 100644 --- a/arch/arm64/boot/dts/mediatek/mt6357.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt6357.dtsi @@ -10,6 +10,11 @@ &pwrap { mt6357_pmic: pmic { compatible = "mediatek,mt6357"; + pmic_adc: adc { + compatible = "mediatek,mt6357-auxadc"; + #io-channel-cells = <1>; + }; + regulators { mt6357_vproc_reg: buck-vproc { regulator-name = "vproc"; diff --git a/arch/arm64/boot/dts/mediatek/mt6358.dtsi b/arch/arm64/boot/dts/mediatek/mt6358.dtsi index a1b96013f814..641d452fbc08 100644 --- a/arch/arm64/boot/dts/mediatek/mt6358.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt6358.dtsi @@ -10,6 +10,11 @@ pmic: pmic { interrupt-controller; #interrupt-cells = <2>; + pmic_adc: adc { + compatible = "mediatek,mt6358-auxadc"; + #io-channel-cells = <1>; + }; + mt6358codec: mt6358codec { compatible = "mediatek,mt6358-sound"; mediatek,dmic-mode = <0>; /* two-wires */ diff --git a/arch/arm64/boot/dts/mediatek/mt6359.dtsi b/arch/arm64/boot/dts/mediatek/mt6359.dtsi index df3e822232d3..8e1b8c85c6ed 100644 --- a/arch/arm64/boot/dts/mediatek/mt6359.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt6359.dtsi @@ -9,6 +9,11 @@ pmic: pmic { interrupt-controller; #interrupt-cells = <2>; + pmic_adc: adc { + compatible = "mediatek,mt6359-auxadc"; + #io-channel-cells = <1>; + }; + mt6359codec: mt6359codec { }; -- 2.45.1