Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4930719ybl; Wed, 22 Jan 2020 07:15:56 -0800 (PST) X-Google-Smtp-Source: APXvYqyv1BCuNNDWn3ohZ61MCDWLMaokn0KHUOlKsM+MYyGg4pxe2Fzeh1O3eEIGy9sNY2FIUb2h X-Received: by 2002:a05:6808:aac:: with SMTP id r12mr7163695oij.59.1579706156790; Wed, 22 Jan 2020 07:15:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579706156; cv=none; d=google.com; s=arc-20160816; b=bx1NXenCRpPoWpsPH+SuE2MfPTSLkqcHWMgWr7qzxP5crpLpyzXqWTcMlwTtHfPhrR 1rNgGp/uUx2fxIh3pPjpuMdi+A2j9vSont/DQikAxMAWzYOGryq1ZTbm2fp2VmTtmlxV ZLWoj642o5T72pqbiXOJuFA7F/Hf5hh0eh9uqrHId4RXXwEo305rTzROGPj5U1KjQOdm MCwEr4ra0fFwAeD1UVOY/6Q9Q1OUyFXf1Hw9llsupjSOUidlnyj1pgZboJXju5QIv/tr 7yOQ+A3/c6dzhVHiniSkLQqK3VU1ezQCNDHr8BR+HXVRJjJIWNcacPfUgFm4MR14wJaY Eb7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=IxyDwqXfIib2kz+qUWL+qfA0RFK/nUbtdrGUriKHRxw=; b=uLWlC49BF8x43zXuS93utIvF+lF/6mcP5nBLSyDC52IZwZo0fmciuuNAj67nAHifJg UkYq2QuTTEQNGw5H1L3cFb9+WXpsl+w1JroyPfOogFqCU9LEN8tdrLx4vC/rUcYATykj kBKM9p3JP9RhYAeUcx9SFAk0sNiQyxWcdJCkssdnKsX/G6zo6CL/bmQz3+CHB1bkpjD5 Xfw2sSf/dkTyqZZ4Kidpov8j8gG+Q2WqXwjUEzA3JTARAj4HhKfectF1hqMCO6bvKc7E wpfuGVOBVEWdrz5TBvVlVn9sIkBjL8pzurvLybYKdTCciWzXgsNYDop1Ge5WxaOvMuXH 4VCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f194si22161340oig.243.2020.01.22.07.15.43; Wed, 22 Jan 2020 07:15:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726101AbgAVPNi (ORCPT + 99 others); Wed, 22 Jan 2020 10:13:38 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:34336 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbgAVPNh (ORCPT ); Wed, 22 Jan 2020 10:13:37 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dafna) with ESMTPSA id 58A6B26067C From: Dafna Hirschfeld To: devicetree@vger.kernel.org Cc: myungjoo.ham@samsung.com, cw00.choi@samsung.com, robh+dt@kernel.org, mark.rutland@arm.com, bleung@chromium.org, enric.balletbo@collabora.com, groeck@chromium.org, linux-kernel@vger.kernel.org, dafna.hirschfeld@collabora.com, helen.koike@collabora.com, ezequiel@collabora.com, kernel@collabora.com, dafna3@gmail.com Subject: [PATCH] dt-bindings: convert extcon-usbc-cros-ec.txt extcon-usbc-cros-ec.yaml Date: Wed, 22 Jan 2020 16:13:13 +0100 Message-Id: <20200122151313.11782-1-dafna.hirschfeld@collabora.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org convert the binding file extcon-usbc-cros-ec.txt to yaml format This was tested and verified on ARM with: make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.yaml make dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.yaml Signed-off-by: Dafna Hirschfeld --- .../bindings/extcon/extcon-usbc-cros-ec.txt | 24 ----------- .../bindings/extcon/extcon-usbc-cros-ec.yaml | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 24 deletions(-) delete mode 100644 Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.txt create mode 100644 Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.yaml diff --git a/Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.txt b/Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.txt deleted file mode 100644 index 8e8625c00dfa..000000000000 --- a/Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.txt +++ /dev/null @@ -1,24 +0,0 @@ -ChromeOS EC USB Type-C cable and accessories detection - -On ChromeOS systems with USB Type C ports, the ChromeOS Embedded Controller is -able to detect the state of external accessories such as display adapters -or USB devices when said accessories are attached or detached. - -The node for this device must be under a cros-ec node like google,cros-ec-spi -or google,cros-ec-i2c. - -Required properties: -- compatible: Should be "google,extcon-usbc-cros-ec". -- google,usb-port-id: Specifies the USB port ID to use. - -Example: - cros-ec@0 { - compatible = "google,cros-ec-i2c"; - - ... - - extcon { - compatible = "google,extcon-usbc-cros-ec"; - google,usb-port-id = <0>; - }; - } diff --git a/Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.yaml b/Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.yaml new file mode 100644 index 000000000000..78779831282a --- /dev/null +++ b/Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/extcon/extcon-usbc-cros-ec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ChromeOS EC USB Type-C cable and accessories detection + +maintainers: + - MyungJoo Ham + - Chanwoo Choi + +description: | + On ChromeOS systems with USB Type C ports, the ChromeOS Embedded Controller is + able to detect the state of external accessories such as display adapters + or USB devices when said accessories are attached or detached. + The node for this device must be under a cros-ec node like google,cros-ec-spi + or google,cros-ec-i2c. + +properties: + compatible: + const: google,extcon-usbc-cros-ec + + google,usb-port-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + the port id +required: + - compatible + - google,usb-port-id + +additionalProperties: false + +examples: + - | + cros-ec@0 { + compatible = "google,cros-ec-i2c"; + extcon { + compatible = "google,extcon-usbc-cros-ec"; + google,usb-port-id = <0>; + }; + }; -- 2.17.1