Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp6383698rwj; Wed, 21 Dec 2022 15:00:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXs9X0EOSymJyK3u+dopW+nuPFp3ph6boC3Gmv6e1foLUOea0lNLE0U8kjZwjTTO4hisqObp X-Received: by 2002:a17:902:c401:b0:189:ba1f:b168 with SMTP id k1-20020a170902c40100b00189ba1fb168mr5188648plk.1.1671663611473; Wed, 21 Dec 2022 15:00:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671663611; cv=none; d=google.com; s=arc-20160816; b=Q6yZiuLT9uTCrb6GzxjOAT6+Wan7wPOtXod3SaYzbgB0tgtLu9t89OqsGud5Ab6V2p 4lSdYYKRj0RzAzfqHapiulHgpmkkyiHrnwcOUoceUfcCzDDvTh0ImaZKGKmJXek9jwZM 503W70NAFbgdtAWgFl4b3APgZrDKAPAtkTyQK45otJR1FoKxC2AhOBN/tbfYhZLQXXbc OODevXQiPw0ZVDV3a5NSzCupAvRUbZgBq5EokjJ45tSQipKG5iGWP57k/oi82j418xZ4 oKUr2n22kFgwfDz82h9gKJK79H6tuwoN5bkpvhwJlUur0G18rnPlItMkfvv2s8JeSDMx 23yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aEDEUV3p7Oa4bhUFtQGp+fpsZW24O8GLxPe97OSoB+g=; b=xV5qZebS9z1cbS36T031hBc2DANkeFwCRF0f4GFeCq/RrkfGANaTPswTqJb3HNEgiL EbHf09lr0+OYSi3FHNxbH0lHe0Kmv/hqb2SNXD4KlLT16Sk/2n56QnZzc3vmaXquyzmn xvjRa7dpYoDJ+bNvHNZsq9bEEdbwD+huFcSgjKQoKl3YvFt/x+vzsKZmB8dHDvfSlq5c SkmluGnv2h/OuttwwUkxiI8fJUvFZsevGDOBbnLeweC76ZwqMCoWQBKMEl/tOE8116tQ K067gL4XC0ZUGqbTuD4sJwLiiwTAt3/9FZlGNfscx5Mn0Twr+Bl2r1DoXy/mA3JzaNfs T54g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mVUrEkg8; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i3-20020a170902e48300b00186c5eb0d48si15961834ple.425.2022.12.21.15.00.02; Wed, 21 Dec 2022 15:00:11 -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=@kernel.org header.s=k20201202 header.b=mVUrEkg8; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235215AbiLUWhL (ORCPT + 67 others); Wed, 21 Dec 2022 17:37:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234964AbiLUWgg (ORCPT ); Wed, 21 Dec 2022 17:36:36 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADA4920379; Wed, 21 Dec 2022 14:36:12 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4A12261985; Wed, 21 Dec 2022 22:36:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EB1EC433D2; Wed, 21 Dec 2022 22:36:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671662171; bh=M/tRY0dtlLHanEM4j2N/f3MgAV3UJcjYrwR7A8LA+gs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mVUrEkg8zRQ7TSOkQUBdp7TE8RNclfXYOvxwJiCqdcEnXqCcogUVKz4dJyuKzdbdm fYgrFNzIXPUSFq1dJKKsa8EnqAkOyF+WLEhFp07WZOG7+crDHchayR9j2X4FSBPrtO ujaxValndvnwlMPyb6FJgfxbOOrQOQcj0rqQo7FoC7ICwM0uBuXemzqx+qTqbeEVTa yazso3peS/sYGtlt0qxwSfakN1zXY6TkTT+w1KYI2MNqymgCeN6+taqP8hdbg5pPr/ Bu4G/3STagQV9C/a5DeT69RLHGxVJa+L3QSwwecy7tepR949nm+iiwLVkeq3nMnVC9 GCtNdBlRwljRw== Received: by mail-vs1-f53.google.com with SMTP id a66so142574vsa.6; Wed, 21 Dec 2022 14:36:11 -0800 (PST) X-Gm-Message-State: AFqh2kqFPX4phZDSyDq3skAQT9ndSvQeHt4Wxn7gFAFWHBPZbw3xRINw 5szHWAB7uuFPFqLP7WafM7J1lCfdWY+XBjZLag== X-Received: by 2002:a67:6185:0:b0:3bf:3dbe:50aa with SMTP id v127-20020a676185000000b003bf3dbe50aamr478388vsb.26.1671662170541; Wed, 21 Dec 2022 14:36:10 -0800 (PST) MIME-Version: 1.0 References: <7f883643-c796-029f-ba38-73532325632d@gmail.com> In-Reply-To: From: Rob Herring Date: Wed, 21 Dec 2022 16:35:59 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 05/12] dt-bindings: usb: convert fcs,fusb302.txt to yaml To: Johan Jonker Cc: heiko@sntech.de, hjc@rock-chips.com, krzysztof.kozlowski+dt@linaro.org, gregkh@linuxfoundation.org, airlied@gmail.com, daniel@ffwll.ch, andrzej.hajda@intel.com, neil.armstrong@linaro.org, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, philippe.cornu@foss.st.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-usb@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Wed, Dec 21, 2022 at 12:23 PM Johan Jonker wrote: > > Convert fcs,fusb302.txt to yaml. > > Changed: > Add vbus-supply property > > Signed-off-by: Johan Jonker > --- > .../devicetree/bindings/usb/fcs,fusb302.txt | 34 ---------- > .../devicetree/bindings/usb/fcs,fusb302.yaml | 66 +++++++++++++++++++ > 2 files changed, 66 insertions(+), 34 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/usb/fcs,fusb302.txt > create mode 100644 Documentation/devicetree/bindings/usb/fcs,fusb302.yaml > > diff --git a/Documentation/devicetree/bindings/usb/fcs,fusb302.txt b/Documentation/devicetree/bindings/usb/fcs,fusb302.txt > deleted file mode 100644 > index 60e465429..000000000 > --- a/Documentation/devicetree/bindings/usb/fcs,fusb302.txt > +++ /dev/null > @@ -1,34 +0,0 @@ > -Fairchild FUSB302 Type-C Port controllers > - > -Required properties : > -- compatible : "fcs,fusb302" > -- reg : I2C slave address > -- interrupts : Interrupt specifier > - > -Required sub-node: > -- connector : The "usb-c-connector" attached to the FUSB302 IC. The bindings > - of the connector node are specified in: > - > - Documentation/devicetree/bindings/connector/usb-connector.yaml > - > - > -Example: > - > -fusb302: typec-portc@54 { > - compatible = "fcs,fusb302"; > - reg = <0x54>; > - interrupt-parent = <&nmi_intc>; > - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; > - > - usb_con: connector { > - compatible = "usb-c-connector"; > - label = "USB-C"; > - power-role = "dual"; > - try-power-role = "sink"; > - source-pdos = ; > - sink-pdos = - PDO_VAR(3000, 12000, 3000) > - PDO_PPS_APDO(3000, 11000, 3000)>; > - op-sink-microwatt = <10000000>; > - }; > -}; > diff --git a/Documentation/devicetree/bindings/usb/fcs,fusb302.yaml b/Documentation/devicetree/bindings/usb/fcs,fusb302.yaml > new file mode 100644 > index 000000000..9b172fda9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/fcs,fusb302.yaml > @@ -0,0 +1,66 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/usb/fcs,fusb302.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Fairchild FUSB302 Type-C Port controller > + > +maintainers: > + - Rob Herring Why me? I don't care, but that's kind of the default. > + > +properties: > + compatible: > + const: fcs,fusb302 > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + vbus-supply: > + description: VBUS power supply > + > + connector: > + type: object > + $ref: /schemas/connector/usb-connector.yaml# unevaluatedProperties: false > + > +required: > + - compatible > + - reg > + - interrupts > + - vbus-supply > + - connector > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + fusb302: typec-portc@54 { Drop unused labels. > + compatible = "fcs,fusb302"; > + reg = <0x54>; > + interrupt-parent = <&nmi_intc>; > + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; > + vbus-supply = <&vbus_typec>; > + > + usb_con: connector { > + compatible = "usb-c-connector"; > + label = "USB-C"; > + power-role = "dual"; > + try-power-role = "sink"; > + source-pdos = ; > + sink-pdos = + PDO_VAR(3000, 12000, 3000) > + PDO_PPS_APDO(3000, 11000, 3000)>; > + op-sink-microwatt = <10000000>; > + }; > + }; > + }; > -- > 2.20.1 >