From nobody Mon Apr 13 12:03:07 2026 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 5ED64C25B07 for ; Thu, 11 Aug 2022 06:22:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234049AbiHKGWx (ORCPT ); Thu, 11 Aug 2022 02:22:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233504AbiHKGWv (ORCPT ); Thu, 11 Aug 2022 02:22:51 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ED098A6EF for ; Wed, 10 Aug 2022 23:22:50 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id bq11so24283263lfb.5 for ; Wed, 10 Aug 2022 23:22:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=myFQW53lMmz4JFfwdyKhJU7fW2/r53OOlYHkexRkvk0=; b=kZmCoibdXDwo4VCyOg9H0i19ofJ6qNDdkCQKf+d1OPhuqCtgDoV6C6DRPM1jdhzjgY 5bzViit6EBDmSkGAMgvUMW49/h3KqkdEDySZjfnyp2Jdut+26LunAq5pH4eZwrA54UvD 3WTIWaLi8yCDzMPSFRIxRcPDsC/IkJGkv49+tZGfLn9X/QvjmDXJQwswDELsdUvakJ6q GzAXtxgm3HLV6dhgOLlrmO9SgY+w12A3nWcl0Tl4bqSBJWLA7UnyxWpXkkBcihOzO3B2 /vmR293FkhOwLmyWOueapAyyv80CT7mIDMHSLOsOc6HIpV1d6aii8UASVBDNHiiIGBxn sOTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=myFQW53lMmz4JFfwdyKhJU7fW2/r53OOlYHkexRkvk0=; b=JN41lDB0wJ+wt7X4+RKmXaw7QdPhuByoClps7WKkz5m2CDfKyODpbAmEG9jJeRFHcD JPnaVn8Jrr8BmAfUHiC0Q2gH/X4LaoPwNoykalpqSyI/GZluAq0Y+vA46lYLlVo5dvwA 3uKDuhhf6XKglw4jpYCn+ot9EQpN+c7bASi+dOVsKCXOegoKdWH4ZDV/w0X3rRuARGXG oHBYq4uhWaks68wkRDChoesA4hePxSssW5OVfoyOfOGi3vMaZQmKzM9w5IANzn+b3vPn 1Qvz7pqArQghlOQH+I8MktHgAp+hfY0P3CnEWMl6nG9p9lpv1rjrZz0Jbk0M3GkKKYWP HGwg== X-Gm-Message-State: ACgBeo2yTRutQVASIk+C5r6RuQmB9ti6ItsCdWdb7spgT0sc8H9PxOLt NiZHU2119ElIOtWK5/GJvhXNag== X-Google-Smtp-Source: AA6agR4X0ticYh1ve9WR7Oyr9gn0xA8WLBimiNGSbaMBCfletyAhGK0Yi1ukgPyk4mAp57e8TWv4Ow== X-Received: by 2002:a05:6512:3991:b0:48b:3313:2576 with SMTP id j17-20020a056512399100b0048b33132576mr11420442lfu.136.1660198968341; Wed, 10 Aug 2022 23:22:48 -0700 (PDT) Received: from localhost.localdomain ([83.146.140.105]) by smtp.gmail.com with ESMTPSA id bj36-20020a2eaaa4000000b0025e66a771efsm677755ljb.136.2022.08.10.23.22.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 23:22:47 -0700 (PDT) From: Krzysztof Kozlowski To: Rob Herring , Krzysztof Kozlowski , Benson Leung , Guenter Roeck , Prashant Malani , devicetree@vger.kernel.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Bjorn Andersson Subject: [PATCH v2] dt-bindings: chrome: google,cros-ec-typec: restrict allowed properties Date: Thu, 11 Aug 2022 09:22:45 +0300 Message-Id: <20220811062245.4316-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Describe exactly what properties are allowed in Google Chrome OS EC Type C port, so the schema can properly validate the DTS. Existing DTS defines always connectors with unit addresses, not a sole "connector" child. Signed-off-by: Krzysztof Kozlowski Acked-by: Prashant Malani --- Cc: Bjorn Andersson Changes since v1: 1. Correct subject prefix --- .../bindings/chrome/google,cros-ec-typec.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.= yaml b/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml index 2d98f7c4d3bc..50ebd8c57795 100644 --- a/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml +++ b/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml @@ -20,13 +20,24 @@ properties: compatible: const: google,cros-ec-typec =20 - connector: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +patternProperties: + '^connector@[0-9a-f]+$': $ref: /schemas/connector/usb-connector.yaml# + unevaluatedProperties: false + properties: + reg: + maxItems: 1 =20 required: - compatible =20 -additionalProperties: true #fixme +additionalProperties: false =20 examples: - |+ --=20 2.34.1