Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp14495rwb; Wed, 10 Aug 2022 13:54:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR5gMp5WlrwXa13JJOvp0o/hjHGmcarwbLcyYLp7c8LXuZ/NieWlrAJsatUfXWlIEpcd6PRz X-Received: by 2002:a17:906:8a6d:b0:730:9cd5:6688 with SMTP id hy13-20020a1709068a6d00b007309cd56688mr20891662ejc.158.1660164899318; Wed, 10 Aug 2022 13:54:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660164899; cv=none; d=google.com; s=arc-20160816; b=vkNExx1VRmk4jh28TnlEOMn6ZznvQ1S8ynODBwRTA8pF0RJoPKwkEpoPTPqa+QO4ys Gjp8el/vhP+cX0XqqpKA/5H54dm4fERA50xejvIlZ7qrn9rYPhIM6AwF1OokUmvQRbWM au+W0jj67oWKLrDLdZ+Nqe9ZJPrP0+5ek4pLWqQ56mF1jDnA8TuynGulPYzWfgxXSim8 YIQs5HoqPsB2V0f+MGp3ivK76KKWc6XDW9i/2DuG+kOhLv/PKAlkR6H+wfnx3stoRitM 50xPNnnj825oCcmuM9B7PdK3KgLVk+teaKlUaOeondBNQXMANejRUoQ8HLh8p2MqX75F hTWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NwgXjNaIXT7rH65EUl1dyeLewrPUELXtTgeTQdMLe+E=; b=ifHrB4fEeIX9G6/tj+omafm9Ru+6DR4/dLGoM2i1TyTGL5pNVSn2LdsEkvqDNxufWL lgMUFFoKBFew5ShGneq5r+TZmNWq+jAHh0EqPw+X/U/bhPJN6jfbs0DNRPrpgahIog4u frlNe4pPwzcBbwqiAv8wC2rylqD3MIC9eFDM6fD0ysvfeBzxUzas14G9joABWNC2IxKl fNTCDFgPIw7vnwAzif4+cjwuRuYyaDpXYXa5BDp1t+O/5Y6l1mJeURHqMXiFwL1zjg66 vR6TNKqlUiEnwOSEVN+hvaEorwbwT9/6VuIe27kstjd4+iD0OgxbmVKMe7XxFy0ywvM0 ewLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="x51/E5hD"; 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 gt14-20020a1709072d8e00b0073062f48dbesi6222574ejc.671.2022.08.10.13.54.32; Wed, 10 Aug 2022 13:54:59 -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="x51/E5hD"; 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 S233076AbiHJTaz (ORCPT + 99 others); Wed, 10 Aug 2022 15:30:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232960AbiHJTav (ORCPT ); Wed, 10 Aug 2022 15:30:51 -0400 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5427C7538A for ; Wed, 10 Aug 2022 12:30:48 -0700 (PDT) Received: by mail-oi1-x230.google.com with SMTP id p132so18834573oif.9 for ; Wed, 10 Aug 2022 12:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=NwgXjNaIXT7rH65EUl1dyeLewrPUELXtTgeTQdMLe+E=; b=x51/E5hDzQgFUX5IDIMO+0+qp06hlb6XGB2wzq0X2tJe62rx2rvh5yS8+6Ra2XbppH uoBHnv16WXOfyHrONX8AlICDeiAHAOvTBfm09xJ8VDPUttwhsiIkYaGsYxxkOnVGFTTH UISv5WrjFRuTPF5Chq8qKIyAJsFUzBZHF/gCv/8sonfWDjQ/svsT3NhEqBk1iWikbDVD DSuR8oSWmQTuqDTNw788Wrrk+NKZU3d03rWPjh4Rv25+klF59OMp2VPy4ZDWK+fmTBJw HRqJcWIqa0XU5Ah7r2qMWJ4hJEDxnfFzDWkB8bFJEjqo5+9MjcEtqVRJ/Mq6wuUemxID z30Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=NwgXjNaIXT7rH65EUl1dyeLewrPUELXtTgeTQdMLe+E=; b=mbNl4pXbRdopM4pScr10u3cpJ0qTuh0R68h11O6xvOtXOeFkmt3i7nU/pIkR/IqJ/N a6c4/KKOwHsIgbGZaD9XHphApBWfu1L0sjQvRrt33LwJjx7Ky4OoOYffmmrCYp1r1QJV NnF3jwNYprkl7hahMhD3yI+MsCq3O5RBdoX/NPGSJLOxfWbk/9lDHIwv9Zu8/Z6Tyu3v fIYFXwwPb2QA8IZwcPF5gGkz2Ih+wIq/RO02j210HemgpNHzTy/GKgSfVmcwqRe7Hq1e FJjK8nZqKRC4GEXqyCv43OIeIlBE2JISesBDQF3/T3i6GbeGNPQX8MPB02bdfWr5fADE /teQ== X-Gm-Message-State: ACgBeo0S2CVmmsIGpQx33ZdvysYqIoY8HkyThKkyv6tiA87T0S8dYJP2 ePNAgNqqqQJVoplGhVG/HnXPhg== X-Received: by 2002:a05:6808:124b:b0:2da:38f0:945f with SMTP id o11-20020a056808124b00b002da38f0945fmr1981969oiv.171.1660159847678; Wed, 10 Aug 2022 12:30:47 -0700 (PDT) Received: from ripper (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id l3-20020aca1903000000b00339c8aab320sm768712oii.3.2022.08.10.12.30.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 12:30:47 -0700 (PDT) Date: Wed, 10 Aug 2022 12:33:23 -0700 From: Bjorn Andersson To: Krzysztof Kozlowski Cc: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: power: supply: Add Lenovo Yoga C630 EC Message-ID: References: <20220810030500.2793882-1-bjorn.andersson@linaro.org> <20220810030500.2793882-2-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Wed 10 Aug 06:35 PDT 2022, Krzysztof Kozlowski wrote: > On 10/08/2022 06:04, Bjorn Andersson wrote: > > Add binding for the Embedded Controller found in the Qualcomm > > Snapdragon-based Lenovo Yoga C630. > > Thank you for your patch. There is something to discuss/improve. > > > + > > +description: > > + The Qualcomm Snapdragon-based Lenovo Yoga C630 has an Embedded Controller > > + (EC) which handles things such as battery and USB Type-C. This binding > > + describes the interface, on an I2C bus, to this EC. > > + > > +properties: > > + compatible: > > + const: lenovo,yoga-c630-ec > > + > > + reg: > > + const: 0x70 > > + > > + '#address-cells': > > + const: 1 > > Just to clarify: the EC have physically two USB connectors? > Correct, while it's only possible to do Displayport on the second connector, the EC is involved in both the connectors - based on the events received from it. > > + > > + '#size-cells': > > + const: 0 > > + > > + interrupts: > > + maxItems: 1 > > + > > +patternProperties: > > + '^connector@\d$': > > + $ref: /schemas/connector/usb-connector.yaml# > > unevaluatedProperties:false inside connector (on its level) > Okay, will update accordingly. > > + > > +required: > > + - compatible > > + - reg > > + - interrupts > > + > > +additionalProperties: false > > + > > +examples: > > + - |+ > > + #include > > + i2c1 { > > + clock-frequency = <400000>; > > + > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + embedded-controller@70 { > > + compatible = "lenovo,yoga-c630-ec"; > > + reg = <0x70>; > > + > > + interrupts-extended = <&tlmm 20 IRQ_TYPE_LEVEL_HIGH>; > > + > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + connector@0 { > > + compatible = "usb-c-connector"; > > + reg = <0>; > > + power-role = "source"; > > + data-role = "host"; > > + }; > > + > > + connector@1 { > > + compatible = "usb-c-connector"; > > + reg = <1>; > > + power-role = "source"; > > + data-role = "host"; > > + > > + ports { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + port@1 { > > + reg = <1>; > > + lenovo_ec_dp_in: endpoint { > > + remote-endpoint = <&mdss_dp_out>; > > You have inconsistent indentation. Use 4-spaces for entire DTS example. > Odd, will fix. Thanks, Bjorn > Best regards, > Krzysztof