From nobody Thu Oct 2 02:15:05 2025 Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.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 C49082D8781 for ; Wed, 1 Oct 2025 19:33:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759347237; cv=none; b=Ffjqp8suSVsES0UIile2ePqU2bjC/L7XMe/dLz8GzvU0jeAGjxmLhysXAJac3JWkAigiqXTOLjVx9N7aABgiaKLbHe5r97wITZUoDTR1IKZaafsskGxf8yKuOhltqgd/35gPFQ5bnY/kkG66S65dEIvXmw8VpAihmzh1Cfv7acw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759347237; c=relaxed/simple; bh=FEpg/7BZxeu5NgwiYBv2Ee+RYqZ1LN0sPgk+srr05OA=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=AWXrclPKoDrcOpzvdMB0x+cPl1BPIajCn3zk4W1A8jx0x7YmXmcX76+x0L/oSKZLr4GOVUFCKh+hMlvgnqyBV/anORQkUcq4PKicjDmdlsu3TsYF/peHp9LjCVdxk4BFJzhpIYJZtwduLw7So5cnIKSKLuuyJ/4YJcwAnEu8DAI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jthies.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=rHrGUTNy; arc=none smtp.client-ip=209.85.215.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--jthies.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="rHrGUTNy" Received: by mail-pg1-f201.google.com with SMTP id 41be03b00d2f7-b5509ed1854so128639a12.0 for ; Wed, 01 Oct 2025 12:33:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1759347235; x=1759952035; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=KOZcKUaQjl52TKTb2c8zMCvsKmsV/y/lPeyOuQ6q8ow=; b=rHrGUTNyLHt0QEZZ6ADUSGqa1RgO4IG2OJ3oDEUn+s5kqyKSG11/HgcsZwoTejjeUM SN4+XrZE42WcZ3jXWC/ynGoziXjzQPSZpFSSXATNEipi9mjTMI1MlIVGSaah2KwiAaro +e1xYlKikK6SlZDp4fDzP005NwfrSX1fBoTAePWInJ9kIiV8VbGwaw4hOxCh81bWtZEd Fw1O7Je1eUSt5rKF6kziaqmGqlW2X/mV6UMQ3KuddTCVXVzXDSrbbMuDKf0mghcqW2tG S+ESsoyBf7v0pLlHNac2IHALFKPXIL2b7ZcHsTqJQj87oRDVfFJYGxXoxjxTcOgaQnOp UjMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759347235; x=1759952035; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=KOZcKUaQjl52TKTb2c8zMCvsKmsV/y/lPeyOuQ6q8ow=; b=wuQ42hlZDxz+339tGzCvpRYWJS5dqUfe8is9R+DhUiAHzDLIgjI/zLrfc5kYsT6uUP aSPMs22WULXI+67UdqUkq5vqUuWBllOg5DdPbH2KuMKcT664D0UU0+M4puwC97AAmOJS Pq5IC/lECgdyp84nmeNSWZJxHb6pR2TwFRrrio4nQgbClpmaYe+ufMMEecxW/pRHWKYd gUf0gxASwSAuILmzuoBst9pAkp3/vWr7YqG6OD5cXr3QaTh6tLQQ8bNI9YvNXOCZ1bpc 5W4pUyLjW9LopOvwipJoUYGBh93ot8wtKgcCe32bXjKebXpARsLyOglHQ499GLfBbV52 RPRQ== X-Forwarded-Encrypted: i=1; AJvYcCXD95q5jd+oI7ZyGQoeldcuO1Ko5Hx4CFkxfbWqODu+WmwEi44oZw1b+CkmG3yU3vL+idi1z4rt38ZCgb8=@vger.kernel.org X-Gm-Message-State: AOJu0Yz9oJEt/3Zc1GiNCFEtTIN2EufOsSDrwSiyxN3qedv2S0M0YYMb UMLa1J0VkzQsC2M40kRVZ7i+xHMRByI5xuDAKptq++0PhJ9GMIFq+3aXhV2HUa/8tAjixDec5kN Mv7roBw== X-Google-Smtp-Source: AGHT+IFYeUo9ghhsjfaPnkIvUWWb4I4GUIwXFFyCVFrvfzUwD+cx16qLBp9A0yGOlezJ5enJQwgNYB7XxzE= X-Received: from plblb8.prod.google.com ([2002:a17:902:fa48:b0:24c:7829:4af6]) (user=jthies job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:2446:b0:274:3db8:e755 with SMTP id d9443c01a7336-28e7f2f7565mr44337445ad.30.1759347234575; Wed, 01 Oct 2025 12:33:54 -0700 (PDT) Date: Wed, 1 Oct 2025 19:33:41 +0000 In-Reply-To: <20251001193346.1724998-1-jthies@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251001193346.1724998-1-jthies@google.com> X-Mailer: git-send-email 2.51.0.618.g983fd99d29-goog Message-ID: <20251001193346.1724998-2-jthies@google.com> Subject: [PATCH v2 1/3] dt-bindings: chrome: Add Cros EC UCSI driver From: Jameson Thies To: akuchynski@chromium.org, abhishekpandit@chromium.org, krzk+dt@kernel.org, robh@kernel.org, bleung@chromium.org, heikki.krogerus@linux.intel.com, ukaszb@chromium.org, tzungbi@kernel.org Cc: devicetree@vger.kernel.org, chrome-platform@lists.linux.dev, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Jameson Thies Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Chrome OS devices with PDCs allow the host to read port status and control port behavior with UCSI commands sent to the embedded controller (EC). Add documentation for cros-ec-ucsi node which loads the Chrome OS UCSI driver. Signed-off-by: Jameson Thies --- .../bindings/chrome/google,cros-ec-ucsi.yaml | 71 +++++++++++++++++++ .../bindings/mfd/google,cros-ec.yaml | 4 +- 2 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/chrome/google,cros-ec= -ucsi.yaml diff --git a/Documentation/devicetree/bindings/chrome/google,cros-ec-ucsi.y= aml b/Documentation/devicetree/bindings/chrome/google,cros-ec-ucsi.yaml new file mode 100644 index 000000000000..2121776e3ff0 --- /dev/null +++ b/Documentation/devicetree/bindings/chrome/google,cros-ec-ucsi.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/chrome/google,cros-ec-ucsi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Google Chrome OS EC(Embedded Controller) UCSI driver. + +maintainers: + - Abhishek Pandit-Subedi + - Andrei Kuchynski + - Benson Leung + - Jameson Thies + - =C5=81ukasz Bartosik + +description: + Chrome OS devices with PDC-based USB-C ports expose a UCSI interface + from the Embedded Controller (EC) which allows the host to request + port state and control limited port behavior (DR/PR swap). This node + allows the host UCSI driver to send and receive UCSI commands to a + Chrome OS EC. The node for this device should be under a cros-ec node + like google,cros-ec-spi. + +properties: + compatible: + const: google,cros-ec-ucsi + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +patternProperties: + '^connector@[0-9a-f]+$': + $ref: /schemas/connector/usb-connector.yaml# + required: + - reg + +required: + - compatible + +additionalProperties: false + +examples: + - |+ + spi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + cros_ec: ec@0 { + compatible =3D "google,cros-ec-spi"; + reg =3D <0>; + interrupts =3D <35 0>; + + typec { + compatible =3D "google,cros-ec-ucsi"; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + connector@0 { + compatible =3D "usb-c-connector"; + reg =3D <0>; + power-role =3D "dual"; + data-role =3D "dual"; + try-power-role =3D "source"; + }; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml b/Do= cumentation/devicetree/bindings/mfd/google,cros-ec.yaml index 50f457090066..646bc81c526f 100644 --- a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml +++ b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml @@ -99,7 +99,9 @@ properties: gpio-controller: true =20 typec: - $ref: /schemas/chrome/google,cros-ec-typec.yaml# + oneOf: + - $ref: /schemas/chrome/google,cros-ec-typec.yaml# + - $ref: /schemas/chrome/google,cros-ec-ucsi.yaml# =20 ec-pwm: $ref: /schemas/pwm/google,cros-ec-pwm.yaml# --=20 2.51.0.618.g983fd99d29-goog