Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp53945rdb; Thu, 21 Dec 2023 02:35:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEch9Hgm/N+/OaDhgExQ80qMEmMV3YyHVermcSI2qp4WovZ43V4v8fV2BLPMiH85nh/+I8t X-Received: by 2002:a05:6808:38c9:b0:3ba:22d7:8a4e with SMTP id el9-20020a05680838c900b003ba22d78a4emr22117578oib.17.1703154905926; Thu, 21 Dec 2023 02:35:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703154905; cv=none; d=google.com; s=arc-20160816; b=UrVacUsU11+9RLvP5sdWFin4ZzhRCiSe+ytOan7n4VmrkA2qtLUFL5NI3QinfOr62e Lx12rqP5mnBBykld6LNSmqnhNMomQWZufd5LIORFFkrUnKP9L2p7ktanFRzTHxhp6H18 1i+xTkm9JyQIeBjEqKXxZRW6veBYf8fqwyD98bnbyJNXXvXTLCAtDqXB97uuEOcjpYA3 1fX9RiZbYrUrHIQlgQtfAhTgK/OxbE4fxTivRTvRkrvfSQnCfTRTXlrBnnDQc7bd3Azi /bEUlsdoQo9NgfHUsB3fWOp2XeR+ywnEWXpdZ7U9G9Od9fNZh85fp+ADc5xNICpnk56u dKpg== ARC-Message-Signature: i=1; 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=k1jggwYkG4hQyycQm/RtNvDfA67fuZq9Z5qOm74FzWI=; fh=jmZK7T/ggvCfdfAQk9ocWWo+T6lLtQRreFT3Z2mQuiE=; b=OHMNxoGhxaEbDN1oJSHFmoGUy+lsbgkMZbS68IBZIwU0ubHy/a2eZrl22TKXHv9h/m U+BxwxdCNgJeQsC6/EXyzc52REdRa52M535z63vRa0sDwutDdY9ea2jVVrjwuzHk5Jvm N1N7j+qh/UUmGc25GzBmWom2QisVpTLki5TBK6mzrXZyBDflXfITsJIST9/L1hqkN76T xkQMHSLG3C6kedCTJP50ovnR4J/b5u2JL0cP+Bw1/QkURuTwNGhiHQZrWMuybHXuURY2 eXr5xRS93z/M42TTmdPDl4dvIDRD3e1v09S4w7ze+xDvWHIb6Ot2XyVdTJjAB7pNDhfv zA8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R2cVRFVZ; spf=pass (google.com: domain of linux-kernel+bounces-8211-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o12-20020a0ccb0c000000b0067f032d7c53si1883327qvk.112.2023.12.21.02.35.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 02:35:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8211-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R2cVRFVZ; spf=pass (google.com: domain of linux-kernel+bounces-8211-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8211-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A84011C2486A for ; Thu, 21 Dec 2023 10:35:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9EAE86A00A; Thu, 21 Dec 2023 10:34:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="R2cVRFVZ" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com [209.85.128.170]) (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 87A896978F for ; Thu, 21 Dec 2023 10:34:52 +0000 (UTC) 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-f170.google.com with SMTP id 00721157ae682-5df49931b4eso7458597b3.0 for ; Thu, 21 Dec 2023 02:34:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703154891; x=1703759691; 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=k1jggwYkG4hQyycQm/RtNvDfA67fuZq9Z5qOm74FzWI=; b=R2cVRFVZK8yYhOW2cQy2NMWE6yMdB8Vpaknnm8gwCF9Zzsp8NPIjlsyO730w+Z9uWq aLlHOLrLELiJzSm7HyXg6+J+Fwbz6ge/mocVKj8XVdGB9aquYgeDVQv811IKR2Dx7Wht pg57sswTJBa51l5hvJ0JwjkXmxUg9kOrmnR3nmia05j2qsIfOHlX6ZYzMyQ46KmP5Mrm gU4huELdFVHqMVD8Rk2X3lCGIEWZ4+huDzrDG/vyx880MQQXrffKaa68woz3ocioScli C3xrjJ5PiO81X2gYwuWyvpWkfi6cDubS3PHtJH0DhCwnjiV4F7M4DkNMSMSDl5xIlq42 XrUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703154891; x=1703759691; 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=k1jggwYkG4hQyycQm/RtNvDfA67fuZq9Z5qOm74FzWI=; b=uaSJhKxNrVHEf7lfbCN0OJbCmW3oiPKJ1PtlVs18yW/GRpfEk/Nzd2pIzn3VcuWdmb GhJ4s0xFQychmPkZ7tkfKdOnu4rCDY228agVkQ/CUubCwNwU4lJJdZjOuvmNRchDIXCU gZqQP77sJkhMZtFpfs4v+nKUg2KCrg2bibd0UuaaFLdLq4hDxkV+05ztQblVCm2pdjyU NCMvzfvVIQZJ2F5NxSD/M6tC8/bRm0n8u838nWIgKAlfXiEaSEvGnmlLI1PPlwwVTzV2 e0HE27Fyq6/DwtLLFVWuPxo7SIhLWVHlBQklyMH4Z2H2numWHa7aH/0SwmSySYYzH0Cd lRkA== X-Gm-Message-State: AOJu0Yw7nYJnpuXKxordGgrVl2WhJmu+wOjGy8j6KxdL9NA90Pyd5Gc1 M1EQ9ZjMS2OoYXgvsAF8kFzLwH3PfKSGGWxJQYLZnw== X-Received: by 2002:a0d:c5c3:0:b0:5d7:1940:b384 with SMTP id h186-20020a0dc5c3000000b005d71940b384mr1196055ywd.80.1703154891585; Thu, 21 Dec 2023 02:34:51 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231220-fp5-pmic-glink-v1-0-2a1f8e3c661c@fairphone.com> <8d042095-1e09-45cc-9762-909fe8d663a9@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Thu, 21 Dec 2023 12:34:40 +0200 Message-ID: Subject: Re: [PATCH 0/3] Fairphone 5 PMIC-GLINK support (USB-C, charger, fuel gauge) To: Luca Weiss Cc: Konrad Dybcio , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heikki Krogerus , Greg Kroah-Hartman , cros-qcom-dts-watchers@chromium.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Thu, 21 Dec 2023 at 09:33, Luca Weiss wrote: > > On Wed Dec 20, 2023 at 1:32 PM CET, Konrad Dybcio wrote: > > On 20.12.2023 11:02, Luca Weiss wrote: > > > This series adds all the necessary bits to enable USB-C role switching, > > > charger and fuel gauge (all via pmic-glink) on Fairphone 5. > > > > > > One thing that could be made different is the pmic-glink compatible. > > > I've chosen to use qcm6490 compatible for it and not sc7280 since > > > there's plenty of firmware variety on sc7280-based platforms and they > > > might require different quirks in the future, so limit this PDOS quirk > > > to just qcm6490 for now. > > > > > > If someone thinks it should be qcom,sc7280-pmic-glink, please let me > > > know :) > > IMO it's best to continue using the "base soc" (which just so happened > > to fall onto sc7280 this time around) for all compatibles, unless the > > derivatives actually had changes > > Hi Konrad, > > I think at some point I asked Dmitry what he thought and he mentioned > qcm6490. Even found the message again: > > > well, since it is a firmware thing, you might want to emphasise that. > > So from my POV qcm6490 makes more sense > > But yeah since it's likely that sc7280 firmware behaves the same as > qcm6490 firmware it's probably okay to use sc7280 compatible, worst case > we change it later :) I'll send a v2 with those changes. Worst case we end up with sc7280 which has yet another slightly different UCSI / PMIC GLINK implementation, but the compatible string is already taken. I still suppose that this should be a qcm6490-related string. > > Regards > Luca > > > > > as far as firmware goes, I *think* CrOS doesn't even have PMIC_GLINK? > > There are however WoA 7280 laptops which totally should have it.. Would > > be nice to hunt some down and see if they report different stuff to > > what's there on android firmware > > > > Konrad > -- With best wishes Dmitry