From patchwork Thu Aug 17 10:11:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 110309 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1982564qge; Thu, 17 Aug 2017 03:13:54 -0700 (PDT) X-Received: by 10.84.196.100 with SMTP id k91mr5207726pld.262.1502964834136; Thu, 17 Aug 2017 03:13:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502964834; cv=none; d=google.com; s=arc-20160816; b=mloFcwOiRHz2ha9XLE0QVDIuW+3QpDKn3/Xns6mq+36tdS47+Ks0qLIV4CAHzjEI6p EN5JWBI8d+ZSAJWjwguMCFVVDrg+8qkjohPUcnTJKxhc5z+HXRsiBCq8HasmQ3g1igXM AaHY45T8h0lQqfwLUpQtUiKyAdoxArE6qgP2SVhcbFdwdsXYoCQJeJy3p+c1EYWxIg+l YWAQRXdklPEn5istlFJct9T4qrYp+e7yT8zfdMFOtFxrs0RZ1vlK9Ztgdp5Hi6Z5K2wD 2sN+pcJkWNlO2zjq/xTejLzQD8LHejQULjvh/zxpFotN2R6SEMtQThKnhcm2I/gdnSry HTig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=uLn+V8l/v+fju/XG45VrDQLHjVglvCl0V1CeMrw9fJM=; b=mcwLU+OvufhCmnW2unaGshYMpwYLGlIiRkyZWgfLwWaNEL9FZGon/Iqx6kuIi7Yrj9 fa9wT+buL3jnzqvpHF3AS3jRuEPk0TVlJzGlAiYXdyPtNB2GfR+qRnaC56l6EhxAVz1c JoC8OQhBNQLsUf9R1C9fx3FyuMVfzFBbu6tkLh8G2hIG+FUyM8cxHoTEyLTHTRYme10c 6xdxOAOpuAcvt3X4BW+IvzxZfWPVaKaqcK2n3qKdWqrWOIGhgImjxzOar415LoeEJjoo ue4bMunLqSK/pjAt/WvOqSu52oTKNt24xKgOe7Qc/UVbDWSNw5ZRqR69orJEAhrMG9Md sxuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si1922246pff.340.2017.08.17.03.13.53; Thu, 17 Aug 2017 03:13:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752326AbdHQKNc (ORCPT + 26 others); Thu, 17 Aug 2017 06:13:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:42642 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752275AbdHQKLt (ORCPT ); Thu, 17 Aug 2017 06:11:49 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id A853BAF7A; Thu, 17 Aug 2017 10:11:47 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: Thomas Gleixner , Jason Cooper , Marc Zyngier , linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Roc He , =?utf-8?b?6JKL?= =?utf-8?b?5Li955C0?= , =?utf-8?q?Andreas_F=C3=A4rber?= , devicetree@vger.kernel.org Subject: [RFC 0/3] arm64: Realtek RTD1295 IRQ mux Date: Thu, 17 Aug 2017 12:11:37 +0200 Message-Id: <20170817101140.32000-1-afaerber@suse.de> X-Mailer: git-send-email 2.12.3 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This series adds two IRQ muxes for the Realtek RTD1295 SoC. Based on the reset controller series. There being no public source code for RTD1295, the implementation is based on register offsets seen in the DT, split up into two separate nodes. A workaround for hanging timer initialization was taken from QNAP's rtk119x GPL code dump and is not yet fully understood; that code also contains a quirk for i2c3 in the iso mux that is not yet verified to be needed on RTD1295, for lack of i2c driver, assuming a linear intr_status/intr_en mapping for now. My convention here is to use a compatible string for the model that I've tested (RTD1295) but a file name of rtd119x to indicate its RTD1195 heritage. More experimental patches at: https://github.com/afaerber/linux/commits/rtd1295-next Have a lot of fun! Cheers, Andreas Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Roc He Cc: 蒋丽琴 Cc: devicetree@vger.kernel.org Andreas Färber (3): dt-bindings: interrupt-controller: Add Realtek RTD1295 arm64: dts: realtek: Add irq mux to RTD1295 irqchip: Add Realtek RTD1295 mux driver .../interrupt-controller/realtek,rtd119x-mux.txt | 28 +++ arch/arm64/boot/dts/realtek/rtd1295.dtsi | 22 +++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-rtd119x-mux.c | 201 +++++++++++++++++++++ 4 files changed, 252 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/realtek,rtd119x-mux.txt create mode 100644 drivers/irqchip/irq-rtd119x-mux.c -- 2.12.3