lkml.org 
[lkml]   [2022]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 1/8] dt-bindings: pinctrl: mvebu: Document bindings for AC5
    On Tue, Mar 15, 2022 at 01:27:48AM +0100, Andrew Lunn wrote:
    > > I think it can. I vaguely remember seeing conditional clauses based on
    > > compatible strings in other yaml bindings.
    > >
    > > I started a new binding document because I expected adding significant
    > > additions to the existing .txt files would be rejected. If I get some
    > > cycles I could look at converting the existing docs from txt to yaml.
    > >
    > > I'm not sure that there will be much in the way of a common
    > > mvebu-pinctrl.yaml as you'd end up repeating most of the common stuff to
    > > make things conditional anyway.
    >
    > We should wait for Rob to comment. But is suspect you are right, there
    > will not be much savings.

    It's always a judgement call of amount of if/then schema vs. duplicating
    the common parts. If it's the function/pin parts that vary, then that's
    probably best as separate schema for each case. Otherwise, I'm not sure
    without seeing something.

    Rob

    \
     
     \ /
      Last update: 2022-03-23 19:35    [W:5.513 / U:1.208 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site