From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (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 65B3A194C65 for ; Thu, 19 Sep 2024 07:51:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726732304; cv=none; b=HQeQjsPPmYTKUWJR+sFm/s9lUblGroAFQZqB3GLVhlJ55qi2wy1BA/LrcqpTCbuM5iSKa0RRfnxdPuc3TxFypuBaEvffawY/VnabciXLH24k9mT26VwsRjH1W2QrB8hcuPHjh4gaZVq5aKgjuZ5UOS6Xh7xUmwbsDHXuvfjxphI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726732304; c=relaxed/simple; bh=U5WJaoTtcAuGD8VknlYfHc4GGLGgL4otqGdvhWJttDg=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=OvvPZm7JsVQGe/kjRbKYM0v/cp+pejvbHLUgaJyoP50h/pIJJcfhwRDsrj9d46AbyZCyu221cOy9i/IGbtnShzH5WV6fqDf53cgUYUxqi1E8429W4ha41zSryorQxxK5spbXSKCuVmpWqE9kN6gYAfW7YFnSitZHCawFItsmdYI= 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=nBQihPH1; arc=none smtp.client-ip=209.85.128.202 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="nBQihPH1" Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-6d683cfa528so8596137b3.0 for ; Thu, 19 Sep 2024 00:51:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1726732301; x=1727337101; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=Mate0Slr3ggKx26+pzgz4eKqO0en772zUr1uU4Z1wp0=; b=nBQihPH1o3ieP/xmIzPUM5TRB4vLnv7K/AZhqj5hCAu8InlN4qqvvdn6cbhKZw36+W nQ6nPQhrcZo0hJ43Zlx2471JCzwuGNbC78/2FHWx79vowvC9CcGlMtRGE37rwoleDA17 fcN2yfx3jOonc/1y43mLgXtiHKCkjg53B3fmE+Twm6jdi1FS/asNrDgBecitLIGKSkWk olhSs3X47b2rGa+woQqUrBPXQ3briGmS8wePskoaD2UcwEobP/dqw5eoEd3fTfuyLeYf 212MuQkcaNgl+zQdaE6cE4EBt0LrbrQTuNdXPmb5L+PJOykbiuWpoRNKaKG+IeTXT082 1poQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726732301; x=1727337101; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Mate0Slr3ggKx26+pzgz4eKqO0en772zUr1uU4Z1wp0=; b=T3eql5uvCics178UhbuFgNzj+462/iRp3kM4+xkYq51vUQvSUgBp63F978tfVCAp33 /AAkKeOBBZiEsa1KeQJHww8Im2JFkzVPPj8tek7mx88vK4wtkQpn571TBODX0xMNeu8c IgfLVHL8//et//KNTAjuEij4yroIr1FsqZatWJgseR367fM4cykOdKvBwzlxEDb7ZP5+ m7SZEYAGOvk66jHWtLyHfhUpLsFoCXRhhSbLAwL8Hz/RBspkyWmqHA6wflsIlWRHbTcN 8e5O+2FQ15fic6C7v5er8vh3ZJx/H5Xcd4FuZYUl3fd/BCm/24TqinXMWmGfL/6ZaXZE dxAg== X-Forwarded-Encrypted: i=1; AJvYcCUXdas946ONUgo6Can2XaSiUoImJCOmPvirvjk/KeqFC2fa+tTXOfYp7tIQpzwlMfheA4ilt/AZFwprEgs=@vger.kernel.org X-Gm-Message-State: AOJu0YxMKxRsvO+NObvkT0npvwdgHGtdQr759iZJfUqn6d5nSxXd0GML DuIvQtPE15Z32l2Sf8jKrGsK4VacrI1LaxqBkEeBP9fqBaO33dlHZxnBLB/zUSmy6OH6xTg11Vo HoQ== X-Google-Smtp-Source: AGHT+IEu/+FJoc9hrDc4MDglAwuuZk+o0/lAYv5WANFWM3V2/yyCRexmYGQ4ZVdoraKu6E3CzFuagXfOftw= X-Received: from amitsd-gti.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:827]) (user=amitsd job=sendgmr) by 2002:a0d:c087:0:b0:6d4:d6de:3e35 with SMTP id 00721157ae682-6dbb6ba2a49mr2511977b3.8.1726732301295; Thu, 19 Sep 2024 00:51:41 -0700 (PDT) Date: Thu, 19 Sep 2024 00:51:12 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.46.0.792.g87dc391469-goog Message-ID: <20240919075120.328469-1-amitsd@google.com> Subject: [RFC v2 0/2] Add support for time DT property in TCPM From: Amit Sunil Dhamne To: gregkh@linuxfoundation.org, robh@kernel.org, dmitry.baryshkov@linaro.org, heikki.krogerus@linux.intel.com Cc: badhri@google.com, kyletso@google.com, rdbabiera@google.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, Amit Sunil Dhamne Content-Type: text/plain; charset="UTF-8" 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. Changes compared to v1: - Defined new properties per timer that we are interested in rather than defining a single pd-timers u32 array property. - Better description of the timer properties. - Since subject has changed, adding link for previous patchset for posterity: https://lore.kernel.org/all/20240911000715.554184-1-amitsd@google.com/ 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 | 32 +++++++- drivers/usb/typec/tcpm/tcpm.c | 81 +++++++++++++++---- 2 files changed, 96 insertions(+), 17 deletions(-) base-commit: 68d4209158f43a558c5553ea95ab0c8975eab18c -- 2.46.0.792.g87dc391469-goog