Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3792736rdb; Wed, 27 Dec 2023 23:09:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IE2Vpnm5FzD8vkYC3L4VknoZG+V9X0JPOAU/PF4TvtppVb2CrKDLhiH5xOBocJr+vihropN X-Received: by 2002:a17:907:786:b0:a27:4cb0:b862 with SMTP id xd6-20020a170907078600b00a274cb0b862mr2753481ejb.0.1703747390331; Wed, 27 Dec 2023 23:09:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703747390; cv=none; d=google.com; s=arc-20160816; b=LmSBFNlnHvYwU45n5S0SWip/9chuFtHYmLmgD6Z3QCM0dz+PHo7uz2srQoO+cJJIK+ ufiviAmZX0IViCxnspYDZgmHSGFkrsBrIGqczDZU/rBbaKKLwf08Y0JuIE2y0wzWyXTB 2BSj2L/BX7s3DQcBIeFfnI3KZMPjnpODfsxhxZJdauhQXzUUB5fVcFFzALvQRmw7/ooe RuUf9lv990ueA1ZS2OJ9LEP3zHFFJvQMCjMiVhxzgLL75DpgqJjDPvSVG9yEe+ZL8sBw QKtWQ0UOBjbLOuNqy6j5lRBmbyUtsrVGo+H1vKzuUHFXSR5CXySLh9m3bHeZb0mNXO8Y mxQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=B5CoDrsJT4WQxjKaOLj/1Lwxi6E5LUOR3r0lk7wg4FY=; fh=reXngzGyi4+V4rM9HhH9d3cySb1LlWGAg4Ev4GXHm6o=; b=RrmXqjFTzGlDMXYX6fU4HTCT6ZWmAFwxMGhhKsf99YUi389eskW7MCTUZSJNK4XQfA ZpTMMILE783G1HPT4EPqYU/1/qqv2nukEDk+qGvm4QkRBK+BiAmPhZhloDmU5kz+Ml1c dLEwAYSgtqlzm4ujkdgnfjsTBdVI7SbCx6iOFGUAtbpFSBuq6XomDE0qqART4qSA/wby nB6qyGAAH7Jn/n6KtXSYRK+B92jdCiyLHRSPaNx6f/9BGNUO72dMTWvDEBZ1Hcq6TDkR t/rKfj2H45cxtJa60THmYaDAZ0ZRhRukdEiquHnswOedVJ2XKzAxKb4XAUXoVXVl7JBo RPyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fd2+Sdve; spf=pass (google.com: domain of linux-kernel+bounces-12474-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12474-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y17-20020a1709060bd100b00a271c6df7c5si1941784ejg.245.2023.12.27.23.09.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 23:09:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12474-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fd2+Sdve; spf=pass (google.com: domain of linux-kernel+bounces-12474-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12474-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 E1B811F226AE for ; Thu, 28 Dec 2023 07:09:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1498C4411; Thu, 28 Dec 2023 07:09:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Fd2+Sdve" X-Original-To: linux-kernel@vger.kernel.org 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 C06953C0E for ; Thu, 28 Dec 2023 07:09:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-40d604b4b30so4893935e9.1 for ; Wed, 27 Dec 2023 23:09:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703747377; x=1704352177; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=B5CoDrsJT4WQxjKaOLj/1Lwxi6E5LUOR3r0lk7wg4FY=; b=Fd2+SdveVSxsqh/SvTb1g3SSeltmA23rfHYQ0Zx2XXAWBitBkawX/YMvMxHlPjll6f +z7LUPVsZihmQFveW5Mp3TLmhPyi171ZLMb7gqHOmm8wIeWew5YEmVVls1c9XfRpnxgg ki+DEWv+BtCqCpoJaPw4ejNI61eESbz0EhF8js96LwJ9m3VeJYiH/7vRRfEbeFxgSsjO X1EAh2xBN3vA7PxWcPLV7zamzwvMLW1MacJHw45QDP+Qw0hVNUda+cocqf5dbL77f2QM WY7zg7HtTfMIY7J85fXoy/7u7N9V4/glDW/YNKSRyC0R9EEDd5IBsShMakfdf0wJ7qSs /OVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703747377; x=1704352177; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=B5CoDrsJT4WQxjKaOLj/1Lwxi6E5LUOR3r0lk7wg4FY=; b=susL96rg1Ginu1OpPPyWuAkXu0HPJtFZKdJKagaWhGSF1+VjojVryFFab9vFIozzLq PnTisLdOcVPFDM7Y1iXkVV+7Z8ACEB7az6E1N9WyXOiCRTvsJSMtZS+5sWXBxzFUM0B/ 1a/pta4VKrI95fL24fbKBbz0Iwd+EkmHWtJZ68O2dnkagvvxumoNHlMknSQF0oXmKY/2 FSwc4GtZVZs1csqBp9sGN5dC88SYp1f+m6bRaGw/8GdNwhOyNG9XcGkRHsEocsFEM1S+ NBZuSnr5P3b2rjKpwp6gw35Va08/XliTVlKTBiPWxA2ET6ixV84QV798WJMgSg6Zkswv v+EA== X-Gm-Message-State: AOJu0Yx8CkvPRkDjgFXFDggR5BW1rDE6owphEshtXAEleFeNar5e5Tkz AgQpVKwBvmmXulqhA4CweQqO207NhvnqZA== X-Received: by 2002:a05:600c:4705:b0:40b:5e4a:2348 with SMTP id v5-20020a05600c470500b0040b5e4a2348mr4811417wmo.74.1703747376998; Wed, 27 Dec 2023 23:09:36 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id r20-20020a05600c459400b0040c3dcc36e6sm26334107wmo.47.2023.12.27.23.09.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Dec 2023 23:09:36 -0800 (PST) Message-ID: Date: Thu, 28 Dec 2023 08:09:35 +0100 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 1/2] dt-bindings: iio: adc: rtq6056: add support for the whole RTQ6056 family Content-Language: en-US To: ChiYuan Huang Cc: Jonathan Cameron , Krzysztof Kozlowski , Conor Dooley , Lars-Peter Clausen , Rob Herring , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <1703562468-29052-1-git-send-email-cy_huang@richtek.com> <1703562468-29052-2-git-send-email-cy_huang@richtek.com> <9715ed9d-7edf-430c-808c-00e7748bc59a@linaro.org> <20231226111921.GA22684@linuxcarl2.richtek.com> <0f1f0991-9ad9-4216-afc8-8340eddb1ad9@linaro.org> <20231228031929.GA32046@linuxcarl2.richtek.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68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47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231228031929.GA32046@linuxcarl2.richtek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 28/12/2023 04:19, ChiYuan Huang wrote: > On Tue, Dec 26, 2023 at 01:12:50PM +0100, Krzysztof Kozlowski wrote: >> On 26/12/2023 12:19, ChiYuan Huang wrote: >>> On Tue, Dec 26, 2023 at 10:18:47AM +0100, Krzysztof Kozlowski wrote: >>>> On 26/12/2023 04:47, cy_huang@richtek.com wrote: >>>>> From: ChiYuan Huang >>>>> >>>>> Add compatible support for RTQ6053 and RTQ6059. >>>>> >>>>> Signed-off-by: ChiYuan Huang >>>>> --- >>>>> .../devicetree/bindings/iio/adc/richtek,rtq6056.yaml | 5 ++++- >>>>> 1 file changed, 4 insertions(+), 1 deletion(-) >>>>> >>>>> diff --git a/Documentation/devicetree/bindings/iio/adc/richtek,rtq6056.yaml b/Documentation/devicetree/bindings/iio/adc/richtek,rtq6056.yaml >>>>> index 88e008629ea8..d1e1f36d1972 100644 >>>>> --- a/Documentation/devicetree/bindings/iio/adc/richtek,rtq6056.yaml >>>>> +++ b/Documentation/devicetree/bindings/iio/adc/richtek,rtq6056.yaml >>>>> @@ -25,7 +25,10 @@ description: | >>>>> >>>>> properties: >>>>> compatible: >>>>> - const: richtek,rtq6056 >>>>> + enum: >>>>> + - richtek,rtq6053 >>>>> + - richtek,rtq6056 >>>> >>>> Aren't these devices compatible? Your driver change says they are, so >>>> express compatibility with list here (and oneOf). >>>> >>> Thanks, I try to take other binding as the reference. One more question. >>> If rtq6053 is compatible with rtq6056, there's only chip package type difference. >>> Do I need to seperate it into a dedicated enum element? >>> Or just put it into one item and said this part number is compatible with rtq6056? >> >> See example-schema. You need enum and items, both in oneOf:. >> > After reading the 'example-schema', I Still cannot understand what the special case items > means. What is "special case items"? > > But in my case, is the below change correct? > [Diff] > properties: > compatible: > - enum: > - - richtek,rtq6053 > - - richtek,rtq6056 > - - richtek,rtq6059 > + oneOf: > + - items: > + - enum: > + - richtek,rtq6053 > + - richtek,rtq6056 > + - richtek,rtq6059 This changes nothing, you still have just one item. The example-schema has exactly that case, so why you are coding it differently? Anyway, test your DTS with the fallback, you will see that above does not work. Best regards, Krzysztof