From nobody Sat Oct 4 14:12:50 2025 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 2394023AE95; Sat, 16 Aug 2025 08:47:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755334076; cv=none; b=IJmzZ54GnlTbnRgrcInsQhvP/EooHNK01qBUGlo2/wpQCLgwkTtfvsQBUKJgbpzQZpDAS84/frKKR+JB2qs7xhpxAry2y8noTbkuHvG3VE+Iloud/eLDyXm3Qri32l/gIEzoAjtZxQLih7iP80TU5r9tx6LoI1rVpgDKDGodo4c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755334076; c=relaxed/simple; bh=YhnsWfnst8CACf6PQAROgdhIAFBdYvfImQU33bmRVoY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LtvDT+xZoExTpzvS9XLr2f4xQHJV3rzwh1o8zXf+8QuHKKhNeCwUNZsZxy4a+HkchSMm4Xsx6k7AO2tgAfvvrZr+TYTmaAl54qbJlmvwZbceW/DnPV09gujL7VVWLY0lKCNZ5owSFppEkhcPLboOgaQuSVvn0Jl2WwWDdQu/db4= 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=inaTDuCf; arc=none smtp.client-ip=209.85.210.177 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="inaTDuCf" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-76e4fc419a9so497138b3a.0; Sat, 16 Aug 2025 01:47:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755334074; x=1755938874; 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=50Ntk2ae5CUZ3DU9PEgu24q2kwxt9HUqPcFOtly0Sk4=; b=inaTDuCfFL8k1Ty/IGnE4uo4UtAgFFTD33ERIkbfLsoBLHhf7ELdwysQ1PnnUWNmph 8V1WWd0Rtx5JyCh+0dG0+vZiyp0ClovaR2GgIk8qMS+E0FTrqp0z3SWS7ymcjkYVmluq sjYpXcqTJehfRH8c5fc8FDle8CsGxGlPKAZ20YVBMaMRuCl7whinGsCvwQXb6hnAVpib Hnwf1wj8L71YiTcwdnYIKsfKnwai2Aj65w2A3ouVm6gNTBlD9++fx8k/Dc48SHZTxY8S bv/pimXcb2zCRdpY9Jf2jkznORbNFA+cHf36CQsF3yB52o2+Gw7cTZB1t5mygIcXXzfF MNlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755334074; x=1755938874; 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=50Ntk2ae5CUZ3DU9PEgu24q2kwxt9HUqPcFOtly0Sk4=; b=sDwOtjlnni2PCpdncJCuDLn+AFVQCuV7ohA+cdM36Ux11utPuN5xdOGs4KLlFyxfsW x/7wHbVfGJvKINkC+1bClxA9XtWcWMImUyuco4I/lmnZv9lyriL2lGgiEndF3Ndxl84U 7ufViRZ6WuQ8naSsctc1xJ1PakCUfPDUOio3JlBAfnjjNn7Ve5eSAIXfnvKTfkKGXhYj vYFo/y++5ioMbcGhQlNy7sa9nz6OFjGycDq+MMLBdTdlQE2vToV0j27F6VhXc7pGxXOM BuhUCnR5rcI+q3bv82nalsGBRyM6IIsH4et5F88VMRw2DQnw9YQZE6iFBYqmm/72imYw U+gQ== X-Forwarded-Encrypted: i=1; AJvYcCUuByNT5kUMPLJjqJiQZb5YRq+3KLEybn2oe7awj2Vt6Rva9y+I1OBo5yyPZNmjXz+GAW7SrIfRSfl6dEx7@vger.kernel.org, AJvYcCVspT5AOn9roOPPluSbmKs40xdch71Vbk07usTaOAzjHurX6tcLga3gwqZACrIEHKvZkAzJ6ETyudE=@vger.kernel.org X-Gm-Message-State: AOJu0YyC69u16O3T/Yu3/SzsIgKFhNZzdYdu17I7fS+xNgooqIo3Xbqf yzqxEpEgA/X/4yntJ9llSrdOosCaZqLfFrycQDnYxSixCY2MBMuZQ1Cv X-Gm-Gg: ASbGncsZm9/HP9RoIuTcqtTHJ2MErzFxtcL6drlqIBS22RX8dR3skqHUAsblxd59Z9I vj2GBqPtm16mYZsjihF19H3dKF/715zHxLsh7zR2fful7p3Jj6kuyCqiYxGxIaA4Jl72M8wO9yD zLATUep7+QWRahJ5k9G4mI5sAAqccmcnhQxj5T7xPyplMRqCXBTHTcRP4lS3LayXR2o/mpkKmle JYcjm3bHRATspFxOKrd3NvJKFkfmM1PMnYJBhtIKBqGUTUm4b92H1vSH/5NTF37E+RHUdZoXCoL nwIFEuFxX27te7LAqdWR2gRrrajY98woa2+p6rMZf9gIanwA++a79zUKqNFP4avKfFkL8Y4gMeD GfE5PGmFXh4A= X-Google-Smtp-Source: AGHT+IHH2hwegF/f0OgFPR9gVfjZpUsDlbhxI4wzUfEICoM2jQpliSfPj1xZkFqOfFWIa8JxKO9MuQ== X-Received: by 2002:a17:902:c98b:b0:23f:f96d:7579 with SMTP id d9443c01a7336-2447900cf44mr20352345ad.37.1755334074401; Sat, 16 Aug 2025 01:47:54 -0700 (PDT) Received: from junAIR ([212.192.12.80]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2446d57f12esm31048215ad.157.2025.08.16.01.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Aug 2025 01:47:54 -0700 (PDT) From: iuncuim To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andre Przywara , Michael Turquette , Stephen Boyd , Vinod Koul , Kishon Vijay Abraham I , Philipp Zabel Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, linux-clk@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH 3/7] phy: sun4i-usb: a523: add support for the USB2 PHY Date: Sat, 16 Aug 2025 16:46:56 +0800 Message-ID: <20250816084700.569524-4-iuncuim@gmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250816084700.569524-1-iuncuim@gmail.com> References: <20250816084700.569524-1-iuncuim@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" From: Mikhail Kalashnikov Previously, USB PHY was compatible with D1 and did not require separatedata options. But now we need to add a third PHY, which makes it incompatible. The third PHY is used together with USB3/PCIe combophy with DWC3 controller. In the BSP code, the third PHY requires a separate glue driver, but it seems that it is not needed. Signed-off-by: Mikhail Kalashnikov --- drivers/phy/allwinner/phy-sun4i-usb.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/= phy-sun4i-usb.c index 8873aed3a..bb79339f2 100644 --- a/drivers/phy/allwinner/phy-sun4i-usb.c +++ b/drivers/phy/allwinner/phy-sun4i-usb.c @@ -1025,6 +1025,15 @@ static const struct sun4i_usb_phy_cfg sun50i_h616_cf= g =3D { .siddq_in_base =3D true, }; =20 +static const struct sun4i_usb_phy_cfg sun55i_a523_cfg =3D { + .num_phys =3D 3, + .phyctl_offset =3D REG_PHYCTL_A33, + .dedicated_clocks =3D true, + .hci_phy_ctl_clear =3D PHY_CTL_SIDDQ, + .phy0_dual_route =3D true, + .siddq_in_base =3D true, +}; + static const struct of_device_id sun4i_usb_phy_of_match[] =3D { { .compatible =3D "allwinner,sun4i-a10-usb-phy", .data =3D &sun4i_a10_cfg= }, { .compatible =3D "allwinner,sun5i-a13-usb-phy", .data =3D &sun5i_a13_cfg= }, @@ -1041,6 +1050,7 @@ static const struct of_device_id sun4i_usb_phy_of_mat= ch[] =3D { .data =3D &sun50i_a64_cfg}, { .compatible =3D "allwinner,sun50i-h6-usb-phy", .data =3D &sun50i_h6_cfg= }, { .compatible =3D "allwinner,sun50i-h616-usb-phy", .data =3D &sun50i_h616= _cfg }, + { .compatible =3D "allwinner,sun55i-a523-usb-phy", .data =3D &sun55i_a523= _cfg }, { .compatible =3D "allwinner,suniv-f1c100s-usb-phy", .data =3D &suniv_f1c100s_cfg }, { }, --=20 2.50.1