From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2C84313551 for ; Sun, 10 May 2026 14:40:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778424031; cv=none; b=Cr+KQJZiy/pjVtigDBBmLOS5Z3Qmmsd//NaosOCaAkXC4z4UVZI/BCkNVLUlsWAmKTPikjetsg5yijmAO1ZZQaSfTIRd71Gfl30e2GHXWdASTkEZc2jRuSiURXc6TY6fRZVTCe0f+8tiyx6a41aey8h3dSapgj78gBkssRK2Ys8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778424031; c=relaxed/simple; bh=5hMtyrpO4o/xrWDyBZAdZa2vglyjgQ5ZkQbZ7oKGLqM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=C9piGm3z8StSu68OnDv5EiSaRGU8RAcxotCQRiRFm39aKfmCseT2skq2rVqmziIBza0bcIQKjpNqNJV30zQmqv8yN+yEYUyKP12Qm3Mb6LHUcHB2+TAXhoWLOUiOMHw/xc7a50SXWUShnOUrhjgrGITR0mypUnO50cBO2CtuUe4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kqpVP75G; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kqpVP75G" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-488d2079582so37509185e9.2 for ; Sun, 10 May 2026 07:40:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778424028; x=1779028828; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hiN95M/W3RKJE3egtZ7DgExVN40C9ma45InA4oM+ByQ=; b=kqpVP75GftTV6QggqGSG+9c4FfdACTr8KuWJBr2LQ59IkmzFtJ/UhMYYD3Fa7sOZUC WZdrovplik/r8CbHESTNgAci/20KQwkZwq5EwCrUCV8KVsN1Wb3w6eUVqdXcMmWREkwO zAeBsFbOScmI9ydfvasdSGXkA4lftCOnc85Oi8/j8KZsHkS4VJD1ENNTYHGSl49xyGA8 k+PVeljTdKfHgpEQQxA0Q0GRL1PBcPBuk0+esP2W+8yCQuIx7Un2N9ksY6RPTC27UwKo 5IUaM+xvK8JVZkVtFnDsB/cU2hiWR3v5Z/qCnGJNqi7sCKEFWPbW8xP2zyKtuI/QT42q s7Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778424028; x=1779028828; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=hiN95M/W3RKJE3egtZ7DgExVN40C9ma45InA4oM+ByQ=; b=EbHBTMNfcGG7TF3lhRdwFry1Ph9dQ006T0S7jBwppvEPnWUgLtyYB4S0PNI7n4p1Ms PUr/HV3UeoWPE2+RjrsxZjJDaVq2AgL4YMXrfdH3eylc6wm0YuMTMVbJtsrWxEQ6OfNZ BJQu0I1lYODzhTCW6rS0VMcsva0FnbYtozjXseBmD93rqhMtgKASjSdve5kqkzqAcPMO RDTh+4XC981FKk7/YKWGxStjkyQpUIorSARWaGx8/0eHBUsYCpMdOmqfR1vbaC8YVcoG x3CeJjCTsYRsp/mFzCsyLQeDDWP2UIKfkl/XqiDpQ+S3NkbqyE6yfoBs8Jx910IsBiDL eRdA== X-Forwarded-Encrypted: i=1; AFNElJ+1z10vuM5doEatEUA8k/VrvxzY+46epyD7nFafo6JPSFGQ4KBh/QYlY8tqpuYVTQEKby4OFR0/xVhr@vger.kernel.org X-Gm-Message-State: AOJu0YxO4YJC1+m0MCeHHLuVbcpo4uQHM7K2LsV3nhCOYp3wI6ARbkjK 0N4nT8fr+e77LxPybl82JDK01S3ILA2wJZjBhTojWlnB6Zg4omGFiZdG X-Gm-Gg: Acq92OFf6vxTQE4KWIRZOPurm8jjxlQX9TE8pD4XaBqj7YiCDxhYtLtkMcEgRZo4jug 7ylfB8IG5mSg7CpjzmM1vj3DmcFkK11bEFQalkLImV3OjGDOheDcPQXIZkLG4BOOT9Swx3mqz93 RCLwtXsdMourVli6SgPadOUpinGvqRnOzpPhxTvxr/P8oiBjs/soJiZhdaxdxgr1BakEUZ9Vj6i b0ll9r+RFxuyYSJio2k/xvZBJJX7/izCuP0KAIErfO3v1U0cE5IGwSzYjgLmBOXrCPdWFut2dCi U3sG9J6idSTdIPCqhBdYhYevv7QWOORd5ASBSVZiXQRao+lk8PZ5rG1Uj7H64vQu3WGrmATQdcD C8nHL8Ur1bQAl1yxuwd2Q8uz6yKmK7PwRxorTpuXL25yuy8g5X/cwuBPubVprp5AIqnyeUtTbIn KOmwdPCK7eqoQ6o+wxrPivQo+WGdjyLeEtMPs2WVp7Z2WJA/jm55FQ4sO8PON/GUiaHt2295LLY ACXZ2lN X-Received: by 2002:a05:600c:4512:b0:489:284:44ab with SMTP id 5b1f17b1804b1-48e51e1deedmr319196545e9.12.1778424028175; Sun, 10 May 2026 07:40:28 -0700 (PDT) Received: from jernej-laptop.localnet (46-150-62-216.dynamic.telemach.net. [46.150.62.216]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e6db09943sm44844115e9.19.2026.05.10.07.40.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2026 07:40:27 -0700 (PDT) From: Jernej =?UTF-8?B?xaBrcmFiZWM=?= To: Jonathan Cameron , David Lechner , Nuno =?UTF-8?B?U8Oh?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Samuel Holland , Maksim Kiselev , Michal Piekos Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Michal Piekos Subject: Re: [PATCH 1/3] dt-bindings: iio: adc: Add GPADC for Allwinner A523 Date: Sun, 10 May 2026 16:40:26 +0200 Message-ID: <5JZHjuPfR4qv95vQhkLpDg@gmail.com> In-Reply-To: <20260510-sunxi-a523-gpadc-v1-1-4f6b0f4000fb@mmpsystems.pl> References: <20260510-sunxi-a523-gpadc-v1-0-4f6b0f4000fb@mmpsystems.pl> <20260510-sunxi-a523-gpadc-v1-1-4f6b0f4000fb@mmpsystems.pl> Precedence: bulk X-Mailing-List: devicetree@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" Dne nedelja, 10. maj 2026 ob 14:57:22 Srednjeevropski poletni =C4=8Das je M= ichal Piekos napisal(a): > Add support for the GPADC for the Allwinner A523. It differs from the > D1/T113s/R329/T507 by having two clocks. >=20 > Signed-off-by: Michal Piekos > --- > .../iio/adc/allwinner,sun20i-d1-gpadc.yaml | 37 ++++++++++++++++= +++++- > 1 file changed, 36 insertions(+), 1 deletion(-) >=20 > diff --git a/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d= 1-gpadc.yaml b/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d= 1-gpadc.yaml > index da605a051b94..89da96cd705f 100644 > --- a/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d1-gpadc= =2Eyaml > +++ b/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d1-gpadc= =2Eyaml > @@ -17,6 +17,7 @@ properties: > - items: > - enum: > - allwinner,sun50i-h616-gpadc > + - allwinner,sun55i-a523-gpadc It shouldn't be combined if it has different number of clocks. Best regards, Jernej > - const: allwinner,sun20i-d1-gpadc > =20 > "#io-channel-cells": > @@ -29,7 +30,12 @@ properties: > const: 0 > =20 > clocks: > - maxItems: 1 > + minItems: 1 > + maxItems: 2 > + > + clock-names: > + minItems: 1 > + maxItems: 2 > =20 > interrupts: > maxItems: 1 > @@ -40,6 +46,35 @@ properties: > resets: > maxItems: 1 > =20 > +allOf: > + - if: > + properties: > + compatible: > + items: > + - const: allwinner,sun55i-a523-gpadc > + - const: allwinner,sun20i-d1-gpadc > + then: > + properties: > + clocks: > + minItems: 2 > + maxItems: 2 > + items: > + - description: Bus clock > + - description: Module clock > + clock-names: > + minItems: 2 > + maxItems: 2 > + items: > + - const: bus > + - const: mod > + required: > + - clock-names > + else: > + properties: > + clocks: > + maxItems: 1 > + clock-names: false > + > patternProperties: > "^channel@[0-9a-f]+$": > $ref: adc.yaml >=20 >=20