Received: by 2002:a05:7412:d002:b0:f9:9049:d2ea with SMTP id bd2csp3406rdb; Wed, 20 Dec 2023 02:03:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IE37LgB5R4xCfvXYocJaDhkQqa5lCngbZPomuiwlI3EJy3MM7cMwPz+0vOHmQb5hPr9+2C1 X-Received: by 2002:a17:906:b796:b0:a23:65c9:c882 with SMTP id dt22-20020a170906b79600b00a2365c9c882mr2181299ejb.58.1703066636501; Wed, 20 Dec 2023 02:03:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703066636; cv=none; d=google.com; s=arc-20160816; b=LaqyHLVlqa77BKbvzPJVB0ZJ7uhoTS2moihrPgaO6CUTb5ljik0H56Nq/61po0YVCG 2tR4hKbAq4p7DlmdllrYMVAFGFotWgvi8rfJsre5yHqO/OSJfIp0LprXzA8yaYOtlKN2 //YdytTZkh6XHxepstrtcDxAOq4C1ZbqcVciEoqcFr3r/1PmaWFC4wnFyaA7C1WyMbif ns2YHvYA2ix+8NcD+iCsFpKJmjOcDWlyTKuLlgy0jkNPVpT/rrYohcUYX9r79PzvJcHI +6O/VzJo2KHoQ0MljfcQZRtU84114hmLXSdS9zOpuB/wE9BSNQhvHUaHDtTQ3p/6z9Mw ZD9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=LhB2sxNkKBiagF0783M3sqDgGJEaCC2xOC1nqq1YmjY=; fh=sNiqPwxztyFmc19Qw4Is5eaDyHKJicOHiyRj4BS1sgU=; b=NRaVXpQQSogvDqn8EqxoHoc/8GtT3fKBNJ5kUHbjN8GgOswh+fa0+Kq2xU8z+AWfXe urgN05CsCxVBw345O1pK92pyEafZnmJS8booa6NhOkEkjrbbOAqCrqj+tBAVxU1Td5Gd LF2iQNkZ34QhNIq4+Wr2jmKDPfPz40BxEOIQOiQHNeebXvAq1K9aqs8JqU+/DnhI3TLx pnUZONQmP2XmnZ5RvEKPUec/IU+P7ckxG08mmc/JpaonLXYESVJwXF8zjCvDOiqHp1bN Gxq+DqIuyXBuczLEZUYNHwKGBeGH7/Jk1MSqSdrl3JDze8cC17K2LtqlBDZXPEpAW2oD mB1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=2ga6A6By; spf=pass (google.com: domain of linux-kernel+bounces-6678-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6678-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lt23-20020a170906fa9700b00a2356cacb4bsi2670092ejb.394.2023.12.20.02.03.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 02:03:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6678-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=2ga6A6By; spf=pass (google.com: domain of linux-kernel+bounces-6678-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6678-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4560C1F21C42 for ; Wed, 20 Dec 2023 10:03:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BD2D20B05; Wed, 20 Dec 2023 10:03:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="2ga6A6By" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 B8FF9208BC for ; Wed, 20 Dec 2023 10:03:00 +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-f54.google.com with SMTP id a640c23a62f3a-a234dc0984fso406561866b.0 for ; Wed, 20 Dec 2023 02:03:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1703066579; x=1703671379; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=LhB2sxNkKBiagF0783M3sqDgGJEaCC2xOC1nqq1YmjY=; b=2ga6A6ByhDbCY2zzftNgm6xE0y+Uwgt16L+0VgFjPjV4ycTP3uZOadOK46/3mNz9fb +RV6/HQ8QvbzfkplF5pHNw81X7Qoonqb09dGOqYICQTegElLRM99FF5eMOafTelLROJK Svsec8q+mmjGI3hS2JGiIWX43jfpt3ipiwbYoQAbyyLB/Ogp7YFulbVSTWWN6XDPHj9S 8Nr0AxZf6Vc7VK+rusc0j+45vpZUdddYFGykNvu6rm0QD9gN4DWSJtTsD3kJahtTZD4b KYmFmF4zT7kOkQsbcwsYUREIdjLrvWIzq3XTIxPhG3E90dI/HSh9KN0jOv1hIKnY3A+W nINQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703066579; x=1703671379; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LhB2sxNkKBiagF0783M3sqDgGJEaCC2xOC1nqq1YmjY=; b=n84YBpXCP7KLAOiWSXdORm1Zmg2ZAZmdp67iX6vByy7/JNaShPqj2Nq5UuutaJodIO I1mgU7PM/HNA+Z5WCazG8GogI2adl1qIn0BvvWWz76c3KpIhBgHm5mqKSOkTXCPPam+s +qgmDODGeCM+WbZ5BsilleVzoOqq2a1CdRt4S0QzCfHOLoM6NRe5Uzy6rtgjqz4Uq+f1 7YePE6Hs9lRz2u+D5/IckAc+y9AZwv4h5ukCJJ2j5Komvs0f/qDCa6TVialDyyqqMSH5 +rITq/mdvfweVu0OcrJ7IPPpwqgkUjVxV/eyqcEKRsCWw8ioL9JKYoXQalJkQf7AUzTA XZ9w== X-Gm-Message-State: AOJu0Yx5DMbSE8WdFmvavbRk3pzsv/7DwX2LfjR9HYUOkt46tksmA1hW IlPUe1sH8YqnOynDKA0ZJkaehQ== X-Received: by 2002:a17:906:26c6:b0:a1f:7298:aa25 with SMTP id u6-20020a17090626c600b00a1f7298aa25mr10590034ejc.45.1703066579067; Wed, 20 Dec 2023 02:02:59 -0800 (PST) Received: from otso.luca.vpn.lucaweiss.eu (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 f18-20020a170906561200b00a2356a7eafasm3718681ejq.199.2023.12.20.02.02.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 02:02:58 -0800 (PST) From: Luca Weiss Subject: [PATCH 0/3] Fairphone 5 PMIC-GLINK support (USB-C, charger, fuel gauge) Date: Wed, 20 Dec 2023 11:02:55 +0100 Message-Id: <20231220-fp5-pmic-glink-v1-0-2a1f8e3c661c@fairphone.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAM+7gmUC/x3MQQqAIBBA0avErBtQK4KuEi3MRhsqE4UIxLsnL d/i/wyJIlOCqckQ6eHEt6+QbQNm194R8lYNSqhOKiXQhgHDxQbdyf7AVcitt1qakTTUKESy/P7 DeSnlAw9veBRgAAAA To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heikki Krogerus , Greg Kroah-Hartman , cros-qcom-dts-watchers@chromium.org Cc: ~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, Luca Weiss X-Mailer: b4 0.12.4 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 :) Signed-off-by: Luca Weiss --- Luca Weiss (3): dt-bindings: soc: qcom: qcom,pmic-glink: document QCM6490 compatible usb: typec: ucsi: Add qcm6490-pmic-glink as needing PDOS quirk arm64: dts: qcom: qcm6490-fairphone-fp5: Add PMIC GLINK .../bindings/soc/qcom/qcom,pmic-glink.yaml | 1 + arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 46 +++++++++++++++++++++- arch/arm64/boot/dts/qcom/sc7280.dtsi | 19 +++++++++ drivers/usb/typec/ucsi/ucsi_glink.c | 1 + 4 files changed, 66 insertions(+), 1 deletion(-) --- base-commit: 76fbb7732259f4c970998d6978d72177658a783a change-id: 20231220-fp5-pmic-glink-b01d4fa1c7ea Best regards, -- Luca Weiss