Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7897601rwl; Tue, 10 Jan 2023 06:45:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXshgoG2+kAxk2vzJlGnzxaajWuth4O2qMBCIPWcaL84ZGWd1y0BGavb8ULCJQawaoK28Rab X-Received: by 2002:a05:6402:448a:b0:481:9219:f603 with SMTP id er10-20020a056402448a00b004819219f603mr53139822edb.28.1673361927599; Tue, 10 Jan 2023 06:45:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673361927; cv=none; d=google.com; s=arc-20160816; b=gqosMk7R81KUSSsBZxJ/1LFELmx6LwlQXbNdwFxU6xBZf1+f+Kw0uH3KxLlNSyT+Py bJ6hNFqUJpYRFo5I5/nMx5/nqzA9YWBr7TJ3oBj44bRATfZBvbCbFNXXcWEj/wRGuAg1 908Qgxh03Qf815af6rhPEYgAJSVa3eq5A4J8zywF+d+TQ1EKa93G3vcMch89NfDLYBiX 8qbr7T/fDGZoYcJ/VSWt1we/+LbbDyaWnVxXkg0LRdyaYcmn/ThBbnjv+tYvuz/TRvwq r14fS7KLgHyjCSjUg/56fUw35cTJ5z8iPfNkpyNEZFM99zZk8aHe2+Ya43UzwUmVRPhx 0oJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ez2mZli6D06vZpdj4fXBsrJU+DkfzTuM1pJBzBkzGOU=; b=Qq3luyLMy96mXcqTGM9tTJWisp5IXYKTTFzZ1v06NDGfwysv0QsJ4Otp06n2DAb2rI 16uP+hWqgnwvoxcL71dGzT0LH9rrVIGMpnDXfm/zZNJvx303ZbQJb3EhIgptXpzu+0K6 i9Dznyp/koDInVc2E1ehhLavPoo1NLBXJnHr49p+zuojXX6434DlEldvxEmMvAKgJJIo PtGUO/LcQBwlysKk5KYenOgWcNpKRm213MEX4u/sh7kUx2xAWs0hw+h8jy2f+Huph8zP tyf0DcCqI8MdIbyoe1cVCoabdIASrailxK8YR3h5hTUTRcK6qIx9UOT7JWuOtmnFTfry HGnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pMn1XzDI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12-20020a056402280c00b00482f01ff579si13793023ede.131.2023.01.10.06.45.15; Tue, 10 Jan 2023 06:45:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pMn1XzDI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234485AbjAJOUe (ORCPT + 53 others); Tue, 10 Jan 2023 09:20:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238489AbjAJOUX (ORCPT ); Tue, 10 Jan 2023 09:20:23 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F255544FD; Tue, 10 Jan 2023 06:20:22 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id d9so13290091pll.9; Tue, 10 Jan 2023 06:20:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ez2mZli6D06vZpdj4fXBsrJU+DkfzTuM1pJBzBkzGOU=; b=pMn1XzDI8soISX6QvuSzywsxG2OGaFx2QfNF13+6gyhTHCwY7T495EGEpEkIz5hJBz K8Znv2KBwAa/InabxejBPMns29dvx95bE68Y3a/xTGEAWtZgtOsIjlH0A73QDW2Pp4g2 SdU6Hifk8Ln01nEPtlu4dhatfZdS6UbiwpuQazNWzX1KnqsZ26+ENjni4aQUXCUTrdAb A4cEjIBZ+t/D5kB1ApdE+yfumw4phqNtbuvI1j8/7Nc3fTrY++AId5bvYgCdjiIOZ3ZA YNi1BySOvJJ/ATq7GIHVBV9ZNvIVNasKicCB0Hd+52rTpzk6AwHBZF6DLczmUxCVIbdZ OTMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to: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=ez2mZli6D06vZpdj4fXBsrJU+DkfzTuM1pJBzBkzGOU=; b=0LqZOhjj5A38TBhWpcBcKRVrsooetD320ZlbhnooPJTalDAic9b+RwCCzkYb9xn8Zx VPr97lJbKxtWtE7Wr8fnEJbEBfGYaXmb7a8F8esEIRYQJ96Ibn+euDbiutxUzwvt+o9Y sfNlAkuoMZbxDOy53/AJwJAokNtmYO6FFH/IkMSMkEX80N/Rj2+OUXUlAwcEV7CfJPPX PDJUQG77zNbmPUmv4+jgbH3Zvi/leEF5gtHpu9ss67l/N0sBXHMsN20W9HF+8rC+a4QM mGGHQhXczDCJCKsDuNfNyUFZqK5T1+rjW7pWk/UwbPenbIwPU5SSNObOKmsfm/kD9niU X1kQ== X-Gm-Message-State: AFqh2krYGJdD6m2Q6pKqUfa53k4bzEisuYss2rdNJ+HYJdIwymEd818G /QyTevXbAlz7/I8F42bEaNTr4tU4eMm11g== X-Received: by 2002:a05:6a20:9e05:b0:af:9391:449 with SMTP id ms5-20020a056a209e0500b000af93910449mr81224968pzb.45.1673360421678; Tue, 10 Jan 2023 06:20:21 -0800 (PST) Received: from [172.30.1.1] ([14.32.163.5]) by smtp.gmail.com with ESMTPSA id r1-20020a654981000000b004785c24ffb4sm6933674pgs.26.2023.01.10.06.20.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Jan 2023 06:20:21 -0800 (PST) Message-ID: <034265a5-0e16-d217-ad1d-e0a83f8440a4@gmail.com> Date: Tue, 10 Jan 2023 23:20:15 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v4 1/2 RESEND] dt-bindings: pm8941-misc: Fix usb_id and usb_vbus definitions Content-Language: en-US To: Bryan O'Donoghue , cw00.choi@samsung.com, myungjoo.ham@samsung.com, andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, gregkh@linuxfoundation.org, agross@kernel.org Cc: konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Marijn Suijten References: <20221228133058.213886-1-bryan.odonoghue@linaro.org> <20221228133058.213886-2-bryan.odonoghue@linaro.org> From: Chanwoo Choi In-Reply-To: <20221228133058.213886-2-bryan.odonoghue@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22. 12. 28. 22:30, Bryan O'Donoghue wrote: > dts validation is throwing an error for me on 8916 and 8939 with > extcon@1300. In that case we have usb_vbus but not usb_id. > > It wasn't immediately obvious if there was a valid use-case for the > existing code for usb_id in isolation, however discussing further, we > concluded that usb_id, usb_vbus or (usb_id | usb_vbus) are valid > combinations as an external IC may be responsible for usb_id or usb_vbus. > > Expand the definition with anyOf to capture the three different valid > modes. > > Fixes: 4fcdd677c4ea ("bindings: pm8941-misc: Add support for VBUS detection") > Reviewed-by: Rob Herring > Reviewed-by: Marijn Suijten > Signed-off-by: Bryan O'Donoghue > --- > .../devicetree/bindings/extcon/qcom,pm8941-misc.yaml | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml b/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml > index 6a9c96f0352ac..1bc412a4ac5e6 100644 > --- a/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml > +++ b/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml > @@ -27,10 +27,14 @@ properties: > > interrupt-names: > minItems: 1 > - items: > - - const: usb_id > - - const: usb_vbus > - > + anyOf: > + - items: > + - const: usb_id > + - const: usb_vbus > + - items: > + - const: usb_id > + - items: > + - const: usb_vbus > required: > - compatible > - reg Applied it. Thanks -- Best Regards, Samsung Electronics Chanwoo Choi