Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA5EDC54E94 for ; Mon, 23 Jan 2023 15:54:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232786AbjAWPyb (ORCPT ); Mon, 23 Jan 2023 10:54:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231993AbjAWPyb (ORCPT ); Mon, 23 Jan 2023 10:54:31 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6825D3A96 for ; Mon, 23 Jan 2023 07:54:28 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id l8so9380487wms.3 for ; Mon, 23 Jan 2023 07:54:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=sWhsZS74+Dvjyfzik5/nC+Ev2mJ9IDMei/KC6GCemqY=; b=TT+l75Q3a2+t2PvAy6nHsS+q1ZUp/sKbhf5T64RkZ9ddDppwuYZeXMANpq/6o/mj+A yMJgop3GLTikdPYq98Wm9+bmbsmcgeRyrpDOH5wvGMevQKJW5Gz1hGCIDPVqiptM7gPI GkruSFbxWZZPi7Ast7916sM4U7Txk25klxq/bRBHnH/qFQ8shdnm+okdCP4opcfnLSnt AmddDMghG+aDGpq1cc/hRVyVU6vh0zcKxyIw8pA3LjwiOzhMEecd1cE3e6OaThw3+hQj h2JXVEgDPlVEVY5qgPjmA5r40jPMP0VZglCL3lbfUWvDHlWwOllnrSJV/ipOUyi7L6R4 gw9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=sWhsZS74+Dvjyfzik5/nC+Ev2mJ9IDMei/KC6GCemqY=; b=12jUZ8d52hJ0qsqieTavZqB1S0vqGyZXz249nrdAURiUMMX6cIYtVCJuexIRMgpo9J tmitFHtnWCb1Xe1/3qXKo/4aNlTmZwV09IeHj2pOM2+uq3DNGFV1vLcEWxnWrWASlnvT 961SqU6l0jGmSVTLzwWbmqBrypPwejaQAWUsAv6b4nF3FRB5nMyrKWu6/YKp1L1jfuIk pONqcJF1pXOH8f8VnAhwBwZkt+9e/sVeqEcUefOj/GSP5pz7ynR5J5oP6p4BbEnEPyl2 AlF3QEZ1NS341Jn0p4xOWIH2xh+tzc2bTUwTNPzms9YM4FSMhOCNzd9sYYho29LEMvGx KWdQ== X-Gm-Message-State: AFqh2kq5XTaBrQ4cdUMEcFZdCSFPEnapcEppqICeG1jUt9quld1VYKEC SPaQiIUVZ7spj2APWSC/4bbSjw== X-Google-Smtp-Source: AMrXdXud0tQooneMXSQQVIEYXsQAZXqN6E4Gkaz9JfIa1aRRHlSWR2a6cT0AuUF0CvwyFs2RKMFDuw== X-Received: by 2002:a05:600c:5116:b0:3db:1a8:c041 with SMTP id o22-20020a05600c511600b003db01a8c041mr24615039wms.17.1674489266958; Mon, 23 Jan 2023 07:54:26 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id m31-20020a05600c3b1f00b003dafadd2f77sm12126036wms.1.2023.01.23.07.54.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Jan 2023 07:54:26 -0800 (PST) Message-ID: Date: Mon, 23 Jan 2023 16:54:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 Subject: Re: [PATCH V6 1/6] dt-bindings: usb: Add Cypress cypd4226 Type-C controller Content-Language: en-US To: Jon Hunter , Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Thierry Reding Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, Wayne Chang References: <20230119121639.226729-1-jonathanh@nvidia.com> <20230119121639.226729-2-jonathanh@nvidia.com> <2789cf94-60b4-7e35-50f8-e21b564a1dfb@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 23/01/2023 15:28, Jon Hunter wrote: > > On 20/01/2023 08:32, Krzysztof Kozlowski wrote: > > ... > >>> +examples: >>> + - | >>> + #include >>> + #include >>> + i2c { >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + #interrupt-cells = <2>; >> >> Drop, does not look like relevant or used here. > > > Without the above I get ... Didn't you drop too much? I meant only that one line above my comment, so only interrupt-cells. > > Documentation/devicetree/bindings/usb/cypress,cypd4226.example.dts:25.13-26: Warning (reg_format): /example-0/i2c/typec-controller@8:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) > Documentation/devicetree/bindings/usb/cypress,cypd4226.example.dtb: Warning (pci_device_reg): Failed prerequisite 'reg_format' > Documentation/devicetree/bindings/usb/cypress,cypd4226.example.dtb: Warning (pci_device_bus_num): Failed prerequisite 'reg_format' > Documentation/devicetree/bindings/usb/cypress,cypd4226.example.dtb: Warning (simple_bus_reg): Failed prerequisite 'reg_format' > Documentation/devicetree/bindings/usb/cypress,cypd4226.example.dts:22.13-43.11: Warning (i2c_bus_bridge): /example-0/i2c: incorrect #address-cells for I2C bus > Documentation/devicetree/bindings/usb/cypress,cypd4226.example.dts:22.13-43.11: Warning (i2c_bus_bridge): /example-0/i2c: incorrect #size-cells for I2C bus > Documentation/devicetree/bindings/usb/cypress,cypd4226.example.dtb: Warning (i2c_bus_reg): Failed prerequisite 'reg_format' > Documentation/devicetree/bindings/usb/cypress,cypd4226.example.dtb: Warning (i2c_bus_reg): Failed prerequisite 'i2c_bus_bridge' > Documentation/devicetree/bindings/usb/cypress,cypd4226.example.dtb: Warning (spi_bus_reg): Failed prerequisite 'reg_format' > Documentation/devicetree/bindings/usb/cypress,cypd4226.example.dts:23.30-42.13: Warning (avoid_default_addr_size): /example-0/i2c/typec-controller@8: Relying on default #address-cells value > Documentation/devicetree/bindings/usb/cypress,cypd4226.example.dts:23.30-42.13: Warning (avoid_default_addr_size): /example-0/i2c/typec-controller@8: Relying on default #size-cells value > Documentation/devicetree/bindings/usb/cypress,cypd4226.example.dtb: Warning (unique_unit_address_if_enabled): Failed prerequisite 'avoid_default_addr_size' > Documentation/devicetree/bindings/usb/cypress,cypd4226.example.dtb: typec-controller@8: interrupts: [[10], [8]] is too long > >> >>> + >>> + ucsi-ccg@8 { >> >> Node names should be generic. >> https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > > > Thanks. I don't see anything there is would fit here, so would 'typec-controller' for the node name be OK? Yeah, pretty often we miss a generic example. Can be just "typec". > Best regards, Krzysztof