From patchwork Tue May 21 11:58:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 164706 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1507454ili; Tue, 21 May 2019 05:00:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyy1W2bsoXwtJCE11BL1CpAEBjeyLkavzBuMH/NbE8B2EU0AKPPCY3jSp9LRD865k3HsXrj X-Received: by 2002:a17:902:b601:: with SMTP id b1mr33976365pls.117.1558440020241; Tue, 21 May 2019 05:00:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558440020; cv=none; d=google.com; s=arc-20160816; b=Jh+UxGvElmLvVLJw3SzQawPfs2zFjcfUoWYJj87igYTgJF8dNf2P79MZuDdcwNzwol w2/bjRMcZNbLULcn9JmpDj1EYSbNlxxDttr3vINU0f+mhVUH1KpKN9SLxBogIykL6kp2 YKQ7iyNrLeAp3qAFTHnzgUAoUdgOHk+sFqSrMRLgB6D3mWtCLU4gWZKjZ7DkzUMjXBxZ qJ2rqmyZ9ZXi0ZvTk4SxewkllAhfSjCgeKfWEKG6fHhPv7PJkfoPfGmX2aFn73R90+mJ tkV224uPiLMVntkJtl7EN3t4z25m+jePQhqlzn3olN3c0X4FAw1b26M4iMuWurvDKu7r fUjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:content-transfer-encoding:mime-version :dkim-signature:dkim-filter; bh=RrQ0ZCpdVs97gZ7K9+8F0dNC/Ig6KHAEPZ/t/RRTOv4=; b=u2ebita7A6cE4QpFsx3Omv56ATry/4cuYYfJBAYiazmHJwhngrSbBK5YUeQP/wyCMp dUZJs4MjuPIJDwVGxdJd6QwqxeakWHwwDgNS2exGSe46fhyWmGk2yCiBWVLEkHAiafZb sPIs8EHN9JRfrtQpp6dhivH2Evy4uwc/3SwtG31xfn2zaj47badNVkrcF0tJVlxceZ71 XdfkO8CqwoZrU+sgrG4IGRWR4y3V7vzatYF0UX5szk9y9GY8/I62/bLkKx1HI++eecVa r+9nCgB2ck48afMhtP2aZeJQ8i3OWukyr/zZOqIo4wsbDJ0nprK+bxefL0JPxiyQUuh9 037w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="Ow/1QQWZ"; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cn10si22691475plb.270.2019.05.21.05.00.19; Tue, 21 May 2019 05:00:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="Ow/1QQWZ"; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727849AbfEUMAT (ORCPT + 3 others); Tue, 21 May 2019 08:00:19 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:56559 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727060AbfEUMAT (ORCPT ); Tue, 21 May 2019 08:00:19 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190521120017euoutp0133a2943095183c094391ed22666a6ebc~gsPBjF6l03151431514euoutp01C for ; Tue, 21 May 2019 12:00:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190521120017euoutp0133a2943095183c094391ed22666a6ebc~gsPBjF6l03151431514euoutp01C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1558440017; bh=RrQ0ZCpdVs97gZ7K9+8F0dNC/Ig6KHAEPZ/t/RRTOv4=; h=From:To:Cc:Subject:Date:References:From; b=Ow/1QQWZOJcc6oEB+N564vrjHLsF2MY0imj7r1eoJ2GypzMHb5vYLn+z8mpbDKjgW pcvjzm8HUKSZ/yj3rghaBe/jaXLb8IqV/nNWdV2fgZrVbBucEUbqTH+Op0hPbYpC3A MojMbCGBH04XYALemPWa43JTFYWwAh5vLd8G/t4M= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190521120016eucas1p135965dbdc9f2ddb42718ec766ef7c257~gsPAyQ-Nh2114221142eucas1p1y; Tue, 21 May 2019 12:00:16 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id AE.AA.04377.058E3EC5; Tue, 21 May 2019 13:00:16 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190521120015eucas1p1da2f3f32d6b8af8cb550463686fd4e12~gsPAAmFc71859418594eucas1p1J; Tue, 21 May 2019 12:00:15 +0000 (GMT) X-AuditID: cbfec7f4-12dff70000001119-e0-5ce3e8509ac1 Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 2C.02.04146.F48E3EC5; Tue, 21 May 2019 13:00:15 +0100 (BST) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset="UTF-8" Received: from AMDC2765.DIGITAL.local ([106.120.51.73]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PRU006F4RY90T20@eusync4.samsung.com>; Tue, 21 May 2019 13:00:15 +0100 (BST) From: Marek Szyprowski To: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Markus Reichl , =?utf-8?b?TcOlbnMgUnVsbGfDpXJk?= , Krzysztof Kozlowski , Peter Chen , Alan Stern , Rob Herring Subject: [PATCH 0/5] Exynos EHCI/OHCI: resolve conflict with the generic USB device bindings Date: Tue, 21 May 2019 13:58:44 +0200 Message-id: <20190521115849.9882-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa0hTYRiA/Xa2c46zE19r6YddrEFYRpZScGJqQv04RD/sb1q29KDmNmVz pvYjbVg6LMXyguXdRC2bd4ah6Zoas1wqXVxT1P3I8IK1EbNMax4l/73v9zwv74WPxETZAl8y QZnCqpQyuQQX8rsGVyzHI+bsUScr2n3o1lK9gK40jQhoba0epy2WFoIe736C06WWXh5dU5+N 0d9MLkA3myYJ2jVTwqNXp2wCOrvHRNAFv9/j4RRjtd1m2ppyceZV+XOCWRg2E0zrkoHHPJ50 AeZBRxNgHG0HIsjLwpBYVp6QyqpOhF0Txo9lWYnkAXFaa7mNnwkMUAc8SQRPoXytFtcBISmC DQDZq+Z5XOIAqL3TLNiyiteWCQ7UA+QoKcPdgIK7kOvhFF8HSBKDfsg0luh+xuBR1PlSv+mv A5Rn6MDcAIdBSLeo26gVw3BU99S20RqDIxiqXcnhucFueBU1DBby3TEfHkYfaj7xuWYhqKIj B+Mm8kPPWvowdzGC8zgyv7u/Cc4j88QSzsX7UG5OP4+TtADNjDQTXJIH0PidUsBZUvR6aFTA Db4TFXaVYO59EKRQzl0RpzBo+vv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gzrzwgpy11W1Lg25iNOY6v/1TF aKzlZZ44r+uk6LKXU78sTgq4vEbLXqYs8J3ijJLg0CN/ds0XzH8fU1E8yfft7ao1l5q9uHmV WIozEg21mIuKEwEmYL5ndQIAAA== X-CMS-MailID: 20190521120015eucas1p1da2f3f32d6b8af8cb550463686fd4e12 CMS-TYPE: 201P X-CMS-RootMailID: 20190521120015eucas1p1da2f3f32d6b8af8cb550463686fd4e12 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Dear All, Commit 69bec7259853 ("USB: core: let USB device know device node") added support for attaching devicetree node for USB devices. Those nodes are children of their USB host controller. However Exynos EHCI and OHCI driver bindings already define child-nodes for each physical root hub port and assigns respective PHY controller and parameters to them. This leads to the conflict. A workaround for it has been merged as commit 01d4071486fe ("usb: exynos: add workaround for the USB device bindings conflict"), but it disabled support for USB device binding for Exynos EHCI/OHCI controllers. This patchset tries to resolve this binding conflict by changing Exynos EHCI/OHCI bindings: PHYs are moved from the sub-nodes to a standard array under the 'phys' property. Such solution has been suggested by Måns Rullgård in the following thread: https://lkml.org/lkml/2019/5/13/228 To keep everything working during the transitional time, the changes has been split into 2 steps. First step (patches 1-3) need to be merged before the second one (patches 4-5). Patches from each step can be merged to respective trees without any dependencies - the only requirement is that second step has to be merged after merging all patches from the first one. This patchset has been tested on various Exynos4 boards with different USB host controller configurations (Odroids family: X2, U3, XU3). Best regards Marek Szyprowski Samsung R&D Institute Poland Marek Szyprowski (5): dt-bindings: switch Exynos EHCI/OHCI bindings to use array of generic PHYs ARM: dts: exynos: Add array of generic PHYs to EHCI/OHCI devices usb: exynos: add support for getting PHYs from the standard dt array ARM: dts: exynos: Remove obsolete port sub-nodes from EHCI/OHCI devices usb: exynos: Remove support for legacy PHY bindings .../devicetree/bindings/usb/exynos-usb.txt | 41 ++++++---------- arch/arm/boot/dts/exynos4.dtsi | 28 ++--------- .../boot/dts/exynos4210-universal_c210.dts | 8 +--- arch/arm/boot/dts/exynos4412-itop-elite.dts | 9 +--- arch/arm/boot/dts/exynos4412-odroidu3.dts | 8 +--- arch/arm/boot/dts/exynos4412-odroidx.dts | 5 +- arch/arm/boot/dts/exynos4412-origen.dts | 9 +--- arch/arm/boot/dts/exynos5250.dtsi | 16 ++----- arch/arm/boot/dts/exynos54xx.dtsi | 18 ++----- drivers/usb/host/ehci-exynos.c | 48 +++---------------- drivers/usb/host/ohci-exynos.c | 48 +++---------------- 11 files changed, 50 insertions(+), 188 deletions(-) -- 2.17.1