From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f51.google.com (mail-oo1-f51.google.com [209.85.161.51]) (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 93A5F307AF4 for ; Thu, 19 Mar 2026 19:07:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773947229; cv=none; b=MUTC7jX+9/jGaU42Lrq04pDOF1jWK7Z/pbymz1hnlnCq5eT7B4VNRw75ApbUXmdg3HlBqTaDkD+9YUYP2GlMUnWuxiVZfHgbf/moSbAJjfIml2TVLljCjlpx2efzFCRoh3jehEDbJi1sCgWjBkPX96p+w1Kkub+7GldAlpyGvSs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773947229; c=relaxed/simple; bh=yW/IU3e25Zy4WJaB66NqymPliyoUarcBRbIx9wdpU0o=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tF5q295ibVP6aZc/KFwhLLZfquKqIFKYVgAinXmGRNmfxMnRxWyIrW6FyYImVyxbRxBC9YfdlKYEoMLAZbczJg5+gLBwoqPUUIzeHsC8IsUDrh2cmqgGBMGO25LYk8qbQusV5xI41uCbiyW3z8HL8WP3etl2ZbyRPHNgp/A2Lbo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=t1lzzWZM; arc=none smtp.client-ip=209.85.161.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="t1lzzWZM" Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-67ba58c0220so1440505eaf.0 for ; Thu, 19 Mar 2026 12:07:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1773947226; x=1774552026; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=0qCQhLNUlaK92jVRFmSRxDAiEZoE/HXa9IGlyqo2jsM=; b=t1lzzWZM5ng5qbMQmo3Orles0xIKvcsBntpdGd156f1a/3+T0aoVBC49MBXw6II3xM a8GLgmHLbgL8DSBiciq3XFuRlmtiLFDnQUxaymVDG2gNKhpG91/STY/Kjxj8zBFwzqNM ogiEzaGXs2+PsNZ+YYQyZWNk6x3Q32bGKzRiUUIRzfHeiXFcj2TcKjyedSMUvfL0TFQf rcRCRXUenUqw9wdRj4cQW12JSEjg/Onsb+KBYPWf65GKmn6Ex+NVAH/lsY3OI2rrMTJh LTyXVvpcmykCGXKtOxWs5xUMgdXb3BgAeMvxj2qFo/XJ38XiBuCVeUIBV33K4UHYfBe2 zEKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773947226; x=1774552026; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0qCQhLNUlaK92jVRFmSRxDAiEZoE/HXa9IGlyqo2jsM=; b=dzk9q90JK1xwFe+qcYjLw5tEHe/pmcry6rq8K0O58FK36PwoXDUoQRT2MbU6v95Q4Z DntjQjshooB3iME0a3WvIEiYtbRtLm0SGzTU0m+SFmRinkk65uD4y0Z75nriyjEgvOu0 L+YsE1hP/NgfkVWzDLnkmoevImh9zBGmJl2ap1kgpgjnmUUwBw1ernAHqkOv73axEyxb EIWJnKemCK3omXoxCGN/fcnJWqrzPtfcr1l2GqXikxrMnHVCtZC46OgPc/hOUAeAUu4P zX0eb8kAF303P5mgk63TgnVUQsOqYL5CvCPitpjwpTz93xP/cbkrMqckTf0mxE8rLqMB lMPA== X-Forwarded-Encrypted: i=1; AJvYcCV339gwysZdP5qrNkluzI6LJ3VP59I01Xldqy9AJSKRw/XUdd/QIY/Im5xyO9trh5o0V85Wq68vEAjDv4Q=@vger.kernel.org X-Gm-Message-State: AOJu0YyOmCOgQmvotwLe2rbmnHPgMjiT/PetvUNNfJnzPsb2iMIXtyh9 h+aAAs1IdzBJ0OKEjg/+0ARSfquS0v9M5anEBQX//faUxXn8kuWpj1KQL+fezVzwpzA= X-Gm-Gg: ATEYQzyEb5RdtM5lTWy9f8QZY77MtYVMsDirxLEl3xojJNE6OCIeoSE60p082HytqmC +7vUF2/Sjq4epXeCgcgBxu1/DNOWY6rjxSVgjRtow8GmYE5u3vwEWRk5I7P1Nb0r0SB94n4r1eF VdTnt7RhHyB22uQnUmruA4JYZk1ePhBZ4evoRPWR0THwhaPWf3WX+CDEj1p27qnDYLu95ck+HPe zb05TH05oE7PZ4TRIIVNy3RPyS6mZOZhvgKNfwCpkEepmRl6OZapEKTCDxQJ8OgNxYMFE8GEKDe FYxJLKCFVKTFdr4lBbHzMuGDmwxCvdHEezhs6XCXpuyNguNZe9QAmAAS3fvTpxxnw0BxcwSSB3P o3sFQ/m+EgO3DfMXjUGTojoo7GlmzoJppuxrXbUYk5v+w22OESDy55ARg9TxkmobX6myiNmd0gb QhPZJpHiH/+6vqu88kN9KXH1Z/HLLvtSA15IPTYAw/NfiYtqHbDYK784A6fGYIcs9G4SvXl/4zw l+sNFClcjBA X-Received: by 2002:a05:6820:806:b0:67b:a4cb:293f with SMTP id 006d021491bc7-67c235fb70fmr249017eaf.17.1773947226499; Thu, 19 Mar 2026 12:07:06 -0700 (PDT) Received: from ?IPV6:2600:8803:e7e4:500:244c:fc8c:8216:1344? ([2600:8803:e7e4:500:244c:fc8c:8216:1344]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-67c0d724e53sm3921843eaf.0.2026.03.19.12.07.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Mar 2026 12:07:06 -0700 (PDT) Message-ID: Date: Thu, 19 Mar 2026 14:07:04 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 5/5] dt-bindings: iio: adc: xilinx-xadc: convert to YAML format To: Krzysztof Kozlowski , Sai Krishna Potthuri Cc: Jonathan Cameron , Nuno Sa , Andy Shevchenko , Michal Simek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, saikrishna12468@gmail.com, git@amd.com References: <20260220053941.611415-1-sai.krishna.potthuri@amd.com> <20260220053941.611415-6-sai.krishna.potthuri@amd.com> <20260221-dancing-papaya-wolverine-db8afd@quoll> <21d425bc-9406-401b-9817-7255ba3d31fc@baylibre.com> <05bcc5b7-b3e8-40fb-be70-413c74afcfb1@amd.com> <6a4e3d95-875f-4c2b-8443-c2f2b19ff166@amd.com> <12a06779-cbbb-4dc2-b564-7b9cdff6796b@kernel.org> Content-Language: en-US From: David Lechner In-Reply-To: <12a06779-cbbb-4dc2-b564-7b9cdff6796b@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 3/19/26 11:49 AM, Krzysztof Kozlowski wrote: > On 19/03/2026 16:49, Sai Krishna Potthuri wrote: >>>>>>>>> >>>>>>>>>> + >>>>>>>>>> +$defs: >>>>>>>>> >>>>>>>>> Why this is a def, not used directly? I see only one usage of this def. >>>>>>>> >>>>>>>> I am getting the below error if i define the patternProperties directly. >>>>>>>> Seems like complex vendor peroperties should be referenced via $ref. >>>>>>>> Please suggest if there is any better way to deal this. >>>>>>> >>>>>>> It is hard to say without seeing the new version of what you wrote. >>>>>> >>>>>> In v1 series, i created $def and referenced this in xlnx,channels to avoid the error that i mentioned. >>>>> >>>>> Is the code below the code that causes the error? >>>> >>>> No, the below code is not creating the error but Krzysztof asked the question on this code, >>>> "Why this is a def, not used directly? I see only one usage of this def." >>>> >>>> I am saying if i don't use the def and use it directly i am seeing the error that i mentioned. So, asking is there any better way to handle this case other than using def. >>> >>> If you could show us the actual code that is causing the error, then >>> we could perhaps spot a mistake or suggest an alternative. > > Thanks David, I am surprised how many emails we need to exchange just to > see the actual code. > >> >> Thanks. Here is the code that is causing the error >> ("properties:xlnx,channels:type: 'boolean' was expected"). >> >> xlnx,channels: > > Device nodes do not have any prefixes. Just take a look at any DTS or > any binding. > > Probably that's the reason, because nothing in this code looks > particularly odd. Anyway, please do not come with odd syntax in the code > without any explanation, just to make it passing the tests, so for > example ignoring the checks we have. > > > Best regards, > Krzysztof Since this is converting existing 12-years-old .txt bindings, I don't think we can "fix" the bindings by dropping the vendor prefix. I think in cases like this, Rob will usually fix the tooling to ignore this as a special case. (I had a similar case last year on a conversion I did.) So I think the right thing to do is to not use $def and explain in the commit message why the error is expected (we can't change existing bindings even though they are "wrong" by current standards). If this was a new binding, we should be using the common adc.yaml for IIO ADCs which already has patterProperties for channels and a bipolar flag. But we are stuck with this vendor-prefixed one here.