Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2780317pxb; Fri, 8 Oct 2021 15:22:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzq12Md3qkeXNPAjj63EUxiaxZPJjoorqmD+G0r+bbEpZax8TUH3Qwk7U4ykQDCVZCGE8RT X-Received: by 2002:a63:c10b:: with SMTP id w11mr6881207pgf.228.1633731743343; Fri, 08 Oct 2021 15:22:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633731743; cv=none; d=google.com; s=arc-20160816; b=Lox6VYWAIXnvTuc+/zdhQFw1xs74c7D+Oq+1HlWS1kOhpQLvCW1lV5O4O5tmmB2Yml 1KCYXeL0JlyfVAVSPpKBfsYh9KoUMvJwKF6UOZhEqUugx/A9qvwQGo3yBizFwVkNr/rL PQa5Gk6fJ4oiKjUHVmPsOBPqIOr9ud+BRRFD6b2VY2d/3DsNoVN/762s90BscDxuGkjy uWdkz5Y5jiij+TJyr1EwWf1JkE2aMCOufF8pRNvqfVJ+AziZ6Herp9csxM6GHUv2QrvP oNY7qY5Dvea4lIgLzy82WI0qBU6K/TDpeT/+UEMlET5JUZ2vYQ+vjPz7W1KECf+ddCQy 1Qqg== 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=UU6kbMIJ6P0+5LUEJL0eEAN6Y3jPevBlPgH2FjrwHnA=; b=PIYUsj/SWVCfHueAR8euViLJrkQuc1iecurVxCrP9ysflmlu/JC2CIeU54VSelpwKD ei5ziwQSUoy5Kp+TKlThe2/j8qHQfLdHqpaH76xKjHy5Pc/dw3WQYJONuqxN6dTHE8+3 obSjti0T2OJfpFdK5hZ1pN/yE19QdIHUZ9RtiDUuH7Yaae1FatWD4Fn93GpxT2SEQDKt aurtgF/5SQRqH4U3jAPUsCHfQQrOcRK/C++k9TKmLH1WZLBIBwc9lMzX7wBG0Vrj+K4z xnGWwMQrgJQ/PSqn4JjwbvKyK2D0XZPVll/fyHEMuybQoQiYiQCwZjMEMTF6Q9H4bqpR wPkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id om17si16820692pjb.113.2021.10.08.15.22.10; Fri, 08 Oct 2021 15:22:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S243603AbhJHWWC (ORCPT + 99 others); Fri, 8 Oct 2021 18:22:02 -0400 Received: from mail-oi1-f177.google.com ([209.85.167.177]:38511 "EHLO mail-oi1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231830AbhJHWWB (ORCPT ); Fri, 8 Oct 2021 18:22:01 -0400 Received: by mail-oi1-f177.google.com with SMTP id t4so13753807oie.5; Fri, 08 Oct 2021 15:20:05 -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=UU6kbMIJ6P0+5LUEJL0eEAN6Y3jPevBlPgH2FjrwHnA=; b=6m7l58ZqzCgBjCZUu6prLMLynijDqQh6An/+WJgR8By9uGRpyMwt+k91NWovCLMoZr E+a5MLXRoIx10N1Fwlf9sVcaujEUIAGc7JIXVnHa89VC1pbtQ+Pmy7WFKuHX3sSCGtjO a7DEz1k1Bvqfo3mtv99Y5KXpxJn97612riizPVLHShjtpHmrOR06GFaZ3voKvbfjGPQI BLlLxBQPBhXWIs9m9OCb0fQe4Oh3wMJpn3626srOmzdpBowwUXE64P2jsm7vflrz25Y/ aVu8yI+YtKqS4UpaMosYDi5GRist2LpsI9rXqFmU77XDS7IuZIC4wpVUTF1xdhavu/0e 0DJw== X-Gm-Message-State: AOAM5316Yq2g5i7cWBqNSsHysvCLbzLwvrcCsR4K3qMeudfHjdXDPPUw jlJaq/7zkBx2K0EWZnji3NuSkvU/Kg== X-Received: by 2002:a05:6808:292:: with SMTP id z18mr9290273oic.61.1633731604863; Fri, 08 Oct 2021 15:20:04 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id a13sm159169oiy.9.2021.10.08.15.20.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 15:20:02 -0700 (PDT) Received: (nullmailer pid 3419237 invoked by uid 1000); Fri, 08 Oct 2021 22:20:01 -0000 Date: Fri, 8 Oct 2021 17:20:01 -0500 From: Rob Herring To: Li Yang Cc: Shawn Guo , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Oleksij Rempel , linux-arm-kernel , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 02/16] dt-bindings: i2c: imx: update schema to align with original txt binding Message-ID: References: <20211001000417.15334-1-leoyang.li@nxp.com> <20211001000417.15334-3-leoyang.li@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 01, 2021 at 12:37:54PM -0500, Li Yang wrote: > On Fri, Oct 1, 2021 at 8:24 AM Rob Herring wrote: > > > > On Thu, Sep 30, 2021 at 7:04 PM Li Yang wrote: > > > > > > When the binding was converted from txt to yaml, it actually added more > > > constrains than the original txt binding which was already used in many > > > in-tree DTSes. Some of the newly added constrains are either not valid > > > or not neccessary. > > > > IMO, both of these should be fixed in the dts files. > > > > > Not all SoCs use ipg as the clock name for i2c. There is no point in > > > having SoC integration information defined in i2c binding. Remove the > > > clock name requirement in the schema. > > > > Any name you want is not fine. Your choices are remove clock-names, > > add all the names used, or change everyone to use 'ipg'. > > I understand that the name should be important as clocks are > referenced by name. But since the i2c controller only has one clock , > the name is never referenced in the driver. Then just remove 'clock-names' from the dts file. > If we really want to define the name, IMO, it should be from the > perspective of the i2c controller like "clkin" or "i2c" instead of the > "ipg" from the perspective of SoC integration which could be changing > with a different integration. I can list both "i2c" and "ipg" for now > as a workaround though. $modulename for $foo-names always looks made up and pointless to me. > > > > > > The original txt binding didn't require the order of tx and rx for > > > dmas/dma-names. Many in tree DTSes are already using the other order. > > > Both orders should just work fine. Update the schema to allow both. > > > > Doesn't sound like a case where defining the order is challenging. > > No, it is not challenging. But as dma channel is only referenced by > name instead of index. I don't see too much benefit in enforcing the > order other than easier to create the schema. Easier is nice, and that's the 'DT way' is the other reason. Rob