Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3202533rdb; Thu, 16 Nov 2023 03:16:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvaXn4KfBojye5NJE0Fu+1kdqWHFEznwxQ1lSjLA0ap5fnj+kwHwxoCb/CNoDfNacazZ5y X-Received: by 2002:a17:90b:4c0f:b0:27d:1df4:26f3 with SMTP id na15-20020a17090b4c0f00b0027d1df426f3mr14842806pjb.15.1700133402188; Thu, 16 Nov 2023 03:16:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700133402; cv=none; d=google.com; s=arc-20160816; b=u7fNBXy7M2Xua08wNOQjpCQwtH6NnVTR7p1Kz+QuY3x5p2G+j3hf8d6/ePRCbOn4vR DBMxJjYjr0Qy0wdvoFzeimnx/jU59nEGdlLMjUJPdXwI9dK/cS/RuCNnOuwGal5I/j05 XZc7X9687I3k5FJvHhXucbYXpU+P0Ni7X+8/g6WVLPYgJfYdwFG+iNwKylzvC7H66TIY Aa2mcaurvubw/gp9zXcMEmmKi9KRgtt7411i/SQakLfWKlDR3XlSlrW9MsCi2EuevlfQ EYbajVubGqlhKcyRvKjmuF2dfjZ+47qCXyQxBvxfEGKR70PRcS2AKmjlhfgimnn2zTkL t8qw== 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; bh=AParXRzV9uwN+WosTa5MsZ1metBPyyO4hEc2DQqgTa8=; fh=4x4CVoEVJ/qmUij6PguRWMnP5yWSWHxwDunzVsvJyrM=; b=x9iLSpZ2Hkhpbk3Ob8kg2o8INKAFvdJ1QECqRS2PrrpROTPVsNjIx+VMjv2agrvRBm 0EY2oCoOHrw/qjwGtkuMVJTuAiycIwYxlSiuDALgrHw8jAuTpyPREQPN3JEHzilGpE/7 v2hC0toNZVfVjhCqcbY4Vw2eTr3vFQBZv9wAAP82Gu5qx691h4Luc9TalS9LENnpbWUL LFnhhDMbj6gbGKwsKYW+eijTw4TLH89+J+MA8SPw/RViovKVvnLnWsMTFvoKBl3NDD0R dOqupgUXNnbb29eBDfxaG58TAGzQPfMYyIZXCxySMdasjlolvD1XfXvtbgDj2reribJX 5snw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id x11-20020a17090a970b00b002810b67ca21si1838462pjo.184.2023.11.16.03.16.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 03:16:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 632C3807E7C0; Thu, 16 Nov 2023 03:15:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345088AbjKPLPG (ORCPT + 99 others); Thu, 16 Nov 2023 06:15:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345061AbjKPLPE (ORCPT ); Thu, 16 Nov 2023 06:15:04 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 867FEAA; Thu, 16 Nov 2023 03:15:00 -0800 (PST) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3AGBElEM22392433, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 3AGBElEM22392433 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 16 Nov 2023 19:14:48 +0800 Received: from RTEXDAG01.realtek.com.tw (172.21.6.100) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Thu, 16 Nov 2023 19:14:48 +0800 Received: from RTEXH36506.realtek.com.tw (172.21.6.27) 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; Thu, 16 Nov 2023 19:14:47 +0800 Received: from localhost.localdomain (172.21.252.101) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server id 15.1.2507.17 via Frontend Transport; Thu, 16 Nov 2023 19:14:47 +0800 From: Tzuyi Chang To: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , TY Chang Subject: [PATCH v2 1/2] dt-bindings: gpio: realtek: Add realtek,rtd-gpio Date: Thu, 16 Nov 2023 19:14:39 +0800 Message-ID: <20231116111441.2339-2-tychang@realtek.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231116111441.2339-1-tychang@realtek.com> References: <20231116111441.2339-1-tychang@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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-KSE-ServerInfo: RTEXH36505.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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 16 Nov 2023 03:15:35 -0800 (PST) Add the device tree bindings for the Realtek DHC(Digital Home Center) RTD SoCs GPIO controllers. Signed-off-by: Tzuyi Chang --- v1 to v2 change: 1. Add description for DHC RTD SoCs. 2. Revise the compatible names. 3. Add descriptions for reg and interrupts properties. --- .../bindings/gpio/realtek,rtd-gpio.yaml | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/realtek,rtd-gpio.yaml diff --git a/Documentation/devicetree/bindings/gpio/realtek,rtd-gpio.yaml b/Documentation/devicetree/bindings/gpio/realtek,rtd-gpio.yaml new file mode 100644 index 000000000000..11c8278801c3 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/realtek,rtd-gpio.yaml @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2023 Realtek Semiconductor Corporation +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/realtek,rtd-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek DHC GPIO controller + +maintainers: + - Tzuyi Chang + +description: + The GPIO controller is designed for the Realtek DHC (Digital Home Center) + RTD SoC family, which are high-definition media processor SoCs. + +properties: + compatible: + oneOf: + - items: + - enum: + - realtek,rtd1295-misc-gpio + - realtek,rtd1295-iso-gpio + - realtek,rtd1395-iso-gpio + - realtek,rtd1619-iso-gpio + - items: + - enum: + - realtek,rtd1319-iso-gpio + - realtek,rtd1619b-iso-gpio + - realtek,rtd1319d-iso-gpio + - realtek,rtd1315e-iso-gpio + - const: realtek,rtd-gpio + + reg: + items: + - description: GPIO controller registers + - description: GPIO interrupt registers + + interrupts: + items: + - description: Interrupt number of the assert GPIO interrupt, which is + triggered when there is a rising edge. + - description: Interrupt number of the deassert GPIO interrupt, which is + triggered when there is a falling edge. + + gpio-ranges: true + + gpio-controller: true + + "#gpio-cells": + const: 2 + +required: + - compatible + - reg + - interrupts + - gpio-ranges + - gpio-controller + - "#gpio-cells" + +additionalProperties: false + +examples: + - | + gpio@100 { + compatible = "realtek,rtd1319d-iso-gpio", "realtek,rtd-gpio"; + reg = <0x100 0x100>, + <0x000 0x0b0>; + interrupt-parent = <&iso_irq_mux>; + interrupts = <19>, <20>; + gpio-ranges = <&pinctrl 0 0 82>; + gpio-controller; + #gpio-cells = <2>; + }; -- 2.42.0