Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4542073rwl; Wed, 28 Dec 2022 05:43:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXuoam1TgfDtuhURKSnL2/pkDxxqq2P/fFh86IJHGCkl4iTuCorsjfDgMCeb+FxaqdP9Fmwr X-Received: by 2002:a17:906:4547:b0:7ad:c3b5:8d55 with SMTP id s7-20020a170906454700b007adc3b58d55mr20515813ejq.67.1672235002396; Wed, 28 Dec 2022 05:43:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672235002; cv=none; d=google.com; s=arc-20160816; b=C8gKU1srqQd1OkYCnwyM2S63UOU+Ob/hKYxHdfE9Cv7Fq86eZTg14G2L4m3XuiwTQp EhFWQklVxSGZNgW0sf0nSStX1O8MRcL5sfrCtnhekBl18H+Z0ZHBz800DA5Ds9hUGoAS jrs1d03lJ4JBPo2Pycmn4k5xH/iAm4ly6r48sSt3rXBlyy6szfg6t6121B5RuRONPHzt woM/fH+TD3OQAk9Gg8rqOS23/BLc4rPU52eMydNORYejS7sm2tOQ3NN/wWxt3GF3oOyi vfhc+xjarWkBSJ2ISRsaZRcxkOXSQVYWDnmkzHiN4f4EHiOIsA1FaS5wMggLGpqu1cf0 XUSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QED1aNtpCBA4/YxA776enxTbRIKvec58m1cbK25uDdk=; b=P6i6F1Vcqi2uBABHJvC/K4ct6FoQ1Tcf14X+0ZjFXZB3ZR6Gnm0UrHoElE4hsGIQM2 QV9glSeJ6pSl1QXtzT7IPQyo7BFd0bvfYpin2RcbvX00YH7iV6sNQUMMbqAKXjiwOzF5 ylC/hnlWFV7s8XhpTrX1pQQ0GGbL4KbdXX90ybs+bmxg2o0QHqjdOzzTvWvZMkIVy3kE +V6OZNbZqDcFHOZlwe8HuydbIkPLEyraPXpe4q0DAT2X0rwTHNnC4IDJYkNqleghkvD4 xQiaAhGl4Ct2u6Vb24iQgLFeSbKp+eyRSBZlvNSPqOpLd/tWXsZw36+Fv9EcowdFSzbq uBvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hY9OVWNL; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji11-20020a170907980b00b0084514612c28si13486967ejc.612.2022.12.28.05.43.07; Wed, 28 Dec 2022 05:43:22 -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=@linaro.org header.s=google header.b=hY9OVWNL; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232543AbiL1NbM (ORCPT + 65 others); Wed, 28 Dec 2022 08:31:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232023AbiL1NbI (ORCPT ); Wed, 28 Dec 2022 08:31:08 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E36B4F5BF for ; Wed, 28 Dec 2022 05:31:03 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id u19so38345650ejm.8 for ; Wed, 28 Dec 2022 05:31:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=QED1aNtpCBA4/YxA776enxTbRIKvec58m1cbK25uDdk=; b=hY9OVWNL1DdXi0BZOMdWNCKWqJhqnl5EmLUL6emj93JJTIjUudn2hxgGo5uDxvVYsN jI4OuPhoL2pFUk+VvPOOyh1daA6zzr6KFPNXxkcSX9tzC8grRL/dF/Gzl01quGUaEuCp eSAduzz5qP9UvMeqrWuqZ8qhBieAV9s7gcYH99svdBj+EKoYQkAV7MQuKTAiFUmQSSSy 1s+iu3QMEj27ZIsGfNxOMEREfPidwf39On45CjWOfTL3PzykBui/nd6IOmaeskoSxVZf EUr7SnJK1zDDAI60R7FTVu9V3sqsLl2YbwHqjcHetYFsDtGX6KsWzJBlCTmEkGS/HnJP ep3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QED1aNtpCBA4/YxA776enxTbRIKvec58m1cbK25uDdk=; b=EeYJTV7staiqSzuq5qQRz4ZrqeVn7+TrnmmZp2I/D1vnKvqk5Q0/UjK6jFA7haH+6H zlEvku3EATZyEB6LpUaK+yexOlCCUvEYN3BP8NacfIDI+ndGv9ecOJHl1fkKhotW6ARq Ibs3LiLKalH4tjMFLYup0j3LNXGNsXBjxf6nvsk9DmyawaD76Ej5hQuGO7ZqibOUIqwY u7KJslIbB8mvJR8Pz7TKQCbvpMkRcMju16WEv8iWdhYppmkXLE1rOKxebkHmOLFjjV/R WNZmAuh5VVvCM0qnOt+4xHy15OyxV6SyHCRBFP9QpigTMDlhTAn1YJ2humxGwQ7OF4Bq 05Ng== X-Gm-Message-State: AFqh2krk9GzFdEVoh7iCutQ906t0hVJ+Cm8TZCXM7yVhmI4Fqm68hs8/ I+r/FKfXBAFl7gUvyaZggfyM+w== X-Received: by 2002:a17:906:158c:b0:7c4:f752:e959 with SMTP id k12-20020a170906158c00b007c4f752e959mr20022518ejd.33.1672234262421; Wed, 28 Dec 2022 05:31:02 -0800 (PST) Received: from planet9.chello.ie (2001-1c06-2302-5600-85f6-04b5-1651-3b6c.cable.dynamic.v6.ziggo.nl. [2001:1c06:2302:5600:85f6:4b5:1651:3b6c]) by smtp.gmail.com with ESMTPSA id j15-20020a170906094f00b007add28659b0sm7541393ejd.140.2022.12.28.05.31.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Dec 2022 05:31:02 -0800 (PST) From: Bryan O'Donoghue To: 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, bryan.odonoghue@linaro.org, Rob Herring , Marijn Suijten Subject: [PATCH v4 1/2 RESEND] dt-bindings: pm8941-misc: Fix usb_id and usb_vbus definitions Date: Wed, 28 Dec 2022 13:30:57 +0000 Message-Id: <20221228133058.213886-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221228133058.213886-1-bryan.odonoghue@linaro.org> References: <20221228133058.213886-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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 -- 2.34.1