From patchwork Tue Aug 22 10:28:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?U3RhbmxleSBDaGFuZ1vmmIzogrLlvrdd?= X-Patchwork-Id: 136534 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp3588398vqi; Tue, 22 Aug 2023 05:28:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH9VbyLaAQpzRN4VeARbKDvsR8Rvn+M6Di3T7JFFn8f/8JX6m/q/JrSRyQoYE7h9sI6ESgo X-Received: by 2002:a17:906:10cf:b0:99b:4ed4:5526 with SMTP id v15-20020a17090610cf00b0099b4ed45526mr9352087ejv.7.1692707314861; Tue, 22 Aug 2023 05:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692707314; cv=none; d=google.com; s=arc-20160816; b=VJg4HGf22psXJuHWMoNAl4rTBCi5QyrocPCPEY979SCEW0OQeo5iCl4THHnGsOvNlK +NwgDnqxhS1vc+ZLdThSLN4KcWZJ5fYvYBe5ueMX5t24d4yaMgjGUClMMAPTWSibwOYQ /rnAmE26q/jkZMLMOTvCVM/hrFCcXIx15UOTyue31sc/gphgCIfAt5DHURjUNzp2JqYW QvS40jtYKsbW/VQvDMMDzSVUeSJSarRQu9xeQ1MBTi/dlxCCBXrqeXbekgewHkJZ9VHu l0WS4bo0XS/rQTnMkPCwRfScwBoIHZBJS7ZjZPKxp1WJQ/N2JvqNuzusanxoWegVPPj4 wCmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :authenticated-by; bh=0IvU8oQresP28qzwaP7i4WIzVY/dEFBChyXB7agUjeg=; fh=LdmkG1DDkne4zWxn4e9w1TzBTr3mLyBhCVBOQuUTius=; b=bMbBjL/pGQPMrq1Hr50TpTFN9BMb2qYB+vEW1PrfxLoh14ZTX3Llmf4SSilblpT71T 9fV19nA9aFJXfR7CvN74Uea/s5i+D6W1Tk+mmrMhjV0HVnGTtoq9TdgrJvxLpcHnYwWX FS+8PhAIy1X/e4TWJ4zHxzMxe6DXCQs/Ok46GquF0dhWXKG7FMpbTrcs5pKc7pZA2XUs YQ1KaeZAyekLWuHJmMi5l1YdQ8l2DSPMj5SKyffQ3eln75YtHj4ZStlshmDBtdpR6dER HOMMys0rV9M50ccVHj0JZsxs9l5tZN9zgs7g4/XUgh25I7XzvlyOaLXZKFRfwrgzaFPc 6FBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ch11-20020a170906c2cb00b0099dedd107adsi7356563ejb.541.2023.08.22.05.28.10; Tue, 22 Aug 2023 05:28:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234099AbjHVK3e (ORCPT + 99 others); Tue, 22 Aug 2023 06:29:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233921AbjHVK3d (ORCPT ); Tue, 22 Aug 2023 06:29:33 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 35A11CD6; Tue, 22 Aug 2023 03:29:00 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 37MASR0w8032211, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 37MASR0w8032211 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Aug 2023 18:28:27 +0800 Received: from RTEXDAG01.realtek.com.tw (172.21.6.100) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Tue, 22 Aug 2023 18:28:49 +0800 Received: from RTEXH36505.realtek.com.tw (172.21.6.25) by RTEXDAG01.realtek.com.tw (172.21.6.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Tue, 22 Aug 2023 18:28:49 +0800 Received: from localhost.localdomain (172.21.252.101) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server id 15.1.2375.32 via Frontend Transport; Tue, 22 Aug 2023 18:28:48 +0800 From: Stanley Chang To: MyungJoo Ham CC: Stanley Chang , Chanwoo Choi , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , , Subject: [PATCH v1 2/2] dt-bindings: extcon: Add Realtek DHC RTD SoC Type-C Date: Tue, 22 Aug 2023 18:28:41 +0800 Message-ID: <20230822102846.4683-2-stanley_chang@realtek.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230822102846.4683-1-stanley_chang@realtek.com> References: <20230822102846.4683-1-stanley_chang@realtek.com> MIME-Version: 1.0 X-KSE-ServerInfo: RTEXDAG01.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774932265663574367 X-GMAIL-MSGID: 1774932265663574367 Document the device-tree bindings for Realtek SoCs Type-C. Realtek DHC (digital home center) RTD SoCs support a Type-C module. Signed-off-by: Stanley Chang --- .../bindings/extcon/extcon-rtk-type-c.yaml | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/extcon/extcon-rtk-type-c.yaml diff --git a/Documentation/devicetree/bindings/extcon/extcon-rtk-type-c.yaml b/Documentation/devicetree/bindings/extcon/extcon-rtk-type-c.yaml new file mode 100644 index 000000000000..d14b9ee544b9 --- /dev/null +++ b/Documentation/devicetree/bindings/extcon/extcon-rtk-type-c.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright 2023 Realtek Semiconductor Corporation +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/extcon/extcon-rtk-type-c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek DHC RTD SoCs USB Type-C detection + +maintainers: + - Stanley Chang + +description: | + Realtek digital home center (DHC) RTD series SoCs include a type c module. + This module is able to detect the state of type c connector. + +properties: + compatible: + enum: + - realtek,rtd1295-type-c + - realtek,rtd1312c-type-c + - realtek,rtd1315e-type-c + - realtek,rtd1319-type-c + - realtek,rtd1319d-type-c + - realtek,rtd1395-type-c + - realtek,rtd1619-type-c + - realtek,rtd1619b-type-c + + reg: + maxItems: 1 + description: Address and length of register set for type-c module. + + interrupts: + maxItems: 1 + + nvmem-cells: + maxItems: 1 + description: + The phandle to nvmem cell that contains the trimming data. + If unspecified, default value is used. + + pinctrl-names: + const: default + description: A pinctrl state names "default" must be defined. + + pinctrl-0: + description: + Should contain default pinctrl. + + nvmem-cell-names: + const: usb-cal + description: + The type c parameter trimming data specified via efuse. + + realtek,rd-ctrl-gpio: + description: The gpio node to control external Rd on board. + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + type-c@7220 { + compatible = "realtek,rtd1619b-type-c"; + reg = <0x7220 0x20>; + interrupts = <0 60 4>; + + pinctrl-names = "default"; + pinctrl-0 = <&usb_cc1_pins>, <&usb_cc2_pins>; + nvmem-cells = <&otp_usb_cal>; + nvmem-cell-names = "usb-cal"; + };