From nobody Thu Oct 2 17:00:08 2025 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A9171E47B7 for ; Sun, 14 Sep 2025 14:17:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757859482; cv=none; b=C38T1Aqyk5pBI5o52AxaV8lGFr9Ws0ITsW0jPGJFLOwHfdzVjKj99fGFIBVpDG9GzT78W3eAb2bjMdwnz9slA6ZSm/cBx3OQh9FWZ/0xyPvB/nZj8MoT/IcfNXLojYaWqq0o0oX7KMR+NE8xKB4Fbroi9ds3dDBU4XGTnap3dB8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757859482; c=relaxed/simple; bh=DmOsX7Vf/ilavkrwxUtj9QNM909CJQfFtlFDgRHasuw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AhRaZiN4tr1P+tQypeVvklyK4jypWXt046D/khzIHOjxRvnEvZcSkEioRP+c9s8ScI8fkQwXvxfh4wvV1R/iIiqQgpw/eD7NJPVoT25BZ1dQomwzmJ37ImkBHr6xnxKfsogyBrUMRZHi6NxUUPA42Go5BYmMujSLrtYj7drjwXs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bAs78iFo; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bAs78iFo" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-45dd7b15a64so29837005e9.0 for ; Sun, 14 Sep 2025 07:17:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757859477; x=1758464277; darn=vger.kernel.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=WLnk4ZbyfQe9FhVo0Iaf0C5FfaSInQx1UG35rxo35j0=; b=bAs78iFo5RW2G8RUQ7HG02HMm55yDkHX3miJkXl+rYXg/Wb6tPWjYpndPMUwU8H3R3 hHsJB8+741YN65AQqOyF1SgbEEqINfmg5kTrblKuGzw//KTfBybI2ZQbiV9ley1NANRV 98xB5vSNqlew6HeCNIBMUB/jFY+FtqBCfzvnmMu/fGcQ6L1vx5Ka8U/p9FXwQaKDLjEY EV0D2Ix80wG91CfX46o79g2/B8V6kaY/tS68EbgGTxc1IW/4N/hhgFBjHRFiN5kIZDaE CuLS85e6a7+xlSppknHLwLOlb+qX1FNDMnO6IqfN/HULsrNC34nCrC2VWf3iaZm0mShS byJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757859477; x=1758464277; 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=WLnk4ZbyfQe9FhVo0Iaf0C5FfaSInQx1UG35rxo35j0=; b=H7kFwla2rkfe4y3DqGDt7O+JPqREfN1FpoCfrX3ukwMWKpInEzDSob5baKf7X0LdSy Ep2igfP77vGhf62csZd3CvLg12YZ/nQ89O9OM9FO2ffF8JotCYPnIc8j2jp7Mo1vCJ1F FPUClNT99A9Z5/DqXmnbwaJanYh5nd+4r60BFukIb2jOUf+9CCYQMwbcm+xMB2fLfc+4 DP9se94teFThB0xnAPqwuAzul4RW1MzP3Aa/08STqE1p9iLjiUXc9196jIyHIlMa/hUm WvcjnoQmE5mKjCbsj/9fEDeuuZLOPT+T7BnmzJBk2mDnxju01HEnneWij9S6uUQLsk94 mXpA== X-Forwarded-Encrypted: i=1; AJvYcCV8ZBPpfieolCVJfUm0pm1wIemo2WP6voFq5KZhusfwLWBYqAFWXBxALFb75C76doctYyMMO8AL6z77gG0=@vger.kernel.org X-Gm-Message-State: AOJu0Yxhvm6Zz/7sNJWBif8fB9yhIUcqi69IatWB+lBNoJi4N0VSky40 LL78jBHhaGyL7yzCLecUYnhycKZYskbQOuQsib7FqpiHa1BNmXd+VkyU X-Gm-Gg: ASbGncsQPcraZ25qu3EU+3NC9EyVpHCgufJgXOZvr0Oo0PVjEjxpec2UKHC+06ImGK6 ChFbmpgF9FH3R64vFawitDsREKGg3w1o7hKBTEbMSq4mMFzfLNKozz1uPX+BAFPoV1Ezd63N2J/ DwxjeRBtK3qZq+YojAsdHQ37bWiCnmZrc6Xh4TBmpeuAzI/vTxODyXpg/kFLCN2viIR1nroNz41 zuikmpA6+tQSn5vfE4CSRIbJ80PINMH7hSbOwOOjShIa2Awy0oH/GEYx4t9jO5izY1zBE/CANb6 aKEu/5yiXU41XU1uCOMVcPrhJ2zhrFjootkktAL9lz16hOTljNRTpTf63g/LXt0uMiTKFlSMGRx 0J0lQTVXHRza9bJ0EcGpfKptLDQ9UUAKtOtL6FWY1+phI6kpvuLtdEABphGQB8bG6gj4lpi9aww == X-Google-Smtp-Source: AGHT+IGZa2TxgX8agd2exKpvk7TmNbKmYcyR1Hha+oaP27Kljq84rYHxWKx4npcT6+CgUwnc/mAUug== X-Received: by 2002:a05:600c:40c4:b0:45d:e775:d8b8 with SMTP id 5b1f17b1804b1-45dfd5aaff0mr93879005e9.1.1757859477068; Sun, 14 Sep 2025 07:17:57 -0700 (PDT) Received: from ivaylo-T580.. (91-139-201-119.stz.ddns.bulsat.com. [91.139.201.119]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3e813eb46f3sm7319270f8f.23.2025.09.14.07.17.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Sep 2025 07:17:56 -0700 (PDT) From: Ivaylo Ivanov To: Krzysztof Kozlowski , Rob Herring , Kishon Vijay Abraham I , Vinod Koul , Conor Dooley , Alim Akhtar , Marek Szyprowski , Sylwester Nawrocki Cc: linux-samsung-soc@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] dt-bindings: phy: samsung,usb3-drd-phy: add exynos8890 support Date: Sun, 14 Sep 2025 17:17:42 +0300 Message-ID: <20250914141745.2627756-2-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250914141745.2627756-1-ivo.ivanov.ivanov1@gmail.com> References: <20250914141745.2627756-1-ivo.ivanov.ivanov1@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The exynos8890 SoC features two dwc3 controllers with one USBDRD and one USBHOST controller. Document compatible for the USBDRD one. Signed-off-by: Ivaylo Ivanov --- .../bindings/phy/samsung,usb3-drd-phy.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yam= l b/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml index e90640320..2b1544baf 100644 --- a/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml +++ b/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml @@ -33,6 +33,7 @@ properties: - samsung,exynos7-usbdrd-phy - samsung,exynos7870-usbdrd-phy - samsung,exynos850-usbdrd-phy + - samsung,exynos8890-usbdrd-phy - samsung,exynos990-usbdrd-phy =20 clocks: @@ -209,6 +210,30 @@ allOf: reg-names: maxItems: 1 =20 + - if: + properties: + compatible: + contains: + enum: + - samsung,exynos8890-usbdrd-phy + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + + clock-names: + items: + - const: phy + - const: ref + - const: pipe + + reg: + maxItems: 1 + + reg-names: + maxItems: 1 + - if: properties: compatible: --=20 2.43.0 From nobody Thu Oct 2 17:00:08 2025 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 290132036ED for ; Sun, 14 Sep 2025 14:17:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757859482; cv=none; b=LY7hs9n7dPDt0pyTsdlbpaU8YdM/NEXyoBYDkXyso/5lDZWq0GQ/YwC2ZO6nuBhTEfZbg6yuy7Zsf6wbwdVk+3SsXHRF85M3QDXYwjh8xcFNL/cDT3t85glij9Gc5lyO7cxENpIC5uqwXiD6joxYpdVS1M3l78uHSGdpgZw7mVk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757859482; c=relaxed/simple; bh=G/YgUWwYgipT54ZkK5S7t4iIid/jh16TP1NiVGcDIfY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=APpfIRl2kVEVtVc141rmyV0d8r6E2/6dpUsBtamaw84O6l4VoOuXJfkrMaV4as2o/G38AYtZk5Dz7Y9TtceLCzHmL0c0kFwZqvcDoW+G+Wf1CsT/ZLpSqphn0KXo4/gxcPA8RnLBgBe3ZcO7AIItCOVs+zNTK3mpMj6GS9pmJ+g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bOaoBPDo; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bOaoBPDo" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-3ea7af25f42so129390f8f.0 for ; Sun, 14 Sep 2025 07:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757859478; x=1758464278; darn=vger.kernel.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=2UA8yGhG9kMHYtx0Te9toutlRddNLKPlgFwt+Jj5ZBw=; b=bOaoBPDoCiLOai8Urih7VD5ZEWw8uQOxpdMbaMY+nhC+HuQE3Dud2SrUjgYNtQSV5q LW/hJgq9/+3WwWrTZ92ulIbpbuuBugVDGEm6HcUB2vkdkXSkt6rXlinhkxU0vUk6ocY3 7/YelEm+ubW3DIvMKH/aYJDcvPbXH6ZIR82fImPTd98hk6L1EfAxGe/r+IS4H0g09MIc lcR8Mh9DJO7dLO7vl3XEPeMY0+7Bqm3H+lydqVxzFto1gv2vp4OTh3EH8I2IabtYMm5d cOS6vmCDrzBjQw8cdFA/PdFlZ9EQWAptwSCMlK5IBd6Sy/hby7wqwiaHY0Y847ReFMA7 tbNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757859478; x=1758464278; 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=2UA8yGhG9kMHYtx0Te9toutlRddNLKPlgFwt+Jj5ZBw=; b=LIVgYnBB+szevDfN6nVNEqbI3Fnhi2blLQdq5ZpxF7XJ3aCbUpXP/Q0jNFf2xr0Mxx a/WfAVx3H29mpGSXEAu27xfvh40PwlFv4ELseQm8zGik6/PmVQPw+kdKnZBqvjsUaxy8 IrDuJ9w/vY95LOxgkQfnKhjmf5pqfjzYpSwd0B68DsY/hm/vnFa0a/vHPP1hkZkE2VFr nxDfVHBjk5T5RE420rS8hA5whJuzBARnlZWbB07xu1U4IP88EpmbbG3bNY6hZLFG5KNx Ht1hXjJPp4i02pYQhf2fZkr5AFxtNr/UfJuYAOLrxS0JRPGWPHykjBa1P9NGy2gAgS6P 7mjw== X-Forwarded-Encrypted: i=1; AJvYcCW8VetuPGcziPhh3R9OG/21P9PMNcDE4jOUPoBdFh6+cyjTC5u33fLt3juVxmqj3P5FiND8cvsGFTYInlo=@vger.kernel.org X-Gm-Message-State: AOJu0Yyd/t9yRCZdLbTGj6Mz7no1nbJSTRCHGnsYgwngiTXVFHaZR/Uz GJa43YNkmlZdeYPD/91FDpSVtnQTU2hJHiRlHE8X9uarOaQrfKKZaMbF X-Gm-Gg: ASbGncs8emrRNuCYNdtKUQyXfiXU44mrWqzvsT9ZeUrVHeQOK/rnEfPcOEH0k/QFwIc A3cd4+TbDyP8YvTV/JFEGVaqflAJoYOl6m4B+8Fvdlbfr/W0MtWmYl4MvDpoRvWUzT9R/nfd0Ho gvqHQtrD4jqcdIfHGLksXUE4LfDI0p3DPVYENhLKrFeVYA/ecA0xLGccvPxoC7CjeClbh8SZ2Mh 8lH1TIRz+OSHIHydVRWvuI7L4DmmvV8cNq8gSoDRq8AgU7hA1gnxM6qmIJNJIURKt+P597fzlZ0 I1rikCvQUvum43RTNKsP4NqxyK+HFNAAgO3lpeJfdXyBSw5vgRI/wOeXxI/slnTKBaHuFCwYSP8 1UAxm3eVxCQxfpIaFbW4wJSGuKl+4MZ0SO9yG8bZbSTLREyG56rW3hnZ33PWK5kCY7KcGMY/VJg == X-Google-Smtp-Source: AGHT+IEVZ6Z6kRbK2/B6B8AOG5votgND2aiK+Fq2TrFsSb/gyiSqAj2GfqraBbQ0O5p8f224y8alHw== X-Received: by 2002:a05:6000:420a:b0:3e7:5f26:f1f0 with SMTP id ffacd0b85a97d-3e765a13179mr8756668f8f.40.1757859478364; Sun, 14 Sep 2025 07:17:58 -0700 (PDT) Received: from ivaylo-T580.. (91-139-201-119.stz.ddns.bulsat.com. [91.139.201.119]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3e813eb46f3sm7319270f8f.23.2025.09.14.07.17.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Sep 2025 07:17:57 -0700 (PDT) From: Ivaylo Ivanov To: Krzysztof Kozlowski , Rob Herring , Kishon Vijay Abraham I , Vinod Koul , Conor Dooley , Alim Akhtar , Marek Szyprowski , Sylwester Nawrocki Cc: linux-samsung-soc@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] dt-bindings: usb: samsung,exynos-dwc3 add exynos8890 compatible Date: Sun, 14 Sep 2025 17:17:43 +0300 Message-ID: <20250914141745.2627756-3-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250914141745.2627756-1-ivo.ivanov.ivanov1@gmail.com> References: <20250914141745.2627756-1-ivo.ivanov.ivanov1@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add a compatible for the exynos8890-dwusb3 node. It features the same clocks and regulators as exynos7, so reuse its compatible. Signed-off-by: Ivaylo Ivanov Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml= b/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml index 6d39e5066..6ecbf53d8 100644 --- a/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml @@ -21,6 +21,9 @@ properties: - samsung,exynos7870-dwusb3 - samsung,exynos850-dwusb3 - samsung,exynosautov920-dwusb3 + - items: + - const: samsung,exynos8890-dwusb3 + - const: samsung,exynos7-dwusb3 - items: - const: samsung,exynos990-dwusb3 - const: samsung,exynos850-dwusb3 --=20 2.43.0 From nobody Thu Oct 2 17:00:08 2025 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6509021576E for ; Sun, 14 Sep 2025 14:18:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757859483; cv=none; b=u4taYRyF/J87J+LOkjd0HnoTCTgTj3IsPER2f2ZreDN/TCNUvNfCnklximdG37UvGFRXT+6gR7YrMLJ7JOXiV8VQGvJp5hAYhk+V4ntYy1+7CUPeiz/ZcPlelwRjeW+g/vWo/QMrbPheTZXuge4Dpdigf6j0yfUv94UG5fmK39Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757859483; c=relaxed/simple; bh=DmOsX7Vf/ilavkrwxUtj9QNM909CJQfFtlFDgRHasuw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VTDZqnQnm58ZoTUSag5upVOfQb8keYGvqRmVdQaNzBbN/apVcqPrd/rysp7z/UssBYsMdLJk1UmvWGxbelhd+fAGejiOZQR1bh1IvWf3v0SOJfP7ABEwUTZ9cxrmYXJ4aYUPsyJX6dsNcWr7rc8ebRNcx9SRz3EnUpX6zogpPPo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=lEgFIYxg; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lEgFIYxg" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3e4b5aee522so2007644f8f.1 for ; Sun, 14 Sep 2025 07:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757859480; x=1758464280; darn=vger.kernel.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=WLnk4ZbyfQe9FhVo0Iaf0C5FfaSInQx1UG35rxo35j0=; b=lEgFIYxgLGHYqJn+ddhQ28oIZ/tjQi5GuPHuzoxr+Bn289qSDM276yQyFigIXMPG8L 419MkelxiTX8SXCa0ngobbcKxNqUdomev6m4ZmRy7r0Os9YxTkJl4RRXW2ttzm+sS4zS 9IEyF7ffKYegwSe99ElP7IO4xVr8kelRwbnu8iJtfJL4Z9hehRE3DLomRaRQlntbFUf0 FitHnEM2c3we7suSR/9BdVIktzdXKqbeeqRkTBKaoWoK9VM5Vq9+briz/pu1j7MJHgTt vQtFL6OKPs59/xfRZOar+Rt99oO9PBz/cuSAyC88KuhP8jQi03wsyC6/EhNBXpkvEYKL 915g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757859480; x=1758464280; 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=WLnk4ZbyfQe9FhVo0Iaf0C5FfaSInQx1UG35rxo35j0=; b=FQ2uJZvkvc34o2Rxdn+qBT/F8S5hneeSRI6S/MsSCtWRrNiSZafnrzurrcxqcojouN k1XFh/FAs5v7JZJG+NiepCP3jHd8YUzjhcYwZH373VOVnxHbcwLZNMW6DgzkiyvSmAnR ZzJZuNshBBzfA5yo7sViqjl9+RNRrZcpPMGapLPz9hFPi0DqkfkyCebGl4/Q63deT2h+ YOi/CWLaGZ1DLqyNZoKKnJPbSH5hJbuWAOA333+ajpdh0IfsDAGRYmVH1hDRvbBSrdCc 4YeSr2i6rI71BvtEa7kZ7hbLZsq+s/P/C6bxEXUa3BqGsJ5pNwOSI8khbFr8oRPhkq2U hvCQ== X-Forwarded-Encrypted: i=1; AJvYcCVgxPHn2yRKPgm5DJ7EZ8yg4y9J6Fgi5OdYExLxLY5TG2yYhedyVDjdoZsYFCvyqHEXlNhL6qiR6zGOcXw=@vger.kernel.org X-Gm-Message-State: AOJu0YxUmOWX4Pq2PeJc6xyfSczQP597t+bhjl0/oWSiTkcsRzDBphep ZEQNYUCQylCJXD3FBMldxktg2LmZSitd3SfJ29DLjrK/GkyWAO9dEha9 X-Gm-Gg: ASbGncuEBbpNyLMjxriRiEo7ffJwbmbriRAMPm5xTI9wCOsEtlGnGT4TGQXJGSmAuuR qiMhftBi/TpVYSgr/xf3TowlANL1G314Ns2Ax11NX7U2apqXgiYRNN3ZAL+zwG5gufA4ggkVPiF 7OSdNrk5fSQQ1oqdjn+lLvZ4zUfM9qDf0m/RS7GTxYg6gIckl6unBQEcnDKDI5M24EQ/NVaq0rq Mp4+MuYr19k7mmiScAL9+1Hb8QI3h+jG7s8aSzV13qOad3NySJ0SxWwuiOevMxV4NeefFDzjgU3 7Tx1qyBOrJ0HK/qFUGJBM5uB72JiA3fbcLRDK2J3s6Fd/aFwbCtmY1DIe8sR23aoSv8sv4nmwCw htjWKjCmAKlMQzUWa7/8BLvpCVlXyv/70F5MiKUOqZt24vyiLvIZhTYoNUJBPZoqHEwYidMC6WU +llYR7WDt/ X-Google-Smtp-Source: AGHT+IGob/FXoyz3+A1gJIBnwRTgWRN15gu4QTGHa/hPMhwPvI0q1Q0NHBycPN6rl7zOaTPDOVjCoA== X-Received: by 2002:a05:6000:22c7:b0:3e1:1cfc:ee90 with SMTP id ffacd0b85a97d-3e7659c4a5bmr6355341f8f.30.1757859479650; Sun, 14 Sep 2025 07:17:59 -0700 (PDT) Received: from ivaylo-T580.. (91-139-201-119.stz.ddns.bulsat.com. [91.139.201.119]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3e813eb46f3sm7319270f8f.23.2025.09.14.07.17.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Sep 2025 07:17:59 -0700 (PDT) From: Ivaylo Ivanov To: Krzysztof Kozlowski , Rob Herring , Kishon Vijay Abraham I , Vinod Koul , Conor Dooley , Alim Akhtar , Marek Szyprowski , Sylwester Nawrocki Cc: linux-samsung-soc@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/2] dt-bindings: phy: samsung,usb3-drd-phy: add exynos8890 support Date: Sun, 14 Sep 2025 17:17:44 +0300 Message-ID: <20250914141745.2627756-4-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250914141745.2627756-1-ivo.ivanov.ivanov1@gmail.com> References: <20250914141745.2627756-1-ivo.ivanov.ivanov1@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The exynos8890 SoC features two dwc3 controllers with one USBDRD and one USBHOST controller. Document compatible for the USBDRD one. Signed-off-by: Ivaylo Ivanov --- .../bindings/phy/samsung,usb3-drd-phy.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yam= l b/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml index e90640320..2b1544baf 100644 --- a/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml +++ b/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml @@ -33,6 +33,7 @@ properties: - samsung,exynos7-usbdrd-phy - samsung,exynos7870-usbdrd-phy - samsung,exynos850-usbdrd-phy + - samsung,exynos8890-usbdrd-phy - samsung,exynos990-usbdrd-phy =20 clocks: @@ -209,6 +210,30 @@ allOf: reg-names: maxItems: 1 =20 + - if: + properties: + compatible: + contains: + enum: + - samsung,exynos8890-usbdrd-phy + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + + clock-names: + items: + - const: phy + - const: ref + - const: pipe + + reg: + maxItems: 1 + + reg-names: + maxItems: 1 + - if: properties: compatible: --=20 2.43.0 From nobody Thu Oct 2 17:00:08 2025 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC24E21FF25 for ; Sun, 14 Sep 2025 14:18:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757859484; cv=none; b=fPvUJvJZ8AcXFdjb6Oe+o92ed9SsLGPmXIJtJLYoVVK78P73aps7XSTNg6s+5n1wQCyx0q8jz8tQ+ln1cgvfkpOfb/YG2djZePXatTTNx19JfUakCsVLxPdpDrOkE0QSSx3/TqpGd3QDpwhqdLnaqGHI/sd4eW+9POgOYpwFQQ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757859484; c=relaxed/simple; bh=j8DguNXU8AFQ34L5vsT4cmjDZPqX8ltYefhsbX7KxAw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OQrKn08YkdArA5IVP56SeYDVsx86mCSNJtXfH6KDyTD5drf8I7O98BGpaDm0bcgZ7UPCvcjgVAywv7uEuH6OSxP7Kh79b1TB//2gkHfrtDZP3sJ0bumnBiF0uCjg6fduZNsxClXzw8MCyjQ+3nQh/0XVu1mf1AnK/0wn37I8sNw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=b3UBZg+2; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="b3UBZg+2" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-45dcfecdc0fso33686315e9.1 for ; Sun, 14 Sep 2025 07:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757859481; x=1758464281; darn=vger.kernel.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=yiOb+44+abYoeDQ7m5UxjJUCp2UOVKxX0zLt82/lfMA=; b=b3UBZg+2WLyUZ1AGIVOvNnXFG0H9DtX/e+K3GEXXXAisZjThwr++POrYXdRV4pLyWY b3kJKP5KvQTQMFB5s6SL/sD4KTE9o9BIKvcTU0QiluR4vm6FoJOPeEnmY0Rq86Z53ZRH Of0lQzj54BsGMgXz/370cXSYGl5EdEIR6lhiP8lDORJB8TqC++qb8hnfl/hL+7ZT5Iha BQ5ChpAarQ/+DzvZO/SoDhEiR+aSfLdMVdkvLOhpWjhDPcZu7PZ/A5Kbk3com/nuqgFx WAUeADFQOhNbjUA3gpE0Our8/CZq6+KurtU5EOkmHQtEin5sPNjP0kP/6I2GUH0Ami9p bg9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757859481; x=1758464281; 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=yiOb+44+abYoeDQ7m5UxjJUCp2UOVKxX0zLt82/lfMA=; b=f/8h+bVy8hQ6ovg1lcHzZyUgjCEvFlwdQtroGtCqM6PPmSr16gCLE8GdWHpBv3ECxR QVgDiG7ITtMzF5gD1cI/6hNGHuLnDDPgy5AyzAn9P7lsL1WGMQ1zeQdKbNJ/aPwgiPPQ 0pmcOWltDh4wZKOIrDDlSCPEedIUyK1E9jZNbJ/S7+sJ3P9IHgE1Owid89k/bxgo3dik RIGqDuP51oniMOSeDiqRRV9AZE4qcZ7Vg4yS8XPE+RuLkOeU8ZOKcIQTm5NGyIbHZboI UFjK+tKGkMW4OIP5sc6tSSZxnmXTtw19sYd2jh1XBrddO4T2OETdM+X/mCBq6gKlH23i IMiA== X-Forwarded-Encrypted: i=1; AJvYcCV2Vl820DONraGYp7/yIyjYhHyN5SS0JyOr+73PkTSCz4lK0cL+OobIynb/182lXRUnNZPAdlkOeILEzkc=@vger.kernel.org X-Gm-Message-State: AOJu0YyZvBylQfLNP7iOiP/A6MPcLcsMyytXeo16HM4KyzTW/N5TP8cV CmzZE46bsvsmOWHcGn97m48yXl6Q7ei/6GBPhh/y2xVBvO9r2+JUdA0t X-Gm-Gg: ASbGncuJiQgpY5K5eTVQcl7vFcayOqVbAmAFvtrY//uz5fIJjhFkssOj8RgK/jXxn4E jgEOqYSDxuLC1AnqYIoO01aQGK2uZTa1m7ZniNcBUpUuVd3eiWOvK3qZtVv4djIxMVhrx919T8w eoJmbLI8hUlW4z8rzl8iqS8tPOoCh6PThOXgH1czPAf9rPB8PLr5he5aRITHJhjdRWkknm3rd+M TWX/JvbwsVy+vZ5CEBsrT92GE9v+gowjwlwpNVOpdsEWJ4icxik7Yv5PTW/fORA3EK56BpeVpcG iergpPHAQzNjPQAERgn6vWbhrL3FXBczoEJNl6oX7dHS9cl4bLnPrx7TnHrtPWWkO++7Uocu4ii uD0HWw6O/FfPCgchtH3cDAex0PsmpkOMM3NnPeOdSJuodtzsBlPGZRYpXDnzhMHWQiCPqw1t+bQ == X-Google-Smtp-Source: AGHT+IHcNtfp4F0gd8EyXRgkVvR2EHNAWoXevw2JJmW1HkNfx+wowWJuPHqwAwEdICB/zzepQga2OA== X-Received: by 2002:a05:600c:630e:b0:45d:d197:fecf with SMTP id 5b1f17b1804b1-45f2117b46cmr81883255e9.0.1757859480854; Sun, 14 Sep 2025 07:18:00 -0700 (PDT) Received: from ivaylo-T580.. (91-139-201-119.stz.ddns.bulsat.com. [91.139.201.119]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3e813eb46f3sm7319270f8f.23.2025.09.14.07.17.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Sep 2025 07:18:00 -0700 (PDT) From: Ivaylo Ivanov To: Krzysztof Kozlowski , Rob Herring , Kishon Vijay Abraham I , Vinod Koul , Conor Dooley , Alim Akhtar , Marek Szyprowski , Sylwester Nawrocki Cc: linux-samsung-soc@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/2] phy: exynos5-usbdrd: support the exynos8890 USBDRD controller Date: Sun, 14 Sep 2025 17:17:45 +0300 Message-ID: <20250914141745.2627756-5-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250914141745.2627756-1-ivo.ivanov.ivanov1@gmail.com> References: <20250914141745.2627756-1-ivo.ivanov.ivanov1@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The exynos8890 USBDRD controller integrates a combined usb phy that supports UTMI and PIPE3 interfaces. Add the required changes for USB HS to work. USB SS is out of the scope, as the Samsung Galaxy S7 only has a microusb 2.0 port. Signed-off-by: Ivaylo Ivanov --- drivers/phy/samsung/phy-exynos5-usbdrd.c | 210 +++++++++++++++++++++++ 1 file changed, 210 insertions(+) diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung= /phy-exynos5-usbdrd.c index dd660ebe8..546c69442 100644 --- a/drivers/phy/samsung/phy-exynos5-usbdrd.c +++ b/drivers/phy/samsung/phy-exynos5-usbdrd.c @@ -145,6 +145,7 @@ #define PHYUTMICLKSEL_UTMI_CLKSEL BIT(2) =20 #define EXYNOS5_DRD_PHYRESUME 0x34 +#define PHYRESUME_FORCE_QACT BIT(9) =20 #define EXYNOS5_DRD_LINKPORT 0x44 #define LINKPORT_HOST_U3_PORT_DISABLE BIT(8) @@ -1302,6 +1303,158 @@ static const struct phy_ops exynos7870_usbdrd_phy_o= ps =3D { .owner =3D THIS_MODULE, }; =20 +static unsigned int +exynos8890_usbdrd_utmi_set_refclk(struct phy_usb_instance *inst) +{ + u32 reg; + struct exynos5_usbdrd_phy *phy_drd =3D to_usbdrd_phy(inst); + + /* restore any previous reference clock settings */ + reg =3D readl(phy_drd->reg_phy + EXYNOS5_DRD_PHYCLKRST); + + reg &=3D ~PHYCLKRST_REFCLKSEL; + reg |=3D FIELD_PREP(PHYCLKRST_REFCLKSEL, PHYCLKRST_REFCLKSEL_PAD_REFCLK); + + reg &=3D ~(PHYCLKRST_FSEL_UTMI | + PHYCLKRST_FSEL_PIPE | + PHYCLKRST_MPLL_MULTIPLIER | + PHYCLKRST_SSC_REFCLKSEL); + reg |=3D FIELD_PREP(PHYCLKRST_FSEL_UTMI, phy_drd->extrefclk); + + if (phy_drd->extrefclk =3D=3D EXYNOS5_FSEL_26MHZ) + reg |=3D FIELD_PREP(PHYCLKRST_MPLL_MULTIPLIER, 0x60); + + return reg; +} + +static void exynos8890_usbdrd_utmi_init(struct exynos5_usbdrd_phy *phy_drd) +{ + u32 reg; + + reg =3D readl(phy_drd->reg_phy + EXYNOS5_DRD_PHYCLKRST); + reg |=3D PHYCLKRST_EN_UTMISUSPEND; + writel(reg, phy_drd->reg_phy + EXYNOS5_DRD_PHYCLKRST); + + /* UTMI Power Control */ + writel(PHYUTMI_OTGDISABLE, phy_drd->reg_phy + EXYNOS5_DRD_PHYUTMI); + + reg =3D readl(phy_drd->reg_phy + EXYNOS5_DRD_PHYTEST); + reg &=3D ~PHYTEST_POWERDOWN_HSP; + writel(reg, phy_drd->reg_phy + EXYNOS5_DRD_PHYTEST); +} + +static int exynos8890_usbdrd_phy_init(struct phy *phy) +{ + int ret; + u32 reg; + struct phy_usb_instance *inst =3D phy_get_drvdata(phy); + struct exynos5_usbdrd_phy *phy_drd =3D to_usbdrd_phy(inst); + + ret =3D clk_bulk_prepare_enable(phy_drd->drv_data->n_clks, phy_drd->clks); + if (ret) + return ret; + + /* Reset USB 3.0 PHY */ + writel(0x0, phy_drd->reg_phy + EXYNOS5_DRD_PHYREG0); + writel(0x0, phy_drd->reg_phy + EXYNOS5_DRD_PHYRESUME); + + /* + * Setting the Frame length Adj value[6:1] to default 0x20 + * See xHCI 1.0 spec, 5.2.4 + */ + reg =3D LINKSYSTEM_XHCI_VERSION_CONTROL | + FIELD_PREP(LINKSYSTEM_FLADJ, 0x20); + writel(reg, phy_drd->reg_phy + EXYNOS5_DRD_LINKSYSTEM); + + /* + * Disable HWACG (hardware auto clock gating control). This will force + * QACTIVE signal in Q-Channel interface to HIGH level, to make sure + * the PHY clock is not gated by the hardware. + */ + reg =3D readl(phy_drd->reg_phy + EXYNOS5_DRD_PHYRESUME); + reg |=3D PHYRESUME_FORCE_QACT; + writel(reg, phy_drd->reg_phy + EXYNOS5_DRD_PHYRESUME); + + reg =3D readl(phy_drd->reg_phy + EXYNOS5_DRD_PHYPARAM0); + /* Select PHY CLK source */ + reg &=3D ~PHYPARAM0_REF_USE_PAD; + writel(reg, phy_drd->reg_phy + EXYNOS5_DRD_PHYPARAM0); + + /* UTMI or PIPE3 specific init */ + inst->phy_cfg->phy_init(phy_drd); + + /* reference clock settings */ + reg =3D inst->phy_cfg->set_refclk(inst); + + /* Digital power supply in normal operating mode */ + reg |=3D PHYCLKRST_RETENABLEN | + /* Enable ref clock for SS function */ + PHYCLKRST_REF_SSP_EN | + /* Enable spread spectrum */ + PHYCLKRST_SSC_EN | + /* Power down HS Bias and PLL blocks in suspend mode */ + PHYCLKRST_COMMONONN | + /* Reset the port */ + PHYCLKRST_PORTRESET; + + writel(reg, phy_drd->reg_phy + EXYNOS5_DRD_PHYCLKRST); + + fsleep(10); + + reg &=3D ~PHYCLKRST_PORTRESET; + writel(reg, phy_drd->reg_phy + EXYNOS5_DRD_PHYCLKRST); + + /* Configure OVC IO usage */ + reg =3D readl(phy_drd->reg_phy + EXYNOS5_DRD_LINKPORT); + reg |=3D LINKPORT_HOST_PORT_OVCR_U3_SEL | LINKPORT_HOST_PORT_OVCR_U2_SEL; + writel(reg, phy_drd->reg_phy + EXYNOS5_DRD_LINKPORT); + + clk_bulk_disable_unprepare(phy_drd->drv_data->n_clks, phy_drd->clks); + + return 0; +} + +static int exynos8890_usbdrd_phy_exit(struct phy *phy) +{ + int ret; + u32 reg; + struct phy_usb_instance *inst =3D phy_get_drvdata(phy); + struct exynos5_usbdrd_phy *phy_drd =3D to_usbdrd_phy(inst); + + ret =3D clk_bulk_prepare_enable(phy_drd->drv_data->n_clks, phy_drd->clks); + if (ret) + return ret; + + reg =3D PHYUTMI_OTGDISABLE | + PHYUTMI_FORCESUSPEND | + PHYUTMI_FORCESLEEP; + writel(reg, phy_drd->reg_phy + EXYNOS5_DRD_PHYUTMI); + + /* Resetting the PHYCLKRST enable bits to reduce leakage current */ + reg =3D readl(phy_drd->reg_phy + EXYNOS5_DRD_PHYCLKRST); + reg &=3D ~(PHYCLKRST_REF_SSP_EN | + PHYCLKRST_SSC_EN | + PHYCLKRST_COMMONONN); + writel(reg, phy_drd->reg_phy + EXYNOS5_DRD_PHYCLKRST); + + /* Control PHYTEST to remove leakage current */ + reg =3D readl(phy_drd->reg_phy + EXYNOS5_DRD_PHYTEST); + reg |=3D PHYTEST_POWERDOWN_SSP | PHYTEST_POWERDOWN_HSP; + writel(reg, phy_drd->reg_phy + EXYNOS5_DRD_PHYTEST); + + clk_bulk_disable_unprepare(phy_drd->drv_data->n_clks, phy_drd->clks); + + return 0; +} + +static const struct phy_ops exynos8890_usbdrd_phy_ops =3D { + .init =3D exynos8890_usbdrd_phy_init, + .exit =3D exynos8890_usbdrd_phy_exit, + .power_on =3D exynos5_usbdrd_phy_power_on, + .power_off =3D exynos5_usbdrd_phy_power_off, + .owner =3D THIS_MODULE, +}; + static void exynos2200_usbdrd_utmi_init(struct exynos5_usbdrd_phy *phy_drd) { /* Configure non-Samsung IP PHY, responsible for UTMI */ @@ -1897,6 +2050,15 @@ static const struct exynos5_usbdrd_phy_config phy_cf= g_exynos850[] =3D { }, }; =20 +static const struct exynos5_usbdrd_phy_config phy_cfg_exynos8890[] =3D { + { + .id =3D EXYNOS5_DRDPHY_UTMI, + .phy_isol =3D exynos5_usbdrd_phy_isol, + .phy_init =3D exynos8890_usbdrd_utmi_init, + .set_refclk =3D exynos8890_usbdrd_utmi_set_refclk, + }, +}; + static const struct exynos5_usbdrd_phy_tuning exynos7870_tunes_utmi_postinit[] = =3D { PHY_TUNING_ENTRY_PHY(EXYNOS5_DRD_PHYPARAM0, @@ -2025,6 +2187,51 @@ static const struct exynos5_usbdrd_phy_drvdata exyno= s850_usbdrd_phy =3D { .n_regulators =3D ARRAY_SIZE(exynos5_regulator_names), }; =20 +static const char * const exynos8890_core_clk_names[] =3D { + "ref", +}; + +static const char * const exynos8890_clk_names[] =3D { + "phy", "pipe", +}; + +static +const struct exynos5_usbdrd_phy_tuning exynos8890_tunes_utmi_postinit[] = =3D { + PHY_TUNING_ENTRY_PHY(EXYNOS5_DRD_PHYPARAM0, + (PHYPARAM0_TXVREFTUNE | PHYPARAM0_TXRISETUNE | + PHYPARAM0_TXRESTUNE | PHYPARAM0_TXPREEMPPULSETUNE | + PHYPARAM0_TXPREEMPAMPTUNE | PHYPARAM0_TXHSXVTUNE | + PHYPARAM0_TXFSLSTUNE | PHYPARAM0_SQRXTUNE | + PHYPARAM0_OTGTUNE | PHYPARAM0_COMPDISTUNE), + (FIELD_PREP_CONST(PHYPARAM0_TXVREFTUNE, 11) | + FIELD_PREP_CONST(PHYPARAM0_TXRISETUNE, 3) | + FIELD_PREP_CONST(PHYPARAM0_TXRESTUNE, 2) | + FIELD_PREP_CONST(PHYPARAM0_TXPREEMPAMPTUNE, 3) | + FIELD_PREP_CONST(PHYPARAM0_TXHSXVTUNE, 0) | + FIELD_PREP_CONST(PHYPARAM0_TXFSLSTUNE, 3) | + FIELD_PREP_CONST(PHYPARAM0_SQRXTUNE, 7) | + FIELD_PREP_CONST(PHYPARAM0_OTGTUNE, 4) | + FIELD_PREP_CONST(PHYPARAM0_COMPDISTUNE, 0))), + PHY_TUNING_ENTRY_LAST +}; + +static const struct exynos5_usbdrd_phy_tuning *exynos8890_tunes[PTS_MAX] = =3D { + [PTS_UTMI_POSTINIT] =3D exynos8890_tunes_utmi_postinit, +}; + +static const struct exynos5_usbdrd_phy_drvdata exynos8890_usbdrd_phy =3D { + .phy_cfg =3D phy_cfg_exynos8890, + .phy_tunes =3D exynos8890_tunes, + .phy_ops =3D &exynos8890_usbdrd_phy_ops, + .pmu_offset_usbdrd0_phy =3D EXYNOS5_USBDRD_PHY_CONTROL, + .clk_names =3D exynos8890_clk_names, + .n_clks =3D ARRAY_SIZE(exynos8890_clk_names), + .core_clk_names =3D exynos8890_core_clk_names, + .n_core_clks =3D ARRAY_SIZE(exynos8890_core_clk_names), + .regulator_names =3D exynos5_regulator_names, + .n_regulators =3D ARRAY_SIZE(exynos5_regulator_names), +}; + static const struct exynos5_usbdrd_phy_tuning exynos990_tunes_utmi_postini= t[] =3D { PHY_TUNING_ENTRY_PHY(EXYNOS850_DRD_HSPPARACON, (HSPPARACON_TXVREF | @@ -2257,6 +2464,9 @@ static const struct of_device_id exynos5_usbdrd_phy_o= f_match[] =3D { }, { .compatible =3D "samsung,exynos850-usbdrd-phy", .data =3D &exynos850_usbdrd_phy + }, { + .compatible =3D "samsung,exynos8890-usbdrd-phy", + .data =3D &exynos8890_usbdrd_phy }, { .compatible =3D "samsung,exynos990-usbdrd-phy", .data =3D &exynos990_usbdrd_phy --=20 2.43.0