Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp161517ybv; Tue, 18 Feb 2020 20:13:18 -0800 (PST) X-Google-Smtp-Source: APXvYqxEdhkakvWtMeb6L5xrmQ0TMe4Wt5ppK6Pm+Oh9wVSPVQkHKPyWmFRjBEMhkdCd643VHEjK X-Received: by 2002:a9d:4b05:: with SMTP id q5mr17335957otf.57.1582085598051; Tue, 18 Feb 2020 20:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582085598; cv=none; d=google.com; s=arc-20160816; b=OvL7hMZQFjq28if+ezMRzejFHcfBgSfR5BsEfvN/E3SaXc3W5Zo6jZA3kdjzm5WUHa wgbgGoRGf0wRxRoap6+JSmhIa1bBzCkueoCntbBgOmsDod6tCBPmTLH7d/z+By9jpr6L sENedrpFU7jUJ8XYoljcVm7IG2PYSdDTziRqeVU5GuPB2Ljct2K8HNC0E0Efe4oL0g+B 3KvcZBti9a8aPZ9SOxe6RKZ+JK1uVFzYuhc+ifK8vARusd44w4cbHvlP+/uBAJgfbLhx 4uq9ZEh30Fii2ynr8MojsKM1vE1xG/a0lZSfK/CkOOl5caKiTsXq+3PERSCquDQ3b+dT 7fOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:cc:to:subject :dkim-signature:dkim-filter; bh=U7n0nDovjPinNAeOyhnhsgkmcdAERmhQLFW+c5IPtKw=; b=YkfqrWg7RA7PDbxLms14jGhjisTFYmPoBIme0NayL70aMdp35+3ejlVbkplCn6+hrj dEVSk4WIFVs1ywYPR7JTy6M23WXD02kk8lZye67cPHmamgu1PTOYchKKNqBYVjaeIZ2M LDUIEDzb4HDO5IHl6rNMLPbM/erZF9kXgHSUPIun6ETDw3kMzk6eHW7v/Rjap9VCFVZd 0ktdYdOJeKMy5EjQaHqaKOFZ3KFkjgux6RsBn23y8vuFzOLEHdosSJ1XWHTJHCiTc21b VRQKY6Rr7EpHgLLFyHPI676Lx8NeMB36VP0A4KRIbj1V7gE1G7Xuyz65lSMZIizmKn9Y XbMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ku9wJU1v; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g18si493448otp.61.2020.02.18.20.13.04; Tue, 18 Feb 2020 20:13:18 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ku9wJU1v; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726551AbgBSEM2 (ORCPT + 99 others); Tue, 18 Feb 2020 23:12:28 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:26922 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726508AbgBSEM2 (ORCPT ); Tue, 18 Feb 2020 23:12:28 -0500 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200219041226epoutp032f286aece9ccbd23c3039e68be9007d7~0smwIO1tR2283722837epoutp03- for ; Wed, 19 Feb 2020 04:12:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200219041226epoutp032f286aece9ccbd23c3039e68be9007d7~0smwIO1tR2283722837epoutp03- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1582085546; bh=U7n0nDovjPinNAeOyhnhsgkmcdAERmhQLFW+c5IPtKw=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=ku9wJU1vUT1UB41DWH3aEoMIaVuww1b5NdZqywl0Khp/NIyfmqdmlwwGx7pZTKlI0 ThuLDOt89R9WfFTo/7Uh1Fsx+YqXlnrsc7+990pJTdtmhagul8BGSLUwUA1A5/GHHu Iqu74V39WG1kIBm67LtyyTVgUScvxbt9JdmoayZA= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20200219041225epcas1p1a019ed5ae1d0702fc382cc0b6678f96c~0smvr6Q2q1974819748epcas1p1p; Wed, 19 Feb 2020 04:12:25 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.40.154]) by epsnrtp2.localdomain (Postfix) with ESMTP id 48Mkny0c8CzMqYkg; Wed, 19 Feb 2020 04:12:22 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 3D.52.52419.5A5BC4E5; Wed, 19 Feb 2020 13:12:22 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20200219041221epcas1p3f6cd8e4cb03a8e657ff2794f7aa74b05~0smrlMlXT1364313643epcas1p3E; Wed, 19 Feb 2020 04:12:21 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200219041221epsmtrp242cfbccb464c6585ead7c9388bb0984f~0smrkYMct2045520455epsmtrp2U; Wed, 19 Feb 2020 04:12:21 +0000 (GMT) X-AuditID: b6c32a37-59fff7000001ccc3-3b-5e4cb5a59d1c Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id ED.BC.06569.5A5BC4E5; Wed, 19 Feb 2020 13:12:21 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200219041220epsmtip29266020989df658f8b38ee2a0630480b~0smrP29Wu1146511465epsmtip2i; Wed, 19 Feb 2020 04:12:20 +0000 (GMT) Subject: Re: [PATCH v4] dt-bindings: extcon: usbc-cros-ec: convert extcon-usbc-cros-ec.txt to yaml format To: Rob Herring Cc: Dafna Hirschfeld , devicetree@vger.kernel.org, MyungJoo Ham , Mark Rutland , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , "linux-kernel@vger.kernel.org" , Helen Koike , Ezequiel Garcia , Collabora Kernel ML , dafna3@gmail.com From: Chanwoo Choi Organization: Samsung Electronics Message-ID: <20e80940-ee5e-0593-a231-ee64c85c3212@samsung.com> Date: Wed, 19 Feb 2020 13:20:27 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA02TfVAMcRjH/W73dq/Gsc5LjwxqZUyN6vbOaRkZRHOj/shEM94uO91OpXtz exkvfzgz6UUhw3i5kCGpJM2plJmcEko0mpBKhnFD3jJDDCMvt21G/32e5/k+b78XBaZqJwIV 6RYHb7dwJprwx+tuhUaEl9bGG9Rv3Yg97u3C2baqDzj7sOwpxha3dMjZyr5mxDZUD5HsvXel GHsvf5Bkr3YUyNmu66cI9kJ3p4zt21tGsPsaW8hlSn3lmUqkL3J24vr6/hKkb3D1k3p3RR6h P1hTgfRf3LMSyA0ZS9J4zsjbg3hLitWYbkmNpuMSk2OSdQvVTDiziI2igyycmY+mV8YnhMem m3zj0kHbOVOmz5XACQIduXSJ3Zrp4IPSrII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zFyANnCEocPF0PUvGWUWP3tATNIjbBAtkTviatsILaIgIrEhue3mEGKmAX+M0vcffCfFaJj MpPE9gXdYFPZBLQk9r+4AdbBL6AocfXHY0YQm1fATuLo9busIDaLgKrEk/mnwepFBcIkdi55 zARRIyhxcuYTFhCbUyBQYvntL2A2s4C6xJ95l5ghbHGJW0/mM0HY8hLb385hnsAoPAtJ+ywk LbOQtMxC0rKAkWUVo2RqQXFuem6xYYFRXmq5XnFibnFpXrpecn7uJkZwdGpp7WA8cSL+EKMA B6MSD++Bi95xQqyJZcWVuYcYJTiYlUR4vcW94oR4UxIrq1KL8uOLSnNSiw8xSnOwKInzyucf ixQSSE8sSc1OTS1ILYLJMnFwSjUwlkzd9kLX/lSpwAOfOZeE/Ptd3xkY5O+99vbp5VX6JTcq zbjYFUIvGs6x3NKUK/eOse/grMwEpxrtBQuj/j84GrB/loJD09PiKr9Pbqtdz95Wb8/6c9Iw +b3dS5Obb3LneXDe42iW8N2sYx025fzUEI7pK/89nM/jGtl8rOX2z8jAbUtvTbD7qcRSnJFo qMVcVJwIABz+LmvKAgAA X-CMS-MailID: 20200219041221epcas1p3f6cd8e4cb03a8e657ff2794f7aa74b05 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200213123953epcas1p45c39830a9ec6bd535f5370702f603806 References: <20200213123934.10841-1-dafna.hirschfeld@collabora.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/19/20 11:20 AM, Rob Herring wrote: > On Mon, Feb 17, 2020 at 4:30 AM Chanwoo Choi wrote: >> >> On 2/13/20 9:39 PM, Dafna Hirschfeld wrote: >>> convert the binding file extcon-usbc-cros-ec.txt to >>> yaml format extcon-usbc-cros-ec.yaml >>> >>> 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 >>> Reviewed-by: Enric Balletbo i Serra >>> --- >>> Changes since v1: >>> 1 - changing the license to (GPL-2.0-only OR BSD-2-Clause) >>> 2 - changing the maintainers >>> 3 - changing the google,usb-port-id property to have minimum 0 and maximum 255 >>> >>> Changes since v2: >>> 1 - Changing the patch subject to start with "dt-bindings: extcon: usbc-cros-ec:" >>> 2 - In the example, adding a parent isp node, a reg field to cros-ec@0 >>> and adding nodes 'extcon0/1' instead of one node 'extcon'. >>> >>> Changes since v3: >>> in the example, changing the node isp1 to spi0 >>> >>> .../bindings/extcon/extcon-usbc-cros-ec.txt | 24 -------- >>> .../bindings/extcon/extcon-usbc-cros-ec.yaml | 56 +++++++++++++++++++ >>> 2 files changed, 56 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..9c5849b341ea >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.yaml >>> @@ -0,0 +1,56 @@ >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id: https://protect2.fireeye.com/url?k=d3c63a24-8e5dc647-d3c7b16b-0cc47a31cdbc-e8d8e2b7806aed8e&u=http://devicetree.org/schemas/extcon/extcon-usbc-cros-ec.yaml# >>> +$schema: https://protect2.fireeye.com/url?k=04f78247-596c7e24-04f60908-0cc47a31cdbc-1b9a3937c161a4b6&u=http://devicetree.org/meta-schemas/core.yaml# > > ^^^ > >>> + >>> +title: ChromeOS EC USB Type-C cable and accessories detection >>> + >>> +maintainers: >>> + - Benson Leung >>> + - Enric Balletbo i Serra >>> + >>> +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: >>> + allOf: >>> + - $ref: /schemas/types.yaml#/definitions/uint32 >>> + description: the port id >>> + minimum: 0 >>> + maximum: 255 >>> + >>> +required: >>> + - compatible >>> + - google,usb-port-id >>> + >>> +additionalProperties: false >>> + >>> +examples: >>> + - | >>> + spi0 { >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + cros-ec@0 { >>> + compatible = "google,cros-ec-spi"; >>> + reg = <0>; >>> + >>> + usbc_extcon0: extcon0 { >>> + compatible = "google,extcon-usbc-cros-ec"; >>> + google,usb-port-id = <0>; >>> + }; >>> + >>> + usbc_extcon1: extcon1 { >>> + compatible = "google,extcon-usbc-cros-ec"; >>> + google,usb-port-id = <1>; >>> + }; >>> + }; >>> + }; >>> >> >> Applied it. Thanks. > > And once again corrupted it when applying it: > > Documentation/devicetree/bindings/Makefile:12: recipe for target > 'Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.example.dts' > failed > Traceback (most recent call last): > File "/usr/local/lib/python3.6/dist-packages/jsonschema/validators.py", > line 774, in resolve_from_url > document = self.store[url] > File "/usr/local/lib/python3.6/dist-packages/jsonschema/_utils.py", > line 22, in __getitem__ > return self.store[self.normalize(uri)] > KeyError: 'https://protect2.fireeye.com/url?k=04f78247-596c7e24-04f60908-0cc47a31cdbc-1b9a3937c161a4b6&u=http://devicetree.org/meta-schemas/core.yaml' > > I'm sorry for that. It was added by company firewall system automatically when I applied it to git. It was my mistake. I'll edit them and pushed again. Thanks. -- Best Regards, Chanwoo Choi Samsung Electronics