Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3479203iog; Mon, 27 Jun 2022 17:32:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tJgOExBo1y1Sd4rlrtU1zyg7CYMiqCyxLeKWnw4M/gbIPYg5fANt4sO3NSQ53ybamZgY5I X-Received: by 2002:a17:907:969f:b0:726:94a0:26fd with SMTP id hd31-20020a170907969f00b0072694a026fdmr11900389ejc.234.1656376329491; Mon, 27 Jun 2022 17:32:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656376329; cv=none; d=google.com; s=arc-20160816; b=ApYJ8d0Uj3tO5+9lCwNykhQWLDW/MyjxXeVn9/TKBGa4iElVrIXIsKD0MToY68eeWE LpMQhaW8ove7yfMlhG5NW2DTSAn3x7tqhHI0evt+2C/7777N7U4hZ6x/HnKcRB+m7H9R FsxNv8aSKm3BiUOjTVfWhnXLL/gm4EUQd5Mxufp7ehjlbn5loDxalm/hv4h5nzv9LFnh Nl7aofMYzXCn8iSNyaq2Jnbf9hNRMJnoHVSp8Ek3xtWOyeak3Szebzf9Dm4p4x36YlLS 9XBe7VYXnLYzPtZ/fA5NrPuLxPwvb7b/7xMKedLX5jV7ZVffomgH70zyqWZLnOH1HpGV Nb9g== 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; bh=oRvWZ9TeKvYoId4Is7bsf/P3csJZYeH6unVDw+FoBLU=; b=ILpBXufLMmHJqKI6u24840xOjbMlufiGGvnsDumnmbU7/f7wEeEH+FPRvGroKOxQIU twIRbD7Syz8ROMWdbx7iwgBoyME2GLy4VApJVeKtfsIa7FFvtN5Ae/YYm1Gc9NN/sG/5 S0WQZ2+CzvKwQziqdMrOVC7PMy8CPW5kmoixghNKbnawcNfZT+f7YVCB1F83JnHBh+zN cmiY8wNsilmQqPPwv/z3y0mBHLBYVdSp8+5YRgF0zUkdK4q98ogvOJp83pL0YkPNFgQ0 YL8PkMk+e6qiDlB/jJOh72aTBxVu0LImkvn8ZIckPs8d8f58pt6pRKX61mpCoX/NI1EA Mbaw== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ej27-20020a056402369b00b00434fff6fe37si11284737edb.227.2022.06.27.17.31.44; Mon, 27 Jun 2022 17:32:09 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241528AbiF0Xr7 (ORCPT + 99 others); Mon, 27 Jun 2022 19:47:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242538AbiF0Xre (ORCPT ); Mon, 27 Jun 2022 19:47:34 -0400 Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A83316585; Mon, 27 Jun 2022 16:47:34 -0700 (PDT) Received: by mail-io1-f43.google.com with SMTP id z191so11262105iof.6; Mon, 27 Jun 2022 16:47:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=oRvWZ9TeKvYoId4Is7bsf/P3csJZYeH6unVDw+FoBLU=; b=DqGL5rQAznhpykG45QQmWkBJJ+kum7QXo7ndJNibCk03g5AykLFcHP5z2f16At5LTx h5CBS0YfD25NEv5fqWowdPQi0pttPk6hAuJBiEFDhp96xE7sFSeXjaTXjH3F2/9MlGoP x61Mkx/76Y7aZS9pruuPfZSAFWN9YU6f7eqt+rWBcLQZEl69L8ZbxE0LoXFx2JrGN75o w43jmI5jtwQkFIA6FfJaj9nj6tWhxO01XpZd70CiF2lPxvaaXrPcz3r9MfEDyLPGnHCn X7W+e1wC6KeUNJiUghw6xn4JzrG0PQsCfeXS0215lnVb4MET35BWbf079akN4ZYlZo6J EU9Q== X-Gm-Message-State: AJIora8thM5q6XjZ44OxBYVwae09kS4EqjL1Mci4YZEc4oKT/z7DHpm0 zj3Ui9KkYyPpjQhflYJZrw== X-Received: by 2002:a05:6638:1344:b0:331:f546:69e with SMTP id u4-20020a056638134400b00331f546069emr9894555jad.131.1656373653305; Mon, 27 Jun 2022 16:47:33 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id b201-20020a6bb2d2000000b00674c8448c3csm5993564iof.6.2022.06.27.16.47.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 16:47:32 -0700 (PDT) Received: (nullmailer pid 3193779 invoked by uid 1000); Mon, 27 Jun 2022 23:47:29 -0000 Date: Mon, 27 Jun 2022 17:47:29 -0600 From: Rob Herring To: Laurent Pinchart Cc: Krzysztof Kozlowski , Chunfeng Yun , Kishon Vijay Abraham I , Vinod Koul , Krzysztof Kozlowski , Anurag Kumar Vulisha , Michal Simek , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Anderson Subject: Re: [PATCH] dt-bindings: phy: make phy-cells description a text Message-ID: <20220627234729.GA3169775-robh@kernel.org> References: <20220619113325.21396-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Sun, Jun 19, 2022 at 02:40:12PM +0300, Laurent Pinchart wrote: > Hi Krzysztof, > > Thank you for the patch. > > On Sun, Jun 19, 2022 at 01:33:25PM +0200, Krzysztof Kozlowski wrote: > > The description field is a string, so using YAML inside phy-cells > > description is not actually helpful. > > Does it hurt though ? Unfortunately, I see this a bit. It's convenient because the schema passes all the checks. Doh! And I usually stare at it wondering how it passed. Though I probably did review this, so IDK... > For xlnx,zynqmp-psgtr.yaml I wrote it that way to > prepare for a future where it could be described using a YAML schema > (but such future may never come). There's 2 parts. There's the resolving the defines and then applying the schema to the cells. I actually think the latter would be easier. At least from a documenting standpoint, we just need to define our own keyword to stick the schema under. With the tools doing dtb based validation now, the tools already get the phandle node and get the cell size from the DT. It's just another step to extract the node's compatible, find it's schema, and get its cell format schema. Any volunteers? Rob