From patchwork Mon Apr 25 13:35:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12825781 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0AEB3C433EF for ; Mon, 25 Apr 2022 13:37:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=W9R/O0BvSsYg3boWDP2qxY8sYHfGdTYVLV/dasQuQWk=; b=diSEtOu8h82RP9 mFt9pyBkf58OVXKOD1jghuWD7ycnXp4TqQWY8oc5EaNhRz+mYhxDYrMDCPAvNyPgmhjtPHpO6Id8T R15qn1gswKEzr9mMxLC7AbR8Mak85HUycLXuk4Ica9SU4d1g1BY6zYg6mcubcYCSqNkV+b4duZl56 YfgcQ5kNiaqQ+y647Z7uLWbVdRH+sUWYwrC6eDZ6UaUZHZQlsPbn7DlB4aImxo3J9Rtf5SvyI53G7 1Nk6mMIKkOmyflPmqquI6/YMfx3shRA3kBJW8ZY/9yYyTBzZeL8vgY/zXdtvhBCBUPX+cyHvxoZDt T+UpOGkgFgJ858FNYI/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1niyu8-009hjg-3c; Mon, 25 Apr 2022 13:37:28 +0000 Received: from mail-he1eur04on0615.outbound.protection.outlook.com ([2a01:111:f400:fe0d::615] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1niys7-009guT-DM; Mon, 25 Apr 2022 13:35:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kgROMAGUp2oe/gaJgb7HIn9pUPYaBM9LlTO3dkrxeovC67YcgEJVb4rVCzdsROpEXnioueTdPVQw0JcJZrMs2QwIQEO7Sx+u8hJ8Cws9iold1sk1H9ABH3PUNL3Lel1j9ibNfLJEdbCqQvOxTn48ws1P8Zi2/sOdiIGHoIAO0iMflGQ5ggeDxn0bl4X3jmCgwBQtwHh+omoy5eOrWYoZo3PASqH5qQunbJQ9brl4hWXlhcEJRQZ9zm3t2oVz0MoGytP/U23o5MqXnKMvu4WiwOaQd8zfnyaVUe7E56u9dOK7SxxzzC26iJl1tIE1u6zNLjAWE9zwPhryToakCv3M1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BNjk/sJVMNDyNAtuusAVsTQao7AN3oXbaKGGRULsYZU=; b=Reyp/Hn9fqvHd5e/Lfyl7Kw/flk7T0/h3jKYfFAdd+bxS4q7bb0SDWHQ+P78czC1bSQDoHiC9NgNZ59zTzrgCVfmceTy8DbX8Dnt3nOB2kVldPujaGjmb/LJ64E9F6YOWyzXBgStU17ZtCOQBQA9FZuSXkSlGm1JIdPEluWptNzCKcMb1RQBOtiD48PpQ8gBOCwGuIrfwsV+e93QNsaLpSJ/yMMPxrenFWboT4EzEyWb0gVtiVU7PIJtrdQG8BvhGdHNqEVBhucdUWbjyNd3X2HGBg/8WHIAL4Lb+EM/nVPMHyaxyS+MO3FxWRuKB4/4065uTqvsIxLtEK8C0WKCdw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BNjk/sJVMNDyNAtuusAVsTQao7AN3oXbaKGGRULsYZU=; b=MT36qu+VKzw3lhp7+Dg9xePnKuXLcGg08C830ZtDeBYcHY88vrbLlts0kv2d8YnzqbWOLbhk9xCiSXD8hnL+owwaTm0pXNJL/2K3kXr/kZjLUxUHDUHMz0hg8FDEknLbNS4YlSSzMG9B3BTymASEOiTxsoaPLAa4oX1bsPY6ubE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) by AS8PR08MB6453.eurprd08.prod.outlook.com (2603:10a6:20b:31b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.13; Mon, 25 Apr 2022 13:35:19 +0000 Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::3de2:62a:3915:9d6d]) by HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::3de2:62a:3915:9d6d%7]) with mapi id 15.20.5186.021; Mon, 25 Apr 2022 13:35:19 +0000 From: Michael Riesch To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Michael Riesch , Liang Chen , Peter Geis , Nicolas Frattaroli , Frank Wunderlich Subject: [PATCH 3/3] arm64: dts: rockchip: enable usb hub on the radxa rock3 model a Date: Mon, 25 Apr 2022 15:35:02 +0200 Message-Id: <20220425133502.405512-3-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220425133502.405512-1-michael.riesch@wolfvision.net> References: <20220425133502.405512-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: ZR0P278CA0010.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:16::20) To HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a87497a4-5bca-4503-62b9-08da26c070a0 X-MS-TrafficTypeDiagnostic: AS8PR08MB6453:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gDVuIaILeGV3lojyAgJ9lFQrBep+g/63zvpXdP/LQWAAHmEWO1tpPWWOIwztx4+6GpjOqN6ir4iNZ1zrUHHQUr6WL3mx+2bFOZAHwbraM1MADokQ5WJ7mrAboBKEgw820INFxcP40e+OOphJvVnCey6F4Gabgf3cveyJJqAVrZy7QZyYetYzmxERaz9jYy+uXpue/7CzUcM/ibML8diuInZteqbwmzCpCFr8P+PJ0biQNPXxPmAj0ryyXev4r9xUHoF3oktGXsl9AenSN09anWxw9/tbRkjWpt5vBNmj/wwypVsio2XVkasW5lesyejRyT7wfJKiWzecATbVuH1mp3GDly0jdnekh8pkaSMvM4ReOuY17cG64kyegO2sI+li8m0A9YgbWZPqNe81wquZkCQJP1cBmef28yYubtfA/bCeIMVz1/TbO0hdv/83uGaINYIc5ZYkjRFakIoSTpAKTbc2LY427sUk1jl2en3XFntIvBec8xexT7FXEWZDkJyIhoxvWmBz6AhvSBz2o+MGFXNL4aogrPMaJFZYwgWwYNzrdiRjK3BVbwxI0JgolRCWKEeYsbeFDW946BQd5mliSbG9k898vxQ3ILBILE3/DNtJfISzxozUWNdJURPAJnN17SueDBxaUAVhHYZQlua+2PD2/YJh5HvbMNIkxhj5dekKt7tokHrkfV1wULlVUHr0wxnHX5f8kuej6Og7At/2yw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0802MB2426.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(396003)(346002)(366004)(376002)(136003)(39840400004)(316002)(2906002)(54906003)(508600001)(186003)(44832011)(6666004)(52116002)(36756003)(6512007)(66556008)(66946007)(7416002)(66476007)(5660300002)(6486002)(86362001)(8936002)(4326008)(8676002)(1076003)(6506007)(2616005)(38100700002)(129723003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-MessageData-0: vfp+rkTC6o67guAd+lAFI+QoIEQoF9wTAgQ+rtR1tytaKbJ3eJISQkB7MS31UYFARapsnCAhVMlfGJFwgXKZkwx5ED0S54SlEszVtd79Vr8lvEUHXIVV34kWb5vVwmTXZ7xktqve1yfC41juKypYw43fZKv6R9ubD6bXAr+VMPwttqGg8gogIoFOqp1zHESfl5iXH8/ckBYBWZc1lt4kNRYkWzanrWlpt07FPdvjQFQFlqLDHN2KBygaLhgvwm2uSRvBhIHJ6bw+3UVNWI3pJ8hzUQ4zYNTrAPvwn0oAG7rvHMqOBZ4tKMAc0wZZLUyc4Yy3Zu4ddjLEXDeUsVVL+zOPkZwb3AQ9IpJDsMXl2AMhXkf/1HoXMl3GJLJOBIo1j1QesDZyklYPrJWDbP6ZYBQNQi3pxKxWyY6VRmO/8RBDqBHtdWCrBHWVXKKYsE0Fr4yCQ3qnkKYGtBrPjCgyz8rmIe/cKOep4er0zLPVM6aG8a5l3pOw04U5Z9mJ9Ak2B8BVKGxyD7VP0tdd0m450kC3yuYTJ8RfM9xZ2/bCgvA8psqKsO/fwinRlvJhE8n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bd/jDafTZLWcQ1duw0LwcPF0YGVJnUk1JoIaeHjeffGGwBWbip6YFBUkMJtGzkTm20qKUI1uylW1F2FQTAaZRDiFFswCKq5/Sj+/RsuonIgh7fOXuvjKvXi/g71H X-MS-Exchange-AntiSpam-MessageData-1: TvQGQ/EY+qtjII6cgc9bQoTtMlUoRbgPgx1AQ2zXC4O3VL6JPkm2LSPW X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: a87497a4-5bca-4503-62b9-08da26c070a0 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2022 13:35:19.2575 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cvYhs+eiM7Dobsf8oh5PfQMnNmn9g/dAZwQD2Faoaqb2owixK3yVLqvZ6h1hx5s8vt7TsP9e3+ueOPyEcuY1JpfGrEekV0ATiWJbfQu0EY4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6453 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220425_063523_499252_D392B5C6 X-CRM114-Status: UNSURE ( 8.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org One USB 2.0 host port on the Radxa ROCK3 Model A is connected to the SoC via a hub. Introduce a voltage regulator to enable this USB hub. Signed-off-by: Michael Riesch --- arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts index d7e2bc96fde7..75bc2824764f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -97,6 +97,17 @@ vcc5v0_usb_host: vcc5v0-usb-host { vin-supply = <&vcc5v0_usb>; }; + vcc5v0_usb_hub: vcc5v0-usb-hub { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc5v0_usb_hub_en>; + regulator-name = "vcc5v0_usb_hub"; + regulator-always-on; + vin-supply = <&vcc5v0_usb>; + }; + vcc5v0_usb_otg: vcc5v0-usb-otg { compatible = "regulator-fixed"; enable-active-high; @@ -436,6 +447,9 @@ usb { vcc5v0_usb_host_en: vcc5v0_usb_host_en { rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; }; + vcc5v0_usb_hub_en: vcc5v0_usb_hub_en { + rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; + }; vcc5v0_usb_otg_en: vcc5v0_usb_otg_en { rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; };