Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4560287pxu; Wed, 9 Dec 2020 22:42:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzHra98qcC+x9Uz/2xTlpLctZEoeGxRIo1tD3IXtWAjh9Ad0umPOaVtQrPPqxktBDUYkwsc X-Received: by 2002:a50:b761:: with SMTP id g88mr5415214ede.387.1607582527352; Wed, 09 Dec 2020 22:42:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607582527; cv=none; d=google.com; s=arc-20160816; b=fQqtbTXu3Q/jIX3EcKWXQDrOFDNnl95ZT9qGEaL8nx7BE3pbVerLSgN5GKC3bbuMZq 1AehqAR+M3c7C2tQ9+ILzqMXcU61r9/61VhUOlsK98nTR/8nhsjmAWHjM3DHCZUi0KOG PHZUdtqAZL4CRUifw5ud/L2/FGmRBGz/W8csnwIFC/l5/ddmNswOWqdKzREWGz0ugNSZ dxLWNkUDuX1r1KN30ctCeQ/TlWqW+P45D/lBdSfI0AQH70k/RWthRyiNRdrfkdtdEIMt ikOmKdRZy+3kclcQR6y4YQF2hkAqdHDR6dvcgYTCP/tQNSwRvOgrrkcbT579CXYKEcjL 2yhA== 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=BPV+mbc7aH16lyR1Iy3IK6IHtEQI7lxOlNJLzhXVprg=; b=U3L3gbztxrYMrh6r5u7J8WRvbcp1oB82LImIYAzlir5X5A/ijptR1D16U/phGTpEC9 2mFrVllajzrWm/kF8t5vnBSwoet0DZ4WGtqTikUOMOGTUMD7yPxunGRgWc5qpKszptAs oE+eh1NUYw6wnbzBjgB2muRt9rZPcQlyqzP2nzw+frmHx6NK50ZciQI/V9GoBhN6cZxM txidPPO/BAOtfX8pZXk0j1EODTB0FAoWQqAOenKllAJfnVyKp0nNa9N0BU6IiwT8IbxB 2VyLWsK2W6+JQtZex6Lngsp9uJHGhBsKSl4REHRozxWnax3j2bRci6th0AShUmla211b yPFQ== 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 b19si2340595edn.334.2020.12.09.22.41.44; Wed, 09 Dec 2020 22:42:07 -0800 (PST) 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 S1729230AbgLJDYo (ORCPT + 99 others); Wed, 9 Dec 2020 22:24:44 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:44188 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728199AbgLJDYo (ORCPT ); Wed, 9 Dec 2020 22:24:44 -0500 Received: by mail-ot1-f66.google.com with SMTP id f16so3590543otl.11; Wed, 09 Dec 2020 19:24:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=BPV+mbc7aH16lyR1Iy3IK6IHtEQI7lxOlNJLzhXVprg=; b=C0z+Fs4DZeylTcA3P39LK1NiYXw9e3cAFxmHBvy2xNgTrpFChgK/0pHR1zoCesZbOb gQiU+UNIvVs40OjixuT6cNseZs+9ulZxEdHMMXv2tYcsVaJZEV9qZt9CzL2o/LSCKmab qEJ4Pw/mImBiu1NlhRb5BmJArdLjLwon13U/tz/2C9ZTHp+krOZQb5NQgjECXNkxCxlD L3MRtwf9qvQ5AXwo57cc5It2JnWNcnMYcaNFB0QI3Bx4OBgkceD6zVRkrBsLooXpEdyZ 5L7T7eF25DvbzakTuPVxZFBuOLFUjisyjPDNnF4pbdKITxIhnMa1NZepZeSLH8UtwhS/ qazA== X-Gm-Message-State: AOAM531SG/ndtjNWzCb/aBgC/Emj3EAZTcrOD9pP+kPqd9uGgAb52fFD YxbzLsd2i06hVDU172mfTw== X-Received: by 2002:a9d:5f9a:: with SMTP id g26mr4523870oti.241.1607570643083; Wed, 09 Dec 2020 19:24:03 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id r204sm334552oif.0.2020.12.09.19.24.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Dec 2020 19:24:01 -0800 (PST) Received: (nullmailer pid 1590264 invoked by uid 1000); Thu, 10 Dec 2020 03:23:59 -0000 Date: Wed, 9 Dec 2020 21:23:59 -0600 From: Rob Herring To: Serge Semin Cc: Krzysztof Kozlowski , Pavel Parkhomenko , linux-mips@vger.kernel.org, Alexey Malahov , Roger Quadros , Bjorn Andersson , Neil Armstrong , Ahmad Zainie , Lad Prabhakar , Felipe Balbi , linux-snps-arc@lists.infradead.org, Kevin Hilman , linux-usb@vger.kernel.org, Mathias Nyman , Martin Blumenstingl , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Chunfeng Yun , linux-arm-kernel@lists.infradead.org, Andy Gross , Serge Semin , Yoshihiro Shimoda , devicetree@vger.kernel.org, Manu Gautam , Greg Kroah-Hartman , Rob Herring Subject: Re: [PATCH v5 01/19] dt-bindings: usb: usb-hcd: Detach generic USB controller properties Message-ID: <20201210032359.GA1590225@robh.at.kernel.org> References: <20201205152427.29537-1-Sergey.Semin@baikalelectronics.ru> <20201205152427.29537-2-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201205152427.29537-2-Sergey.Semin@baikalelectronics.ru> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 05 Dec 2020 18:24:08 +0300, Serge Semin wrote: > There can be three distinctive types of the USB controllers: USB hosts, > USB peripherals/gadgets and USB OTG, which can switch from one role to > another. In order to have that hierarchy handled in the DT binding files, > we need to collect common properties in a common DT schema and specific > properties in dedicated schemas. Seeing the usb-hcd.yaml DT schema is > dedicated for the USB host controllers only, let's move some common > properties from there into the usb.yaml schema. So the later would be > available to evaluate all currently supported types of the USB > controllers. > > While at it add an explicit "additionalProperties: true" into the > usb-hcd.yaml as setting the additionalProperties/unevaluateProperties > properties is going to be get mandatory soon. > > Signed-off-by: Serge Semin > > --- > > Changelog v4: > - This is a new patch created as a result of the comment left > by Chunfeng Yun in v3 > > Changelog v5: > - Discard duplicated additionalProperties property definition. > --- > .../devicetree/bindings/usb/usb-hcd.yaml | 14 ++------- > .../devicetree/bindings/usb/usb.yaml | 29 +++++++++++++++++++ > 2 files changed, 31 insertions(+), 12 deletions(-) > create mode 100644 Documentation/devicetree/bindings/usb/usb.yaml > Reviewed-by: Rob Herring