Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp489029imw; Wed, 13 Jul 2022 02:18:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uHuGKMZqHXVlESxVsq68O9r/Fbdo3OlujYMfuhlzgCInXx7hcNPFS0bc/JOoMQrVVkMGVQ X-Received: by 2002:a05:6402:50d2:b0:43a:8487:8a09 with SMTP id h18-20020a05640250d200b0043a84878a09mr3449237edb.232.1657703932819; Wed, 13 Jul 2022 02:18:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657703932; cv=none; d=google.com; s=arc-20160816; b=0uAKcZVGulDy7r0uOLIbtdVHrs422VNylaFfDNM2ntHZBNWp6F5di4Jzd6nV6PsxWs uBG1nPcWKMe+llZCFmzG+qhzrwejZs26l3jvQgf9tFt5pexwW4p7HgwMke51aJDRVHwj KiqvDN2Pwkn0oDXYed/T58ptUkWSo//Y4koMNpiryutpxmZr0SSc2/fxZKUu31tYsWNB Pyfi6JQt4ZBM3RXPuJnEoxVn+TC3EGZMa8sS+hV69SSnOaOWCkjJdkLOrEhUu/y8bm4H rfZo5XUtLTA19LuBnAp3y4oUyBqtCHsyrI5x5YmTX9PReyb/8ekoSI+hZqbO2nMH00GK neQQ== 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=0GpYX1jWMK2wrDqmjLZTKM0tzfJSoRl5a+p8xGs1L+E=; b=YP/tfL1bUhyhuLjcG861dG8U8YmrJMLZsgkmdOUQekscQG0euJs38f8KXLkFrsZWd/ b+7D47pyxAUnzYzmlwycIrdX8CTcIm2NbnEwGkIwnAgjP5hmU4mW9jj36EiLa7tZOnVX Jy2pIPUlJDBOWC2jPUvdoz0QsuFCX537QZu+CmJTrJOyqcHgnyQB9Kxq94qL9hskR7m0 TCYHc/0eNjRWANiO/76ghHVyjuscCLrPMiBoVy30okpeB9PcS20pzF3anQK1nI05Z/dT IGhsFdq7rFBj9SnRAf8bnMzLBo4DWOTintaREXwFE+b0veBj77cMGn7iKXKeL77OvLId sdeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pdCfJp38; 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 i6-20020a05640242c600b0043ab08b0582si19842111edc.287.2022.07.13.02.18.28; Wed, 13 Jul 2022 02:18:52 -0700 (PDT) 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=pdCfJp38; 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 S235620AbiGMI1I (ORCPT + 99 others); Wed, 13 Jul 2022 04:27:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235155AbiGMI0n (ORCPT ); Wed, 13 Jul 2022 04:26:43 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B030F5F5D for ; Wed, 13 Jul 2022 01:26:00 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id t1so14343200lft.8 for ; Wed, 13 Jul 2022 01:26:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=0GpYX1jWMK2wrDqmjLZTKM0tzfJSoRl5a+p8xGs1L+E=; b=pdCfJp38OeUftbo762CFDDj5npKj6Py/1UeuPSNL/cdemmSWkBvyMlzXFPOEEYfTO+ uICnasyNJ03Wqf+BpdGGFzdVDJu+2y3kDr+Bal6uWRYdxl5VdAXQxop6eye/08pefgf2 lDHncP5gYvViaMTZJgU854s5c9RfnbNy5zBYiAkMafNfrVR+Ui93pyD9i1583n+IaJKn 3f85L7fv675HnvQBPrYHOzA9pJsa6RwEYs9K3F+o0J8VNqnNwQEyAiu3U5NuTL1ZxXIR Wm1UEHsdx1fe0RTSBrjpctO4poq+ZH7aVB41O35tJ+NVJgL88dY7a03mtAW0+LtrLNMQ 6RoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=0GpYX1jWMK2wrDqmjLZTKM0tzfJSoRl5a+p8xGs1L+E=; b=JurKMQmGu9g6SOtoPoG+/zNWb3FaWznIwomU/GPFSyr8BhflXj0qns4lxTICfrSbZ9 NK8INx1hP1/VCeplcc8890ESe6/ug63Pg9eixPWP84+BvlYeS1vRXbARb9RF9LgCLime B9mNdQP+pK5PFOeqITFNRVpPl7WxQ5A9BkXbsIDQkI0pFU1J9FCuApjXt9Fay2A5BbFV GyzRkPpDdKUiDEtsRqjdxF6JccIeF6s/bQqU/mG+vtQNaKmxG8fqAMtZyLNMvn83iHu8 92ipjIiMqEDuwc/btlw3C455bfM17GCFCzXvwrjDJ+iz8LGURiI5nsSwNS8X4MsrvGQU 5X8Q== X-Gm-Message-State: AJIora8HVGf6ObkIy8U1EJkOy6YASkc6hicK2V5snYW/vDpNpBA74vRO A23XKGaiA9CDxCG1v+eWYARkAQ== X-Received: by 2002:a19:6d09:0:b0:481:3c54:ad52 with SMTP id i9-20020a196d09000000b004813c54ad52mr1351736lfc.393.1657700758243; Wed, 13 Jul 2022 01:25:58 -0700 (PDT) Received: from [10.0.0.8] (fwa5da9-171.bb.online.no. [88.93.169.171]) by smtp.gmail.com with ESMTPSA id a24-20020a056512201800b0047f6b4f82d1sm2660260lfb.250.2022.07.13.01.25.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Jul 2022 01:25:57 -0700 (PDT) Message-ID: <1cbe0b48-c472-2bd8-9153-6ef0412adefe@linaro.org> Date: Wed, 13 Jul 2022 10:25:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v17 1/2] dt-bindings: usb: Add analogix anx7411 PD binding Content-Language: en-US To: Xin Ji , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski Cc: bliang@analogixsemi.com, qwen@analogixsemi.com, jli@analogixsemi.com, Rob Herring , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220713072943.2789612-1-xji@analogixsemi.com> From: Krzysztof Kozlowski In-Reply-To: <20220713072943.2789612-1-xji@analogixsemi.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 13/07/2022 09:29, Xin Ji wrote: > Add analogix PD chip anx7411 device binding > > Reviewed-by: Rob Herring > Signed-off-by: Xin Ji > > --- > v16 -> v17 : Add node name "usb_typec" > v15 -> v16 : No changes > v14 -> v15 : No changes > v13 -> v14 : > 1. Fix Robot compile error. Fix node name not correct. > 2. Change HEX to lowercase. > 3. Use "ports" property. > v12 -> v13 : > 1. Drop the quotes for "$id" and "$schema" > 2. Remove "allOf" label > 3. Change node name from "i2c1" to "i2c" > 4. Change node name from "typec" to "usb-typec" > --- > .../bindings/usb/analogix,anx7411.yaml | 81 +++++++++++++++++++ > 1 file changed, 81 insertions(+) > create mode 100644 Documentation/devicetree/bindings/usb/analogix,anx7411.yaml > > diff --git a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml > new file mode 100644 > index 000000000000..60aac5765320 > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml > @@ -0,0 +1,81 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/usb/analogix,anx7411.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Analogix ANX7411 Type-C controller bindings > + > +maintainers: > + - Xin Ji > + > +properties: > + compatible: > + enum: > + - analogix,anx7411 > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + connector: > + type: object > + $ref: ../connector/usb-connector.yaml > + description: > + Properties for usb c connector. > + > + properties: > + compatible: > + const: usb-c-connector > + > + power-role: true > + > + data-role: true > + > + try-power-role: true > + > + required: > + - compatible > + > +required: > + - compatible > + - reg > + - connector > + > +additionalProperties: false > + > +examples: > + - | > + #include > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + usb_typec: anx7411@2c { Node name is still specific. https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation make it "typec". Best regards, Krzysztof