Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp649634rdb; Tue, 31 Oct 2023 19:59:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFL3iRL/5kAPanBi2McdIWZK133jIOR7a3fYWGOh2+21VbGJ8CqRScnRPRz2R2Q8493RAuc X-Received: by 2002:a17:903:2310:b0:1c9:d46e:d52d with SMTP id d16-20020a170903231000b001c9d46ed52dmr16977888plh.64.1698807590633; Tue, 31 Oct 2023 19:59:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698807590; cv=none; d=google.com; s=arc-20160816; b=Bj+u2JspEF/kTDpSwNtQqf1sxgrA/0TuF1MeTZ2VnxxdiiETKd8jlHVnT+puRxC6ja Wa9k+DLBWWceKFf0li/kxs7agJln9YBHH2oKhnH1uVudGtFdHm/mnRMVGfZ2oBH4oNTE 5TIbAtSgUGMasfkWKTziWPtdAP207UDTYjmKLUUh1NAuZJ8dSP3/h90iJPDkHdibTkaQ +JD442P/x5H721XdDa1hAYFLcepq5a4F/VND/I5xYV7kH/wFsjZkALCPBALwNZrNJ48d fm64yGsn2wvInG9Gju+V6WYrqaGWZLGf0VWsADtNUwivL7wMEMAlk4LEpKCZbbVKvI7P l0xw== 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=IFZaoqHlETzP40D9w0vPbwoflsFT5OfFaR2pnOopAek=; fh=4x4CVoEVJ/qmUij6PguRWMnP5yWSWHxwDunzVsvJyrM=; b=FUr1NPmnlD1hJzSMsGXueHAQHrgHiYF6eao1NwsAog5Yss9PzmqD5YVOXNsm6vkj4y vbCNxEyIPoxjJbHfs9b09f01mtVWmjAdFKX3TaA8cIu43N0Mm+s64Htxl5cDezNhKXuo ZUyPM45R0kt+3XniFT9p21YK3ymlk1R0o705pFFHBTTKwembGPuCqysmd7ZaZcuq5P/M 6Tk/xv5Xgbbi1f2ECCOUidUf8bSNdQQN9k9T8O0OezEyXD+U5nHMVSujgjIJnNIsrlGR DSstp4Xq7XS4Ts3JGpPdM5H0yDm0EVyJsatnZxaLb36dO19BKzyk6yu+ObVX7mlqoZac HrhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id u12-20020a170902e5cc00b001cc49532e84si2074944plf.634.2023.10.31.19.59.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 19:59:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id ED7B780BB535; Tue, 31 Oct 2023 19:59:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376300AbjKAC6q (ORCPT + 99 others); Tue, 31 Oct 2023 22:58:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376749AbjKAC6o (ORCPT ); Tue, 31 Oct 2023 22:58:44 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 643C0F4; Tue, 31 Oct 2023 19:58:38 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3A12wQnkD944736, 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.93/5.92) with ESMTPS id 3A12wQnkD944736 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 1 Nov 2023 10:58:26 +0800 Received: from RTEXMBS06.realtek.com.tw (172.21.6.99) 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; Wed, 1 Nov 2023 10:58:25 +0800 Received: from RTEXH36505.realtek.com.tw (172.21.6.25) by RTEXMBS06.realtek.com.tw (172.21.6.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Wed, 1 Nov 2023 10:58:23 +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; Wed, 1 Nov 2023 10:58:23 +0800 From: Tzuyi Chang To: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , TY Chang Subject: [PATCH 2/2] dt-bindings: gpio: realtek: Add realtek,rtd-gpio bindings Date: Wed, 1 Nov 2023 10:58:02 +0800 Message-ID: <20231101025802.3744-3-tychang@realtek.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231101025802.3744-1-tychang@realtek.com> References: <20231101025802.3744-1-tychang@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-KSE-ServerInfo: RTEXMBS06.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: license violation X-KSE-Antivirus-Attachment-Filter-Interceptor-Info: license violation 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, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Tue, 31 Oct 2023 19:59:46 -0700 (PDT) This patch adds the device tree bindings for the Realtek DHC RTD SoCs GPIO controllers. Signed-off-by: Tzuyi Chang --- .../bindings/gpio/realtek,rtd-gpio.yaml | 56 +++++++++++++++++++ 1 file changed, 56 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..6cab7ec50c88 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/realtek,rtd-gpio.yaml @@ -0,0 +1,56 @@ +# 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: + - TY Chang + +properties: + compatible: + enum: + - realtek,rtd-gpio + - realtek,rtd1295-misc-gpio + - realtek,rtd1295-iso-gpio + - realtek,rtd1395-iso-gpio + - realtek,rtd1619-iso-gpio + + reg: + maxItems: 2 + + interrupts: + maxItems: 2 + + 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,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