From patchwork Tue Oct 20 09:36:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Badhri Jagan Sridharan X-Patchwork-Id: 11846145 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4442A157C for ; Tue, 20 Oct 2020 09:36:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 181E3223C6 for ; Tue, 20 Oct 2020 09:36:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Isl3BwNz" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405621AbgJTJgk (ORCPT ); Tue, 20 Oct 2020 05:36:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405564AbgJTJgj (ORCPT ); Tue, 20 Oct 2020 05:36:39 -0400 Received: from mail-qk1-x749.google.com (mail-qk1-x749.google.com [IPv6:2607:f8b0:4864:20::749]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93210C061755 for ; Tue, 20 Oct 2020 02:36:37 -0700 (PDT) Received: by mail-qk1-x749.google.com with SMTP id z16so1086423qkg.15 for ; Tue, 20 Oct 2020 02:36:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=6b5Ynk+CtyDztlMBwmd53owM296q881JVhsYHyeZcdc=; b=Isl3BwNzkZ2zkWEEMcemaC7MTDkXo14g7Sebal1AfYUNnWWtPfzqpm2GWhYu6hZ1HL CHx/QzCRYqJnqCgI7J6FvHaIGiE/qybw5ViUAazV7Oy/J3defXdNwcf4kX9sV/WWaCRh YXQpU27UheV0Fe3wahPM2ytSeY0x0xCBLNkTfms5yIIHMAaMELmI6JsYdPSfjVPA66DG VdDBNlfZJm17CNSGTXZh3E2MhD5nT/9CLlYPZEfY9TRElTiXRaVbPw8Hahjhb+YCTesY III62jRU6xU41u4rT7tbunVvsrxLkcCC3crZLds/I9UnuiLgr8Psg+uf5JMniIpeLw7y KX4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=6b5Ynk+CtyDztlMBwmd53owM296q881JVhsYHyeZcdc=; b=txgQxesu7LgMXxamMDlyWpXOxTaE5SsR3dmD9X6NFfi+92ULrXY8Nmvr7vZsC64jeH Da3HxiYZD8T/Z8E5julvQti1pe25lZ6GVTBuOWZWAdfJHmnxf9zX3U6r8TbNn57PmC3H ts8YkP1MlwkBTur9fSdc1cTEarGJaqXcmk9AiDger9nWH5sC/ErEjy+euyaqjZHddwVc ACIVHRGxoo39eEW32JDxR/YLjBAOpDsTHI+ejsfrSdOPllSiQvgGgOFZ0wQUkC60mH6r 9Nlibzqerc4nkQyMrLTnDfZgknjvGykhpfttyWywpW/xTmVil2yXKGR3eDhZGUxEP141 uzhA== X-Gm-Message-State: AOAM531Mjbf5iaFYkhU96EDcGTcsAq2xjKjeWRuOB7IrKE1Vyg3IRtLn 9XZCvV3NsbPNGMGKttyIh7/0/iddY4s= X-Google-Smtp-Source: ABdhPJygmuYm45NEe6i6mDmuntpKNmzcLWNNaKbn0o1ptVNolIZ0+H0vHihBh5bqnXbC1HExF/ABGaF+PnU= Sender: "badhri via sendgmr" X-Received: from badhri.mtv.corp.google.com ([2620:15c:211:1:f292:1cff:fee0:66cf]) (user=badhri job=sendgmr) by 2002:ad4:45a5:: with SMTP id y5mr2393530qvu.40.1603186596745; Tue, 20 Oct 2020 02:36:36 -0700 (PDT) Date: Tue, 20 Oct 2020 02:36:19 -0700 In-Reply-To: <20201020093627.256885-1-badhri@google.com> Message-Id: <20201020093627.256885-3-badhri@google.com> Mime-Version: 1.0 References: <20201020093627.256885-1-badhri@google.com> X-Mailer: git-send-email 2.29.0.rc1.297.gfa9743e501-goog Subject: [PATCH v11 02/10] dt-bindings: usb: Maxim type-c controller device tree binding document From: Badhri Jagan Sridharan To: Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , Lee Jones , Mark Brown , Maxime Ripard , Alexandre Belloni , Thierry Reding , Prashant Malani , Badhri Jagan Sridharan Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Add device tree binding document for Maxim 33359 Type-C chip driver Signed-off-by: Badhri Jagan Sridharan Reviewed-by: Rob Herring --- Changes since v1: - Changing patch version to v6 to fix version number confusion. Changes since v6: - Migrated to yaml format. Changes since v7: - Rebase on usb-next Changes since v8: - Fix errors from make dt_binding_check as suggested by Rob Herring. Changes since v9: - additionalProperties: false as suggested by Rob Herring. Changes since v10: - Added the chip number to the binding as suggested by Rob Herring. - Renamed the filename as well. --- .../devicetree/bindings/usb/maxim,33359.yaml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/maxim,33359.yaml diff --git a/Documentation/devicetree/bindings/usb/maxim,33359.yaml b/Documentation/devicetree/bindings/usb/maxim,33359.yaml new file mode 100644 index 000000000000..b02e7b228cde --- /dev/null +++ b/Documentation/devicetree/bindings/usb/maxim,33359.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/usb/maxim,33359.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Maxim TCPCI Type-C PD controller DT bindings + +maintainers: + - Badhri Jagan Sridharan + +description: Maxim TCPCI Type-C PD controller + +properties: + compatible: + enum: + - maxim,33359 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + connector: + type: object + $ref: ../connector/usb-connector.yaml# + description: + Properties for usb c connector. + +required: + - compatible + - reg + - interrupts + - connector + +additionalProperties: false + +examples: + - | + #include + #include + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + + maxtcpc@25 { + compatible = "maxim,33359"; + reg = <0x25>; + interrupt-parent = <&gpa8>; + interrupts = <2 IRQ_TYPE_LEVEL_LOW>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C"; + data-role = "dual"; + power-role = "dual"; + try-power-role = "sink"; + self-powered; + op-sink-microwatt = <2600000>; + new-source-frs-typec-current = ; + source-pdos = ; + sink-pdos = ; + }; + }; + }; +...