Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3116629pxf; Mon, 15 Mar 2021 01:35:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwihiud1IYR1nRfhp3v+xPnUGE/fOwZQWtKD56O4PIW4oUh9d0FlVZOwQztkwt768ZHmdIF X-Received: by 2002:a05:6402:d4:: with SMTP id i20mr28889624edu.147.1615797354571; Mon, 15 Mar 2021 01:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615797354; cv=none; d=google.com; s=arc-20160816; b=pNmAiE8Mo9NRrctepgzZME9zeOHnaCJfUxslkNHCzEHznvA0BefMaB6iC7dXr2UCqF o1zlWS0oacdaiikhJ2u216OpuYA3ybY/9XcxQhPLGt7b4TSWEnEIKN3V+JpYOylqAxKD CWTs1bCSh1d0EMClzAKHDVLYfu7imy3mdOVabRA5Rxht4OwJRTEE5spgwr8Eukb6FZqS t3DvWLEQxSZB9jBp3HbBJKOeeq18ftw9cHibeRdq/8F8gpJpKuJD91sMOEPB4Z06zJC8 GYFTtzVA1p7w1qSmfKkK722+KM9gsiZpf1JLNYYEjqdgvlE0u7X6s92+xAEtaKbODiat AN2A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=FZ56iwiiZoD3tUjDSEOTnYxVXn0KyETY3D2NjRBz+jE=; b=0zMp0l1yq93KT5JBU+a5UfwGluKY2Qc4PWyPQtNDa1EkHm7yk3uwPtST6FsOpIKn3X aYL51nMUblTRF4PzC+D/C51TKEfQmnbKsYjv5EXYyLWc6PuIx0XNXO1eyiCkQ3FWPE8q wHvVTNFGKjDINzGygwwpoYWTYaMpkM5/mZrX4gNqe6a9/z2AVdPkqSmBu5FMCkTk73Np kBakMIvMym0FM0Bejkr0InJg6kWRuHQgpHX557Y+zTKiYzF5ht5HBR/3af6RdOjtTxTm m8SsIAYFj+oES4Ho3Gfoq4W7VqsACeqXuOZADjPhzXPsrnYT0KxJCf/kuO326c4014Hz X9/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b=mMYMO2EY; 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=NONE dis=NONE) header.from=svanheule.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kk22si10468396ejc.98.2021.03.15.01.35.32; Mon, 15 Mar 2021 01:35:54 -0700 (PDT) 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=@svanheule.net header.s=mail1707 header.b=mMYMO2EY; 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=NONE dis=NONE) header.from=svanheule.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229585AbhCOIeJ (ORCPT + 99 others); Mon, 15 Mar 2021 04:34:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbhCOIdt (ORCPT ); Mon, 15 Mar 2021 04:33:49 -0400 Received: from polaris.svanheule.net (polaris.svanheule.net [IPv6:2a00:c98:2060:a004:1::200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 008C1C061574 for ; Mon, 15 Mar 2021 01:33:48 -0700 (PDT) Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eaff:9701:b4db:50a7:6f83:328f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: sander@svanheule.net) by polaris.svanheule.net (Postfix) with ESMTPSA id 8FD461DDFE8; Mon, 15 Mar 2021 09:25:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1615796719; 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; bh=FZ56iwiiZoD3tUjDSEOTnYxVXn0KyETY3D2NjRBz+jE=; b=mMYMO2EYhs5QLe5fJKtfgbmJHf/G196OZ7SK1iGzW0Fba1AT+0oQ5XqgB6OZn36/qICzZG hyb3RTfwV5nRLfHbOzJpa1r4iVwmasJRr4kU5C9f4D6x3HTUE/gMhI3fAckgxNdvrjzh78 fvM2P6e9/Vk1aLe9ErmnHFu0PFidMCdnObwuRgTBtm+2UA+u1SKFBhZ9Z27P0FQuJpv3vv 8fuMOju/0zjiWfoUFt3dYph50wYmFLLS7H+ob9LSTXwPXrdFvthoVnZb8Yom6lqdhC3BeH tzNh8fGA+dMMJc1VFIQD3ET2/SK56fkE5HUA/cLTjj8SB7s7EXzNvVbeaKhHJA== From: Sander Vanheule To: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , Thomas Gleixner , Marc Zyngier , linux-kernel@vger.kernel.org, Sander Vanheule , Bert Vermeulen Subject: [PATCH 0/2] Add Realtek Otto GPIO support Date: Mon, 15 Mar 2021 09:23:38 +0100 Message-Id: <20210315082339.9787-1-sander@svanheule.net> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the GPIO controller employed by Realtek in multiple series of MIPS SoCs. These include the supported RTL838x and RTL839x series. The register layout also matches the one found in GPIO controllers of other (Lexra-based) SoCs such as RTL8196E, RTL8197D, and RTL8197F. For the platform name 'otto', I am not aware of any official resources as to what hardware this specifically applies to. However, in all of the GPL archives we've received, from vendors using compatible SoCs in their design, the platform under the MIPS architecture is referred to by this name. The GPIO ports have been tested on a Zyxel GS1900-8 (RTL8380M), and Zyxel GS1900-48 (RTL8393M). Furthermore, the GPIO ports and interrupt controller have been tested on a Netgear GS110TPPv1 (RTL8381M). Sander Vanheule (2): dt-bindings: gpio: Binding for Realtek Otto GPIO gpio: Add Realtek Otto GPIO support .../bindings/gpio/gpio-realtek-otto.yaml | 80 +++++ drivers/gpio/Kconfig | 12 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-realtek-otto.c | 320 ++++++++++++++++++ 4 files changed, 413 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-realtek-otto.yaml create mode 100644 drivers/gpio/gpio-realtek-otto.c -- 2.30.2