Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2914915pxb; Sun, 15 Nov 2020 23:59:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyr2UpBSZXCiFIRLQe2St6a4GOs0j8DPfxuO5eubaf8R2SgheCNlCcHQl2A5UvpBJ44ZaAX X-Received: by 2002:a05:6402:14c6:: with SMTP id f6mr16303174edx.359.1605513567678; Sun, 15 Nov 2020 23:59:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605513567; cv=none; d=google.com; s=arc-20160816; b=s/5cdl0m9b5xJYs3snETSHf3BRcpNtxPWRKDlNKIzvpY8TBbaijmoLMqPp3b9TCkH3 AdrJPVXJpyEkwUrH0/NRfAHSKP9lJ5O8bGLfGom0YDXS1iDd2y1CviirFt9SwyNixqQb 94F5kXEg+N391hNOhL3xCF0ShyWDUBcjA4RCthl+j2ajuKt/QrU+fm4p50zfQgLGyOO9 kkm89pmTrVnrSvb0LXW5eVQtZ9YjSaWjyIz7CVFW09+QsKjvw62+aUSy4J7zQzTtqGoG 0mKEDYxXpvgoUwijIwW+WWxO7keXJiexhzMDnqzy1LcsXi62Ee4gPMHkHyS1YZoBLj9C IBrg== 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=7R/6/HLGw8f+utohrRTfpBq/pCK5ypEZ+xvHMx4Vl0I=; b=MM7zeTRvgrRZocc3rPZ5vfvMvc4jdnIaeBucpMVR6+m/aah5L0o07zEuXlAOJNI0vh WEkL3yrffTHGWrXijRIPE3BwBkrc75Pbbd/4Twvn/4mwwlfyNc+lIKDGQGpjoIrRrCcT Vy6wYt8KubIvMOW4Tnxu/MJ9c5ZExgPd5LotHxT5yVeoQBYgDOCU4ZnOBE4IT67KKIAd A2SYXGUNDdqXRBLtsnQJNf4w+gw92wELHcMXqnRCUJcz0pD58qSUwqdSGaxxs4Od3g0h FQ/HvLvszyTJakFiR5VM5NifBW7KwkN2P1p5zs9O8IiTNWpFJ6V0YyC3zkoQmGrZq1vZ ihxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Qbn9UBRP; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e21si12083854edr.26.2020.11.15.23.59.04; Sun, 15 Nov 2020 23:59:27 -0800 (PST) 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=@kernel.org header.s=default header.b=Qbn9UBRP; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727995AbgKPHyw (ORCPT + 99 others); Mon, 16 Nov 2020 02:54:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:48796 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726524AbgKPHyv (ORCPT ); Mon, 16 Nov 2020 02:54:51 -0500 Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9422C2225E; Mon, 16 Nov 2020 07:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605513290; bh=czyoJqy67io6xDK6xDxmuvRYsZ4+i8k33nA8cdA7Agw=; h=From:To:Cc:Subject:Date:From; b=Qbn9UBRPBKJn5/ziEhFz/IuKSor6U/KqTWJqrzzHzgnWWFZHVytmTflEDNoSrcAHB xkG1fq/ZxlerNDV6Z4APKfT3ZSsZkRk7RRzCrKxmjzWrvLszt2rFCWl2TN1H68GO88 jMjNOmeBzYevYbBqshcPGNXSPbbOGE9Fc4t/mZX8= Received: by wens.tw (Postfix, from userid 1000) id 7A1ED5FD44; Mon, 16 Nov 2020 15:54:47 +0800 (CST) From: Chen-Yu Tsai To: Shawn Lin , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Heiko Stuebner Cc: Chen-Yu Tsai , Robin Murphy , Johan Jonker , linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 0/4] arm64: rockchip: Fix PCIe ep-gpios requirement and Add Nanopi M4B Date: Mon, 16 Nov 2020 15:52:11 +0800 Message-Id: <20201116075215.15303-1-wens@kernel.org> X-Mailer: git-send-email 2.29.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen-Yu Tsai Hi everyone, This series mainly adds support for the new Nanopi M4B, which is a newer variant of the Nanopi M4. The differences against the original Nanopi M4 that are common with the other M4V2 revision include: - microphone header removed - power button added - recovery button added Additional changes specific to the M4B: - USB 3.0 hub removed; board now has 2x USB 3.0 type-A ports and 2x USB 2.0 ports - ADB toggle switch added; this changes the top USB 3.0 host port to a peripheral port - Type-C port no longer supports data or PD - WiFi/Bluetooth combo chip switched to AP6256, which supports BT 5.0 but only 1T1R (down from 2T2R) for WiFi While working on this, I found that for the M4 family, the PCIe reset pin (from the M.2 expansion board) was not wired to the SoC. Only the NanoPC T4 has this wired. This ended up in patches 1 and 3. Patch 1 makes ep_gpio in the Rockchip PCIe driver optional. This property is optional in the DT binding, so this just makes the driver adhere to the binding. Patch 2 adds a new compatible string for the new board. Patch 3 moves the ep-gpios property of the pcie controller from the common nanopi4.dtsi file to the nanopc-t4.dts file. Patch 4 adds a new device tree file for the new board. It includes the original device tree for the M4, and then lists the differences. Given that patch 3 would make PCIe unusable without patch 1, I suggest merging patch 1 through the PCI tree as a fix for 5.10, and the rest for 5.11 through the Rockchip tree. Please have a look. The changes are mostly trivial. Regards ChenYu Chen-Yu Tsai (4): PCI: rockchip: make ep_gpio optional dt-bindings: arm: rockchip: Add FriendlyARM NanoPi M4B arm64: dts: rockchip: nanopi4: Move ep-gpios property to nanopc-t4 arm64: dts: rockchip: rk3399: Add NanoPi M4B .../devicetree/bindings/arm/rockchip.yaml | 1 + arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3399-nanopc-t4.dts | 1 + .../boot/dts/rockchip/rk3399-nanopi-m4b.dts | 52 +++++++++++++++++++ .../boot/dts/rockchip/rk3399-nanopi4.dtsi | 1 - drivers/pci/controller/pcie-rockchip.c | 2 +- 6 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-nanopi-m4b.dts -- 2.29.1