Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp413105pxk; Wed, 23 Sep 2020 06:35:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWS+82HAIBX1DK3i697b6b9DSZuJWb6j5PSJSJ9JU9ccPaA3sH8mh5uz80WKsumqtgz7Q+ X-Received: by 2002:a17:906:454a:: with SMTP id s10mr10151926ejq.138.1600868110576; Wed, 23 Sep 2020 06:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600868110; cv=none; d=google.com; s=arc-20160816; b=p/PRSJWOcZmPBbU++7lXo9nLzgan9QYVu4VSIjk6JV5hLrPXpR1uvjwTvNWsB8QIE2 GBAGmepr9j1HbB5lniRCuVdhQfpqOFy+cpPYBxdRJ3Pnk0oI1waffArGSa5/kOtQwhf8 i1EOQv7JIZdtXzEzrbd9KnM81m1A8y2Oh27abCDwk2klL58NIJzsIpaRveNrjXBteemU EFqTbXdqwyrLs+rK/dS76CJZTNYFAlx6EeZiTJBgF33HE1JkTTVXRGPLoihFiJrLB/CH TKU37u4Uao8z1mZy1ti5IE590lvz5jxyP3kLebEuSf73EnxK05SH9Jg7rfMiPTFenEa7 k7yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=eeoC6DdjJFH1yfj/XSpG8aTBibliQ75+xxMck9MEMvI=; b=u2m0l84uBfSLfA4I5frOIx3DenQiKUC+/ILLK6yyjKnENABzYRCA5Tni2EJrmil4NK cPgvy8rt8OiiuZA7MkLyFi6v9NzUtISlGxJz+cQq3y+fK7SZkR+SY8bKW9pUK3ja7zEJ 1oMr6T0bie2wG9H2kmyCSP05vwnNjsykx+jwpGlxNcd9xrRiVxr0FDvj3Q/1q2XAhGUs 7o4D+csmqzFEDbUutOtrIvGlD7exAMFQrm76zkUtHm8mbAYK05PGdSP8KMX0fOe5hgkt SHQrmShHQHwvasoxJ424Sor8LHoDxoNr9QUqnMUMgtkM1ADwvfiUfOmO3rpb4MBJcxCj NPmw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pj11si12524747ejb.191.2020.09.23.06.34.44; Wed, 23 Sep 2020 06:35:10 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726540AbgIWNdi convert rfc822-to-8bit (ORCPT + 99 others); Wed, 23 Sep 2020 09:33:38 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:32907 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbgIWNdi (ORCPT ); Wed, 23 Sep 2020 09:33:38 -0400 Received: by mail-oi1-f196.google.com with SMTP id m7so25057616oie.0; Wed, 23 Sep 2020 06:33:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=jLvhxV8WN8tYwAsKLuQ5qoca0AxXLmY9ncmfD688UVE=; b=QsOT76/UlfNd6ehu92bgbyqo/n547aOOepxdTR6Z06939gAY+FLNAb3R5FEcUdN+je saiCP8jJHSe5HtdUXiGFzquR0tTo4+ulzI9x05+ZZIeqF6iUEO8wPlh4yXWRyFxmmQD8 dOiQDvX5AoBEH1vSFS4nOdBP/u2wsg67E/f1UDSSBuKmdORlujLLRZfTxs7r3ADED0r5 +48fM1uQW7lxiuLwSlqW4Q1J7HRN62vgXxArGJ40jYRx+kKyA5IHfAP1nbfoRNctnPvY 9IBXuXpiwVTxJhVGpK9Shi+c4WUty9BljOnWODVGKfCKBjJigzh89rV8VFX+qTEKWhRW w1WA== X-Gm-Message-State: AOAM533VSOa+nuMR2z4KeJY89VrrBSUr+PIZ41exm5Fy0zFmhk6MFSWG 7B8cDhpqJDDbhBfC9afKjx2yBwB0T6efa4XpAsxI30Xthj8= X-Received: by 2002:aca:4441:: with SMTP id r62mr5414688oia.153.1600868017348; Wed, 23 Sep 2020 06:33:37 -0700 (PDT) MIME-Version: 1.0 References: <20200916105949.24858-1-fabrizio.castro.jz@renesas.com> <20200916105949.24858-3-fabrizio.castro.jz@renesas.com> In-Reply-To: From: Geert Uytterhoeven Date: Wed, 23 Sep 2020 15:33:26 +0200 Message-ID: Subject: Re: [PATCH v2 2/3] media: dt-bindings: media: renesas,drif: Convert to json-schema To: Fabrizio Castro Cc: Mauro Carvalho Chehab , Rob Herring , Ramesh Shanmugasundaram , Linux Media Mailing List , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Linux-Renesas , Chris Paterson , Biju Das , Prabhakar Mahadev Lad , Laurent Pinchart Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fabrizio, On Wed, Sep 23, 2020 at 1:55 PM Fabrizio Castro wrote: > > From: Geert Uytterhoeven > > On Wed, Sep 16, 2020 at 1:00 PM Fabrizio Castro > > wrote: > > > Convert the Renesas DRIF bindings to DT schema and update > > > MAINTAINERS accordingly. > > > > > > Signed-off-by: Fabrizio Castro > > > +if: > > > + required: > > > + - renesas,primary-bond > > > +then: > > > + required: > > > + - pinctrl-0 > > > + - pinctrl-names > > > + - port > > > > The last 3 properties must not be present for a secondary interface, > > right? > > If you have both channels enabled, then one of the two has to define properties: > * renesas,primary-bond, pinctrl-0, pinctrl-names, and port. > > If only one channel is enabled, then the primary bond concept loses its value, > whether renesas,primary-bond is specified or not doesn’t matter anymore, but the > enabled node has to specify the pinctrl related properties and the port. > > > To express that, I think you need to add: > > > > else: > > properties: > > - pinctrl-0: false > > - pinctrl-names: false > > - port: false > > If I went with this, we would not be able to allow those properties to be specified in the > only enabled node for single channels configurations. > > Is there a better way to approach this? > > I'll wait for this point to get sorted before sending v3 out. The old binding said: -Required properties of an internal channel when: - - It is the only enabled channel of the bond (or) - - If it acts as primary among enabled bonds -- renesas,primary-bond: empty property indicating the channel acts as primary - among the bonded channels. so renesas,primary-bond is required for the only enabled node for single channels configurations anyway? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds