Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2752929rdb; Tue, 26 Dec 2023 04:13:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6pOEEYh6y0gGa3y3TkXmU2LWHfQA2D+LRqBw2znWpcVj5+h2FfCb9kERwXt1bH2VdqcTN X-Received: by 2002:a05:622a:316:b0:425:4043:1da8 with SMTP id q22-20020a05622a031600b0042540431da8mr9983827qtw.123.1703592784334; Tue, 26 Dec 2023 04:13:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703592784; cv=none; d=google.com; s=arc-20160816; b=eB1UPiDqSgYJ8J0AVWmD50TPTAUNB7oMeVQg935lpnsRgM7up5CPjx33ZA7+9O86V/ EUbNM6sNXHjtvLd/x5/C5fqyOtNC9ed9ElvSwK3/JOPf5h0on2Y6s8pni5BZBuhGTiaD J96yxcv4WZiHJK3bYXC1gk9271SFHK+26ciaMXZw55OZNTP+1RparMIhqDwL7EZ1Kkx5 Ypvn8DBgTrMRE96cpdDJ5atcLdixKUN5kBDgk2AeGCBfMEtLpNZwB4fVz04k6MMIaZz3 0PfAoOTp8kdV7vslx49r6duTvdxncc/La12hwf2IDsgBvK3iTRd5mUb1+utmHBG1F8O+ wxEw== 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 :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=jtaM2b6oovv3VEFVs42AfAV1uVRd9vO3ycvBmWCiu84=; fh=reXngzGyi4+V4rM9HhH9d3cySb1LlWGAg4Ev4GXHm6o=; b=E227MvxQ8382rd4phgKQqKhBzSjiQoN+gYxzdsG757Etcoj1bKddS5/tqYElgjRdrQ pefAh9bFOra7E5UtpO9oFQvB6UatMsu/Lk07MQ4oCU7zKUYerZl5oCcuEzbheRKUGOht 2BPZeVMQPOdgORR1hb05SARVLem3nwFYBVUNS7Ck1gJTj2jTlhKv3l06VPhpS4Lxt7Q2 j3l4x83cRfzR+G5dcb1xLJaqRoJqgyXZRowVfaoqewtR7AqwOaLUiSAfhV0GRz8bYEow AhCCRd2tbhw80GqLJcEQqa4mq9WlRy/qw5zVYyj2YkP+27Atk2IBb3NgvSW8XAsSmAJz N5HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ra0guoUs; spf=pass (google.com: domain of linux-kernel+bounces-11498-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11498-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z20-20020a05622a061400b0042588fe5ea0si12745492qta.360.2023.12.26.04.13.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 04:13:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11498-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ra0guoUs; spf=pass (google.com: domain of linux-kernel+bounces-11498-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11498-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BE83B1C20C5A for ; Tue, 26 Dec 2023 12:13:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DD0A4E619; Tue, 26 Dec 2023 12:12:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ra0guoUs" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (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 AE2CF4E607 for ; Tue, 26 Dec 2023 12:12:54 +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-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5537dd673e5so3477604a12.0 for ; Tue, 26 Dec 2023 04:12:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703592773; x=1704197573; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=jtaM2b6oovv3VEFVs42AfAV1uVRd9vO3ycvBmWCiu84=; b=ra0guoUs9ksspI4cmT0Xdw39lEr2kYSWFp5wYIv1OpZGZECW9KKNNJzA8g68SgcvYW QBNHpJdt91v2V7y4GziWi13hbfNyqDDQzUgCfV82YiOeF6SJAAVnIXsz9C4suC0nyvGz pRmF0PGINCynxXbyDlq0hdGyNeb0JxAMA5rzTnTm+dRWBkV19eaYyjW5S7Kr1sgblUod 7kY4Kb6JFuIYYW+y/eLP3XFKjcmiB3C6ATjrbIfl5Hk939WAJzSErwAx9z+PW3winQNQ ucdozg+Tdf38PfbrCrEsYIkOyPLV1GLXKc6y2JoYVHyJhyRX8fSExo4fJADD66K3K6sA 1saw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703592773; x=1704197573; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jtaM2b6oovv3VEFVs42AfAV1uVRd9vO3ycvBmWCiu84=; b=XlRqP4svdG+mNDpPYIz23TWDqV8G9iI1CL9HATZss4Jv1yMZVp51xq0ItPxfTOd4RH iTb+i2v42vQZiR2uqjeiQ5cjmbjLCdOFl8I73uwmjDoAHyDhikrSjWl30kUYZMLAId+q U24uklnVK8xrCnj+WaPOMigwDi11ZtJ18MKgvtxzUg6lvT8B9VrXQpPtSJWSyoYmkgqL snHCmTDzGjrrUR8ndev8yiuR71VVr4Y6VFEc48L08NOYvceMk7rGC9D/g0u13d66EuCY L42NLlv6jtSKHvCFANbRJnkNteIweLbMM2cdP/b/FGZcGWF6ZJdlB7Tz/HOlBj/0X7Ls F6gg== X-Gm-Message-State: AOJu0YwfHAZ9hq0Y2oTmrexvpwO6xMNW0oViOZAcyDuY/OF/BX51e+mx h0wJtUmHF4xK6SRiDmDRHEjNPG/dBEBWzw== X-Received: by 2002:a05:6402:888:b0:554:ca00:287c with SMTP id e8-20020a056402088800b00554ca00287cmr2664280edy.61.1703592772905; Tue, 26 Dec 2023 04:12:52 -0800 (PST) Received: from [192.168.0.22] ([78.10.206.178]) by smtp.gmail.com with ESMTPSA id p2-20020a056402044200b005553a8bb61dsm193434edw.87.2023.12.26.04.12.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Dec 2023 04:12:52 -0800 (PST) Message-ID: <0f1f0991-9ad9-4216-afc8-8340eddb1ad9@linaro.org> Date: Tue, 26 Dec 2023 13:12:50 +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 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> Content-Language: en-US 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/BIfXXfC68nMp9BZoy3So4Z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dybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231226111921.GA22684@linuxcarl2.richtek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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:. Best regards, Krzysztof