From nobody Tue Oct 7 03:47:38 2025 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (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 5C6AA2DE6E5; Fri, 3 Oct 2025 09:12:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759482731; cv=none; b=mv1zwjgXz9j5UPse9xIYb9eE2GgjYA0FS0ngpVFJ+5SdBLv62aUFOv18S7+aO2eziR6qNdTmzekBZfuXvlJhXZ5YINM2EwUDCEbEzZ5jkQs0fUwR8OMrsEVhNtjWVrh4uCxEeGh0bfDwgG42TRBu0EVZw1QC+apNQcIDuEu6kWs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759482731; c=relaxed/simple; bh=hXxs0guUv2+YNHky2gE0MkQPs7q5vu8jR9rLRZw+U8E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C+EFXSX3yefdcsrzwUzEFRplor6BCqSt6bq+339BaJHvvrOryCU46cz2ecOFqr3HlZ1DXjqwpfWtp/3gsONDBmdJZ0z1Dubts5KUBbw3KMfxijVY9jK5kwvg/dnPCJF5i6jAihKEhe4OCqMC9rZDinn+70T+nf/KHkiGb8EqOBA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none 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=HF/W8Eg0; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="HF/W8Eg0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1759482726; bh=hXxs0guUv2+YNHky2gE0MkQPs7q5vu8jR9rLRZw+U8E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HF/W8Eg0w9KCJhLOkOZrdGHTUmOUiW174ezeJ4/GN0FYmjZFzQntC2WDzZiBJjjgg Kqw6K6faghJpoDIGq8cwC5iRIeNl+zm07yKCwJzHiyelc3Wqwt/ol3XgRP0fQ3LIua B0UjV3fJV8m3nDvl0X2egvz6mHc4eSVbtAz+PeqrVo89cPPIEHfSX42ik+GCmra/YW lP0r9zo5jwl9QGX9wOlknrxJmpC3jiiuNXVVGP3iC10lNr5OVsXl4ZB58dT8FEsSBg R79zMD8H449kMMuE6JNk79MInKVPyC8BKvSWCNswTQTQRunCpeuN38mYE6kOpeU3m+ jahypwFme4LRA== Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (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 bali.collaboradmins.com (Postfix) with ESMTPSA id 3CD5817E108C; Fri, 3 Oct 2025 11:12:06 +0200 (CEST) From: AngeloGioacchino Del Regno To: linux-mediatek@lists.infradead.org Cc: lee@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, lgirdwood@gmail.com, broonie@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com, wenst@chromium.org, igor.belwon@mentallysanemainliners.org Subject: [PATCH v8 7/9] dt-bindings: iio: adc: mt6359: Allow reg for SPMI PMICs AuxADC Date: Fri, 3 Oct 2025 11:11:56 +0200 Message-ID: <20251003091158.26748-8-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251003091158.26748-1-angelogioacchino.delregno@collabora.com> References: <20251003091158.26748-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: quoted-printable Content-Type: text/plain; charset="utf-8" When one or multiple Auxiliary ADC IPs are embedded in a SPMI PMIC it is reachable at a specific address. Allow specifying the `reg` property and make it a required one for MediaTek MT6363/6373 PMICs as those communicate over SPMI and also disallow it for the others (as it wouldn't be applicable). Reviewed-by: Rob Herring (Arm) Signed-off-by: AngeloGioacchino Del Regno --- .../iio/adc/mediatek,mt6359-auxadc.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/mediatek,mt6359-auxa= dc.yaml b/Documentation/devicetree/bindings/iio/adc/mediatek,mt6359-auxadc.= yaml index 5d4ab701f51a..e685e5ee224a 100644 --- a/Documentation/devicetree/bindings/iio/adc/mediatek,mt6359-auxadc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/mediatek,mt6359-auxadc.yaml @@ -25,6 +25,9 @@ properties: - mediatek,mt6363-auxadc - mediatek,mt6373-auxadc =20 + reg: + maxItems: 1 + "#io-channel-cells": const: 1 =20 @@ -33,3 +36,17 @@ required: - "#io-channel-cells" =20 additionalProperties: false + +if: + properties: + compatible: + contains: + enum: + - mediatek,mt6363-auxadc + - mediatek,mt6373-auxadc +then: + required: + - reg +else: + properties: + reg: false --=20 2.51.0