From patchwork Thu Oct 17 02:52:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wang X-Patchwork-Id: 13839341 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 DBE95D2F7E1 for ; Thu, 17 Oct 2024 02:54:17 +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: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:In-Reply-To:References: List-Owner; bh=G00N8t9OAmQ9ylZQBBtTDdr0W/71GTeYcDe56oDjwWc=; b=th6DIpn+U2cMse sUyi45esZOCeisbLP5ai1S0SARx3QO4tlpYq17C3kNsP2/RwpUYQQD/tV/w+RnM4le5Mhy44aImBh p4s/lUD+LIdaBPNOWMkfPJ6Gd2Be1elNO0uNH2OPY9NRIe5gMH/kkHFQN9MPxJ9bzugDxhHVYPxvF 4OQquZcHxcxjHuEu8rrciaoYPOP7nrRLnj97xBAIKfZRAH1gioUPJG+PJyTX6buV0lV4vn7FcRfvV UlYDqYvxi5WXBiW/1gAAk/fyTFcknUdMGlvNrgvlYB15Nu/7qYyS787BrbQ5sUSKJoQfoKpnv4Bmf k8iT1UATNbHCvB0UwKQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1GeR-0000000Db0s-1PuS; Thu, 17 Oct 2024 02:54:11 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1Gcx-0000000Dahq-3k7O; Thu, 17 Oct 2024 02:52:41 +0000 Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-2e2da8529e1so77632a91.1; Wed, 16 Oct 2024 19:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729133558; x=1729738358; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=anEJomHrsRlwp4bT7Y/2bAO0FBPIolgYlKqfNbjU7Sw=; b=fCsu5UVMjNY20xRQGtCkd6OiP0Njh/gX4MYpqyeOAfM5Dpb+pQ3aRaiIkAJ3s0wOA7 FZEaPCHpnLaopZ0ESrJe1AjU6qcjJ/plDcq+Vk5qqdArEndJYPHzBs+BTqYKle66DwLf 8AG2ooBnjhLwIZlAyasnOT3WRmVrYIl9PpfLLe0+gIjg+SylCiDtRKQdvDY0R2U7olJ2 i9xQxY8v/3AgrD8AnKa1ilStf+dLdMASXJRuA0Uufw2i0/9jsMGVEJm065RSIvsIf2m0 z3vS7T8fJKnwnZIX2IHT9pxZuSSPhLhN3EXbtOkq+sVziJfKHBD2/u1hxsW1ZP8s25I2 NBOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729133558; x=1729738358; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=anEJomHrsRlwp4bT7Y/2bAO0FBPIolgYlKqfNbjU7Sw=; b=l9wvncbbtKVYEof57qV9cOjQuLEw48APfb7j6kqb1hupWULu8Pxg3GzkqknuM6mexo YWjeWVa5xTI0vfFqwKrv8WiS3Qnp4NBPgeFrcLiHnYUD2UsVm21L91fPyJ3yXJwb9IRF GZTHz4Zq0bz0AkjTimU+mb69YMH/Rt5hCuy44csLWHtf0Q6GwkvHDYEkh8Ih46xb0ObO BvMMUSFkn3qoKcCsyjq+wf8j1+316RpkUgBoMYi1tDxpLZSagnGXTRu1SOnmM3Lq0a/r cvG3ElQd7u1QubrqXluKrBWjYQ8/VosGIGWS7HUACECSXM9L0c5nCN+1vG5OEY2cWZZV 2Jlg== X-Forwarded-Encrypted: i=1; AJvYcCW9P3/Wtmg687o52vs4H2lokqcL/NSHr9DigC6eYQvQQKE8DJHA0Wo+6MEtHY5IAMo46Mh7TUZrBi2AsdYyOea6@lists.infradead.org, AJvYcCWKJaC8Ulk+T3NgjvmVR2z1PP+wIjjxwuQ8SiJ1BZXkBL23OzXfJA3X1SuHoIkpfK/zpbLdPjxy4V6G6EyETpI=@lists.infradead.org X-Gm-Message-State: AOJu0Yzjg2JjdwjiRdnDRMu5cqVO4x7MWPZIXTKGfp28aPI+jfa0uqfa mVLVZOvot229DykHQ1ypXSD2DRDKzZtBEMI1xtGB90W1OvLPyO5X X-Google-Smtp-Source: AGHT+IGzn1MbFJSDxZL13wExxR6YzH79TcUSYhLQOHgaB/BQ6FXcMXvtdf5p7sXpTbHEEivTkILiNA== X-Received: by 2002:a17:903:228d:b0:20b:99cd:c27e with SMTP id d9443c01a7336-20d47ea03cfmr8564085ad.3.1729133558431; Wed, 16 Oct 2024 19:52:38 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e3e08d8b6esm628537a91.29.2024.10.16.19.52.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2024 19:52:38 -0700 (PDT) From: Frank Wang To: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, william.wu@rock-chips.com, tim.chen@rock-chips.com, yubing.zhang@rock-chips.com, Frank Wang Subject: [PATCH v2 1/3] dt-bindings: soc: rockchip: add rk3576 vo1-grf syscon Date: Thu, 17 Oct 2024 10:52:28 +0800 Message-Id: <20241017025230.28752-1-frawang.cn@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241016_195239_956902_E37AC1D0 X-CRM114-Status: UNSURE ( 8.42 ) 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 From: Frank Wang Add rockchip,rk3576-vo1-grf syscon compatible, the vo1-grf is configured in usbdp phy driver. Signed-off-by: Frank Wang Reviewed-by: Krzysztof Kozlowski Reviewed-by: Dragan Simic --- Changelog: v2: - This is a new patch adds rk3576-vo1-grf syscon. v1: - none Documentation/devicetree/bindings/soc/rockchip/grf.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml index 50d727f4b76c6..fd42217ab85e7 100644 --- a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml +++ b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml @@ -33,6 +33,7 @@ properties: - rockchip,rk3576-usb-grf - rockchip,rk3576-usbdpphy-grf - rockchip,rk3576-vo0-grf + - rockchip,rk3576-vo1-grf - rockchip,rk3576-vop-grf - rockchip,rk3588-bigcore0-grf - rockchip,rk3588-bigcore1-grf @@ -283,6 +284,7 @@ allOf: compatible: contains: enum: + - rockchip,rk3576-vo1-grf - rockchip,rk3588-vo-grf - rockchip,rk3588-vo0-grf - rockchip,rk3588-vo1-grf From patchwork Thu Oct 17 02:52:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wang X-Patchwork-Id: 13839342 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 943CDD2F7E1 for ; Thu, 17 Oct 2024 02:55:48 +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=1d0raI/pgpjaNIIxaInYoGtYgtPZJTo+S0TPKUFF6fM=; b=vFm6Dm3QJbymM6 PWJqmJj3RDN2clKsz7lDJ6klmKmM9QhESoyzlFP8yOjIPlO6xPX4lT+OMC0GS3NQW4VtoWBsgE7iW qls9dnZwnjbHCytsxXTkQu1M/q4vDSNDfjNQhwogWB4K1BRp6kAobErZUhNpck6k5zmT4Bnh827nX pGXwOZUUI82ImG3PBwesk2yrIXA+hBFdwrBb9xTzlMo0xDFpkfGd6yVHCM78fqt1Bg19Q6j2VRhHS Q3sIxK52hW2oseX7EOAkIlqFzBhrGm94x4sF70BojbQj2tdx0XlvrFs0Tk+Ztx76a13zLLGrS+Nfe qH3vq3UwKWcpOFIN+wNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1Gfx-0000000DbFc-08IS; Thu, 17 Oct 2024 02:55:45 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1Gd2-0000000Daid-1CTF; Thu, 17 Oct 2024 02:52:45 +0000 Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-2e2a96b242cso76668a91.3; Wed, 16 Oct 2024 19:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729133563; x=1729738363; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=85QbIQffcxhlYB86XB+l//9U96d/RGIx76nV68ii/DI=; b=XOs/fwr2+vOqzyjBzu76TxuWTkbY3LwtrBNWgK+JOzzN+3mPj5xYfHOHV+LgvG99hM JhfXxiFLpD6I72Q2AtvMxKwBtXhVyL0YOybR/SF4mmOeffbrQuefO63VyQhO2KH5TJ1g HTGK8XWIVuQ9ztnVjLFM776nCV7x++CbJDvRhmdXFI10tk5xKyIAwBaUiXA2Zg81p0M4 JK4EVHBbW9A8jw5h6eJPiN6mm8SeTczlu/6sNCqaIIURmUfvICm9xZrkPBhSDWVyL3Cx iSfR4c5oVM0OkfEnAp+6C1BAgXgccipWaVjHfNgm4YO27oUo9r+yRFp/liuqv3+u85Ni e+BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729133563; x=1729738363; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=85QbIQffcxhlYB86XB+l//9U96d/RGIx76nV68ii/DI=; b=fKxcLCfDhgiyIDa/AsOajm8zzRRWe1JUGDWAWSUVwsO1vcNjYgjBNkyyCKS+sj6obx pcAJ8Lx2+Cfx1gyVHt4HMC+NVWuw6Ul08/EAyAhG4IhRODboYNTK9HYaah2CVP5aVfRe MzPaaqB95ZJpF0Va6JzHb32SeexeTwysrVB1j1LP5WXKO4+pHLpo89p6hw0BeLFbx1nl RveKWhOiSb2VVg1/36QZH5+T8dVAdeSNbfLSP2mHQJiIlFWxlhvZX/xK6XqFz4W/VkYs 1nMyWQtg8BkXA+9J1yJQgtpndvh4W1c9ji5N6bA9cb4SR61ZixYUG+HMcdb0JJz2glEY XDHg== X-Forwarded-Encrypted: i=1; AJvYcCUEzgobbNz7EOdIgnfQABJee4/jcvtEG0UMnUATIlLfPSmL4889WNCwRt48LyaE39+RNGs+LeJK9AxkAysPQyEe@lists.infradead.org, AJvYcCUX2a79qDEmARisVt2nuNAJtBPfzD1U/11ItXqykkdxAxsBym2exIkKm+veHbdle2yBme/WFsgL1YMHgGH0/i0=@lists.infradead.org X-Gm-Message-State: AOJu0YzxzNgwmuSoaam+CO7IBO5THHHDlxDE87c/uKHLrPCMMM/gnuMv KZaNYf3StHgVwOrpMGCWkn4Fb4Ni5YIJ2Cd4AHNIeCztrVJbkDWy X-Google-Smtp-Source: AGHT+IFawOJeailC2Asgzjpb5jX970qzHmdvlW2PrVbbt7XJMis9ydsbJUn9eiDov4nXvZpPai5NrA== X-Received: by 2002:a17:90b:3144:b0:2e2:d1c0:758a with SMTP id 98e67ed59e1d1-2e3dc2abb36mr923178a91.8.1729133563258; Wed, 16 Oct 2024 19:52:43 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e3e08d8b6esm628537a91.29.2024.10.16.19.52.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2024 19:52:42 -0700 (PDT) From: Frank Wang To: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, william.wu@rock-chips.com, tim.chen@rock-chips.com, yubing.zhang@rock-chips.com, Frank Wang , Dragan Simic Subject: [PATCH v2 2/3] dt-bindings: phy: rockchip-usbdp: add rk3576 Date: Thu, 17 Oct 2024 10:52:29 +0800 Message-Id: <20241017025230.28752-2-frawang.cn@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241017025230.28752-1-frawang.cn@gmail.com> References: <20241017025230.28752-1-frawang.cn@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241016_195244_352994_E8D8FB19 X-CRM114-Status: UNSURE ( 8.57 ) 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 From: Frank Wang Add compatible for the USBDP phy in the Rockchip RK3576 SoC. Signed-off-by: Frank Wang Acked-by: Rob Herring (Arm) Reviewed-by: Dragan Simic Reviewed-by: Heiko Stuebner --- Changelog: v2: - add Reviewed and Acked tag. v1: - https://patchwork.kernel.org/project/linux-phy/patch/20241014020342.15974-1-frawang.cn@gmail.com/ Documentation/devicetree/bindings/phy/phy-rockchip-usbdp.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/phy/phy-rockchip-usbdp.yaml b/Documentation/devicetree/bindings/phy/phy-rockchip-usbdp.yaml index 1f1f8863b80d0..b42f1272903d8 100644 --- a/Documentation/devicetree/bindings/phy/phy-rockchip-usbdp.yaml +++ b/Documentation/devicetree/bindings/phy/phy-rockchip-usbdp.yaml @@ -13,6 +13,7 @@ maintainers: properties: compatible: enum: + - rockchip,rk3576-usbdp-phy - rockchip,rk3588-usbdp-phy reg: From patchwork Thu Oct 17 02:52:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wang X-Patchwork-Id: 13839353 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 EED87D2F7DA for ; Thu, 17 Oct 2024 02:57:22 +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=E1UaEXhhRYRVnVuqK9mv85wdej3XeCC7gAgbXZLHTZ4=; b=kuIHJEcV+T6d/i 1Jbxm5gpmNYmV6E9VxhDiGmPbhg4AMoE1oHEgoU61UXwiFttGZE8DxMKL6DB/OaM5Ely8abkO48an ohXS6bl0Z8iAFyxp81x8zhK9OT2X64LGmLGUGdMBh8RkBIXA9M18T0FDyopYy5P55AiIh+LW7HbQJ vipOWJb5nqZNVFtqiJzApoqcBPPFiMcwTfLveSEgKGv4Pp58ADnuaalEQw/IbZNWdqDlyhRk/K8Yt oHXp0GdwACqAPDtvDvekE8jI3ut2E6207ms8QIfPLmVD8mincFUfmnz8W2VnMNUkYXzCFKr1HUmGN 3OeOJwgqgzvpc0ztlAuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1GhT-0000000DbQp-3qxs; Thu, 17 Oct 2024 02:57:19 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1Gd7-0000000DajH-0HS3; Thu, 17 Oct 2024 02:52:50 +0000 Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-2e29497f11cso76922a91.2; Wed, 16 Oct 2024 19:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729133568; x=1729738368; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Gf+PMX6YxweSXYAEzNrfFe+MZTHHEq+3Qule4g5FzBA=; b=EnsO1sTv5RwXZfER/hWuBrMdXLw6WUZRhKfW8Qeek2j86ixN8cQ14VcQvvwww11trD ntRDlHFf+kcyY4dxWEpb8vjbjcMPo4XILNa6PW8dpVCiiuwOwKwodIvX5E4S4u7V3kug UzYGNm0JSG1Q0IQpkeJEFPTa1yAkKcJVozOczsTVUtPqPf54X/uIWnQ4IfntAq4jjkbu rhBvs4rx+WO4dCWrVR3V4e71wJA8DcITIjPA3zLUQJsXEYKt+CYeqJ6KrHMFVMif/y46 DB/Jx+sbVSBY3YoC5oAU8CYUfk9YNCMb9fBGJ+PeOOsYDS7eFXY0eKfJyX53w3QPjB30 OBZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729133568; x=1729738368; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Gf+PMX6YxweSXYAEzNrfFe+MZTHHEq+3Qule4g5FzBA=; b=q3Z9Ug+D5alXqpfR4FzqUcOb2urnTj4RUxwBSVgwl3Yn/O45UagwIGPDlgDOoBLvQB +3LXEILXO9pHi6s5uuoWEwJesDo5VQ9QtQqtHLsUtKtt9lagkJld7kv3due0Bo29Ejjj YXFmtQPgOG7rCD7YGnJLB6xPwj7RyST59xKtRqxYwDe0uR5MAMsT4Jv33YGlmpeI5U24 I/TRUy4dvItR5u0mLaCMPW+olM2nxgDI3DdutvwHjnH2JS3AsYMEwDqBQGifj4oNo9M0 ANF0E10SY6cTbbcItK3QsjwPyjFclb2oo21YrdBEUcEcMy4PYsDRibzAXOcKFKDfYkcS zcRQ== X-Forwarded-Encrypted: i=1; AJvYcCU8VIEVjIg7BbKrfVRBTSbV7wcKNrAfWtd4iFHcY692qhFaMOXlV/qDnplucGrcVCtAMPb3F4j5NLjXLc8CN8aV@lists.infradead.org, AJvYcCVagMOGCkT/xagCf7Obovv/uxaCpMwso9BGy2GR8MnZjrGy/gjmeXOJpXhNt4i8CrrUTlv8unXl5RS1HyrHk2w=@lists.infradead.org X-Gm-Message-State: AOJu0Yzu1g1XYVdpXa4oe3/3Nf6ACqPXiz/xxIKr2LcU/7TG0tyzTksO 0P2NRZGwcXcykHBfHz7xzEQv2BdjCf1umrNTyE/5j5VisvYSbL+cCWT+yA== X-Google-Smtp-Source: AGHT+IHEYEmjYlU0tYbqmxNPBntwEjtGskPlYMwZntBvTJCgBTEhOctyXNt80QCb485EeMieShL0Sg== X-Received: by 2002:a17:90a:bf85:b0:2e2:ada8:2984 with SMTP id 98e67ed59e1d1-2e3dc25fc19mr918337a91.4.1729133568018; Wed, 16 Oct 2024 19:52:48 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e3e08d8b6esm628537a91.29.2024.10.16.19.52.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2024 19:52:47 -0700 (PDT) From: Frank Wang To: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, william.wu@rock-chips.com, tim.chen@rock-chips.com, yubing.zhang@rock-chips.com, Frank Wang , Dragan Simic Subject: [PATCH v2 3/3] phy: rockchip: usbdp: add rk3576 device match data Date: Thu, 17 Oct 2024 10:52:30 +0800 Message-Id: <20241017025230.28752-3-frawang.cn@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241017025230.28752-1-frawang.cn@gmail.com> References: <20241017025230.28752-1-frawang.cn@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241016_195249_131785_C36B5A79 X-CRM114-Status: GOOD ( 10.60 ) 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 From: Frank Wang This adds RK3576 device match data support. Signed-off-by: Frank Wang Acked-by: Dragan Simic Reviewed-by: Heiko Stuebner --- Changelog: v2: - add Reviewed and Acked tag. v1: - https://patchwork.kernel.org/project/linux-phy/patch/20241014020342.15974-2-frawang.cn@gmail.com/ drivers/phy/rockchip/phy-rockchip-usbdp.c | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy/rockchip/phy-rockchip-usbdp.c index 2c51e5c62d3eb..5b1e8a3806ed4 100644 --- a/drivers/phy/rockchip/phy-rockchip-usbdp.c +++ b/drivers/phy/rockchip/phy-rockchip-usbdp.c @@ -1538,6 +1538,43 @@ static const char * const rk_udphy_rst_list[] = { "init", "cmn", "lane", "pcs_apb", "pma_apb" }; +static const struct rk_udphy_cfg rk3576_udphy_cfgs = { + .num_phys = 1, + .phy_ids = { 0x2b010000 }, + .num_rsts = ARRAY_SIZE(rk_udphy_rst_list), + .rst_list = rk_udphy_rst_list, + .grfcfg = { + /* u2phy-grf */ + .bvalid_phy_con = RK_UDPHY_GEN_GRF_REG(0x0010, 1, 0, 0x2, 0x3), + .bvalid_grf_con = RK_UDPHY_GEN_GRF_REG(0x0000, 15, 14, 0x1, 0x3), + + /* usb-grf */ + .usb3otg0_cfg = RK_UDPHY_GEN_GRF_REG(0x0030, 15, 0, 0x1100, 0x0188), + + /* usbdpphy-grf */ + .low_pwrn = RK_UDPHY_GEN_GRF_REG(0x0004, 13, 13, 0, 1), + .rx_lfps = RK_UDPHY_GEN_GRF_REG(0x0004, 14, 14, 0, 1), + }, + .vogrfcfg = { + { + .hpd_trigger = RK_UDPHY_GEN_GRF_REG(0x0000, 11, 10, 1, 3), + .dp_lane_reg = 0x0000, + }, + }, + .dp_tx_ctrl_cfg = { + rk3588_dp_tx_drv_ctrl_rbr_hbr_typec, + rk3588_dp_tx_drv_ctrl_rbr_hbr_typec, + rk3588_dp_tx_drv_ctrl_hbr2, + rk3588_dp_tx_drv_ctrl_hbr3, + }, + .dp_tx_ctrl_cfg_typec = { + rk3588_dp_tx_drv_ctrl_rbr_hbr_typec, + rk3588_dp_tx_drv_ctrl_rbr_hbr_typec, + rk3588_dp_tx_drv_ctrl_hbr2, + rk3588_dp_tx_drv_ctrl_hbr3, + }, +}; + static const struct rk_udphy_cfg rk3588_udphy_cfgs = { .num_phys = 2, .phy_ids = { @@ -1584,6 +1621,10 @@ static const struct rk_udphy_cfg rk3588_udphy_cfgs = { }; static const struct of_device_id rk_udphy_dt_match[] = { + { + .compatible = "rockchip,rk3576-usbdp-phy", + .data = &rk3576_udphy_cfgs + }, { .compatible = "rockchip,rk3588-usbdp-phy", .data = &rk3588_udphy_cfgs