Received: by 2002:a05:7412:a9a3:b0:f9:93eb:408e with SMTP id o35csp71180rdh; Wed, 20 Dec 2023 23:33:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxBL3jNq1UC/E0mJ3sWxOtCLdoNuMqXI2k0ni5R5BGQrp1wdztL3rvEbujyvkW78aKYkEl X-Received: by 2002:a05:6a20:b312:b0:18f:9c4:d34d with SMTP id ef18-20020a056a20b31200b0018f09c4d34dmr324659pzb.61.1703144005855; Wed, 20 Dec 2023 23:33:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703144005; cv=none; d=google.com; s=arc-20160816; b=MF76aDV6BAQEoBHw2aeDLkOW+1xOAiV0j3dR4VGJino0YOZF/I/ZuqX5i7jUU2l/6L hDWWKkwNsBI5WIFBINAXEK96x3XxT4M5FuDcijb6YWtHf8bmlZ34Lq5UV+su+ss5SK0O Q6+1h9niI+ZEcEkUCUXudCHXGgvreB1VNPm3HSyzN5g40vIJmbOiL8J7EfYG3fhH/4uX guyktWaZ9qual5EO+tsQ91Tc8EWY/U8fYXahDg+c4KTH1gM/WCccYIbTbn7O4siKISRx ET8hgHBd9IgsRckzUrIjxfltLsePm0X3rm1JdwSlbWCbJxGcSrLvxMSfi0yZwY/XIzyI o1ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=/0VpDqqUIzOlKBhn2gCRz1W1Bf+NVsRHUpuRi9T9QvI=; fh=1geq93GY9WFQUAKXBgNgcAvJ1oX5JL8GbQ4s6Ga/Cyo=; b=S1HJwn46InC2vmE+zP7iF/HjFWNbZTJlvtgdNVZSeeXl61q1w47dVt/N9drfMzVJ+X k9pmYGTe9uBcZavFM/G/biFv0/XQbZ42Dbb9RMJjvQvXYaFhTq6MydjICXRo+GEGFZrM yyz8fV1PitV3ywY+/Et10DlkjaFrpcXIm4+K30Id75B2UkjilCnFrYev7Iwx2tX8PP4i Xe5F9Z8z81ChX2ciXePixyJBRpiTL53aZBO4hWrTZawDlWR52+2uceWLRa61pHA6YRpP vcfwA9R0GvkDX3SC6Ly/0pm2Yc2Ax27oTfq1lXR8OQ57gc8SEJCNS5LNsK3Uut+D1Xx5 JFZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=z6eef2g4; spf=pass (google.com: domain of linux-kernel+bounces-7938-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7938-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y190-20020a638ac7000000b005c6977f9c0dsi1127823pgd.214.2023.12.20.23.33.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 23:33:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7938-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=z6eef2g4; spf=pass (google.com: domain of linux-kernel+bounces-7938-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7938-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 83EB1287C13 for ; Thu, 21 Dec 2023 07:33:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCB04156D6; Thu, 21 Dec 2023 07:33:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="z6eef2g4" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.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 22E9D14F76 for ; Thu, 21 Dec 2023 07:33:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a269a271b5bso53091666b.1 for ; Wed, 20 Dec 2023 23:33:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1703143989; x=1703748789; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/0VpDqqUIzOlKBhn2gCRz1W1Bf+NVsRHUpuRi9T9QvI=; b=z6eef2g4EqmeXmxruoboMdtYIIFX7jty01jJp5XKrkyR4TFwFjSIN7HHR+QzwjjxYc +dlYrwtyRhdZncCygQ5jmyJ+bhICblx1+Snz72UOCRywXqCmpiJIELkZhxP6KIyqmZ9X X0Y3GOYccegVkSvgE9u5muEaNB4N5Zo6L/PDlIXH/F1tt0UqlIb4tMD7Q4Ki+1mNsA/j 6vcK+MN8ZR8Zq0F+9ORtg1hqDgV9tkPqBbv8VwnZXoaIu53S3MCbpodN91e2zQp/gkd2 6kIJgmpwrir/b1DBfNK967xY4hH1xVTpmOMWDi8SK/esDgndy/xpyDBUMQIuP6031Xk4 oF4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703143989; x=1703748789; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=/0VpDqqUIzOlKBhn2gCRz1W1Bf+NVsRHUpuRi9T9QvI=; b=f3GJiSHYqf4851bGbdESMWYNP1kVAnOlRQjcQ2KLfFQ7ufg1sTm9xmmJXHYHN86vF1 0ME6mKGK1PNgehz3MLhl+kqHaTRFFLZXk/w2fJIFGY1u3L4yxJJ5fpxsiyvly7jZEylh TwfXNyBpoOHra0BSaIG2GTcSdmQaIPGInWpjwueXss5WiXoAPR/SuQzeVisfH6/UUnbr W0d/Kt087KFjpzBbVzn1kzgw/oe5D6w+/dn4XDPpW/gTvq/vGlOb6Ig8IM8GRziadB8V y/Ua0duZEg8HHLg4x4In/V4NioWmprBjbDFjRrGXxDqKZHt3wpZRQPwlPrsnF9YwYrk6 QV4A== X-Gm-Message-State: AOJu0YxyKQBN0AOfKJjZl64S8S15Dk3xK+MbJ3bQYiaNwzkUkcgljCQb dN5qe8mWCwo6R+BKmr5lgr21Sw== X-Received: by 2002:a17:906:f5a3:b0:a1f:5c21:a577 with SMTP id cm35-20020a170906f5a300b00a1f5c21a577mr12532478ejd.152.1703143989091; Wed, 20 Dec 2023 23:33:09 -0800 (PST) Received: from localhost (2a02-8388-6584-6400-d322-7350-96d2-429d.cable.dynamic.v6.surfer.at. [2a02:8388:6584:6400:d322:7350:96d2:429d]) by smtp.gmail.com with ESMTPSA id wh14-20020a170906fd0e00b00a233efe6aa7sm641391ejb.51.2023.12.20.23.33.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Dec 2023 23:33:08 -0800 (PST) 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 Date: Thu, 21 Dec 2023 08:33:07 +0100 Message-Id: Cc: <~postmarketos/upstreaming@lists.sr.ht>, , , , , Subject: Re: [PATCH 0/3] Fairphone 5 PMIC-GLINK support (USB-C, charger, fuel gauge) From: "Luca Weiss" To: "Konrad Dybcio" , "Bjorn Andersson" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Heikki Krogerus" , "Greg Kroah-Hartman" , , "Dmitry Baryshkov" X-Mailer: aerc 0.15.2 References: <20231220-fp5-pmic-glink-v1-0-2a1f8e3c661c@fairphone.com> <8d042095-1e09-45cc-9762-909fe8d663a9@linaro.org> In-Reply-To: <8d042095-1e09-45cc-9762-909fe8d663a9@linaro.org> 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. > >=20 > > 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. > >=20 > > 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. 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