From patchwork Sun Jan 23 11:16:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 534439 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B109C433FE for ; Sun, 23 Jan 2022 11:16:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236215AbiAWLQw (ORCPT ); Sun, 23 Jan 2022 06:16:52 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:38360 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236211AbiAWLQv (ORCPT ); Sun, 23 Jan 2022 06:16:51 -0500 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 1763A3F1E8 for ; Sun, 23 Jan 2022 11:16:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1642936610; bh=XKeSGyC9ItmJqAyykgNV42LPM38fJ31nboSTLUTfyvc=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=h7yL0qChX2eUu0cQ2CZurKPxVblH61lAvQNPufdWPVCCNjMrQTSz3L+MJz+bhOnpQ ntRAHlO6iPhM05USzFNMZZUC+rC4u8I5SMEbyAqdEWREPcJNVxZWC5kbWK8unqWCg1 oQmMXa6gglxtp26kyFJiQOYd3Xk1kCWc1k69M9VKvVBzqHjKj6xtxuAQp+lf75XQmr gP7go+yW9EocBVWJ+w+Wu2Nqjv+BX7gQ4j5cq+IgYH8OGIw5nyqvx/Zs9EiJUOzOE5 FlMIimZGCydpgLKut4yM59bqQo8GNG5ICPAvDzhYJvhQLeRBRhrwsRtOsuwN5qkMSJ jl2hf8iPsPXzA== Received: by mail-wm1-f71.google.com with SMTP id f7-20020a1cc907000000b0034b63f314ccso8984699wmb.6 for ; Sun, 23 Jan 2022 03:16:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XKeSGyC9ItmJqAyykgNV42LPM38fJ31nboSTLUTfyvc=; b=0SGFnM27WMEzOX0/nJ3MqgVxinv40TVdrBQVca9Kluly861YQOEeXYWmSKN6fnu/+2 DLKu6j9X9bjtBG0/A81TGNzAmUBTlyaMxLonHJ3T6J8B9fZARaj8IveNA+933N6B3Yof IBz5lDuYsZsNnqmrcJWCI/OKn51ZXsa6uMCymvGoEWOIBxtP7w30oiUQmesVQNZ29Ahy n15vCVvsH8XuT9/soDeOO5hdeKO4yZkKq5EtDABYlmqLYD2Im5hL7Zebdr51bpKTW92y N9eZIW+pjSLIAvnJvN59TxJLTtc3uVaSIU1BKNLCCYv4TYc34JsltZvlKYaBHReSZPYg 6WZA== X-Gm-Message-State: AOAM533BGqnNwTxv75E1rHsjJkRMUGGmVdw1eHTt/A/lBrWeLtk/Csvp zJNj3gYJVcpbpqqKUpTkYX+yyWDnf7LCp1gSN+Sx1hQq8RxI7DgNcD1q+E9xGw/C99Wke7p+HhM Dn0nXx6VGiaIDSrXn9EfGnjlIWB4PoKjJwEcoHOhYwokcE86N X-Received: by 2002:adf:f686:: with SMTP id v6mr9080079wrp.568.1642936609610; Sun, 23 Jan 2022 03:16:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQBteHKoyyNnf4rlz2MD505Wn16oOqHwd91HINqnK/froSXkyccBpxKSM0tEJs7mrQYEKfxw== X-Received: by 2002:adf:f686:: with SMTP id v6mr9080070wrp.568.1642936609419; Sun, 23 Jan 2022 03:16:49 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id m5sm10143729wms.4.2022.01.23.03.16.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 03:16:48 -0800 (PST) From: Krzysztof Kozlowski To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/12] arm64: dts: exynos: add USB DWC3 supplies to Espresso board Date: Sun, 23 Jan 2022 12:16:33 +0100 Message-Id: <20220123111644.25540-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220123111644.25540-1-krzysztof.kozlowski@canonical.com> References: <20220123111644.25540-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add required voltage regulators for USB DWC3 block on Exynos7 Espresso board. Due to lack of schematics of Espresso board, the choice of regulators is approximate. What bindings call VDD10, for Exynos7 should be actually called VDD09 (0.9 V). Use regulators with a matching voltage range based on vendor sources for Meizu Pro 5 M576 handset (also with Exynos7420). Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/exynos/exynos7-espresso.dts | 5 +++++ arch/arm64/boot/dts/exynos/exynos7.dtsi | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts index 125c03f351d9..4c45e689d34a 100644 --- a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts +++ b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts @@ -412,6 +412,11 @@ &ufs { status = "okay"; }; +&usbdrd { + vdd10-supply = <&ldo4_reg>; + vdd33-supply = <&ldo6_reg>; +}; + &usbdrd_phy { vbus-supply = <&usb30_vbus_reg>; vbus-boost-supply = <&usb3drd_boost_5v>; diff --git a/arch/arm64/boot/dts/exynos/exynos7.dtsi b/arch/arm64/boot/dts/exynos/exynos7.dtsi index c3efbc8add38..01b4210d8b62 100644 --- a/arch/arm64/boot/dts/exynos/exynos7.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos7.dtsi @@ -672,7 +672,7 @@ usbdrd_phy: phy@15500000 { #phy-cells = <1>; }; - usbdrd3 { + usbdrd: usb { compatible = "samsung,exynos7-dwusb3"; clocks = <&clock_fsys0 ACLK_USBDRD300>, <&clock_fsys0 SCLK_USBDRD300_SUSPENDCLK>, From patchwork Sun Jan 23 11:16:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 534437 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE313C43219 for ; Sun, 23 Jan 2022 11:17:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236246AbiAWLQ5 (ORCPT ); Sun, 23 Jan 2022 06:16:57 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:38394 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236224AbiAWLQx (ORCPT ); Sun, 23 Jan 2022 06:16:53 -0500 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 4CA3A3F4B6 for ; Sun, 23 Jan 2022 11:16:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1642936612; bh=QYyBjWAtA9OxXQVLH0xTxaZYjqCQLqUUnu7YMm/h3UM=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=q0ESiPfYBcTACElUi/5sTRv+/X29y1inVLbHRBFUoF98mmn5t698WSXNXop0uJyee CwUgiGfhbeMo6P4l+GiSfsF2PXrBq7iBu2hHCcMjq6oHikSAYFUSWLqksxgGxNiPNW hiEjqQQOexBOVTHd3Gdq9bhQjiJlwhyrRmFDqFDzs0fmi9GxB5ta7polPf4shYgThy j2JUq2PQzb8zwOldpNts0+nk0XIgGbXc177NIOjm2bDOp6OCZqa9oO/o9QQGlQeMm/ 1LP+QEEfX0aT+0qIqxbiju7pnLJ8Dzm9xs5x7esPq/e3wQkgDrsp/fFKCAYPa3ZwDl SX47qoWDiXf/A== Received: by mail-wm1-f70.google.com with SMTP id m3-20020a7bcb83000000b0034f75d92f27so1015023wmi.2 for ; Sun, 23 Jan 2022 03:16:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QYyBjWAtA9OxXQVLH0xTxaZYjqCQLqUUnu7YMm/h3UM=; b=DZcJt1Ahr9b2TlVkeZbr+kWR9OgMFsWMVKqVAMNmsE6+jQ6XZ77TDx5oJQIOZ74EaC GSfJME+9cTqcYiVJvRskbxS1RM/3JgOPbNeOMzbCRcf3QWNSsbGzd9LwOY3JMTvs24Cz u/9FYBeN0Quo2HzwhcJGgaUmAxT6FmLPGHYYngTaffjJGuEpm1mO1fV8gaq5I7ah/7yl fZNIc9jvgRr9SwNsisd7+5pP7fFCI9G1Iip7OubVD9cTZQxBJqNt9S04sVpw0XlLL/Bc 8Ry/F9g6P6oNCtxlvetvI8He5yn1C5/5Y238osdxbFRcFRnaOS2CUX4JJTSsrVvhglMU YLzA== X-Gm-Message-State: AOAM530onsgGL6EY/gPvuTPOkxt8HMSDCV0wUJ0RlzNKwv9Brvr1hYBq UTfwnZUhHA1y7Bk2bIxuIojo4k57SGyf5Hq80T2nCdj74pWs5FR6Ox3LwxbXMYZZXAGWa5k72hV qTJsvaPrCKydLq04y5WP3jhSDCmWvBQiaba4J5aaeWgkHl8LJ X-Received: by 2002:a7b:cd02:: with SMTP id f2mr7650489wmj.68.1642936611945; Sun, 23 Jan 2022 03:16:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBpH9pPJ+LM0El76Z0koYfHiM9syIgi7ocm+JAQM3ZbsaChUMb8L30RzWfa7hIIqOsAqEd9w== X-Received: by 2002:a7b:cd02:: with SMTP id f2mr7650468wmj.68.1642936611756; Sun, 23 Jan 2022 03:16:51 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id m5sm10143729wms.4.2022.01.23.03.16.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 03:16:51 -0800 (PST) From: Krzysztof Kozlowski To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/12] ARM: dts: exynos: add USB DWC3 supplies to SMDK5250 Date: Sun, 23 Jan 2022 12:16:35 +0100 Message-Id: <20220123111644.25540-4-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220123111644.25540-1-krzysztof.kozlowski@canonical.com> References: <20220123111644.25540-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add required voltage regulators for USB DWC3 block on Exynos5250 SMDK5250 board. Due to lack of board schematics, use same regulators as on Arndale board. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5250-smdk5250.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts index 39bbe18145cf..53670383d607 100644 --- a/arch/arm/boot/dts/exynos5250-smdk5250.dts +++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts @@ -417,3 +417,8 @@ max77686_irq: max77686-irq { samsung,pin-drv = ; }; }; + +&usbdrd { + vdd10-supply = <&ldo15_reg>; + vdd33-supply = <&ldo12_reg>; +}; From patchwork Sun Jan 23 11:16:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 534438 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E4BAC433EF for ; Sun, 23 Jan 2022 11:17:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236255AbiAWLQ7 (ORCPT ); Sun, 23 Jan 2022 06:16:59 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:38422 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236235AbiAWLQz (ORCPT ); Sun, 23 Jan 2022 06:16:55 -0500 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 50F884004C for ; Sun, 23 Jan 2022 11:16:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1642936613; bh=grI5UfAEDAIP80sPof/wJdxtniWt65JOOqzZgKpwDAo=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=v+8DeblTUjeFPYy3Bz1ZpaYt6NVCu4PfpjYkOc1U7vIoEPBLxyPSVDk3M9hUgfKlu AyUcG4OmFR+vu4bgn919KdDr2m6jtDzXLJp9RpbendqqQFNTqdR0047v7fi79PgPfX S7l0GA9R4STO1iQf9gTzTZE04O7He1Ijzls/4HY/93rvwN4TrBO3YKYX/Y1Zie+FT6 HYZJ02x9y8Ug1XANcDtQIZR1AQpXOmP9gQIqSBkQ8HNrxfbNBsaV6B/3jwplRiu2mV tmmylyknHowzgFBG/S4hueN6Gad+MibMr/jmiLEst0O8qUjidw7wSGQVDHzW7tSeQp 1JiUuwMs9KEzA== Received: by mail-wm1-f72.google.com with SMTP id l16-20020a1c7910000000b0034e4206ecb7so4868259wme.7 for ; Sun, 23 Jan 2022 03:16:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=grI5UfAEDAIP80sPof/wJdxtniWt65JOOqzZgKpwDAo=; b=mkOgYsqB9uabwF42DCMbxE93hDqZsvo0vFyKrBW0PDS5MQ42P96rWV8vSM6pdzKoMM e3zRwz5HXrqp1dTwYFiqXMR5sJGBhJ/0w/dD0sj9VPG/7/NEfZ8g5GXloYYBAZMYAQiA z2zUf8DJ67fhwu/3x/6U2YbR03l2uaZrmaWZyxkXG0P+RU0e4Wh8loySA6a9Z8KRo8OH KEXBon0ldWW6hYwrbLc2VPRWd3vNg6HJJWSX/hdz8Moektyw+ERKPf6ifcrQDYZUGzWo BsmNTHYgpQ3gt6bXUSvTDwBTZcVS+paOx2k+MzbMJzX1C+9ZtN/52rOerWQTDCFMMOBF pcDg== X-Gm-Message-State: AOAM532qzBXZbleeLED4dfzA7VIj7HNVzuDL3OwzkdZESXYrhdo1G/tn yzroiLxICZUZQ5pUWbCropVfDZV1CSR2bLKaFSH9sELam0BHWMoiXqUrEdE5q8aWBLHMC4aWnPj MBXBV9LIzNhI+sztlEMWBt1U8H6He6fyDVHt2vF7WEjmmi8MI X-Received: by 2002:a5d:5887:: with SMTP id n7mr3788124wrf.95.1642936613067; Sun, 23 Jan 2022 03:16:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxdELQf6sIqrI/0YVD1AI+KkjLutbJQyLtovsY93KZNKsW7PHRBKT0U90IZXspsKI6wQudDQ== X-Received: by 2002:a5d:5887:: with SMTP id n7mr3788117wrf.95.1642936612924; Sun, 23 Jan 2022 03:16:52 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id m5sm10143729wms.4.2022.01.23.03.16.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 03:16:52 -0800 (PST) From: Krzysztof Kozlowski To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/12] ARM: dts: exynos: add USB DWC3 supplies to Chromebook Snow Date: Sun, 23 Jan 2022 12:16:36 +0100 Message-Id: <20220123111644.25540-5-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220123111644.25540-1-krzysztof.kozlowski@canonical.com> References: <20220123111644.25540-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add required voltage regulators for USB DWC3 block on Exynos5250 Chromebook Snow board. Due to lack of board schematics, use same regulators as on Arndale board. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5250-snow-common.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250-snow-common.dtsi b/arch/arm/boot/dts/exynos5250-snow-common.dtsi index 2335c4687349..ccb32d53d598 100644 --- a/arch/arm/boot/dts/exynos5250-snow-common.dtsi +++ b/arch/arm/boot/dts/exynos5250-snow-common.dtsi @@ -698,6 +698,11 @@ &spi_1 { cs-gpios = <&gpa2 5 GPIO_ACTIVE_HIGH>; }; +&usbdrd { + vdd10-supply = <&ldo15_reg>; + vdd33-supply = <&ldo12_reg>; +}; + &usbdrd_dwc3 { dr_mode = "host"; }; From patchwork Sun Jan 23 11:16:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 534436 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70BC1C433FE for ; Sun, 23 Jan 2022 11:17:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236162AbiAWLRI (ORCPT ); Sun, 23 Jan 2022 06:17:08 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:56072 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236267AbiAWLRA (ORCPT ); Sun, 23 Jan 2022 06:17:00 -0500 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 37A3F3F1C1 for ; Sun, 23 Jan 2022 11:16:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1642936618; bh=oFyg+gwb7XtvC7QbtaeH/MyDAvhazxDlD6i95VQK5XA=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=vJN5ZXeWlHeGIfbb6QuAq6Ql0HkFtyZurbuLagsTNwiVr1hEyX5H+g5P2k02ByR0O kJCf1zU6CH/eTWqULKEYCg0YN1xgUUZQ6Zdb7gOm6v2Fi0i8u/iM1fd16mdJNuKktp tvDXPCE4RzUTta1m1HrdU25i7FHFvJ5rme4OqtrYhE54WjtXjYO3YKC8RIcmm6wHPh AXlboLZlWAkGSdjNozOyMJWu/xaYwv5uIYfQ6+imqp2eU+UKfRwNaXG/g2gfLt8W+U Aw3WiFsbrwB5wk9hZt2GfoJqr2UA+gTRl+w/w7PUOYKerXNjZxAfdMEA/18qIatOD0 +z8HOqx1xx0QA== Received: by mail-wm1-f70.google.com with SMTP id a189-20020a1c98c6000000b0034e32e18a21so6660128wme.9 for ; Sun, 23 Jan 2022 03:16:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oFyg+gwb7XtvC7QbtaeH/MyDAvhazxDlD6i95VQK5XA=; b=fh2PY30WH3AJJOWjJwncJSsSBZp1cWzoNJxmN1pwIMTpRJLaucNmzgXh80cB5zPwjI Cs6jVc6sE8Kkv4OzVhVIW3T5X+Q1gO5/k2I9JsILlF9JjZctGHnxp/00Xbsq3h0J2Ktb QXl3/pXDaXiIvX/BresslPI50AuWGuYAK704P4r0ODyTk9rrTaJ3hMlCeExnkhYkH4r6 O7UrqvZCwVlBuwDN2RQvGN7tIb9GUWPm7gKVZGTVjgUlHrtxHhWUbjP2oEzVNKL1pVT0 22bdkQhwIOEhXA2NHT+LBU3O/HlJLuj4hudq7imX1Y6y7+ApPeeVUNZcY37WX5xfJpiW qC5A== X-Gm-Message-State: AOAM530hbvgrvEyHXFb0T6B7t5eZtLUDEKiHFGuagADh4p1o/q+ekiet 9DfL6LwrXaMKyM53D7z0z3XYyLu0iU2EDnqrEwXNefRmgFYTh36sjGLAa0Mq1BsrT7M4W+o58oB 4eRIZ3ksfIS/fULgJj3DbrTQ1PjjdRV9f3t9k5okazU1tYbWm X-Received: by 2002:a7b:cb05:: with SMTP id u5mr7582893wmj.59.1642936616521; Sun, 23 Jan 2022 03:16:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzl/THDIXXxYVsa2sg8+CimTWrhi2Zjb2hJxs9yZ1xXuWrxrnlJt2icnBT+iFNOebYeJ8eo7g== X-Received: by 2002:a7b:cb05:: with SMTP id u5mr7582884wmj.59.1642936616338; Sun, 23 Jan 2022 03:16:56 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id m5sm10143729wms.4.2022.01.23.03.16.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 03:16:55 -0800 (PST) From: Krzysztof Kozlowski To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/12] ARM: dts: exynos: add USB DWC3 supplies to Chromebook Peach Pit Date: Sun, 23 Jan 2022 12:16:39 +0100 Message-Id: <20220123111644.25540-8-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220123111644.25540-1-krzysztof.kozlowski@canonical.com> References: <20220123111644.25540-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add required voltage regulators for USB DWC3 block on Exynos5420 Chromebook Peach Pit board. Due to lack of board schematics, use same regulators as on Odroid XU board (using same MAX77802 PMIC). Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5420-peach-pit.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index e76fb104db19..6252089e4350 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -1090,6 +1090,16 @@ &tmu_gpu { vtmu-supply = <&ldo10_reg>; }; +&usbdrd3_0 { + vdd10-supply = <&ldo15_reg>; + vdd33-supply = <&ldo12_reg>; +}; + +&usbdrd3_1 { + vdd10-supply = <&ldo15_reg>; + vdd33-supply = <&ldo12_reg>; +}; + &usbdrd_dwc3_0 { dr_mode = "host"; }; From patchwork Sun Jan 23 11:16:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 534433 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36E24C433F5 for ; Sun, 23 Jan 2022 11:18:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232559AbiAWLSj (ORCPT ); Sun, 23 Jan 2022 06:18:39 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:38486 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236271AbiAWLRA (ORCPT ); Sun, 23 Jan 2022 06:17:00 -0500 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 672773F1B7 for ; Sun, 23 Jan 2022 11:16:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1642936619; bh=y357G77gKMHlTfzCL6+HEz+/UzqdnZT/McDbXpsW3BM=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KCEyfW1Y6dhBG3hW8vyZXJjvQbrD3oKyZFy9b8+yB+ZaGJP2IulJs6Kbm/d2a/7mX 6TvYjaztkoBVaZIeZgSzq/PidKwSQgM6xK8evA5FNuF2WeNB4PJGfZic2aZyavpaTx kdTZBWgTVmosWR2b8JbQIMS7W8/S69VT9r0NOiCTb3fzmKKV+rP/zEIv/dLVB7D4iF 45isw5dEVFJAl+JZExXPXd/9QilYsEN3DRJDctsW3bEDH/1NDqxENauFS8IzMcY8HY OAc82syuHmC4AH3GFVpCRKpts/CXBz+Do1wfHBrAmV7k89PxsrocODhUYABuLbkQqg 14NEpFGZjlAZQ== Received: by mail-wm1-f71.google.com with SMTP id a189-20020a1c98c6000000b0034e32e18a21so6660169wme.9 for ; Sun, 23 Jan 2022 03:16:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=y357G77gKMHlTfzCL6+HEz+/UzqdnZT/McDbXpsW3BM=; b=YMvVr6QJ15xbm4Znd8BNGg6EZF6DwO6DZUJ7/4Hv7Ro9EUAwqFCjdQRP6JlbXGfeQm V7BgDWKHmCo8cx1LBtpjK+NJowJjYDCXpGGXnkybANHmuGk2kZ6LAxGAXg4kdBT4z93m iYAs1A8R4vEOCXVHE+/nqBxwKvN2LQBpZNeqmVwW5AAtk7c8Tqc1+ht70kE5oF4NddBh 0bXhYxmAqPapPfUfHnXfxRCZFG+1GRhtf9anwdAbMhCPTQofbNzAKxkeRhgxtWCwQoXS MIrTpRavHen0XBbWLBX826zoX3tJuJ6c5LFeg7DdOCsDaa2fn+vZ7dDL1OPazIdhL+35 wE9g== X-Gm-Message-State: AOAM532gdz95sx+r7xXsAEsSmFAG+EWpZrfbqybeYiZaMTGebVqEni87 HMEYWqFy3fByna0br9P1sUBK5o+l04bCO6kMjxao/tD9T/qKr1JVRI5JkDsLm2mvjlfbCREGRDp hw/qL9iXuGz7+XF3sMqsva7RyesMKooT4OGbVftlPsmTkI5Eb X-Received: by 2002:a5d:4906:: with SMTP id x6mr10245496wrq.552.1642936617998; Sun, 23 Jan 2022 03:16:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwb59CpOjfY8CfprDukjo6039z0OQ3gfs8X3bsvt8yvFXtOAvk66eFpeVM1qtu1DqKws8uQug== X-Received: by 2002:a5d:4906:: with SMTP id x6mr10245485wrq.552.1642936617866; Sun, 23 Jan 2022 03:16:57 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id m5sm10143729wms.4.2022.01.23.03.16.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 03:16:57 -0800 (PST) From: Krzysztof Kozlowski To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/12] ARM: dts: exynos: add USB DWC3 supplies to Chromebook Peach Pi Date: Sun, 23 Jan 2022 12:16:40 +0100 Message-Id: <20220123111644.25540-9-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220123111644.25540-1-krzysztof.kozlowski@canonical.com> References: <20220123111644.25540-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add required voltage regulators for USB DWC3 block on Exynos5800 Chromebook Peach Pi board. Due to lack of board schematics, use same regulators as on Odroid XU board (using same MAX77802 PMIC). Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5800-peach-pi.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index 77013ee586f8..fd6f80a9c64e 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -1072,6 +1072,16 @@ &tmu_gpu { vtmu-supply = <&ldo10_reg>; }; +&usbdrd3_0 { + vdd10-supply = <&ldo15_reg>; + vdd33-supply = <&ldo12_reg>; +}; + +&usbdrd3_1 { + vdd10-supply = <&ldo15_reg>; + vdd33-supply = <&ldo12_reg>; +}; + &usbdrd_dwc3_0 { dr_mode = "host"; }; From patchwork Sun Jan 23 11:16:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 534435 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E28FCC43217 for ; Sun, 23 Jan 2022 11:17:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236338AbiAWLRK (ORCPT ); Sun, 23 Jan 2022 06:17:10 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:56108 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236281AbiAWLRB (ORCPT ); Sun, 23 Jan 2022 06:17:01 -0500 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id C11C33F1E0 for ; Sun, 23 Jan 2022 11:16:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1642936619; bh=66G1PF8Q0lr5LRIbEYZW0Tv4PnJMOlbJQ4z7W8Ayj8M=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mOOrFPaB7NK12JbqA1RJfp4LAxPp0l/w5M2vNCK6geVLim9Soq7V9HanQcm8JWGJI RC6PtM4g1WvaYye9u8IXqUD25JAhN5+h+nQoZXF4+iiLu8ZTkKs5mALuKy71Afqgfe XXRbFnePZn0kpcnIOh1nqP43HwBq9zL+GNr42OR5LE28t3lw8zY/Oa2/m7DJuWifzK tydE7dV4nYfjdbIZ7p61+Q3tc51AvYtN7/km+18e3jdYb6w96iKYpkcF66X2G9MWr8 hCw3IDWD57zUpC+ScQOZ9B47UVjMZeu/h22bSAze51NCHoHqeXWbiqoOgrunIpCXVV bDqw+AS9IvFTw== Received: by mail-wm1-f70.google.com with SMTP id m127-20020a1ca385000000b0034e992a94a8so1471595wme.5 for ; Sun, 23 Jan 2022 03:16:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=66G1PF8Q0lr5LRIbEYZW0Tv4PnJMOlbJQ4z7W8Ayj8M=; b=hdhiZZK9VbuE0Sv7jkVeespE/l4XKnweMDz18JeYLzBbEx7Uu6E+qSMc+ZRTgy8JHE vCFL7GplsKNB6U5fZ18WiDX/3JtcnvxM/WgLLDqDuTK2OjsPms80xSTCboYzvyCQSC5z VeKT3oceF/SfADK/UhXxxXmdKiZThi26aNJtoBHjZb9wQDKKb+HBa9H5T6upCPPA2aRA 8at9cOEeZ7rWzEtOdw8UQp6tD10zTTTqUSQoAvXjRKW2PXZ/xLe+ZmOnYIuIbc5zcdTB Xi/PLOa4pZZt1NZpKsFKAWC3ymifdd3sJqF67BG0B2Do/JIYqxvXr7M+NjpqOmDuDrOQ YAeQ== X-Gm-Message-State: AOAM531tQQgs021e9AiEOfY3Ly9hadaOzdFz7OPpY5wd+D+DbzI6LjEG gzLFuM1kDquLvXjxjUZ0dJWgNGcITS/Rxa/Er7H+FdDQrqBPoC6TOdm5lncCwjlp5+oEiqWPXJV 7l/PIp5V4m4MJUh2PQiatoY4Z2pNBDcHClZRUDM8lBgjcoQ51 X-Received: by 2002:a7b:c4da:: with SMTP id g26mr7689624wmk.191.1642936619325; Sun, 23 Jan 2022 03:16:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEem2eKrggZGWq3zOh3tVCEin/9AMSkAxLad8GyWyumd6SS0jXIESrFaTiCvb+wPkBmGYPsw== X-Received: by 2002:a7b:c4da:: with SMTP id g26mr7689615wmk.191.1642936619200; Sun, 23 Jan 2022 03:16:59 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id m5sm10143729wms.4.2022.01.23.03.16.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 03:16:58 -0800 (PST) From: Krzysztof Kozlowski To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/12] ARM: dts: exynos: add USB DWC3 supplies to SMDK5420 Date: Sun, 23 Jan 2022 12:16:41 +0100 Message-Id: <20220123111644.25540-10-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220123111644.25540-1-krzysztof.kozlowski@canonical.com> References: <20220123111644.25540-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add required voltage regulators for USB DWC3 block on Exynos5420 SMDK5420 board. Due to lack of board schematics, use same regulators as on ArndaleOcta board. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5420-smdk5420.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420-smdk5420.dts b/arch/arm/boot/dts/exynos5420-smdk5420.dts index a4f0e3ffedbd..69ce3e430863 100644 --- a/arch/arm/boot/dts/exynos5420-smdk5420.dts +++ b/arch/arm/boot/dts/exynos5420-smdk5420.dts @@ -407,6 +407,16 @@ &rtc { clock-names = "rtc", "rtc_src"; }; +&usbdrd3_0 { + vdd10-supply = <&ldo11_reg>; + vdd33-supply = <&ldo9_reg>; +}; + +&usbdrd3_1 { + vdd10-supply = <&ldo11_reg>; + vdd33-supply = <&ldo9_reg>; +}; + &usbdrd_phy0 { vbus-supply = <&usb300_vbus_reg>; }; From patchwork Sun Jan 23 11:16:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 534434 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69ACBC4332F for ; Sun, 23 Jan 2022 11:18:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231483AbiAWLSh (ORCPT ); Sun, 23 Jan 2022 06:18:37 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:38514 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236320AbiAWLRF (ORCPT ); Sun, 23 Jan 2022 06:17:05 -0500 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id C57D14004C for ; Sun, 23 Jan 2022 11:17:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1642936623; bh=EY00fcF86JGlObERH8+w8SsbFYrjNSJWFyQtAnjjq5Y=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=sCuuJpBjE/X0hCCq/tEYYgSvW2fyJxH2FUiU1r78pba7Ws6jGafk+hTMWG5kWOcDb H7uPx7ISUcUe6yf9T6eoe/DTMjcoYc4iN+wcNJqLWFvs810IyTFysht72GPAFuWE7y AaDh0IDAut/9gB1x0itsxHqOdjwDFumhNz0csMlp+8+lqg1fNSEt9v5kcoJ3an4nzr 5O2gPrlbcDIftSFHPPZLvMZFhmZFXRK3uD8y4lDoheedDFl5ArHzW8Xn/Npdk8v23B TuYC+RjB6VuHQWUUw7YIlbBetGsZoypJQIpiXa0BURh3ZevL33VIq/CbKbPlXkLN+5 y4oSKhkSE0Q7g== Received: by mail-wm1-f71.google.com with SMTP id a3-20020a05600c348300b0034a0dfc86aaso12952076wmq.6 for ; Sun, 23 Jan 2022 03:17:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EY00fcF86JGlObERH8+w8SsbFYrjNSJWFyQtAnjjq5Y=; b=qo5JtZj1uTPBMXMVDQ0BfWEMYcaSzMc/NlHIAbJb0+EPUs17xmkhpsc8ysFOEjkao7 znOY51aHcNa+/iWjEMWkeuKJ6AJP9dv+lRIj7Xy2eru6Ejrr3gCn/v1YutYAv+TngfLs 7RHZ7HpFDNS1+4zkTbUlJXWYslKmeK9+x5u9Rgd4OC+t5b6e/lkQopnm+Qehl+PGE9/D 3k9zCbiT2hX1I3eMJ+ii/OguPhTOyNHT60ta5t4F35M5+N9GXpwYeh/8OCd1jAbhiwFn SrnDZoDeGEH9dZXhYB5qtAYZtvZAWRhzpxat8FlGxEROqtIwA0q34ChN3/besbE5FF4m ALbA== X-Gm-Message-State: AOAM532gq6v8M9aVJ5rbMEQHd5t4e6YUL8CpblzTNJbcyvASaOwA29r/ FA6/0pJK67/wPXwu4p4xQ28QBicg2T8NEraOkQvp/9hdAAtb/VCd0jPK1XUCYnO2RlLjg50osOC G/EbQuwuHdlShMnFA8j/Qi+cXJ6N8fXuCcYQEzUmQh27NzPhs X-Received: by 2002:adf:dc45:: with SMTP id m5mr10547738wrj.625.1642936623138; Sun, 23 Jan 2022 03:17:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsNM9NKLJfTsfQHi+oMgkh4hMNIzd9M7x4JIkzco0CcGHx4tgy+8mjHdxyr76nrcHJ2ddg/A== X-Received: by 2002:adf:dc45:: with SMTP id m5mr10547721wrj.625.1642936622954; Sun, 23 Jan 2022 03:17:02 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id m5sm10143729wms.4.2022.01.23.03.17.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 03:17:02 -0800 (PST) From: Krzysztof Kozlowski To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 12/12] dt-bindings: usb: samsung,exynos-usb2: convert to dtschema Date: Sun, 23 Jan 2022 12:16:44 +0100 Message-Id: <20220123111644.25540-13-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220123111644.25540-1-krzysztof.kozlowski@canonical.com> References: <20220123111644.25540-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Convert the Samsung Exynos SoC USB 2.0 EHCI and OHCI Controller bindings to DT schema format. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../devicetree/bindings/usb/exynos-usb.txt | 66 ---------- .../bindings/usb/samsung,exynos-usb2.yaml | 117 ++++++++++++++++++ 2 files changed, 117 insertions(+), 66 deletions(-) delete mode 100644 Documentation/devicetree/bindings/usb/exynos-usb.txt create mode 100644 Documentation/devicetree/bindings/usb/samsung,exynos-usb2.yaml diff --git a/Documentation/devicetree/bindings/usb/exynos-usb.txt b/Documentation/devicetree/bindings/usb/exynos-usb.txt deleted file mode 100644 index 61c03c0ef19f..000000000000 --- a/Documentation/devicetree/bindings/usb/exynos-usb.txt +++ /dev/null @@ -1,66 +0,0 @@ -Samsung Exynos SoC USB controller - -The USB devices interface with USB controllers on Exynos SOCs. -The device node has following properties. - -EHCI -Required properties: - - compatible: should be "samsung,exynos4210-ehci" for USB 2.0 - EHCI controller in host mode. - - reg: physical base address of the controller and length of memory mapped - region. - - interrupts: interrupt number to the cpu. - - clocks: from common clock binding: handle to usb clock. - - clock-names: from common clock binding: Shall be "usbhost". - - phys: from the *Generic PHY* bindings; array specifying phy(s) used - by the root port. - - phy-names: from the *Generic PHY* bindings; array of the names for - each phy for the root ports, must be a subset of the following: - "host", "hsic0", "hsic1". - -Optional properties: - - samsung,vbus-gpio: if present, specifies the GPIO that - needs to be pulled up for the bus to be powered. - -Example: - - usb@12110000 { - compatible = "samsung,exynos4210-ehci"; - reg = <0x12110000 0x100>; - interrupts = <0 71 0>; - samsung,vbus-gpio = <&gpx2 6 1 3 3>; - - clocks = <&clock 285>; - clock-names = "usbhost"; - - phys = <&usb2phy 1>; - phy-names = "host"; - }; - -OHCI -Required properties: - - compatible: should be "samsung,exynos4210-ohci" for USB 2.0 - OHCI companion controller in host mode. - - reg: physical base address of the controller and length of memory mapped - region. - - interrupts: interrupt number to the cpu. - - clocks: from common clock binding: handle to usb clock. - - clock-names: from common clock binding: Shall be "usbhost". - - phys: from the *Generic PHY* bindings; array specifying phy(s) used - by the root port. - - phy-names: from the *Generic PHY* bindings; array of the names for - each phy for the root ports, must be a subset of the following: - "host", "hsic0", "hsic1". - -Example: - usb@12120000 { - compatible = "samsung,exynos4210-ohci"; - reg = <0x12120000 0x100>; - interrupts = <0 71 0>; - - clocks = <&clock 285>; - clock-names = "usbhost"; - - phys = <&usb2phy 1>; - phy-names = "host"; - }; diff --git a/Documentation/devicetree/bindings/usb/samsung,exynos-usb2.yaml b/Documentation/devicetree/bindings/usb/samsung,exynos-usb2.yaml new file mode 100644 index 000000000000..fbf07d6e707a --- /dev/null +++ b/Documentation/devicetree/bindings/usb/samsung,exynos-usb2.yaml @@ -0,0 +1,117 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/samsung,exynos-usb2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Exynos SoC USB 2.0 EHCI/OHCI Controller + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + enum: + - samsung,exynos4210-ehci + - samsung,exynos4210-ohci + + '#address-cells': + const: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: usbhost + + interrupts: + maxItems: 1 + + phys: + minItems: 1 + maxItems: 3 + + phy-names: + items: + enum: [host, hsic0, hsic1] + minItems: 1 + maxItems: 3 + + reg: + maxItems: 1 + + samsung,vbus-gpio: + description: + Only for controller in EHCI mode, if present, specifies the GPIO that + needs to be pulled up for the bus to be powered. + + '#size-cells': + const: 0 + +patternProperties: + "^.*@[0-9a-f]{1,2}$": + description: The hard wired USB devices + type: object + $ref: /usb/usb-device.yaml + +required: + - compatible + - clocks + - clock-names + - interrupts + - phys + - phy-names + +allOf: + - if: + properties: + compatible: + contains: + const: samsung,exynos4210-ohci + then: + properties: + samsung,vbus-gpio: false + +additionalProperties: false + +examples: + - | + #include + #include + + usb@12110000 { + compatible = "samsung,exynos4210-ehci"; + reg = <0x12110000 0x100>; + interrupts = ; + clocks = <&clock CLK_USBH20>; + clock-names = "usbhost"; + phys = <&usb2_phy 0>; + phy-names = "host"; + + #address-cells = <1>; + #size-cells = <0>; + + hub@1 { + compatible = "usb0424,9514"; + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + usbether@1 { + compatible = "usb0424,ec00"; + reg = <1>; + local-mac-address = [00 00 00 00 00 00]; + }; + }; + }; + + usb@12120000 { + compatible = "samsung,exynos4210-ohci"; + reg = <0x12120000 0x100>; + interrupts = ; + clocks = <&clock CLK_USBH20>; + clock-names = "usbhost"; + phys = <&usb2_phy 0>; + phy-names = "host"; + };