Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp226290rwl; Wed, 29 Mar 2023 00:27:01 -0700 (PDT) X-Google-Smtp-Source: AKy350buZeA/i/eQaXWN2fPknDPFblPNvLat3KJsoffk9+pTZKvrAgyay9bk6C/Xmir+RtgzVs8I X-Received: by 2002:a17:906:33d2:b0:92c:6fbf:4d with SMTP id w18-20020a17090633d200b0092c6fbf004dmr18522099eja.40.1680074820717; Wed, 29 Mar 2023 00:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680074820; cv=none; d=google.com; s=arc-20160816; b=ZgOuoLaeDxJnbozcqk+Qdc5SkrL3N5C+z8qiKVsE8NhzXIjQEjTDttr+EawrsiAPWS NM6MjypyA0WccDB/NFqCtaqtTxUvj2AP0pOiNtHHW6LxC8y+8MsOoWZtoriU6oVfNV1S z4QtyItpoeZLcvPpXVQBNsP8Tcc0GTxVrr8TAS1BlkotrbzAOxOOCfuVo1bhgVN8WYbp AUVx2TUTtisgmaqn6e/CsgQEAbiuYF3SYXHmLqpBvHNHCVuJaupD/UImbHhHz+VmD/aO p3CzGJuEVuEEkWcdrt5aZeDaR0V86WLoVqcvMNSEKXKIKFEuwZvgFzZhk6aJfFhwWuU3 9Svg== 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=TGS6b5YXn10NcJ5QUB50Aod9B0bqHGHbyiKTOZ3Udps=; b=Xl4mkpqdAwFSLoBPZcEOufJO8HqACJm8IeuHsNbrF3ksMAV4Yxo4ZhLAN/0zH1KFun vdXXw+ZBsKofWLaI+ilW+R93xpJud0wAuwsRIwYcuwzSvfpPCqnutmtQfa6gFktjhNMT sEn/zNk3w1R9TvQJ27mIvqaZ+Ao/keKVlK3Vbrd7oWKOSiT+df7steFHA5aVfwCvny/d onEhhBnEha8nIEToW3sSdFE/eqNsztnYviRPjMssDysJ6CS0aDtiXYvbZYhvWPaZigtL YhMNz9JfzaOSef0A5y1DI0TcuZDtSyEWfTmEC2bp719KY5BRfIGjcowl9inUM9y0Vvx5 qhYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X3DWfUaG; 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 fy36-20020a1709069f2400b0093cfe245f3csi11235323ejc.18.2023.03.29.00.26.36; Wed, 29 Mar 2023 00:27:00 -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=X3DWfUaG; 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 S230082AbjC2HZH (ORCPT + 99 others); Wed, 29 Mar 2023 03:25:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229937AbjC2HYp (ORCPT ); Wed, 29 Mar 2023 03:24:45 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 082833C0F for ; Wed, 29 Mar 2023 00:24:41 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id bi9so18911130lfb.12 for ; Wed, 29 Mar 2023 00:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680074680; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=TGS6b5YXn10NcJ5QUB50Aod9B0bqHGHbyiKTOZ3Udps=; b=X3DWfUaGLZ+qgDV7Ty2iJJ2VSoKD4XrKrqluyWJzr4xuawtqqDJMFcoCuyTx9Q19YY n2FkaaO4kjFdjdZCGDhZbE2kueqbR4c7UQnQsyZYajhIfwPTCIhyBTxv5vcPMPqxydU0 rcVTlDKqFK2YR4OOQf4f1zft7AtS625bU0l8NCogV5GHeHH9VZ5ju31ttXnSyEMs5fcl Tm2q92dnKc9ZdF95KALp7db/8SYHbPAP9/tp67bCzmMZHj5HN4B1Mvr+BpeqZ8nMGJ3S y3ThvnD+STqrtDhlsybPmMkmXqmK5qkeYCGZRMu4Y+/ku6nRRWsa+vqmM4pkIyKLU8FV Gv+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680074680; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TGS6b5YXn10NcJ5QUB50Aod9B0bqHGHbyiKTOZ3Udps=; b=f0xtck3LoxLDfXncgqkPyEXhC7SjVMAT2vp3yEjZKPSF1JETbUm55yvAenLvXTPZn4 rH4BQQIbZ73HKiDiTDT5tbaCWIR73o3xGPX+jwR/M/Orm0wkZ43WYO3NjvGiLmaGZFDf ab3iLjb5eP/DkuN7CoFAqLirazNpMJljHFtpWuQdekY7FVmtKzOVVu5pWYjA4mcKsCFF y5VtuKkDubpg8efxbWWvWD7fG2zP1g5GY+BOgu/lGp2ObSz/wneYe1cXKed98tSXeY6/ thTRj7NYxnc1dL6NwcGTjVNmXhbSO59ek+VpVe/9LohwlhC3jy0LSIXKIu7XFOeQkuPS Il3Q== X-Gm-Message-State: AAQBX9d5e/SYumMLQmtz7ZX3u646QnexKeNOESCvUueO5jJhiBLcjvZI m8/lcVOCS2FKKu+k+RKyk0Ss+g== X-Received: by 2002:ac2:5591:0:b0:4ea:e2f8:5edf with SMTP id v17-20020ac25591000000b004eae2f85edfmr5222614lfg.33.1680074679959; Wed, 29 Mar 2023 00:24:39 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s12-20020ac25fec000000b004dda80cabf0sm5371135lfg.172.2023.03.29.00.24.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Mar 2023 00:24:39 -0700 (PDT) Message-ID: <7eebc72a-a657-ca67-2c59-60f8e633b878@linaro.org> Date: Wed, 29 Mar 2023 09:24:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH] dt-bindings: usb: typec-tcpci: convert to DT schema format Content-Language: en-US To: Jun Li , "Peng Fan (OSS)" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "gregkh@linuxfoundation.org" Cc: "linux-usb@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Peng Fan References: <20230323065824.3857573-1-peng.fan@oss.nxp.com> <5675373c-af4f-906f-9906-7853a85f8ed6@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 29/03/2023 09:16, Jun Li wrote: > > Per spec below, TCPCI does need interrupt for alert, but no limit on the number. > > "The TCPC uses I2C to communicate with the TCPM. The TCPC is an I2C slave > with Alert# signal for requesting attention." > >> no supplies and no additional GPIOs (like reset >> GPIO)? > > Those are out of scope of spec, I think it can be added as optional. > >> >> Because this is what this binding is saying. >> >>> fully compliance with tcpci spec, if change it to be only specific to >>> nxp,ptn5110, my understanding is then other chips need duplicate a >>> binding doc even common tcpci binding and driver is enough for them. >> >> Depends. Usually we have common schema used by actual device schemas. If >> TCPCI-compliant device cannot have additional properties, > > My understanding was TCPCI-compliant device can have additional optional > properties. Then I propose to rename it to device-matching name (nxp,ptn5110.yaml). Except interrupt and connector, there is nothing here which describes actual standard or common class. These can easily be moved to shared binding later. I can easily imagine TCPCI devices with a bit different interface and different properties. Best regards, Krzysztof