Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3721186rdb; Sun, 10 Dec 2023 18:50:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IGgz/rzzXDvmqokFx7S60csZYaw2bpStTSo7fforQpvzc7fP2lAZlrmfhRKq9ehYc50LP83 X-Received: by 2002:a05:6870:1b1b:b0:1fa:f508:b5cc with SMTP id hl27-20020a0568701b1b00b001faf508b5ccmr4831810oab.55.1702263006023; Sun, 10 Dec 2023 18:50:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702263005; cv=none; d=google.com; s=arc-20160816; b=yn+YbFZMNcNL36ry1qeSpywqxRoP0pXxM3PoXjEh/wH9B1gqwEnL/qjOYHxU9t+stQ t6v4WFLKJYH9Dmks0n4NgGXly2r+GWZHKrAkgXC0/moRkoe/azNfaLVIpEvUg7pZDzp8 Ytahi3cnFTML+QE2OUkmLLtVB5Wf5th+O6pDGyidJ6Be3+9hybvyx1RXVioKDDl1IdMa dAXs+Aukat2DMVJlMJ6NOvvq3Mq/tUw6M2+SUD4ALzUDL75ieniaOKRjuxgtgq4Sa0an 5WqBrSbSmw3XRAyRbjs6+Fre+GE5icOfIlFYF2asP1MrA4Wxa8F+rgvgfQnj4oEHT/tn XE/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=xAKWZkH+/lnkBoBv416M+3qlIhJzFPIoQWktBVQdFFQ=; fh=UGtdqF9GhW9Do0ghCY9JvC//LY67t8bNK54zXObJWYU=; b=v7Vd9H4l4D4lZYRkKo5HHWU2Vzrnyo5IQt0hmq8B3gPyG6Zlrtr+7uRn3pVRF/K/hr nm6OywNhCUHMoNap3htZWq5ZsJZQ48LSo2EzRHvrc+uxUBghAMfMuP9946hXPmWMcElx A0VPfcy1gva7SKySElJvALy3F3SLzg0wHziSLINIk+Xyy2qz0zgMzChLLVO4kfaVOArh N08ARFwIJTVvslXCYprMc5gCyW0LW/E9of8sC8JJBHaRkdvosC82csiULy0Wd4Khm54M UkqON6UHXEtC0hUy6zFZwyGbCIoOXZDNnt7IB3GEGN4Hl5sqDt0s54080pxI6RoQv+a0 jZ/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=cbxefL5x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id k12-20020a6568cc000000b0056f7f18bbfdsi5193049pgt.632.2023.12.10.18.50.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 18:50:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=cbxefL5x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id D67D28067638; Sun, 10 Dec 2023 18:50:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229784AbjLKCtr (ORCPT + 99 others); Sun, 10 Dec 2023 21:49:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjLKCtq (ORCPT ); Sun, 10 Dec 2023 21:49:46 -0500 Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 428D5E3 for ; Sun, 10 Dec 2023 18:49:52 -0800 (PST) Received: by mail-qt1-x832.google.com with SMTP id d75a77b69052e-4258b6df295so378181cf.0 for ; Sun, 10 Dec 2023 18:49:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702262991; x=1702867791; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=xAKWZkH+/lnkBoBv416M+3qlIhJzFPIoQWktBVQdFFQ=; b=cbxefL5xpn51FpKhA18WVgq4YxQrsbDB+Uh1DbdrwjIw0CpBDDyvAdMtlVhdMw3Q3T 5X8rC3ZKMi+PpVvEEk96DWGEdkrMaziaRItMPidBE/WnkOn6nB4HYtjDXef09kMLuggb wONwsxWcFFZaxn4+dRK9HBKAR3xUIDj7dtFptmAiEDeAe54nhceIeHsUgj+8jEkGgzDG 0l0ztBDclI2E7MnsCj0qc42clcUE5xQrRhp6MXZAHNmIswIcy154Sbvr1236oBPGAUhv mkxreMuflAEfhpG/F8AuRCGy25s6WPDietwINapdk3DrU5YHWrsbBRVXq0brF571UTlX nnfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702262991; x=1702867791; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xAKWZkH+/lnkBoBv416M+3qlIhJzFPIoQWktBVQdFFQ=; b=v8JlN8Ko9B0cylVNq9zPcWRtcAOdK6PZjtqHcyQ75VPp74oYCd5P892oUa4tZ7bLif U1hKR5p0vOBDG188gyh3kRnn6d1wSxOCl46Dl35KSh21N7GBOnupkcVPjcz5KoB53Vw9 JaipNSz2XTF3JQ0FPuUkICREJuR7wd1vPJjrVStzECQ19HaROiDAVeA7TUs25tjjbEKn ePziMXiXxzdyyrZ8EHSifs9QYsZOX6wp6Vt6g5eEV5iYV6ilWWsCmJN6CMtnrPcjuMJM WEOEi7P4KFcki+EyKWQsws1AZ0AEbprSYruQzgdxdGE9BwjmRjBD61gwcvx7gn0bkNW3 3+zA== X-Gm-Message-State: AOJu0Ywjrh7TQIF3kY5zwuKtnrC+VzAeD6RYEpKVSe1rpvHGzFeDF+N2 Ujkg2f0ie0kE0fyvaUl+Jub56KeWfQ0a8Gi59B2hWw== X-Received: by 2002:ac8:5908:0:b0:423:98a3:422 with SMTP id 8-20020ac85908000000b0042398a30422mr470684qty.11.1702262991017; Sun, 10 Dec 2023 18:49:51 -0800 (PST) MIME-Version: 1.0 References: <20231205030114.1349089-1-kyletso@google.com> <20231205030114.1349089-2-kyletso@google.com> <20231208165039.GA1756077-robh@kernel.org> In-Reply-To: <20231208165039.GA1756077-robh@kernel.org> From: Kyle Tso Date: Mon, 11 Dec 2023 10:49:35 +0800 Message-ID: Subject: Re: [PATCH v5 1/2] dt-bindings: connector: Add child nodes for multiple PD capabilities To: Rob Herring 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Sun, 10 Dec 2023 18:50:02 -0800 (PST) On Sat, Dec 9, 2023 at 12:50=E2=80=AFAM Rob Herring wrote= : > > 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 Thank you, Rob! -- Kyle