From patchwork Wed Oct 23 03:55:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Sunil Dhamne X-Patchwork-Id: 13846404 Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (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 86B89130E58 for ; Wed, 23 Oct 2024 03:55:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729655753; cv=none; b=N9iAOL+dZ9a7i02FD9XN9DJMtzQPeaBeri5W9H4UJAF7K+JXshYxlBxRs99y6MOJiNyxse6TR+kW7ykS2wcAKm3kDB94rp/oVB1VtODpdnAb0ORfUok9paqttkGFtLuXvD0YKMxE5/EPdhZrfJyNbA8YDCWKT933GjOiHGdagfk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729655753; c=relaxed/simple; bh=rQK7gWxJRbkk3/XjsQg40ZMmcbV1ZzdgRRVvnvpPn74=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=BM9/S9SXaePioT3dgQrKHziMvyxN/Vxk21UPnurFtCg/8DowDIKvbG1B3E6mkkvRpBH8jkPSCIXbFl0IVA+9h1UzctqFxj5KF1s4m9x9toXnsVj3s1j49eK8o2zllyPSb/scDPunHHei32fL7xRLaweto2OhLnhdnEDK8oByirU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--amitsd.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=bmNzdM//; arc=none smtp.client-ip=209.85.128.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--amitsd.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="bmNzdM//" Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-6e1fbe2a6b1so114591837b3.2 for ; Tue, 22 Oct 2024 20:55:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1729655750; x=1730260550; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=GmI7Soq3roDCUAnbE0COUFZpGZsP+EnUANl8dSnaRwU=; b=bmNzdM//XPpZ6jkGh5C9gEXwgFsP239CdsnQCejuW37rVPeYxb0tzztn8q0YzbbHiF ezl/zOz66elITlOEEmeb07y8Iqhv/suUIdZATGuFoMP4erPJt3C16jq2IJcLBiHwPt6j tWEjp/tofZFw1EhXFXVolXf8jgLO/4nzjDsFLOU+9tgPqazmyyxddFA2dVpUYuCz02Uj KmmO8mElDQMdYltIk0O+ZOoMgcm1B+XF9rdEIweWvEruQCWGmAvVPO7nhoZHwNzj01Yc Tgc0SYbUvSrrOIIWxgzH8azWnMDVplrb6Wdr+iSl8TDJ8oQwuwmH4m/bmlkzoDG4+mE4 sXsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729655750; x=1730260550; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=GmI7Soq3roDCUAnbE0COUFZpGZsP+EnUANl8dSnaRwU=; b=wX2kOMkwzEmasRZ5rguXkte1IcUYqbbxjQpvx5La4XzP3HV3Y/Tyus8GVlSEo4F2Sh 7f/GJ4vpd4EWLKpbpH3e55J9sRgHRnjeSSzupNVr5S7dmoDklNdkBKngUbqZO7WweAk1 Vsq6AcInLezkDxnJV3JdKy/XGCuGN+NlYKzF+y7FugWlD+JAekxzAQQIFaLW+Adg5z/d gBwOsBdSRn1Z5M9nQuUINzzCzhxfyO1JeYG/e5nIZMddfKHc7QNNGlyTcU7gAUe0fH/y Fb7jYjrzAi01ph+LVQIuznbKO0jFH9r6db8gcQplHeVpX6Dc6MDrDxZcVsnC6xdTg+0Y J5Ug== X-Forwarded-Encrypted: i=1; AJvYcCVUhpi2OHmZCt76hiuko6ukpiESuKAfrvZVRRhbHasHhTdVTHqiv4BisZLwyoZpSwPNWFiJqqDjV7g=@vger.kernel.org X-Gm-Message-State: AOJu0Yw9E8cvWskqhJNdaW9nuhbqiPDNOcY0OntKa4jjiya5uyw9NMvU YAOGhYoC1QtDGskj2nvin2MYb2stcXQTpnqOBCkU4AN+lIDCNZOZUqIEpOdQkr9vy96i7ZdG5ep 2Ow== X-Google-Smtp-Source: AGHT+IFwM7FsOs33Bm6JoIK39+oXfBykLbhJ1raXYq//FeA3l6SBgfdQIZAUAQ8v3qbIAYaoTToB5BzkchM= X-Received: from amitsd-gti.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:827]) (user=amitsd job=sendgmr) by 2002:a05:690c:7488:b0:6e3:1023:3645 with SMTP id 00721157ae682-6e7f0fd1f99mr182307b3.8.1729655750550; Tue, 22 Oct 2024 20:55:50 -0700 (PDT) Date: Tue, 22 Oct 2024 20:55:47 -0700 Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAMNzGGcC/x3MTQqAIBBA4avIrBvQoT+6SrSwnGoWpWhEIN09a fkt3suQOAonGFSGyLck8WeBqRQsuz03RnHFQJpqo4kwOHQXXnIwhuhDQtP0XavnlVpLULIQeZX nX47T+36ptcVUYgAAAA== X-Mailer: b4 0.13.0 Message-ID: <20241022-pd-dt-time-props-v1-0-fea96f51b302@google.com> Subject: [PATCH 0/2] Add support for time DT property in TCPM From: Amit Sunil Dhamne To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heikki Krogerus , Greg Kroah-Hartman Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Badhri Jagan Sridharan , RD Babiera , Kyle Tso , Amit Sunil Dhamne USB PD specification defines a bunch of timers that can have a range of acceptable values instead of specific values. These values have to be tuned based on the platform. However, TCPM currently sets them to a default value without providing a mechanism to set platform specific values. This patchset adds new DT properties per timer to allow users to define platform specific values. The RFC patchset for this was already reviewed and no changes have been made since. The link is: https://lore.kernel.org/linux-usb/20240925031135.1101048-1-amitsd@google.com/ Because of this, I have retained the Reviewed-by tags. If you think they should be cleared since this is a more formal [PATCH], please let me know and I'll do so. Signed-off-by: Amit Sunil Dhamne --- Amit Sunil Dhamne (2): dt-bindings: connector: Add properties to define time values usb: typec: tcpm: Add support for parsing time dt properties .../bindings/connector/usb-connector.yaml | 35 ++++++++++- drivers/usb/typec/tcpm/tcpm.c | 73 +++++++++++++++++----- 2 files changed, 91 insertions(+), 17 deletions(-) --- base-commit: 42f7652d3eb527d03665b09edac47f85fb600924 change-id: 20241022-pd-dt-time-props-158760bf26a2 Best regards,