Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1008587rdb; Fri, 9 Feb 2024 07:42:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVd1Eub9GPdObvaAtzF0OLbA9mgYwRVjPNgluwXBqdTs1rWK1eoOADeL/CD/PbJEyJRH0W X-Received: by 2002:a05:6a00:4b46:b0:6e0:40d0:4a19 with SMTP id kr6-20020a056a004b4600b006e040d04a19mr2175536pfb.13.1707493358408; Fri, 09 Feb 2024 07:42:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707493358; cv=pass; d=google.com; s=arc-20160816; b=GTg4PD2PsCZXIvTpeGqcivi+DTLbuVDCPbY+kLk0jRyAd9UXajq5bmIoH2Nl4RC0PQ v3S9v0KxRsVHftzKMisCdMXXSBF3AQtsMI5FhsplSxCpBXNFx6TuuxlSwl8aV6EUTPB7 9iMhTa2vW9CXTNUMaujXYoE6e3Z/kfWebLgZr0JWJTEmEdOv4MmvTIUewyGkDFoD1Xgb 9onO7qTtEDHxCQop8h0hVARZT2k8ggsRTSa2EXWKICuTHlY4xM0DfYKL73H/dlpgjLD0 ObIjMaE/eR3wkQqsZEEYSYYmN2zZpjEtIWlyjJKOYd/VkJggcMsXRlYA5BoB09YlH2BW wfbw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=DwPyne/Srr/E0bqYu1xMZ7k+F7q7JB1awfFG2iwj5SM=; fh=i3JFZzVLaeHiBH/Gj8yShgmqwSO4aahWYFxKPKpxFJs=; b=ocMiohJ5Cs/AIaoVKY3BBLWYXWXlybiB+UXkznUwnNIh+kI76iP/FVEPqDlZbJ9lEU r7fAB6El9nE3+kUjvP7bjbLJlIuZShMU+I5dxLK3siNMK5u5UHiPsDfuOWfChP3mC8Ih X6TthmqD3AZaIGBXqpTR4YF4HH4l387JprGVmkpoMojmyH8K9S7N5yKHo9EyKYRXABRj SAOiCQDRvQanwTEv1Uqpb6oc4I8IsBDOLgDVXeCwjS7fhGw0WIQhQueqe9c2pusbFLcH EMsfhP2pM5vqqmy6qT8LjDhPvQvuHFu6W4O/3PwsvGW3CpuPwNEQg6/ib/By1MiH0f3N vUHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lzceSyQ4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-59539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59539-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCUelhhLkPV7FqXd27oDSrFiSTW/Yl8qe1vlrytOODXfyhjwKjd8twpbDqezbhDn1D/yHuRLMc5Zj89ym3ZiA6+gYdy23HI2NG4mtdq4vw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x21-20020a656ab5000000b005dbdb1aec55si1885516pgu.649.2024.02.09.07.42.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 07:42:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lzceSyQ4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-59539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59539-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 F0EC1B26123 for ; Fri, 9 Feb 2024 15:30:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF4EF74E19; Fri, 9 Feb 2024 15:30:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lzceSyQ4" Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) (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 339C07319C for ; Fri, 9 Feb 2024 15:30:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707492617; cv=none; b=jealmkVkDM53Y5Vp9SsD4uPcGhrcgLRGWLU6/LIs25LFkNdnp4rtw8mgj9BlP2ZV0rHG8QRXB1zNR906oqUzZfCVFdbzH98E+T8e3mBHrBa+Iut8os3z1sH7JHOSQ8ZBkBmKXoPPYx3VjBwtpzspMDgWjM7zXoGXa0BRl3oe0gY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707492617; c=relaxed/simple; bh=UqDosga1xC4Eo58FYnE3NbWtCialyNbi3wKAbIbdzRk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=KWBTeQUmHrLyDKRP834qjcMp+a3hJzdxLVXgCXR9lgfHCZvY/JxB6t1pdPO3h2JRplzxwZx9L3ouriTXgc3ON8azEbteitOIE7aKbJzBgHNUgOoQ1tLn3Q4DdBrqwCTjUIvXVoWtUFApQ7HsvJrzoFV3U9jvAV0KF2ANN1E7EOQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=lzceSyQ4; arc=none smtp.client-ip=209.85.128.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-60491b1fdeaso12072367b3.3 for ; Fri, 09 Feb 2024 07:30:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707492615; x=1708097415; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=DwPyne/Srr/E0bqYu1xMZ7k+F7q7JB1awfFG2iwj5SM=; b=lzceSyQ4FApxjhpXFcUKulGr2Bg+YaO4RooXHeWRKmqQcPfXMxbzBTt4Lu93vNQ+HE H0mwuz/zHHcBysPPuT1p4E/HsE+YZ9cE0xw4Skb2YTkS2tBSk8JcXvxZ6BPxwI0o4fkN Txd2DpyBpVBne8pYj/+WDsVO7qO6lknBNCUndx6vv2IQQZE2ogO/CMyF9HdaX1U7ZPIo q0Q/cFn1M9NwBGoEgubnILbRQwDnPcGfX3YfAh8eX0fSKka0cthSAs3cYJ76Qz2yv+Xh qM3ydZEHcKLHo4thBSoFDlgSukvKrOAkv3axTOqBZvmmfBPBYeoHa9bZ9rTLUFynkWD4 a0OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707492615; x=1708097415; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DwPyne/Srr/E0bqYu1xMZ7k+F7q7JB1awfFG2iwj5SM=; b=dHILOtq1clMZPdvtLcmSdWkc+wMJQBLWuFa47Qt8IcW+IgAXNWc5+5IrS91zp5t8I8 WOk/U9ssGZq5IYadBan92YzJiR6y9Ag0JVWr5DsjnH+4MbBtokXpCVOzzpNNyYOiw1VZ U29WZZ4k9HwzZwQGGSJc4Z9WtIgyvstRNfQ3FpHFVrxdsaZXyHpeJj4ZUXTcsmNYCidn 0XVLZUFSpitSmupc+2x5yrWajSvxJ8bpIPWtdYH2H8BJLQjVQmrJDVeT3HvnJBkSP1eV hBcQuo62v15UdYHVHYYNVXd3l8O4mepkWzmDQ7JxLbvH6D5IQuhR14e0LFq+DHeDboBK 8BmA== X-Gm-Message-State: AOJu0Yyg9BWBWIoFSGnWkPCxRq9W03NyR2LOHO/skiALldfSsO7xXZwK HCwoSbSJXIvaW71wF9RJOncTOD3eJp72OeO7PQLhXGZMDT54MLk4NDr8j15t52CLpgA3n8Ta+Zt dhvZs3qAaO2iUc38YpqpecGDQYfFUIP/jNrDNjg== X-Received: by 2002:a05:690c:2711:b0:604:cb07:b37 with SMTP id dy17-20020a05690c271100b00604cb070b37mr958456ywb.33.1707492613963; Fri, 09 Feb 2024 07:30:13 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240209-phy-qualcomm-eusb2-repeater-smb2360-v1-0-af2ca4d95a67@linaro.org> <20240209-phy-qualcomm-eusb2-repeater-smb2360-v1-2-af2ca4d95a67@linaro.org> In-Reply-To: <20240209-phy-qualcomm-eusb2-repeater-smb2360-v1-2-af2ca4d95a67@linaro.org> From: Dmitry Baryshkov Date: Fri, 9 Feb 2024 17:30:02 +0200 Message-ID: Subject: Re: [PATCH 2/2] phy: qualcomm: phy-qcom-eusb2-repeater: Add support for SMB2360 To: Abel Vesa Cc: Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Fri, 9 Feb 2024 at 17:14, Abel Vesa wrote: > > The SMB2360 PMICs contain the same eUSB2 repeater as the PM8550B, > so add dedicated compatible for SMB82360. "...same repeater as the PM8550B, but requiring different settings..." With that fixed: Reviewed-by: Dmitry Baryshkov > > Signed-off-by: Abel Vesa > --- > drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c b/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c > index a43e20abb10d..68cc8e24f383 100644 > --- a/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c > +++ b/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c > @@ -88,6 +88,12 @@ static const u32 pm8550b_init_tbl[NUM_TUNE_FIELDS] = { > [TUNE_USB2_PREEM] = 0x5, > }; > > +static const u32 smb2360_init_tbl[NUM_TUNE_FIELDS] = { > + [TUNE_IUSB2] = 0x5, > + [TUNE_SQUELCH_U] = 0x3, > + [TUNE_USB2_PREEM] = 0x2, > +}; > + > static const struct eusb2_repeater_cfg pm8550b_eusb2_cfg = { > .init_tbl = pm8550b_init_tbl, > .init_tbl_num = ARRAY_SIZE(pm8550b_init_tbl), > @@ -95,6 +101,13 @@ static const struct eusb2_repeater_cfg pm8550b_eusb2_cfg = { > .num_vregs = ARRAY_SIZE(pm8550b_vreg_l), > }; > > +static const struct eusb2_repeater_cfg smb2360_eusb2_cfg = { > + .init_tbl = smb2360_init_tbl, > + .init_tbl_num = ARRAY_SIZE(smb2360_init_tbl), > + .vreg_list = pm8550b_vreg_l, > + .num_vregs = ARRAY_SIZE(pm8550b_vreg_l), > +}; > + > static int eusb2_repeater_init_vregs(struct eusb2_repeater *rptr) > { > int num = rptr->cfg->num_vregs; > @@ -271,6 +284,10 @@ static const struct of_device_id eusb2_repeater_of_match_table[] = { > .compatible = "qcom,pm8550b-eusb2-repeater", > .data = &pm8550b_eusb2_cfg, > }, > + { > + .compatible = "qcom,smb2360-eusb2-repeater", > + .data = &smb2360_eusb2_cfg, > + }, > { }, > }; > MODULE_DEVICE_TABLE(of, eusb2_repeater_of_match_table); > > -- > 2.34.1 > > -- With best wishes Dmitry