Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5509109ybi; Sun, 7 Jul 2019 06:32:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzX6EOqmQjjfd20a/6GwZIj+GIK3tgEJBsnpwOoy5HDUpsR7vTXc2njlGDyTi16yczZynUz X-Received: by 2002:a17:902:8696:: with SMTP id g22mr17134140plo.249.1562506379144; Sun, 07 Jul 2019 06:32:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562506379; cv=none; d=google.com; s=arc-20160816; b=QonxvUflfaHypyMBgbsrnQkFO4RPvqXMrRREuM1O8gfucPm5HMhYki32/+0UmiwUoE upIg9XHi3VdaJZdQfFIfN9O4QefzgI30XvdjZ62BECn9k4Ql7sz7Cc5AzYPsevKfIQna 39loVPAXVXcdR8ScDj9jMkvoia00b/I2txrWgqu+dTjvsgdgPRmxGlaPgKyG5jswxNUI 6M8ADFnOA8Ll7JyW3jdtd6VobNhOfCmvvkGzoOOQhsM1++cXUKEqQIh6y8cPhPRLOMsQ FlvEyD+8jW3uYFKKlQ2bVH7iWzgcuKJCDM8+V/EBZRzKhbHnjjlJRXMztVvoTD6FkowZ Mwmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=maw3v3SsxZvP2hs3eSVhueNHJP3NzyEzBgv+qOl/tFw=; b=ROR3d1M+Vnco2lyuFhNT8Tt1LNyMAf4LFG/aND8rfDVvhUEqs2wAUNc+An/QXMMg2G CoJAv9wFdMltxC2Y/Njmm8KwzeZzEjK53atvTCZZ71LFLVAOsoacyfLdldBpYqbRdw4m 1ZOdcxJzHnAz58lN3oFSmL5Y4hLVJ4D4R2e5NGrN7juV+sPHNIs4rCZvDCYCTN7Uzwhq eCKwoZvQ+8japu6YYYezQzBUzivi/yIWpCbNKhLxQuwIgDRCiCbIh+49DTFKO29TTcGh 98SgNJ7IQIpSeWc5Smywg7PzFx9f3GQ6jPf5reKdR4aEtZnqk8GJ+Sora4AI02o6Rjr0 Rv0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FmLySaHS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g14si15336742pgh.98.2019.07.07.06.32.43; Sun, 07 Jul 2019 06:32:59 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FmLySaHS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726779AbfGGNWe (ORCPT + 99 others); Sun, 7 Jul 2019 09:22:34 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:37983 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725928AbfGGNWe (ORCPT ); Sun, 7 Jul 2019 09:22:34 -0400 Received: by mail-wm1-f65.google.com with SMTP id s15so13819736wmj.3; Sun, 07 Jul 2019 06:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=maw3v3SsxZvP2hs3eSVhueNHJP3NzyEzBgv+qOl/tFw=; b=FmLySaHSR8hDhMp0k/g/JHe8uE5E02ORynW/W9hbG4ZNmjzSpI6GCDwR0qaMThvQkl gvxZ8Tj0dmUyrGiE84lJFCOm6s7uIE4G5kSS6cKT7dr9Ytlm7zX/M5Rb5O5/qFRZpLEY /aX6ARcf3utafuCjDjbLK26GyDPnAY4t9jTYBLk0MEm0niGikRtm81Ve2Zcj6WfXKRyG w3oOHtYzlaE3SR3kbZdgshYvec0WFqNZrjQa/FjwCeJG1VZ3ro3X7rDMZN2VMcX5WCEV masYn9Zf7f6QzIwHIOO0Kl5hZyx42Cj2R29+xCWl9h6YJZXPop7mEANLG5Jdnk6P3bEW H6DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=maw3v3SsxZvP2hs3eSVhueNHJP3NzyEzBgv+qOl/tFw=; b=E/jvsrJkbM+H0kXs2L6YLz4k3Rz3a9Pm8mUBTm8i82MaY4YzFy+c8p3cvIocxtpmv3 k1d1+U2Lfp3z1lB5tqvj1xWLLjQf9LLZCSzhJTcFA0FXezrXZFjL8hP53ZX3u0gf/SQL 3/KI56dFDb/Zk+os6yFrmJlzfH4x0jgM2kYnr+mmZjUx64nrNrDbSP4QF5+yBggcDIhi r2jrrk/9Mf9XH/rnc74CuHF1TSY/qYj6DUKF1apc24wqDPPtK4nDJdkTo3G3j1RGepWW gqixUATVkyYlSQYmiCoB5Xt8J+4Tof0ERLtThdDPox30pIg94Q01sk+hTmKGehNXnk3u o6BQ== X-Gm-Message-State: APjAAAUcR1m8mS37Fh2LB32OVtfrqXHnqD666F0iZez5WmoYbfiFZAFo sluTvDhJVR+6bsAwozV8skcR21tNkho= X-Received: by 2002:a1c:3cc4:: with SMTP id j187mr11579030wma.36.1562505752416; Sun, 07 Jul 2019 06:22:32 -0700 (PDT) Received: from arks.localdomain (179.red-83-58-138.dynamicip.rima-tde.net. [83.58.138.179]) by smtp.gmail.com with ESMTPSA id a12sm13652465wrr.70.2019.07.07.06.22.30 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 07 Jul 2019 06:22:31 -0700 (PDT) Date: Sun, 7 Jul 2019 15:22:23 +0200 From: Aleix Roca Nonell To: Andreas =?utf-8?Q?F=C3=A4rber?= , Rob Herring , Mark Rutland , Thomas Gleixner , Jason Cooper , Marc Zyngier Cc: Matthias Brugger , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] Add Banana Pi BPI-W2 basic support Message-ID: <20190707132223.GA13340@arks.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series adds minimum support to boot a Banana Pi BPI-W2. This board serial interface is muxed through a custom Realtek driver not currently in mainline. Without the driver, it is only possible to initialize a bootconsole, but init cannot be run. The datasheet of the board's RTD1296 SoC is not publicly available and the procedure to interface the interrupt controller registers is not completely known yet, however, it works. This patch is based on the official BPI-W2 downstream kernel driver [1] and the last attempt of Andreas Färber [2] to support such driver. Please, note that the board still requires a slightly modified version of the downstreamed Realtek U-Boot to launch the Linux Kernel, which essentially removes the need for some dts nodes not included in this patch and reallocates u-boot before loading the kernel to avoid overriding U-Boot code. [1] - https://github.com/BPI-SINOVOIP/BPI-W2-bsp [2] - https://patchwork.kernel.org/patch/10011891 Aleix Roca Nonell (6): dt-bindings: interrupt-controller: Document RTD129x irqchip: Add Realtek RTD129x intc driver arm64: dts: realtek: Move rtd1295 memreserve areas from the generic rtd129x to its specific dtsi arm64: dts: realtek: Add realtek intc to RTD129x dt-bindings: arm: Document RTD1296 arm64: dts: realtek: Add bpi-w2 board support and its RTD1296 SoC .../devicetree/bindings/arm/realtek.txt | 13 + .../realtek,rtd129x-intc.txt | 24 ++ arch/arm64/boot/dts/realtek/Makefile | 1 + arch/arm64/boot/dts/realtek/rtd1295.dtsi | 3 + .../dts/realtek/rtd1296-bananapi-bpi-w2.dts | 27 ++ arch/arm64/boot/dts/realtek/rtd1296.dtsi | 77 ++++ arch/arm64/boot/dts/realtek/rtd129x.dtsi | 12 +- drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-rtd129x.c | 371 ++++++++++++++++++ 9 files changed, 527 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/realtek,rtd129x-intc.txt create mode 100644 arch/arm64/boot/dts/realtek/rtd1296-bananapi-bpi-w2.dts create mode 100644 arch/arm64/boot/dts/realtek/rtd1296.dtsi create mode 100644 drivers/irqchip/irq-rtd129x.c -- 2.21.0