Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2464109rdb; Fri, 8 Dec 2023 08:51:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8K6TTmLA/z6v5V+M27SFEp8NIVBBe/Dqhtt+UVcJOSwopxwEvS+lN+skRpuPJFK2Y3gjX X-Received: by 2002:a05:6a20:8c1b:b0:190:20d:5b94 with SMTP id j27-20020a056a208c1b00b00190020d5b94mr264896pzh.27.1702054275737; Fri, 08 Dec 2023 08:51:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702054275; cv=none; d=google.com; s=arc-20160816; b=CeUpMvkZdCMEg7wBthDexJWaaj4wtcPnPILRi9Tof2GIwxptMiaIlo7oMPO/wPpSwx iROqztYNU65b9nvi9de84gWaR9JSxDe8TtWHy85fK8labHj5aTjA1poxvR1q/m/8gq4w JMSFy16TIaxNzWGyW6SgC99Uk/iy0wNODsNGnPBsM6aMEPjBQYQLnQMmIK3YwlM72W1p LT7ivER954WGIioLroYKzkkUsJHLMNeJZBnRfTbBcxl7o+B4hOB9HLqgVaYI2mttItSt oKYSNawjOkT/RZ0xOWJxtY1OyKlEgf2hDDJ6XxUPakLpVXk/uN3GCKVEoMGSaz7V1516 7YVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=zslPHJWELqvuPLVUnf5bfRnpwdPmFrFwYfLyXUQqu8g=; fh=lrGMuxM5hJXPnWXYGdTlDBf4KL9xxNBg4RNtyaWXX2s=; b=peJcEnoSoxP8O9X5dVY1skvMzZVExSzXXFoMHC3FaCIMBDExEfH6sN8ZubZkM8Ymfn DecyvQUK7nEuHuTWzC38iP7+w4Jm6ksQCHObabGvHdwdRjFlKhlesfOFX7Q9RGfN5JhP suu8HR6vopcOV1cfpNETzpxsC+JIa6LYp+6UhsO98wbuuou37dcUpXbDd2G2oOPYyd6f evyIGB0nnTLdt8QRbsoT6aU/H6AfD1ZFkA+o/RCZ4obAwS8hWP7IA+GNtsklD2VmkjpG 2W/K0ocR1dvVRBKtABNOXkwut8XJGoSpmJ20uIJvoQTn/PTtfRsIebKi7hU2YOloIw30 gpDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id y187-20020a638ac4000000b005b55df27b44si1702079pgd.340.2023.12.08.08.51.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 08:51:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 0C73480A9D68; Fri, 8 Dec 2023 08:51:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574218AbjLHQux (ORCPT + 99 others); Fri, 8 Dec 2023 11:50:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235910AbjLHQui (ORCPT ); Fri, 8 Dec 2023 11:50:38 -0500 Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9051419A5; Fri, 8 Dec 2023 08:50:42 -0800 (PST) Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-1fa37df6da8so1336962fac.2; Fri, 08 Dec 2023 08:50:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702054242; x=1702659042; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zslPHJWELqvuPLVUnf5bfRnpwdPmFrFwYfLyXUQqu8g=; b=uvEijbN9IBz3v1SF8eFNgGdk2z8RXw+WUIu/KjreDrpGQl0tvDY87e6cRQZyDigSBK FVw6SYiacCjkNCysVMlyIg4awJR01lpFuFFJC1pQ9i24Z6QiTnP7hvFRsWiNko1ECSGL 0BpyDKxCzef+79QKxPDk6ip0nEIfUS1xovJcSb9jtuC7Q2xXOYY2679P/hGZBpUC7Da7 EuWoKWA2Ubh8odrIWuELr21IXMCAjsFxoITJO/63xgQtpShK8hr3nAtVUXg7mVicKf5G 23Wb/CsWgSjKzFjhAk/H6GNzJrIPyoQSo4HLtSsG9qm8V9gibYNsLmNbQ5ugDcGktILA Qbfg== X-Gm-Message-State: AOJu0Yxarc3co2GQcs9YOGv/SLJyO8lRD1/xePiIj8tUyaBoGujG7RxS WHIoRB1TlUSA+vRTHuHqVA== X-Received: by 2002:a05:6871:54c:b0:1fb:14cb:c904 with SMTP id t12-20020a056871054c00b001fb14cbc904mr448029oal.3.1702054241804; Fri, 08 Dec 2023 08:50:41 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id gu11-20020a056870ab0b00b001fb3143cc0bsm462961oab.44.2023.12.08.08.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 08:50:41 -0800 (PST) Received: (nullmailer pid 1766460 invoked by uid 1000); Fri, 08 Dec 2023 16:50:39 -0000 Date: Fri, 8 Dec 2023 10:50:39 -0600 From: Rob Herring To: Kyle Tso Cc: krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux@roeck-us.net, heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, badhri@google.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH v5 1/2] dt-bindings: connector: Add child nodes for multiple PD capabilities Message-ID: <20231208165039.GA1756077-robh@kernel.org> References: <20231205030114.1349089-1-kyletso@google.com> <20231205030114.1349089-2-kyletso@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231205030114.1349089-2-kyletso@google.com> X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 08 Dec 2023 08:51:12 -0800 (PST) On Tue, Dec 05, 2023 at 11:01:13AM +0800, Kyle Tso wrote: > Commit 662a60102c12 ("usb: typec: Separate USB Power Delivery from USB > Type-C") allows userspace to configure the PD of a port by selecting > different set of predefined PD capabilities. Define the PD capability > sets in DT for better configurability in device modules. > > Define an optional child node "capabilities" to contain multiple USB > Power Delivery capabilities. > > Define child nodes with pattern (e.g. caps-0, caps-1) under > "capabilities". Each node contains PDO data of a selectable Power > Delivery capability. > > Also define common properties for source-pdos, sink-pdos, and > op-sink-microwatt that can be referenced. > > Signed-off-by: Kyle Tso > --- > v4 -> v5: > - Fixed DT_CHECK errors > > .../bindings/connector/usb-connector.yaml | 88 +++++++++++++------ > 1 file changed, 59 insertions(+), 29 deletions(-) > > diff --git a/Documentation/devicetree/bindings/connector/usb-connector.yaml b/Documentation/devicetree/bindings/connector/usb-connector.yaml > index 7c8a3e8430d3..7945d09d1f59 100644 > --- a/Documentation/devicetree/bindings/connector/usb-connector.yaml > +++ b/Documentation/devicetree/bindings/connector/usb-connector.yaml > @@ -14,6 +14,8 @@ description: > of a USB interface controller or a separate node when it is attached to both > MUX and USB interface controller. > > +$ref: "#/$defs/capabilities" > + > properties: > compatible: > oneOf: > @@ -67,6 +69,15 @@ properties: > model it as a regulator. See bindings/regulator/fixed-regulator.yaml > > # The following are optional properties for "usb-c-connector". > + source-pdos: > + $ref: "#/$defs/capabilities/properties/source-pdos" > + > + sink-pdos: > + $ref: "#/$defs/capabilities/properties/sink-pdos" > + > + op-sink-microwatt: > + $ref: "#/$defs/capabilities/properties/op-sink-microwatt" With the $ref above, these aren't needed. But you have to use unevaluatedProperties instead of additionalProperties. I fixed this up and applied. Rob