Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1110253pxb; Sat, 15 Jan 2022 03:14:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwc9qFh9+LtWH/lzQMD1rQ+G7QLTGGSghGAEokPBxSs1ifRhtJJYYPYxSQApL+Kvw45GfAA X-Received: by 2002:a17:906:9607:: with SMTP id s7mr8270114ejx.454.1642245298107; Sat, 15 Jan 2022 03:14:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642245298; cv=none; d=google.com; s=arc-20160816; b=XUBcZYwUhmSKcThunb+NMryP5d5OhC6zIojT+aj9b+Wri2r756zfZo9mKzIre87UeM iwv8APUfKBQQm+n9F2vM72y8ki2b0DJDj972sUT8M8PBIg6xvXadUUbXf+VFsth+YO/t oL0mUnaSvBFVOD7e5yH3TJax+gqo16/dhJhrYfgFj+qt8+ENxBQwbwSfWhAVSayyOMEU WYlLdnQ4MwVPLuBGWK34BbG9LoN3w6e06eoQ2IsqymS6azhJrp9MI+lluGcBDweG0kJd x0Ase1k7nwh2eG25eXkk0c53yEIfM27WlfflXqMSUUmBNciEbFPmVLOmqWnuBUdG2BRf NBFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=mv9y2F1yD1R3tg/trx+ktowkw03PiJgNgeaAhqzGrdM=; b=DDC0IPIkd1VlZZitz9yKi162CO1TB151HeVyx1ZG+sCJ04cOTJcqDYPBUC62QKqFNX jKhsZFPpv3VgU0iY3ZgYqHOmJmcgiDSEyB7tYrUR9xCfTWXLZW54Tx5IcDi5foMKpkP5 i+1iRUHS3zD7QLrISFB+9TMRyqweLQH5Zu3pw6o1SPw0XFhOSS/dfG4xTFoUIwOfD0ON mIPB64ol07dK1hSmkz31k+ZdxAMrmquWovzZR3FzucVK+FkYBn52tvp9s1Egl4IjgDiH 4qQABSArPJwD37D5Tzrt7G48nvrsLRtjA/FRGuWdiXmqjsugk+OxuPBP7ILvY5IPClX8 uFUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HaGJZIfu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id op26si568890ejb.726.2022.01.15.03.14.33; Sat, 15 Jan 2022 03:14:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HaGJZIfu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231626AbiAOA4p (ORCPT + 99 others); Fri, 14 Jan 2022 19:56:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231624AbiAOA4n (ORCPT ); Fri, 14 Jan 2022 19:56:43 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D169C06161C; Fri, 14 Jan 2022 16:56:43 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id b3so5422233plc.7; Fri, 14 Jan 2022 16:56:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mv9y2F1yD1R3tg/trx+ktowkw03PiJgNgeaAhqzGrdM=; b=HaGJZIfudAm0DksoiMOEk6RTlXfGyZJrshYIC9K6AeXtdWWTSezKMTVoript6cW2yU Lcj7Hj4am2yemON+xxSTmTuw6JxSX8t3jY67K8ZV+amUYGTIe7nXWgdUzq7LbDoc+kgn zHRbTWlZ9UPwnHz11hAVoCgZC7zVG6zHyfKMs9ColIpWks3t4/Kplf54N7+P8/RGHTwv jLE3lngPQ9PQ68urJo7AiAWEnaBGu8nqGlYdvNJBPlf7/PFedrqDTc5W+6HMhDzILctK dAdqdr5W5rkGsZKeJGGy4XBm5McPjBmlNMr5K6hxKm+fsjyjSMhAwgYmJfRtwnJ3lNvx pWLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mv9y2F1yD1R3tg/trx+ktowkw03PiJgNgeaAhqzGrdM=; b=iALqrZhOEofAx5FR4d3z9YUJQYi9+1RVa11vKosmx4dJ2oAr5CpyTBfqJzpnS4lox6 1X6OCgeVmThNCxOj13h91m+cnuN2JAXKei4AIDle8T/8GPylXeVjmh6IGLkJH42FSmNa 9AfUbz5RvMvaQEU0TJ04elFS+wU4n9kZ9d6VrU96dx8ngn88P/Sw06MdvuQpVyzn52KP MqsAM2je/maukWNsEMotqOIt82QE7QAgj3AU4Hyqy37VymfvptKolE24e81DVVpVynUR znXd3zm/gGXUoxJiw3qE+bESJYwnH7+HjlQ+e8o9skMhLkvdxPMpg0463Www98DxyXYQ Sj0w== X-Gm-Message-State: AOAM530wjRYxWhXtTC986Mq3mghIFcgjD/WYXaOIt4zmoURdBhvel3oY qYzpe5pBdN+bS8CjgWXlhK2nQIUIL+E= X-Received: by 2002:a17:90b:1e4c:: with SMTP id pi12mr1298721pjb.224.1642208202437; Fri, 14 Jan 2022 16:56:42 -0800 (PST) Received: from localhost.localdomain (1-171-7-64.dynamic-ip.hinet.net. [1.171.7.64]) by smtp.gmail.com with ESMTPSA id j18sm5335570pgb.27.2022.01.14.16.56.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jan 2022 16:56:41 -0800 (PST) From: cy_huang To: robh+dt@kernel.org, heikki.krogerus@linux.intel.com Cc: gregkh@linuxfoundation.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, cy_huang@richtek.com Subject: [PATCH v2 1/2] dt-bindings: usb: rt1719: Add binding for Richtek RT1719 Date: Sat, 15 Jan 2022 08:56:30 +0800 Message-Id: <1642208191-7254-2-git-send-email-u0084500@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1642208191-7254-1-git-send-email-u0084500@gmail.com> References: <1642208191-7254-1-git-send-email-u0084500@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: ChiYuan Huang Add binding for Richtek RT1719. Signed-off-by: ChiYuan Huang --- .../devicetree/bindings/usb/richtek,rt1719.yaml | 85 ++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/richtek,rt1719.yaml diff --git a/Documentation/devicetree/bindings/usb/richtek,rt1719.yaml b/Documentation/devicetree/bindings/usb/richtek,rt1719.yaml new file mode 100644 index 00000000..65a93f7 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/richtek,rt1719.yaml @@ -0,0 +1,85 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/usb/richtek,rt1719.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Richtek RT1719 sink-only Type-C PD controller bindings + +maintainers: + - ChiYuan Huang + +description: | + The RT1719 is a sink-only USB Type-C contoller that complies with the latest + USB Type-C and PD standards. It does the USB Type-C detection including attach + and orientation. It integrates the physical layer of the USB BMC power + delivery protocol to allow up to 100W of power. The BMC PD block enables full + support for alternative interfaces of the Type-C specification. + +properties: + compatible: + enum: + - richtek,rt1719 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + wakeup-source: + description: enable IRQ remote wakeup, see power/wakeup-source.txt + type: boolean + + connector: + type: object + $ref: ../connector/usb-connector.yaml# + description: + Properties for usb c connector. + +additionalProperties: false + +required: + - compatible + - reg + - connector + - interrupts + +examples: + - | + #include + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + + rt1719@43 { + compatible = "richtek,rt1719"; + reg = <0x43>; + interrupts-extended = <&gpio26 2 IRQ_TYPE_LEVEL_LOW>; + wakeup-source; + + connector { + compatible = "usb-c-connector"; + label = "USB-C"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + endpoint { + remote-endpoint = <&usb_hs>; + }; + }; + port@1 { + reg = <1>; + endpoint { + remote-endpoint = <&usb_ss>; + }; + }; + }; + }; + }; + }; +... -- 2.7.4