From patchwork Thu Feb 1 12:03:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 195259 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp98890dyb; Thu, 1 Feb 2024 04:05:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/NZlwt7QlwRhs3bHnNuTZ9JGE8SMItpc3VVdin3zCdVBQvJFWT/X4JqRM+ly/ISUV++5T X-Received: by 2002:aa7:d949:0:b0:55f:649b:4f9c with SMTP id l9-20020aa7d949000000b0055f649b4f9cmr2986494eds.19.1706789110067; Thu, 01 Feb 2024 04:05:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706789110; cv=pass; d=google.com; s=arc-20160816; b=BojpMjZmQ3dunwoaVouh+Y4KwUxfERQ0RGlV0iXbGUgJdql13377emFu+P/BniCv48 zQNlEqIFmenyK2XfH/5PwKNxrOPCGXuPYDmyPiMQ195eOqqqzKtxVOTbJvUMJBz/+w+v GJcCO4HM+Wb7Gayz747PVLLMYgS/4Nfct0zKnrZag/NJxBuORaI3DMQ3OUzQS3/mxRqd gqkr/Zp/rPllJzugdMQ2IoT8T6+dhRNIPy8xJCLXOKBEckQcGPpuv++bRbK4+xGnFFHO 0kFqb0rbF7Tpp0hdtca7F0I79OAZeFLSRLoW6FR15F9xxcNUDNchqyA408Wl1ZSEEHpr gstw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=oDxcvkkaFKPd/dQ9WFlf2PTAuWYT3xtiyWGe6BkKGI4=; fh=aQlq3xsRvEMM7Dr11rd+uabp9DsCinULmdeIPKVZSqI=; b=i2mK3x58vA6VPv5sp3xjrCm2Bg+CiH1sJZ9SBLctSscUDl6aH+8HyjXuiI3ClTFUc8 XoATakqPCOY5+yPJyPuu803bAmB987Ls4vhQBHFu0dzA8qHT9zDZLd48KP1xZZrx8j+J ZnsQrUQOYBfSrLBIe5Z5qLGyQSE+BvuKvxuMoUgdDM0VoDLH1XF7ZwLQMyVOnlwdJKva +EN2CzMLlRIqCBsQLaPRZJYtzcaW391Gv0f+kELHjdLehrohrHNR3bBiXksLJhzvgGlt UWOlbzmd7Mbpg+sxdoadhwoXUGAw4DQClNZ6+S/Hp9uXmrwxBq67orWS6xTKf9CuWNg/ y87g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QmLebLwU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48065-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48065-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCV3r/gg6jakT8eR4Rev9mOXDtK072/9PqNnQv+PtIfS9jK5JV3rFBuXNNrRCM5CEOmerB7SnRpwRWF8DO507giI21v1Jw== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f15-20020a056402150f00b0055fc862f84csi268057edw.514.2024.02.01.04.05.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 04:05:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48065-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QmLebLwU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48065-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48065-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A88CC1F29001 for ; Thu, 1 Feb 2024 12:05:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E55415DBC3; Thu, 1 Feb 2024 12:03:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QmLebLwU" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 237BC160874; Thu, 1 Feb 2024 12:03:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706789024; cv=none; b=uLOq+R/wWYnc1NdUyOW5KNJAaKEX4lGPdYsXIKmcxG4uEOK/B+G8M9HhKjpe6d96jREEe9Ri2s2Dk0gBXABjwBvL0nRtUGbbRQLB/D6TJ+v4+5rFqXdQxQpB77IL2snM+wrwtX5krN2uo0lXw6/047pvbaSzodH25VVwW+zSXXk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706789024; c=relaxed/simple; bh=8PY4KboI/lU7yNn117uZUCKReF1E0FByFkI4iEpBXas=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=H+IpZy4qsd1QpCqkMrkYNONPngXB6mDvNEBvG9hPMWat1o2B9NOzbMuWHdbQnuOu8kfbNKO0Xb/bKdOH++oinsr+Mt9/81ik7W8+GWJRERaPVELG1QJ6irz2aa+UYbYtPEA1RDwsKiuIRZcVFZggu1+8m3RqXifaYDJKrxiE19I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QmLebLwU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49E03C43394; Thu, 1 Feb 2024 12:03:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706789023; bh=8PY4KboI/lU7yNn117uZUCKReF1E0FByFkI4iEpBXas=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QmLebLwUQ7lIInKf3bHIZnPKRRVsgun7NH9zWFSxt/9T4Ud3+bTLcFhC5pzPNHGQV JV2HrCC7A5IBMjJLH91KBmP0HR7jSsRwIh+PobWmjBbeMtFkFlSvsKlSLEovVMWZ/8 9SKdxddJiEeUEzg3+2BeNCN87Mkxc/cTV97dF2VCCqB60QOqAzdjRxiZj/Y496vNsE 2F1nNqHwlYLWXJKGr82U4qW0BhScO1Z+rSiiTuw5D9Y5fqaU4h0ADNDvBXJE2UyxG8 rz4ryRQYhWT9txy+9hREs10pGDh25alqxkfhMwP+pWsYsAFDiGFem56tmWJlXIKwAM galWz3x8Oyudw== From: Roger Quadros To: nm@ti.com, vigneshr@ti.com Cc: afd@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, srk@ti.com, r-gunasekaran@ti.com, b-liu@ti.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH v3 1/5] dt-bindings: mfd: syscon: Add ti,am62-usb-phy-ctrl compatible Date: Thu, 1 Feb 2024 14:03:28 +0200 Message-Id: <20240201120332.4811-2-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240201120332.4811-1-rogerq@kernel.org> References: <20240201120332.4811-1-rogerq@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789698097743555393 X-GMAIL-MSGID: 1789698097743555393 Add the compatible for TI AM62 USB PHY Control register. This register is found in the TI AM62 WKUP_CTRL_MMR0 space [1]. It is used to indicate the USB PHY PLL reference clock rate and core voltage level to the USB controller. [1] - https://www.ti.com/lit/pdf/spruiv7 Signed-off-by: Roger Quadros Acked-by: Rob Herring --- Notes: Changelog: v3 - add compatibles in alphabetical order v2 - New patch Changelog: v2 - New patch Documentation/devicetree/bindings/mfd/syscon.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/syscon.yaml b/Documentation/devicetree/bindings/mfd/syscon.yaml index 084b5c2a2a3c..9437705af92f 100644 --- a/Documentation/devicetree/bindings/mfd/syscon.yaml +++ b/Documentation/devicetree/bindings/mfd/syscon.yaml @@ -72,6 +72,7 @@ properties: - rockchip,rk3588-qos - rockchip,rv1126-qos - starfive,jh7100-sysmain + - ti,am62-usb-phy-ctrl - ti,am654-dss-oldi-io-ctrl - const: syscon From patchwork Thu Feb 1 12:03:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 195265 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp103121dyb; Thu, 1 Feb 2024 04:11:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+2J/Ux9LhblH/NqDf9Jv/cOJHmcf3JN4Yysnxf0HuoUyPox4HXMdNR9fmaRQl6h6y0Y67 X-Received: by 2002:a05:6358:8a5:b0:176:91bb:9600 with SMTP id m37-20020a05635808a500b0017691bb9600mr5193918rwj.3.1706789519497; Thu, 01 Feb 2024 04:11:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706789519; cv=pass; d=google.com; s=arc-20160816; b=TpbNHeWZ/T+VacmBCUhz6QTI8x8Czs6FeHOiMhgEEN38ICHGxCGDi512yy+48o5rxg OawIKVQKov8UmKGqXFczEfyXZeBVKFJ14FENUDSlNMX8gs9Oz6IiMqTGQ3S68rB8Eky5 ZFUWzMk9dMX7L1J8VwkZ0gLTIhFtq+6BczFxsLLWr5OrV27Z4nlseiItTJtimYzFBjTN UZ239lHf5RrZrdt84qKl4ksnvIz4TtjuwU+EJFAZMV8A8hMI03RoB8R5LNvfxG7AVhgS 8XBhuvpWjRc0z/TdQ25WL8JefgkD+d2too9m+m1a7h01c1Zky44O/uHemSjtFKr041p8 kdaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=N6X0VYxhbhd3fchHeDYEJxwreo6zZkCZKzM8rem0g3g=; fh=qJEqPBfewMSY2fgVK0gB4RvXwj9V8yVGrPkXmyJ1hG4=; b=CiZghnkHabvQGe/SNOnBxQPfXWm03mw09W5kvPJFY2o9lTaZHYiP8Di/JK3ub8Ag6D xP7VYFhV4PMQnLMwS8yxbf2ue3QRvcF+J4GgmDa7ufuMgR8r/cxQZQ0CbUuzfsjZro/l x7uk+76iizAO/HPJ9m5+YlFZfm7U+oXPuYp8iBxMQ/YZD3VHcqh+Y1IGvtzFjd+YDBsZ 5NYX5VvtFsFJ6SK2/okLIelYvcZQmLUKyqnk2JTHy8osZuwp7cz5UlLNkpRrUIilIBlg 3t1zn0dxbw3fosrdHegYWfjIOerjIcX15uNOpct/CMqyuSc/O3+jFoP2QBNwuIeDqzdx tYKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pLrYoAfd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48067-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48067-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCWSwwI1nGwByH3rl+Quvv04+3OeGfHceGeokaLU3+p3rLrd7UH4bTklpIG2Ei7Wgu1H3ha+g1N5OhzK653KMzGQJCo3Wg== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s24-20020a62e718000000b006ddcc9294ffsi11731867pfh.47.2024.02.01.04.11.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 04:11:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48067-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pLrYoAfd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48067-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48067-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 60603B23B65 for ; Thu, 1 Feb 2024 12:05:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF5C115D5C5; Thu, 1 Feb 2024 12:03:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pLrYoAfd" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9BCB160898; Thu, 1 Feb 2024 12:03:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706789028; cv=none; b=auT7sJf0HCw+gWHgxj2laegjG3aUG04I6wkc0C2EJ5ILeh2p2jzxSvIgoiFWArgrggXYGGZjFR6+8AaL0P/anUTPggbRbZVK6QLsWq81cakFJNfWpuzukOcKJRCo7xwmPklNwMUV/CPd1WXsWKE/Avum0qsTfq7uJomI9lqjvDU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706789028; c=relaxed/simple; bh=Ju92KX3A8x5k/BwsegmfTeVsOWpvc6nIXQ9tjUAYaTQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OH1i6ycgDXQB9j/EBgx5Fz+2YDXwEEfvVeGMkdk0sXgJTE2uWM70nKtFc0uM2sIlV+72joXRx4FTFVgV177mOE/X73tHOjAdAMF6HZ2qgpJelBWF+efc2oJPvqCxUY7hfQwW++1v2Yju+c/umak7k1QQw0UEJR61iACcIqa2y9I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pLrYoAfd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0803FC433C7; Thu, 1 Feb 2024 12:03:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706789027; bh=Ju92KX3A8x5k/BwsegmfTeVsOWpvc6nIXQ9tjUAYaTQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pLrYoAfdFAmnuEAsUau+EkQELeEIH0UWWiQh4Ls2B981OxtNK6Gb5U/pO7QA8Iyaq zyINBYmxTamcB2r0XjiGXYAInJy7ubspEXwy5avo92yS4c8zrbAf0j+1tZGp8bxc6i WlOvUpPLGCQ5b8W3F0qwyTVYTsLvFkE+iFw/0wvBcaSdHoFGDmxVLc7Kb2w0uG/r2G JB9tDwtmqTUs0ulA5FNBgGs+ie28gOZfdvXpOhH4rf4hplrtpibwT9/8JWKuwTi9NN pHJJbNXNfq6w4aYRpiMWKsE+MJGtllSk4iZ8/bvxrEsXg8HOG5g8B5WeXAwiDrcFe2 cDCAOhLLbbf6g== From: Roger Quadros To: nm@ti.com, vigneshr@ti.com Cc: afd@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, srk@ti.com, r-gunasekaran@ti.com, b-liu@ti.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH v3 2/5] arm64: dts: ti: k3-am62/a: use sub-node for USB_PHY_CTRL registers Date: Thu, 1 Feb 2024 14:03:29 +0200 Message-Id: <20240201120332.4811-3-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240201120332.4811-1-rogerq@kernel.org> References: <20240201120332.4811-1-rogerq@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789698527423367796 X-GMAIL-MSGID: 1789698527423367796 Exposing the entire CTRL_MMR space to syscon is not a good idea. Add sub-nodes for USB0_PHY_CTRL and USB1_PHY_CTRL and use them in the USB0/USB1 nodes. Signed-off-by: Roger Quadros Reviewed-by: Andrew Davis --- Notes: Changelog: v3 - no change v2: - moved am62p changes to next patch - use new compatible for USB PHY CTRL node arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 4 ++-- arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi | 10 ++++++++++ arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 4 ++-- arch/arm64/boot/dts/ti/k3-am62a-wakeup.dtsi | 10 ++++++++++ 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi index 464b7565d085..9432ed344d52 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -625,7 +625,7 @@ usbss0: dwc3-usb@f900000 { reg = <0x00 0x0f900000 0x00 0x800>; clocks = <&k3_clks 161 3>; clock-names = "ref"; - ti,syscon-phy-pll-refclk = <&wkup_conf 0x4008>; + ti,syscon-phy-pll-refclk = <&usb0_phy_ctrl 0x0>; #address-cells = <2>; #size-cells = <2>; power-domains = <&k3_pds 178 TI_SCI_PD_EXCLUSIVE>; @@ -648,7 +648,7 @@ usbss1: dwc3-usb@f910000 { reg = <0x00 0x0f910000 0x00 0x800>; clocks = <&k3_clks 162 3>; clock-names = "ref"; - ti,syscon-phy-pll-refclk = <&wkup_conf 0x4018>; + ti,syscon-phy-pll-refclk = <&usb1_phy_ctrl 0x0>; #address-cells = <2>; #size-cells = <2>; power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>; diff --git a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi index fef76f52a52e..817700b2eacf 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi @@ -19,6 +19,16 @@ chipid: chipid@14 { compatible = "ti,am654-chipid"; reg = <0x14 0x4>; }; + + usb0_phy_ctrl: syscon@4008 { + compatible = "ti,am62-usb-phy-ctrl", "syscon"; + reg = <0x4008 0x4>; + }; + + usb1_phy_ctrl: syscon@4018 { + compatible = "ti,am62-usb-phy-ctrl", "syscon"; + reg = <0x4018 0x4>; + }; }; wkup_uart0: serial@2b300000 { diff --git a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi index f0b8c9ab1459..8311c7c44cd3 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi @@ -566,7 +566,7 @@ usbss0: dwc3-usb@f900000 { reg = <0x00 0x0f900000 0x00 0x800>; clocks = <&k3_clks 161 3>; clock-names = "ref"; - ti,syscon-phy-pll-refclk = <&wkup_conf 0x4008>; + ti,syscon-phy-pll-refclk = <&usb0_phy_ctrl 0x0>; #address-cells = <2>; #size-cells = <2>; power-domains = <&k3_pds 178 TI_SCI_PD_EXCLUSIVE>; @@ -589,7 +589,7 @@ usbss1: dwc3-usb@f910000 { reg = <0x00 0x0f910000 0x00 0x800>; clocks = <&k3_clks 162 3>; clock-names = "ref"; - ti,syscon-phy-pll-refclk = <&wkup_conf 0x4018>; + ti,syscon-phy-pll-refclk = <&usb1_phy_ctrl 0x0>; #address-cells = <2>; #size-cells = <2>; power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>; diff --git a/arch/arm64/boot/dts/ti/k3-am62a-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-wakeup.dtsi index 4e8279fa01e1..4a375f5e0c19 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a-wakeup.dtsi @@ -17,6 +17,16 @@ chipid: chipid@14 { compatible = "ti,am654-chipid"; reg = <0x14 0x4>; }; + + usb0_phy_ctrl: syscon@4008 { + compatible = "ti,am62-usb-phy-ctrl", "syscon"; + reg = <0x4008 0x4>; + }; + + usb1_phy_ctrl: syscon@4018 { + compatible = "ti,am62-usb-phy-ctrl", "syscon"; + reg = <0x4018 0x4>; + }; }; wkup_uart0: serial@2b300000 { From patchwork Thu Feb 1 12:03:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 195260 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp99420dyb; Thu, 1 Feb 2024 04:05:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmSzm/LAhvbUcigHoJ7LUSuVvspMIt939VURlCpC8koz+dFcuG+0AV4ZWxUZ9PAKcIRSxf X-Received: by 2002:a05:6512:2018:b0:510:109:475d with SMTP id a24-20020a056512201800b005100109475dmr1568244lfb.43.1706789150705; Thu, 01 Feb 2024 04:05:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706789150; cv=pass; d=google.com; s=arc-20160816; b=iOAAU/68obQ4SpE5c4pCTJ8JQyPLVu6BxI61qyPSRrmV6lfpNELO7OTz8z72MQa2b2 jSDvZvz6pSFJeLwGjrsxwjN9QxaQJ4E5He41Chc/Bl7GnMhA6GVhG6w4M+4MtFc82UdE GZwn/wplg5/cdkiwYiaQZaLIJRs1dvsUvHaNm5eeiP0O4Y7Iv8YkInasxN9rW9YLLiZP nokY+1lZpFXFR00eomgtbqpR36lOc9kgPpeNtKRTQEy73MOMOxn8zJQypV3/7WJTC/13 4Q6FZsP/isdQHrGLa1RS6bt+gt9WFbkqzByQChB0XPjLwJYDc1vSAK0fnUtRcY7hfQOC 5cSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=7dHcADtDdV2g15I2ZFRzLONbzzmJiGNKx+/RTXzHfPA=; fh=i9lrth+SO7xzUHiP1gpkJKELq/UMGMiRqon+NOKVWQ0=; b=Vt3Hn2w1IhrLdy4LscCvxHLulDXdvCEClajWDEX36m75LN3g5afWQlQuCkrfMmXnAD eDXW/nFTiSkoQ3/bjOvidvXl0uN8IEFzcWuIe+uwEWggNi6t3vuwyM4qXNHz7DDNELNn 56bbB+VSKRVlP2GyUm6ikzoLCkPh0PU0Wb1s84u412bxM2b/nseUQWy+rGk1dw19eS2x AbS20KyArKVzxbzwXmX9ylkqPAsqu9LezdUDWMgzrenSrz6B68121TPMhyDSkzy1W5Jl B/n010oYhuMjm48ND5eXGkezuSqIMegSFeu/OXtKsc1KXHi08WzzBTj2HdcV5vixy/uQ UKxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="k5oszq/V"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48068-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48068-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCWSzp06NO/EwYM9kfoAQyocjmp2q56pSl6m6aR1Rw5OD8Q9WVT6QZdsxE1rleo2ziVWwhUiD59ZaYHYpX50cmfSYJr+pg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d19-20020a17090648d300b00a35d9e23ad3si3677110ejt.877.2024.02.01.04.05.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 04:05:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48068-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="k5oszq/V"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48068-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48068-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2374E1F28D0C for ; Thu, 1 Feb 2024 12:05:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58AE8161B73; Thu, 1 Feb 2024 12:03:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="k5oszq/V" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BF2D161B4F; Thu, 1 Feb 2024 12:03:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706789031; cv=none; b=fZtQ4qel4OGflG/dOvkxlQpYumyYKrx+c70KRnti5azSfXuwguPiK5dgVXLJgzxHVK8HqYhvLNZ01MBQxouhXSZNh/4z14DfdD3zSBGOzyaY9w6RKOL1imWJAPl9im6s0AC4PLsZp66YENQpwr9qPpgykq6vQmbtfFRYQXIrWMw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706789031; c=relaxed/simple; bh=I4vLqsDfXG9pW/rrRlc221L7/vFRIUuAf5F/pe2wE+w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=j8Kl/gbMNVsIKvHr+DxpfVv0QgiSAFnCdla7o4J8TFY+8ePkmmzpDLeNQ2qGhymzmee155T37B9+ljDjaEfusWssUunBusKHmbPpK8PwMkL5FvGoij0G1+I9WOD6d/mZm0Wt/QjzDqapQP3xWDLTimAadXKhxTbEi2vROz8YcSs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=k5oszq/V; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFC48C4167E; Thu, 1 Feb 2024 12:03:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706789031; bh=I4vLqsDfXG9pW/rrRlc221L7/vFRIUuAf5F/pe2wE+w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k5oszq/Vj1/v/angyQVmOvmusYIudzTsp0qI3wbSoQLTQh5XbQQdnA+5RT/H/9pom h4lQ4ayG30ZK42F5olRUZAdzFPc9ClMMrm9x0IGLNoKKTGeoxHkENeHDVS8WnMNN2s iK3ZBJmk/EK4pgza6UC8hi6hWag9FCz1utgfpBwPedHuU6H0pFallH+vblxkzvL9YM d2oCx9XP7dPdiY48DLdrWW+CJeidtGa9rz7j90SGA3Wm/+TqaJlSlBFpkuXp8rQaBx VF5e9AjY3QTSJI+dGIpApOjvMfA7mlMC8ukU2pG3i/KAu1S4u4xr049Hcs2N9qbCsO sNpnsbxGpMEJg== From: Roger Quadros To: nm@ti.com, vigneshr@ti.com Cc: afd@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, srk@ti.com, r-gunasekaran@ti.com, b-liu@ti.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH v3 3/5] arm64: dts: ti: k3-am62p: add the USB sub-system Date: Thu, 1 Feb 2024 14:03:30 +0200 Message-Id: <20240201120332.4811-4-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240201120332.4811-1-rogerq@kernel.org> References: <20240201120332.4811-1-rogerq@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789698140468076613 X-GMAIL-MSGID: 1789698140468076613 There are two USB instances available on the am62p5 starter kit. Include and enable them for use on the board. Signed-off-by: Vignesh Raghavendra Signed-off-by: Roger Quadros --- Notes: Changelog: v3 - no change v2: - added USB PHY CTRL node changes here - changed USB wrapper node names to usb@ - changed Type-C chip node name to usb-power-control@ arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 46 ++++++++++++++ arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi | 10 +++ arch/arm64/boot/dts/ti/k3-am62p5-sk.dts | 67 +++++++++++++++++++++ 3 files changed, 123 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi index 4c51bae06b57..17d28390d587 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi @@ -560,6 +560,52 @@ sdhci2: mmc@fa20000 { status = "disabled"; }; + usbss0: usb@f900000 { + compatible = "ti,am62-usb"; + reg = <0x00 0x0f900000 0x00 0x800>; + clocks = <&k3_clks 161 3>; + clock-names = "ref"; + ti,syscon-phy-pll-refclk = <&usb0_phy_ctrl 0x0>; + #address-cells = <2>; + #size-cells = <2>; + power-domains = <&k3_pds 178 TI_SCI_PD_EXCLUSIVE>; + ranges; + status = "disabled"; + + usb0: usb@31000000 { + compatible = "snps,dwc3"; + reg = <0x00 0x31000000 0x00 0x50000>; + interrupts = , /* irq.0 */ + ; /* irq.0 */ + interrupt-names = "host", "peripheral"; + maximum-speed = "high-speed"; + dr_mode = "otg"; + }; + }; + + usbss1: usb@f910000 { + compatible = "ti,am62-usb"; + reg = <0x00 0x0f910000 0x00 0x800>; + clocks = <&k3_clks 162 3>; + clock-names = "ref"; + ti,syscon-phy-pll-refclk = <&usb1_phy_ctrl 0x0>; + #address-cells = <2>; + #size-cells = <2>; + power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>; + ranges; + status = "disabled"; + + usb1: usb@31100000 { + compatible = "snps,dwc3"; + reg = <0x00 0x31100000 0x00 0x50000>; + interrupts = , /* irq.0 */ + ; /* irq.0 */ + interrupt-names = "host", "peripheral"; + maximum-speed = "high-speed"; + dr_mode = "otg"; + }; + }; + fss: bus@fc00000 { compatible = "simple-bus"; reg = <0x00 0x0fc00000 0x00 0x70000>; diff --git a/arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi index 19f42b39394e..00dd38b02a52 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi @@ -18,6 +18,16 @@ chipid: chipid@14 { reg = <0x14 0x4>; bootph-all; }; + + usb0_phy_ctrl: syscon@4008 { + compatible = "ti,am62-usb-phy-ctrl", "syscon"; + reg = <0x4008 0x4>; + }; + + usb1_phy_ctrl: syscon@4018 { + compatible = "ti,am62-usb-phy-ctrl", "syscon"; + reg = <0x4018 0x4>; + }; }; wkup_uart0: serial@2b300000 { diff --git a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts index 1773c05f752c..80be56c0a4e0 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts @@ -27,6 +27,8 @@ aliases { spi0 = &ospi0; ethernet0 = &cpsw_port1; ethernet1 = &cpsw_port2; + usb0 = &usb0; + usb1 = &usb1; }; chosen { @@ -297,6 +299,12 @@ AM62PX_IOPAD(0x01b0, PIN_OUTPUT, 2) /* (G20) MCASP0_ACLKR.UART1_TXD */ bootph-all; }; + main_usb1_pins_default: main-usb1-default-pins { + pinctrl-single,pins = < + AM62PX_IOPAD(0x0258, PIN_INPUT, 0) /* (G21) USB1_DRVVBUS */ + >; + }; + main_wlirq_pins_default: main-wlirq-default-pins { pinctrl-single,pins = < AM62PX_IOPAD(0x0128, PIN_INPUT, 7) /* (K25) MMC2_SDWP.GPIO0_72 */ @@ -340,6 +348,36 @@ AM62PX_IOPAD(0x0124, PIN_INPUT, 7) /* (J25) MMC2_SDCD.GPIO0_71 */ }; }; +&main_i2c0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_i2c0_pins_default>; + clock-frequency = <400000>; + + typec_pd0: usb-power-controller@3f { + compatible = "ti,tps6598x"; + reg = <0x3f>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C"; + self-powered; + data-role = "dual"; + power-role = "sink"; + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + usb_con_hs: endpoint { + remote-endpoint = <&usb0_hs_ep>; + }; + }; + }; + }; + }; +}; + &main_i2c1 { status = "okay"; pinctrl-names = "default"; @@ -460,6 +498,35 @@ cpsw3g_phy1: ethernet-phy@1 { }; }; +&usbss0 { + status = "okay"; + ti,vbus-divider; +}; + +&usbss1 { + status = "okay"; + ti,vbus-divider; +}; + +&usb0 { + usb-role-switch; + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + usb0_hs_ep: endpoint { + remote-endpoint = <&usb_con_hs>; + }; + }; +}; + +&usb1 { + dr_mode = "host"; + pinctrl-names = "default"; + pinctrl-0 = <&main_usb1_pins_default>; +}; + &mcasp1 { status = "okay"; #sound-dai-cells = <0>; From patchwork Thu Feb 1 12:03:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 195261 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp99644dyb; Thu, 1 Feb 2024 04:06:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqbVKuauNFeNaXOcEQ93iOoRZbL2XPn50VnV5RWlHd8nCglLy/dRQy60LGeyFb2KsLvYA9 X-Received: by 2002:a17:902:b701:b0:1d9:1b55:a37 with SMTP id d1-20020a170902b70100b001d91b550a37mr4359454pls.50.1706789175235; Thu, 01 Feb 2024 04:06:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706789175; cv=pass; d=google.com; s=arc-20160816; b=hkYEpGJQ2pCNW+0ONFOk7rSyjtoG2lDkbIIr+yYPGR4p3WIcTlQgL5uWoX/LfWsE3h RQy0HU5B6nu80fv9BuOdUdOvaPTbWNyNQ2qGP0WSVp3J3aMlbHC7LeFWoGc+5h6elakZ LuCGwC770/DL4BldS6ad/gLgR45Tn9Z5oWLg4NDJf1qZQ2o7c2ng1rJObXK8vQdkgaTD IqeT/1FKn06qvAoE9A4EHNO3dfkenodLX0w1j/gzh6iWlsmc10QzjBBguPeD/4wfkE5T VATJLNr+1RgMDtf/IiFIV76p+lIY/XUxlLZZRKXLEz/qmsn5umCW9bGYCf/PhESSj+BR ulcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=a4R9aCwEOuhNCo3EuUZfZcRnnjJvgGTUPwvej4QhHcw=; fh=CGMJQTcBkZ1ERBeSV7NvF4RLYV2QEgql6Y5X0P+mbzk=; b=e1tPxvGkupQupGLHlUPR6Wb/4IcDZ+/ccQEE86ioZVI7bPkySt4TAkJL7NvT2ax/YM 5HKc9ShpgCPl91WxPHoGlFQliV+NgT+h6oQS+ZipuwAtsOnnbpfnQPf/aGUDzmF4GxFo IRltdh7sRR+OSrDexsyCSVrBfCGj/CI2Y5YPLfZK1bnk/ih/4dHjEq9N9vOJWFEU1lKL P04RXwvnTThBw1i3abKAYLtS7Mh32bt24KQMgpiOCTExTdTT+xm1uxUW+6mkljjf1O3f SL5OewgPnmWocI3uywWidL+tj1R0Z1rNqC0SzhWR3G9m75mH/vJQ8xyNUq8nPYorC0+r 3BGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RdIwrlDG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48070-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48070-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCUNv4Szdeq/huIkgdNUrHNBFDIx4f+b4oBFx0X5PO9v24+pbG1PzIFASsiX6obFfQSNxCIDYCIU9Ma/oIrpDFB7bwfJEg== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n6-20020a170902e54600b001d8a64238b5si12039821plf.174.2024.02.01.04.06.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 04:06:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48070-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RdIwrlDG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48070-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48070-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0249E29069B for ; Thu, 1 Feb 2024 12:06:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E0C9163AA4; Thu, 1 Feb 2024 12:03:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RdIwrlDG" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC873161B78; Thu, 1 Feb 2024 12:03:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706789035; cv=none; b=ECeQ5PwNaKasskbnjDPz+lx81oBv3OvnCbE3I3m79FltD5+w0tzQEFAio/Wwvg/9y2rF3xbM6LN4ZL+q4wrd7qiy9D+B3iwUOpnMFgENnbg8lcZC3IzXOkLmkfnvDoSFZlVBf896qASSlpx2iZxUseztdCVI0suR/Blz5hNMFbk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706789035; c=relaxed/simple; bh=QKijxRowyGO0xEY4A0DhY/KjCBbcM53bJ5KIE6470MQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=q0/XAgRBI9nAhpb/AO718Db/tgaDJ7NXfeDa+trydEn4HV/xRecuoA956c3cvarqDBhM/kIpJAS0gCrsykfG11aKUgoq9DFYOOBrUxi9xpgnjtDDpfEnfDaOeSVrn5pRbS0cJEd9Z4w5YU3mRfjCArV/XeGZjyFB5B3YFNBnpco= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RdIwrlDG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B0A0C433F1; Thu, 1 Feb 2024 12:03:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706789035; bh=QKijxRowyGO0xEY4A0DhY/KjCBbcM53bJ5KIE6470MQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RdIwrlDG2R/idRf95zUqsnK6Ec6+IwG1/0bseLHGuo57Um6qSWBLYt8uELe8vdSgY r/brkqwMb5Qm8WN6U9VvlLMXQPCRSgEUOrSf1vF1UlpSGNU9bqqQ59tc8MbAjKAG2I +AWjC3l/95d9z3Y3lX//OsmvXBc395rWlbZmD0kBxV7hqxWgI2wU5KEgkVimCiExmc 3cuk7G5j4kUV71PtWGvkLp4UCizYlLbLSYPzYB2tI7PSgvcE3jwABMZzw7e0ggl/lC NUeJdrBGPKtzCZ7O3z9elcGK8h7TU2VsfrjFCTLH4kki7tkRhdBuNOYNiHxjU13a+6 3aS5sH3KzsntQ== From: Roger Quadros To: nm@ti.com, vigneshr@ti.com Cc: afd@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, srk@ti.com, r-gunasekaran@ti.com, b-liu@ti.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH v3 4/5] dt-bindings: usb/ti,am62-usb.yaml: Add PHY2 register space Date: Thu, 1 Feb 2024 14:03:31 +0200 Message-Id: <20240201120332.4811-5-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240201120332.4811-1-rogerq@kernel.org> References: <20240201120332.4811-1-rogerq@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789698166193437319 X-GMAIL-MSGID: 1789698166193437319 So far this was not required but due to the newly identified Errata i2409 [1] we need to poke this register space. [1] https://www.ti.com/lit/er/sprz487d/sprz487d.pdf Signed-off-by: Roger Quadros Acked-by: Conor Dooley Tested-by: Andrejs Cainikovs --- Notes: Changelog: v3 - new patch Documentation/devicetree/bindings/usb/ti,am62-usb.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/ti,am62-usb.yaml b/Documentation/devicetree/bindings/usb/ti,am62-usb.yaml index fec5651f5602..c02d9d467d9c 100644 --- a/Documentation/devicetree/bindings/usb/ti,am62-usb.yaml +++ b/Documentation/devicetree/bindings/usb/ti,am62-usb.yaml @@ -14,7 +14,9 @@ properties: const: ti,am62-usb reg: - maxItems: 1 + items: + - description: USB CFG register space + - description: USB PHY2 register space ranges: true @@ -82,7 +84,8 @@ examples: usbss1: usb@f910000 { compatible = "ti,am62-usb"; - reg = <0x00 0x0f910000 0x00 0x800>; + reg = <0x00 0x0f910000 0x00 0x800>, + <0x00 0x0f918000 0x00 0x400>; clocks = <&k3_clks 162 3>; clock-names = "ref"; ti,syscon-phy-pll-refclk = <&wkup_conf 0x4018>; From patchwork Thu Feb 1 12:03:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 195262 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp99953dyb; Thu, 1 Feb 2024 04:06:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFLXng7RdLmMDmCcTEgomxRgoaAqq+WM/hz8fR+RtyWf50ojvc0GBZQT1HzV2HmjDbdULPJ X-Received: by 2002:a05:6358:e4a2:b0:172:ae2a:2256 with SMTP id by34-20020a056358e4a200b00172ae2a2256mr2057941rwb.27.1706789198511; Thu, 01 Feb 2024 04:06:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706789198; cv=pass; d=google.com; s=arc-20160816; b=1LWtYlACGIj3s2BbXjuuFJ8x+8eecyZdlFOofH5qT3VmczplTYnaXj0KKMW9Wncok2 y6PDIj6emLLZOb+T3/jHfpITkmm8XW6wa1iEPrbUraS1EnlYWsk7POZ7gP7aMwRH9CS1 WpGGN6RQXurPNa1fteew7TsyzuLvyRZi/XalvVbd9YONhmkVTRrZRWU8pDWRheUUCiIU CRhBuGE5c3CywNUphGeIPTBcvEcAvrUHT76UPXJFdyJ2IhZo5DOzMA8BetcFGjSgW9u5 sH7LGiPZVs8gpdZdjIyya5ttkD523xUyLfZvz1FUK58lHzTCOaAqxdky4iJsqjIwQAbF WyWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=WFkY1FoUYlGh3to0fvaMeOmflwQAp+sxi6DvVepT2k0=; fh=WSqQwrzMAK214T2kNfKPb7+DQ+UsjL23lcbTs0J3O3w=; b=ZNGcdqPoCLJM6aU02u5NN8DRneU3GpK/gMnA7OKwqWke+Af+vLuP1yV3ROfVV8cHBG OPk6N187O9rIdd+7TvZ1l+qdRcYis7g6a90sqeVirdKW5NxmQRNQwO9uiARkivZQLJMK pS8CbL1vb0HDoEo/GBUwUfxRyC2r4bolPPpkgOBy2IpI9KVHA/ty/VtvzZhKBRtKh4AM RV0qZYPuTgj9by3p8/JijBlNTfedIASo6dZNnONWJMg5tL6CALTSIIrJY9BlW0fAl6AC TBcWgEmZCxq2S0dz+jVOU8E7U3iCqM8op87J5grZR9h/lzuMd5rlqbbg1DteYbg8sh5R bbYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P3IIuMi0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48071-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48071-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCUuJymHuWfU5YWJ89QucOeAPeM/4bYXTumbIm05UZjJX/o/ZMQvhQkOzYJs9Hvh3gMARYO6Jwrkir0eqK6dRSA1yIz3OQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a25-20020a637059000000b005d2014b75b5si11707514pgn.618.2024.02.01.04.06.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 04:06:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48071-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P3IIuMi0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48071-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48071-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4512E29070D for ; Thu, 1 Feb 2024 12:06:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38C271649B2; Thu, 1 Feb 2024 12:04:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="P3IIuMi0" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F59B163AB0; Thu, 1 Feb 2024 12:03:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706789039; cv=none; b=XXwlTIAJc8sKEqPFY2OvEVv3JAs39N2TjxL5lXp+ErvWaNLdjFnx2gUxpGUmfVL/UMjm4CFtI+GojTTUIolmMp56gQrk9NYMNwmC9EeWNAKcLAE7qiwoZzPp/+PKucEryz54G6NTxxoEOCKO0rqpTMRvpUGR8MMUrGGpPg27lEI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706789039; c=relaxed/simple; bh=RkISr3n1VWVb0JqS3ctW9rc03+xFECrO3YJ4+fwugsQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=EDTg83uQbdy0AgNpAdkQ3rJVuNx1pzdFyA9bRmOQQSvXrs7RtYdA+IpPKApJXL65FZ7GLXsMDSs8SF9nrIRcN++rjrEHe4qbv55akhNmEXclp3wOKDXepx0P2S+rXQ/Xny4r6ilDXqQBor8v3bLFiygNJP8kqw8MR8qBWavc2QE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=P3IIuMi0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C80BAC43390; Thu, 1 Feb 2024 12:03:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706789039; bh=RkISr3n1VWVb0JqS3ctW9rc03+xFECrO3YJ4+fwugsQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P3IIuMi09TRxhrQmxE2CkcaAr7oxdQx1HfUTXCSB1b86f9acz51ShTficHcwuJAub 4+t4noPsgsdf0ocpR7b1LEyMKlC2fpZ7SOcSl8p/XQua2gOGmcQZzy8VvNOAJsUBZo yZDfVzRHH8Y8BhD6lh73/xdVi45RX6ROBeujJqJqe1h7yC96V92QJPQCtuCplFKxcb ofgX78sE759tphwMj8cHsiAeh2GNO3Nuqc+KYU/6/33yKH6i+aEP6umtDUv1ODTW2w mYR+QhYFJHJfLxm2nzFlQgrhna1wSaOysnVGZtQf7RkdbEJ4k9oRx/1KRG8GucRVlT WOblGoVKCvREg== From: Roger Quadros To: nm@ti.com, vigneshr@ti.com Cc: afd@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, srk@ti.com, r-gunasekaran@ti.com, b-liu@ti.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH v3 5/5] arm64: dts: ti: k3-am62*: Add PHY2 region to USB wrapper node Date: Thu, 1 Feb 2024 14:03:32 +0200 Message-Id: <20240201120332.4811-6-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240201120332.4811-1-rogerq@kernel.org> References: <20240201120332.4811-1-rogerq@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789698190505291422 X-GMAIL-MSGID: 1789698190505291422 Add PHY2 register space to USB wrapper node. This is required to deal with Errata i2409. Signed-off-by: Roger Quadros --- Notes: Changelog: v3 - new patch arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 6 ++++-- arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 6 ++++-- arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi index 9432ed344d52..da50fbfcce56 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -622,7 +622,8 @@ sdhci2: mmc@fa20000 { usbss0: dwc3-usb@f900000 { compatible = "ti,am62-usb"; - reg = <0x00 0x0f900000 0x00 0x800>; + reg = <0x00 0x0f900000 0x00 0x800>, + <0x00 0x0f908000 0x00 0x400>; clocks = <&k3_clks 161 3>; clock-names = "ref"; ti,syscon-phy-pll-refclk = <&usb0_phy_ctrl 0x0>; @@ -645,7 +646,8 @@ usb0: usb@31000000 { usbss1: dwc3-usb@f910000 { compatible = "ti,am62-usb"; - reg = <0x00 0x0f910000 0x00 0x800>; + reg = <0x00 0x0f910000 0x00 0x800>, + <0x00 0x0f918000 0x00 0x400>; clocks = <&k3_clks 162 3>; clock-names = "ref"; ti,syscon-phy-pll-refclk = <&usb1_phy_ctrl 0x0>; diff --git a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi index 8311c7c44cd3..523bab94eace 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi @@ -563,7 +563,8 @@ sdhci1: mmc@fa00000 { usbss0: dwc3-usb@f900000 { compatible = "ti,am62-usb"; - reg = <0x00 0x0f900000 0x00 0x800>; + reg = <0x00 0x0f900000 0x00 0x800>, + <0x00 0x0f908000 0x00 0x400>; clocks = <&k3_clks 161 3>; clock-names = "ref"; ti,syscon-phy-pll-refclk = <&usb0_phy_ctrl 0x0>; @@ -586,7 +587,8 @@ usb0: usb@31000000 { usbss1: dwc3-usb@f910000 { compatible = "ti,am62-usb"; - reg = <0x00 0x0f910000 0x00 0x800>; + reg = <0x00 0x0f910000 0x00 0x800>, + <0x00 0x0f918000 0x00 0x400>; clocks = <&k3_clks 162 3>; clock-names = "ref"; ti,syscon-phy-pll-refclk = <&usb1_phy_ctrl 0x0>; diff --git a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi index 17d28390d587..ae0ab67460b4 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi @@ -562,7 +562,8 @@ sdhci2: mmc@fa20000 { usbss0: usb@f900000 { compatible = "ti,am62-usb"; - reg = <0x00 0x0f900000 0x00 0x800>; + reg = <0x00 0x0f900000 0x00 0x800>, + <0x00 0x0f908000 0x00 0x400>; clocks = <&k3_clks 161 3>; clock-names = "ref"; ti,syscon-phy-pll-refclk = <&usb0_phy_ctrl 0x0>; @@ -585,7 +586,8 @@ usb0: usb@31000000 { usbss1: usb@f910000 { compatible = "ti,am62-usb"; - reg = <0x00 0x0f910000 0x00 0x800>; + reg = <0x00 0x0f910000 0x00 0x800>, + <0x00 0x0f918000 0x00 0x400>; clocks = <&k3_clks 162 3>; clock-names = "ref"; ti,syscon-phy-pll-refclk = <&usb1_phy_ctrl 0x0>;