Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp1148377pxr; Mon, 11 Apr 2022 16:42:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+16dzWgu5DyW5uzpcnFsZM5kwpB1hA5fGYQPM8DyxG6hXdugqa6wcPTg9LHY0sQzlZ66Z X-Received: by 2002:a05:6402:1ac4:b0:41d:83d1:9da7 with SMTP id ba4-20020a0564021ac400b0041d83d19da7mr4893736edb.272.1649720562132; Mon, 11 Apr 2022 16:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649720562; cv=none; d=google.com; s=arc-20160816; b=bM2yaRXYrhU7Sh0qZKD0PoqQMuGiVIGCEu+wKXe04gT+n9HmH6Qim0EUvQdl4w1LdF fuC5iTn/ak+5VUHu95m4fQCQCIBlrdN7xyoCJ0dPkahb/qNz8L4h20pii9PgSgh+uJ3U 5kinWJGtImoGKOktP1A2Bxn2dAT63/caoKMRCQDEO2R1HgXcSGnTA+CyWBtMdNglDr33 3OYyGWj4zg0ecVZ8JHi5stpwdH+NfPv16VNiPxrOh0bSOGznlk3ZrT9cNoFG22m/fpSK f0aDgB4cVMxVeREgwyYu+6HKtFkZQiuXov1JnO9Y6oJStLYdH/HqU3ttoL84KdxE4REm ThIw== 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 :dkim-signature; bh=lsZorXZYXlyDl5x1CMnRj2fHFtwWcfNYaAsfL8MAYPk=; b=oJzO2oQuiyWToTCY+HXH9RgFkLIc2xsQ41yvUsJSkkdrwnzuIQcKVsVtIzDfDvuXy9 wkjZCsMDG3yOaSQZB5B6skHlxezI55ZYvOB2NX2mQp42izheB/ikVe/KZb0KVIDLMbjs veyZxWuVkXZiwdwoVOdOmXNocvaEl1oxRWsuleozoubGkykgTSou8SprLBc+Jtk6vaXx keJbXuOC7oiWU3LOELn592nLQWk88iPMcm93BJQaMRU60z7geQsmxs4Jk7AOaZBZy2E2 gg1DZXGC+4kWfLoObLx1q89ofFzNAluhvV0VryT3mqGn8hKypIwGX/GjSXGmj/wdNnD/ Y+Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b=4PvsXEwV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svanheule.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k6-20020a1709065fc600b006e8851c66e0si3832831ejv.245.2022.04.11.16.42.18; Mon, 11 Apr 2022 16:42:42 -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; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b=4PvsXEwV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svanheule.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230257AbiDIUHW (ORCPT + 99 others); Sat, 9 Apr 2022 16:07:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbiDIUHH (ORCPT ); Sat, 9 Apr 2022 16:07:07 -0400 X-Greylist: delayed 536 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 09 Apr 2022 13:04:59 PDT Received: from polaris.svanheule.net (polaris.svanheule.net [IPv6:2a00:c98:2060:a004:1::200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C18164968A for ; Sat, 9 Apr 2022 13:04:58 -0700 (PDT) Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eaf9:8401:9d41:ea18:e395:a08d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sander@svanheule.net) by polaris.svanheule.net (Postfix) with ESMTPSA id 8AD942C4656; Sat, 9 Apr 2022 21:56:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1649534161; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lsZorXZYXlyDl5x1CMnRj2fHFtwWcfNYaAsfL8MAYPk=; b=4PvsXEwV1luETKxiPwzE0idp+FXUs+RF4rwJQJA4LJz3ajSzf/cgngbcD0A6kRUyQuS6gO uzU8OkdacJ/qZwTLs6ZxP5q6HqqzoBr011SVToTdAnmpUWYWleG4zQjaMb83qdhXCCNnjo cu/oJajM7IKfeY7Y8EPlh2QUpnTV1F+gMQaYkr3OFes8ZOrYCwMQcT7mugHubThOLzRQtT nU0UDN5Z3Oxg7XxHAkaDVWv5Y7utdkb/3TfCojRtMYh/+aEJRsWM+/ykbxHBJBJLIcWJ7g wb7ybAwz1Cj+xV27Cjvegd9W/1KFi3rChOCwFT5PKgrRN6BDdrQElNA9Y1tutg== From: Sander Vanheule To: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Sander Vanheule , Bert Vermeulen , linux-kernel@vger.kernel.org Subject: [PATCH v1 4/6] gpio: realtek-otto: Add RTL930x support Date: Sat, 9 Apr 2022 21:55:49 +0200 Message-Id: <0b8a8a927d998bbdceac7638d812790604f4d810.1649533972.git.sander@svanheule.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The RTL930x SoC series has support for 24 GPIOs, with the port order reversed compared to RTL838x and RTL839x. The RTL930x series also has two CPUs (VPEs) and can distribute individual GPIO interrupts between them. Signed-off-by: Sander Vanheule --- drivers/gpio/gpio-realtek-otto.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpio/gpio-realtek-otto.c b/drivers/gpio/gpio-realtek-otto.c index dd1b7656d23a..3ddaa17accff 100644 --- a/drivers/gpio/gpio-realtek-otto.c +++ b/drivers/gpio/gpio-realtek-otto.c @@ -335,6 +335,10 @@ static const struct of_device_id realtek_gpio_of_match[] = { { .compatible = "realtek,rtl8390-gpio", }, + { + .compatible = "realtek,rtl9300-gpio", + .data = (void *)(GPIO_PORTS_REVERSED | GPIO_INTERRUPTS_PER_CPU) + }, {} }; MODULE_DEVICE_TABLE(of, realtek_gpio_of_match); -- 2.35.1