Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp1148080pxr; Mon, 11 Apr 2022 16:42:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzi7dPsIlnzbJiW+ji3x/MouImRyo8nRi8F5ed6OckiT+gvpLmiGZkH/REaWqhpzJTDDhLR X-Received: by 2002:a05:6a00:996:b0:505:b6d2:abc8 with SMTP id u22-20020a056a00099600b00505b6d2abc8mr9113954pfg.11.1649720529348; Mon, 11 Apr 2022 16:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649720529; cv=none; d=google.com; s=arc-20160816; b=U76KZiKCeG9oLCNt2E8ach1HnhOJF394PZZkTDciQkz4rc00Kll4vsC46sHn/U1nAN bOWlF659clxZQ2iRlgSOiVRy56Ji+vJc3iCe4bNPc8WSeauSPIgRIb4mPq7ffzgIXb1D RJHzqzFwrPOK+LVIu05SLE2wgSIJGAXzFg5GBsJfjhhGLETWNHsXQlxOj8SotFW3u+Lc dZfRntV69XTl7QgQqpP3xLP3wMKIBXh+jNKsomNSSS6SbZSE2ke5wgscwJa/h+oxJ8JU v16aAwpGBUO3pCtf/WVkqVe1D1BRhzkM7aoI8ify0TJuCnn0i4Anm8uF+Ra5AJZn6Nwx hryw== 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=fMt4I03fckGtsX2/5HHKBEwvVYqJZXnkDuuqWm27wEs=; b=megaNiRGdkFgXLH1nQxPz3OzUEFmHUOC1L9/vzdc24pbxbY1QwISkEF7PKPj8jV1Sr FYjELI8aiCJf0rBcMMi73WGusMMDncgrjxVUknJILm8tIGhkl/wBQi5r6oQp+4uo0IPw u6YSO2a1iMpkZbu6mFaansXi6JA1BLZZySURxedKLOXGblBzx5AuzcA2/hmSrpnVlF3A u7zdPgQZOvDLrgDnY5/jRAxIz9Ert3dgKyhxnzhXWtNR7LANNKSTP43zVrZrdT4bPIhI 2v/UkFDkuL9jYmXRoFdeLaYxUBx9UctYKbZo6PxAaYR8P+dZWk3IUPymOtyQ2xF/ccgT 2MsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b=OSXfGRy2; 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 u12-20020a63600c000000b0039d1ad915d3si48719pgb.17.2022.04.11.16.41.55; Mon, 11 Apr 2022 16:42:09 -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=OSXfGRy2; 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 S230224AbiDIUHN (ORCPT + 99 others); Sat, 9 Apr 2022 16:07:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbiDIUHH (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:58 PDT Received: from polaris.svanheule.net (polaris.svanheule.net [84.16.241.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4894347ACF for ; Sat, 9 Apr 2022 13:04:57 -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 B797F2C4651; Sat, 9 Apr 2022 21:55:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1649534159; 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=fMt4I03fckGtsX2/5HHKBEwvVYqJZXnkDuuqWm27wEs=; b=OSXfGRy2N5kkPfOKdItrH1TEeI6lv1xTKZj/D08SA2jliplPYh112/KBxzMWri0inMCTQy rGptRAEXfhyvBzxbAXrYeGwN3VaTtXvNwVFXtIPR1BpM9c9jiP+kslZ8BC7gGJODaznmva twjdB2NeTjiMtW91a5batGmXg6IYDYFVSEINquAG8yaQQZcFQITv046odE5SaxeHw+Dhhj BMipFs3fFoFb0rqf84S38R9JIdhmLt+TSUf6cumAF6tl4z0Mk33bF5WvKinLcKiAZGFbXk QW/jVZOR7opkme1M8xkDAbFLliI6UBn7QgTNqLQhzeaAurdrJofdMfV0DCHa/A== 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 0/6] Support for RTL930x/RTL931x GPIOs Date: Sat, 9 Apr 2022 21:55:45 +0200 Message-Id: X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 This patch series adds support for the GPIO controllers as found on the RTL930x and RTL931x SoC families of MIPS CPUs, used in managed NBase-T ethernet switches. The RTL931x's GPIO controller behaves the same as the one in the older RTL838x and RTL839x series. This controller is trivially supported. The RTL930x's controller has a reversed port order, and supports CPU affinity settings for individual GPIO line IRQs, thus requiring two additional changes to implement these features. Sander Vanheule (6): dt-bindings: gpio: realtek-otto: Add rtl9300 compatible gpio: realtek-otto: Support reversed port layouts gpio: realtek-otto: Support per-cpu interrupts gpio: realtek-otto: Add RTL930x support dt-bindings: gpio: realtek-otto: Add rtl9310 compatible gpio: realtek-otto: Add RTL931x support .../bindings/gpio/realtek,otto-gpio.yaml | 34 ++++- drivers/gpio/gpio-realtek-otto.c | 137 +++++++++++++++++- 2 files changed, 164 insertions(+), 7 deletions(-) -- 2.35.1