From patchwork Wed Jul 22 19:09:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11679125 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4972C913 for ; Wed, 22 Jul 2020 19:10:08 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2010A20781 for ; Wed, 22 Jul 2020 19:10:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Un3pmlRH"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="d9mR8BMy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2010A20781 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=kcZ3Mk833ccmue2rx7RizPElgvvXcenYgW4Irx410Kg=; b=Un3pmlRHeN1fNKhvVWgqemtcBv jPglaDCazC+9giSeD6QRHzLcn4sdNvaYgoyZhcUpXGCY05z4g7cTbkm7hLdaEtUaBaw0JStfaYPhH mSWSzW+ONUtbV/uMObgvqvHsg2cwgMymv51GMKdqfYl3qOPIpWpMqR1maDY0lbsHwlYivyY7Q5gpc C/i9e/Yos7On4lKKp278Z6zR5Bfen6TEU1808SwlFIVuE54WlJs7jB5VEC0jJBc7yXXrzHO6PkGqx j7URy4RW9d/n1waDNxVPugbxqR/cKwdtdBEMmnXWgfsY1pTnguTGynX944YQiPWnXyRdSNHX1hjVd PxXlxSCA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyK7y-000646-Ra; Wed, 22 Jul 2020 19:10:06 +0000 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyK7u-00062Y-DG for linux-rockchip@lists.infradead.org; Wed, 22 Jul 2020 19:10:03 +0000 Received: by mail-pg1-x52d.google.com with SMTP id n5so1794962pgf.7 for ; Wed, 22 Jul 2020 12:10:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WuJDZTXppS2/lPeSSOe4OB8nx8zh/tKr/I+u+TYREG8=; b=d9mR8BMydxSpnuTpa5NiN2g2YR6AZTKppO1ZncRPaTF0Dqb5ij3brR5b/zkgEmcEZO mKMiEAmsmtFI/zoTCazyxL1JObJA+pi78LzGSLd0SPbb9/Kd1pJ3aahjc8+SIxB2GHgz QKD2YNfZ+rQzSyGvAof0fxNrygIIwzQkum7aA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WuJDZTXppS2/lPeSSOe4OB8nx8zh/tKr/I+u+TYREG8=; b=fsU8FayHNeGf2HqqnK3ErqWS3HTxZq/GNDiqoB5OZlqJU/e98BMTu1HYwEK18NbSTi WkSyl1yRULdFYoWdKM0kWZcRSgjLgs0s3iUU7viiwgxd6Wg1QF1YanMEPD4p5URRmp8Q Mix+3rjDbsV9oZH3h5Eu1643B1HF26gzRQ1DxUTl8/UIkdrMbYKnJSqWLUX/MmbHSU59 5Bc9RrK95WVpnl91yaAlrwI/gBVcYDrsjezReHGdb6uLf28F7FW8+6jywTTBtMLAst6p nuu491UVIn3DRrb+5a55Rllg7qGql20d+iMYoRYyJeUBbA6b33g9fIyGDqObxKvHR5Nt Gc0Q== X-Gm-Message-State: AOAM5339vz5qD9y1Pc5WNT/MmyGKJP4TuRN0WF1Lx//VD+czj5CD4KCM GOI5NTyKlynqL62woMtdx+vvHQ== X-Google-Smtp-Source: ABdhPJzos6BQqkw3PXj9Jq/Sl4exM0k2aunKwHLCox4HWTC6kXg+R+E6M/FPY0hogr7QFJTQUJPq4g== X-Received: by 2002:aa7:91cd:: with SMTP id z13mr995868pfa.133.1595445000304; Wed, 22 Jul 2020 12:10:00 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:fda7:aaf8:9d1a:6749]) by smtp.gmail.com with ESMTPSA id n137sm342398pfd.194.2020.07.22.12.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2020 12:09:59 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Subject: [PATCH v2 1/6] dt-bindings: arm: rockchip: Update ROCKPi 4 with 4A binding Date: Thu, 23 Jul 2020 00:39:44 +0530 Message-Id: <20200722190949.215656-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200722_151002_507184_F5EC7D22 X-CRM114-Status: UNSURE ( 8.58 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:52d listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jagan Teki , Suniel Mahesh , Michael Trimarchi , linux-amarula , linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org ROCKPi 4 has 3 variants of hardware platforms called ROCKPi 4A, 4B, and 4C. - ROCKPi 4A has no Wif/BT. - ROCKPi 4B has AP6256 Wifi/BT, PoE. - ROCKPi 4C has AP6256 Wifi/BT, PoE, miniDP, USB Host enabled GPIO pin change compared to 4B, 4C So, update the existing ROCKPi 4 with ROCKPi 4A binding. Signed-off-by: Jagan Teki --- Changes for v2: - new patch Documentation/devicetree/bindings/arm/rockchip.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml index 41f919de1ad4..36057c9e4b83 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -442,9 +442,10 @@ properties: - const: radxa,rock - const: rockchip,rk3188 - - description: Radxa ROCK Pi 4 + - description: Radxa ROCK Pi 4A items: - const: radxa,rockpi4 + - const: radxa,rockpi4a - const: rockchip,rk3399 - description: Radxa ROCK Pi N8 From patchwork Wed Jul 22 19:09:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11679127 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6330713B1 for ; Wed, 22 Jul 2020 19:10:19 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3BB6B2065D for ; Wed, 22 Jul 2020 19:10:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DCW2NhqC"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="hsLEdP4d" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3BB6B2065D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PqMUJbqsDmkt+Y90xFbUh7YnaHDPCUGk4v731m/Py70=; b=DCW2NhqCSOPqENZHlbcddvNaB TJN0OcSBOys2VsGSgFfRqEhmOdkhPnIOtpEfuWqURSV/JH/QjVe91RffVaOKEBi7zMILCs0tUtfl7 y0E55ptKQxYnAGiWqR4/bUesg6LKTnFyr1n/RyQuhbHF+KYyncgWjKNTzFIFiNljVzsjTOqihmiDp UlNWZaaxEPDVsceLGOHLGwogpPbsPe4rw6Remc6fVHJG6/buyqmtQAE948vgOB3fU3toU+n4BzuUn XBkH5gfcyEG49tLAzNRRjBbGKPdW+cbk+vzHXvumqKT8lKGBJ7sx1El4ASfUS6jQ3U6v0HBqiHL79 J3bxJCe4A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyK89-00067y-Iu; Wed, 22 Jul 2020 19:10:17 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyK7z-00063w-8n for linux-rockchip@lists.infradead.org; Wed, 22 Jul 2020 19:10:08 +0000 Received: by mail-pl1-x642.google.com with SMTP id x8so1449589plm.10 for ; Wed, 22 Jul 2020 12:10:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hfiWO0Ph160Ftuv8im+r8mR8zkoGr6zHq96rgtWc2ok=; b=hsLEdP4dUtwdgrJsxvKlKP2QHJz5nqQV2c2qUVh+RA+tlnhhxqzrsVcm57gom3vYtg s+sqfGhXC92GFYs42DIwZ6C3nBRlbE8w3uEzI/pbHTcI1fJrFUzghA+4/SRtXrH01Dkd Y/4Hk1jOXg3zW7uo4CNaaSsSo8y93jhyXyAW0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hfiWO0Ph160Ftuv8im+r8mR8zkoGr6zHq96rgtWc2ok=; b=SpGhxB0G9GlQvoqL8DnEVmTdrXQcsOmM0InRhIw5O7YtoyNolXHZwjqJqVRj6X5A5+ oOtHc2Lq3nR11WXAgsAlI3/1/Kvw4r11uW2T4KEYEcWo3571LXdtNsqaX2kfdma7ZVPT logk0vQkNxgZbZPt4o+0lcbIt4YTMHFEYnN/cy4psBzmBDRLkMef2/QfF8Z0+u/wlAt7 lj0BDqfGEyNtYcGIjcQce48nBMdQFOy082IyNaU6S5Ow172POlSQ1tvfDP747GsXCKL3 /6Vm0sRNz+GIHHS4g9LtUt995SB7etAkH6Zf0RBhUf3ST2CFubcssSug8f1UqDBfuHW8 Q7vg== X-Gm-Message-State: AOAM532nSTF8ntlS34SSc59LN0txHQZPWq5fkweKEx2cB2i2ULtVK5DB 9GH55nyzSNYZjyBEK+CHClGwLw== X-Google-Smtp-Source: ABdhPJxzTBJhISUHaLWs9bib6BD0vF+LnpQKibVrXV84a4apAfRX+uAmgNmdHJgoU1VXaMykYUAIWw== X-Received: by 2002:a17:902:b113:: with SMTP id q19mr789986plr.170.1595445005086; Wed, 22 Jul 2020 12:10:05 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:fda7:aaf8:9d1a:6749]) by smtp.gmail.com with ESMTPSA id n137sm342398pfd.194.2020.07.22.12.10.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2020 12:10:04 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Subject: [PATCH v2 2/6] arm64: dts: rockchip: Mark rock-pi-4 as rock-pi-4a dts Date: Thu, 23 Jul 2020 00:39:45 +0530 Message-Id: <20200722190949.215656-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200722190949.215656-1-jagan@amarulasolutions.com> References: <20200722190949.215656-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200722_151007_399761_CD61CC0A X-CRM114-Status: GOOD ( 13.61 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:642 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jagan Teki , Suniel Mahesh , Michael Trimarchi , linux-amarula , linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org ROCKPi 4 has 3 variants of hardware platforms called RockPI 4A, 4B, and 4C. - ROCKPi 4A has no Wif/BT. - ROCKPi 4B has AP6256 Wifi/BT, PoE. - ROCKPi 4C has AP6256 Wifi/BT, PoE, miniDP, USB Host enabled GPIO pin change compared to 4B, 4C So move common nodes, properties into dtsi file and include on respective variant dts files. Signed-off-by: Jagan Teki --- Changes for v2: - update commit message - add radxa,rockpi4a arch/arm64/boot/dts/rockchip/Makefile | 2 +- .../{rk3399-rock-pi-4.dts => rk3399-rock-pi-4.dtsi} | 3 --- arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts | 13 +++++++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) rename arch/arm64/boot/dts/rockchip/{rk3399-rock-pi-4.dts => rk3399-rock-pi-4.dtsi} (99%) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index 2ab77206699b..1250c62205a4 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -35,7 +35,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-pinebook-pro.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-haikou.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc-mezzanine.dtb -dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4a.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock960.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64-v2.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi similarity index 99% rename from arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts rename to arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi index 60f98a3e19d8..e163f438f836 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi @@ -11,9 +11,6 @@ #include "rk3399-opp.dtsi" / { - model = "Radxa ROCK Pi 4"; - compatible = "radxa,rockpi4", "rockchip,rk3399"; - chosen { stdout-path = "serial2:1500000n8"; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts new file mode 100644 index 000000000000..89f2af5e111d --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Akash Gajjar + * Copyright (c) 2019 Pragnesh Patel + */ + +/dts-v1/; +#include "rk3399-rock-pi-4.dtsi" + +/ { + model = "Radxa ROCK Pi 4A"; + compatible = "radxa,rockpi4a", "radxa,rockpi4", "rockchip,rk3399"; +}; From patchwork Wed Jul 22 19:09:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11679129 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DA536913 for ; Wed, 22 Jul 2020 19:10:35 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AC85A204EA for ; Wed, 22 Jul 2020 19:10:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="N92ORB8L"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="q29RmjN6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC85A204EA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hhagRx+46Tjvm7SZVitCcfvg5qlN2jFnXJlRD8OLrXE=; b=N92ORB8L+DE4IosrvtXmHQ8gc WadZSlRKiP40zZXb49ZtMwgFO+c7fjB+RBsebUZum1r0fr76l230hKpvBDr3nd7J6aHl5z9wwTrUK TyDFn2ncCg6SRlEP/J0ouKViaFePWB66tttpkNY9flG1rtF4Td1mA4ZQ+FT1+i4+8T5FcPObHlwMs Dl4g1mRi3Phl1aTMt/WESGm4kxS+Ogpq4YFzmNR4zWPi8fj02qk7X7EwXgJX0WvDzy60hBA8mTZeb wsEXxV+EP5L6o1viIddUyHTDzESBpYBq+eum0uSwsuvdoq3BqnY/ieodRdnqBN90vFCxtRoUZu2A8 Qglqd+AgA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyK8P-0006FE-1H; Wed, 22 Jul 2020 19:10:33 +0000 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyK83-00065m-N8 for linux-rockchip@lists.infradead.org; Wed, 22 Jul 2020 19:10:13 +0000 Received: by mail-pj1-x1044.google.com with SMTP id f16so1901694pjt.0 for ; Wed, 22 Jul 2020 12:10:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bCIGRDF+v4rmsAVdntIYzwaSfdyULw3/J/92ZjfTwCs=; b=q29RmjN67jVINzmZJ8BZkk9zKx6wl+d6S2ja4yUHdO3cjYZXaseICZ15OQWstGVNip hL1/JEW5mA6IcFsomV6+N0X3MSq7X7XB7Dse4S9FtEesrY7TNpuOCEQoD3XyPQkOEQyJ 0o25B0FrfYXttBwN2jXNN2WraNTTf3H/qI31g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bCIGRDF+v4rmsAVdntIYzwaSfdyULw3/J/92ZjfTwCs=; b=E+3Q9IwUwMQqpEdGRlcf14yYDOWKJ7FTs3l7j3jG2N9M6gLbvG2Ukkgr2nvIPg/isW k26p/gyWRXrbPZhyHOh3wgSqUC+8mQNvHzGEji6u/0yDg92Sn/TtFNOr4tgXDxFQ+YM/ pzHt2uV96RKvuYyOW90PnSG+6WdUJ2nDq7B9saS1B2kT4G0vzdiJfvXWVp4Gs/nPvUvN Yhn8nVkrbr7HajahLYGceg1TE4JxpevVIyOSITWyxlIvezFfIJwZursmnRuOSB3lF0JL IExc7sN5PbrFIueNJXJdHX3fCPgkbvNCA+2k+/DPT/gFTXCDs3Jx96strsM1gDx5J13z sI9g== X-Gm-Message-State: AOAM531lIGJ9zEpzKjIxKb3K0zn8Us/w0yw3BTlcHD0U279DXQauil0D 6OnEXJNxOjNtJrulvrmKQXEerw== X-Google-Smtp-Source: ABdhPJz0DhSoM1xwsV+m+ZBDSIdc05gHOJrrfQLddbfFcRlyrd1Ph1ga0ZYgwid+a7Mld42GeWVJzw== X-Received: by 2002:a17:902:e901:: with SMTP id k1mr831705pld.130.1595445009832; Wed, 22 Jul 2020 12:10:09 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:fda7:aaf8:9d1a:6749]) by smtp.gmail.com with ESMTPSA id n137sm342398pfd.194.2020.07.22.12.10.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2020 12:10:09 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Subject: [PATCH v2 3/6] dt-bindings: arm: rockchip: Add ROCKPi 4B binding Date: Thu, 23 Jul 2020 00:39:46 +0530 Message-Id: <20200722190949.215656-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200722190949.215656-1-jagan@amarulasolutions.com> References: <20200722190949.215656-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200722_151011_803070_8C332EA2 X-CRM114-Status: UNSURE ( 8.13 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1044 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jagan Teki , Suniel Mahesh , Michael Trimarchi , linux-amarula , linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Add dt-bindings for ROCKPi 4B which is similar to 4A with additional AP6256 Wifi/BT, PoE. Signed-off-by: Jagan Teki --- Changes for v2: - new patch Documentation/devicetree/bindings/arm/rockchip.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml index 36057c9e4b83..7250adb43d24 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -448,6 +448,12 @@ properties: - const: radxa,rockpi4a - const: rockchip,rk3399 + - description: Radxa ROCK Pi 4B + items: + - const: radxa,rockpi4 + - const: radxa,rockpi4b + - const: rockchip,rk3399 + - description: Radxa ROCK Pi N8 items: - const: radxa,rockpi-n8 From patchwork Wed Jul 22 19:09:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11679131 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ED664913 for ; Wed, 22 Jul 2020 19:10:39 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C32CC2065D for ; Wed, 22 Jul 2020 19:10:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="KU78c6a1"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="BsU4+NGY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C32CC2065D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OUQBBrSaPX6Pts/mwsJcAg1+E2mvckGg5zhOu4+W+u4=; b=KU78c6a1L29UbHHWlI47NmUc1 9SgvYAXGmociWEQRwIoBuRWsO2HKB2Ua1pTxTYHz9iPAI+JTUvnoho3jU9W7WNjBR6gJLp6BDgEMp OM7mSK/t6wrB4sWF73Y7BRdM5PQTJ1vcNuLPTcBcswTSejws94AAZL/YwhWxw6z0FGkuOIDsVujzs GEL15zH79yxaHPzyLDyCaOhGCo9s5k9X4P0+U/mKuKbMDAR8b4VFxTR/M+E5PlvOPSGBZ37ZlI0ZM NPkpfhS9OQ54wpvNy/y6C8a42GcyV/FGBL6tHdsW3lI0pPy2sOTDqS1hAzfSrtm+t0SaPLXxrO+p5 8NwlM4swQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyK8S-0006Gj-Or; Wed, 22 Jul 2020 19:10:37 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyK88-00067Z-He for linux-rockchip@lists.infradead.org; Wed, 22 Jul 2020 19:10:18 +0000 Received: by mail-pf1-x442.google.com with SMTP id u5so1771166pfn.7 for ; Wed, 22 Jul 2020 12:10:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LSzw5Z9vI5ptiBRPoRfqBOqKnLsmDUkdHQCEgOWcVKY=; b=BsU4+NGYJPzR9uL6OYvxy1Vzm5RWpI7ySPevIMYa89OtYyvZ9VK1Q4tKDsRYhgNPxc /4BW5jK+fEmeDYcQ1M/3sNw4B9IBTs4aAh2iGoaOw9LhIF4WA5R/L4n6J3F/hC62pD9v WXu46GB1VyD71a0Q/c1xRVDg7mr8lwRI0z3eM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LSzw5Z9vI5ptiBRPoRfqBOqKnLsmDUkdHQCEgOWcVKY=; b=kL8XO56pbvavYRARu+lVMofH3Z6jtrhQGyo/HSwC1XMOKB91l8juZoQTDxqh++UbeN /y1C/WOTzrdF+oXo9TzNa1XPak4u4gyJ3HDFuv5BJC/0rvhmLf5WRR/CU+Jg5yu9rm7c ciKVJp27ki8aEUYJxr/rQlIHlH90/kYdkH989iKKIyj2GIBpYoRC0jEufmlRKzCoqD2k 4j+2hTsRTt3Xma86Ltaguc4whx4IkY9y7r7ZwmmpujT3mq4XM5sYPj8OwVn2yS2vDUuP jgw24exI4j2lWKBOrP8DVUoFA/B38Xf1M/hRwuCv4nmO48Fmr2JvaCUwpoY7DUucUXHL OHyg== X-Gm-Message-State: AOAM530x9XEJbS1AW7ZuxmyAOUI895R/++/KM9tYtPE/G+5b0AmFPn+9 T4L0PQ3AxcmU1IjRKpWQXC359Q== X-Google-Smtp-Source: ABdhPJwzs0vyfaxwMGzh4yA0b006qnbDHCKlZUyZ/XaiSpVEzJcDgrPLmPQ3c93lds1LUhpAhiNcRQ== X-Received: by 2002:a62:794e:: with SMTP id u75mr978867pfc.298.1595445014607; Wed, 22 Jul 2020 12:10:14 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:fda7:aaf8:9d1a:6749]) by smtp.gmail.com with ESMTPSA id n137sm342398pfd.194.2020.07.22.12.10.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2020 12:10:13 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Subject: [PATCH v2 4/6] arm64: dts: rockchip: Add Radxa ROCK Pi 4B support Date: Thu, 23 Jul 2020 00:39:47 +0530 Message-Id: <20200722190949.215656-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200722190949.215656-1-jagan@amarulasolutions.com> References: <20200722190949.215656-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200722_151016_677349_6CD7E3E5 X-CRM114-Status: GOOD ( 13.06 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:442 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jagan Teki , Suniel Mahesh , Michael Trimarchi , linux-amarula , linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org RockPI 4B has AP6256 Wifi/BT, so enable them in 4B dts instead of enable in common dtsi. Signed-off-by: Jagan Teki --- Changes for v2: - add radxa,rockpi4b arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 23 ---------- .../boot/dts/rockchip/rk3399-rock-pi-4b.dts | 42 +++++++++++++++++++ 3 files changed, 43 insertions(+), 23 deletions(-) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index 1250c62205a4..e7b11e8fd9b6 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -36,6 +36,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-haikou.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc-mezzanine.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4a.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4b.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock960.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64-v2.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi index e163f438f836..678a336010bf 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi @@ -584,17 +584,6 @@ &sdio0 { pinctrl-names = "default"; pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; sd-uhs-sdr104; - status = "okay"; - - brcmf: wifi@1 { - compatible = "brcm,bcm4329-fmac"; - reg = <1>; - interrupt-parent = <&gpio0>; - interrupts = ; - interrupt-names = "host-wake"; - pinctrl-names = "default"; - pinctrl-0 = <&wifi_host_wake_l>; - }; }; &sdmmc { @@ -663,18 +652,6 @@ u2phy1_host: host-port { &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; - status = "okay"; - - bluetooth { - compatible = "brcm,bcm43438-bt"; - clocks = <&rk808 1>; - clock-names = "ext_clock"; - device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; - host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; - shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; - pinctrl-names = "default"; - pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; - }; }; &uart2 { diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts new file mode 100644 index 000000000000..f0055ce2fda0 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts @@ -0,0 +1,42 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Akash Gajjar + * Copyright (c) 2019 Pragnesh Patel + */ + +/dts-v1/; +#include "rk3399-rock-pi-4.dtsi" + +/ { + model = "Radxa ROCK Pi 4B"; + compatible = "radxa,rockpi4b", "radxa,rockpi4", "rockchip,rk3399"; +}; + +&sdio0 { + status = "okay"; + + brcmf: wifi@1 { + compatible = "brcm,bcm4329-fmac"; + reg = <1>; + interrupt-parent = <&gpio0>; + interrupts = ; + interrupt-names = "host-wake"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_host_wake_l>; + }; +}; + +&uart0 { + status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + clocks = <&rk808 1>; + clock-names = "ext_clock"; + device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; + }; +}; From patchwork Wed Jul 22 19:09:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11679133 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9001B13B1 for ; Wed, 22 Jul 2020 19:10:49 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 67D692065D for ; Wed, 22 Jul 2020 19:10:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="2bWOWpJ1"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="PDTBmh/K" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 67D692065D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=GSPi7XQaWsQ3rVLaxhT3RHYqIVuVVVceuhjEtHoMVOM=; b=2bWOWpJ1k8J5UnZSTjEd9jHUA D5moM9v3Q0x+IEplaa6VYJb4zINHnDUK2fJXx/QDahr2P+0RzVR4cXvyPzG3pZpk2a4gSWjHMHdTx RN+3DDKeAD2GdSRXipjO7+J3reVoI8twlr0iR2w9z3sMHxWYFPBkSsrn+XLR78nEGoXIywraU6PRb 1VpFQUmceCvnQ16raIWGJdgmYsZwOUqLFPNDz0TJZD9zi85HAwzdZhg5OJge0bHKYV65yTn6Y8ULH hoaRwVrY3xn9iHC7qQue8QNGSLWoq1XUz8VDoKmcB95yqYYihYRdFtlenCc9HfWA74btYsMEefObq +NSHW/PRg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyK8e-0006LX-7e; Wed, 22 Jul 2020 19:10:48 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyK8C-00069N-IW for linux-rockchip@lists.infradead.org; Wed, 22 Jul 2020 19:10:22 +0000 Received: by mail-pf1-x444.google.com with SMTP id a24so1773312pfc.10 for ; Wed, 22 Jul 2020 12:10:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=A9R0zBQZNkWUaNZ8knUV7ykpWNGLCPzZJT92AJTWbRM=; b=PDTBmh/KaH9xKwF325iZ9WPo/AQp+h19N7VfEHao+92WaTz1oW6s2LYiKVGr/ROIuf mMJ9UOycup+TSjb7NtRu1p9cqPfDMafKlpxxWrwS382VwydXQDv2R50Y9ngDU5/zsFJc 07UzBgQioEKmfR0v7jVsz7kcYdwrp7fANyPY4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=A9R0zBQZNkWUaNZ8knUV7ykpWNGLCPzZJT92AJTWbRM=; b=AKIqH6F3Ur/ifJ6avmqEOngT91JbPwu+RNAvNCKM2dwybmeJoeU7xhaL4W6glyG8l9 MxEANkBanukcjfZ92dmDw7e+RRGGGH7QtDweSFdDa6UBXTtnKxHD3byK/YaJ9J43dte1 8onMtaYk6cQKBqZx3YqMqqTw1E3miB6AHIhDxMjpabbAV/l9dW8YbJ+EcAdXTz89dKsd 7EUKLsBsER66/6OWDQ+MdlpkQcZb+CBg4kO/Leu3PSnTBSdEIxNfkZrXnG7nqPy5J+me zfO85xC9dFVkeHq+7FGVsupqWhgc4LTXKmVX6LXD0YJbEf3MLiwLFz9VUBFF46BH7nDO i7RA== X-Gm-Message-State: AOAM530TIsHfjzvtz0+LS3Wp9qizdIaRTPiIPzZdSpx1M67fZi0yfpr8 ciCe2LavBoOmLMaQUNbHSowz3Uq4JoDgIA== X-Google-Smtp-Source: ABdhPJx/pkpGCVF7ZJrH5L3zHr8u0P4E0FO+NstQq1Sv7MuBOlPkf5ejOUlbnfPCpatWluNziGAVlg== X-Received: by 2002:a63:1406:: with SMTP id u6mr1100583pgl.108.1595445018595; Wed, 22 Jul 2020 12:10:18 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:fda7:aaf8:9d1a:6749]) by smtp.gmail.com with ESMTPSA id n137sm342398pfd.194.2020.07.22.12.10.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2020 12:10:17 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Subject: [PATCH v2 5/6] dt-bindings: arm: rockchip: Add ROCKPi 4C binding Date: Thu, 23 Jul 2020 00:39:48 +0530 Message-Id: <20200722190949.215656-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200722190949.215656-1-jagan@amarulasolutions.com> References: <20200722190949.215656-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200722_151020_722845_6EC7F8FC X-CRM114-Status: UNSURE ( 8.21 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:444 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jagan Teki , Suniel Mahesh , Michael Trimarchi , linux-amarula , linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Add dt-bindings for ROCKPi 4C which is similar to 4B with additional mDP and HDMI port replaced with Micro HDMI port. Signed-off-by: Jagan Teki --- Changes for v2: - new patch Documentation/devicetree/bindings/arm/rockchip.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml index 7250adb43d24..1faf1ce92dba 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -454,6 +454,12 @@ properties: - const: radxa,rockpi4b - const: rockchip,rk3399 + - description: Radxa ROCK Pi 4C + items: + - const: radxa,rockpi4 + - const: radxa,rockpi4c + - const: rockchip,rk3399 + - description: Radxa ROCK Pi N8 items: - const: radxa,rockpi-n8 From patchwork Wed Jul 22 19:09:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11679135 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9F23213B1 for ; Wed, 22 Jul 2020 19:10:54 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7813F2065D for ; Wed, 22 Jul 2020 19:10:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AGjXe3O5"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="pgsehobR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7813F2065D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=zvn3TvV4eXhxIejOhuer5hF3dZNj/Ft9w92xX7PedGI=; b=AGjXe3O5V6lJc2Hu4sf1S5/wY BV6puzdolyAaJRT5S76GOrWeuteQpJUTGWjXPHM1mbLHLZolhnr2AHh60M3pHPlwId+jAvd5VM5GA kGsAJuYnidqbsbHNpPhOViPnPq7JuLBcdmVnq/wHSRJ2p+0ef9bAN03606II0NiTVNORajg6j+4Sr YtIGIa0M2+MfZOvURrdvnIGpcoIEo8j2PAOKbGJtyzhyj132Ngl1mgxxGNnHuC18gs2PSXqQOKabZ PdbbGc6RkRISJmAxuouA34NrvfoF/vRWwd0rAcvEA4Oj3yR3rWVfDsuCP4aqlH3sqXOoBRvOmjSk5 EpJfsC53A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyK8j-0006O2-Bn; Wed, 22 Jul 2020 19:10:53 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyK8I-0006CC-9z for linux-rockchip@lists.infradead.org; Wed, 22 Jul 2020 19:10:28 +0000 Received: by mail-pf1-x441.google.com with SMTP id t11so1764998pfq.11 for ; Wed, 22 Jul 2020 12:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cGX6YRrhbrO/m3jF24wl30NH0VjikDWGykW4dnyjN5I=; b=pgsehobREQgn6u5WcHh/7eTlKykOcK81M2/05t7HGsP9hOXTJGrKaJwO16XrH9fF26 S3BgqJAolBaPwfmQ/Hi+kejEwXk4w7t0tR2r5cfvPWKpKpwHk6XrBw3Fp1b3eLQDPmTh k263E0Pf/TJiEHskLC+dy/Kza3yobqQc4NrGE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cGX6YRrhbrO/m3jF24wl30NH0VjikDWGykW4dnyjN5I=; b=CeLu5TNN+W1H14JHgrJBbYdmPeH30zf92TbqRfgkINmDlFYaDWMWt5Ct66Ot+I+Cs/ Vz8VzUphwHUxpofhMNqQmxkigcxhH2iPDReo/XRXdEWn1kw3zyFrQ549sBmNe7yW6Ppk lM3MWulLyIuRpMM9+K9FpDO5jqin7sMf8juMTdzBh2rshxj0F2lOTtsRE0xrOaIWtnu6 pAWvX5xH20zSbV1pJsUudffFameoSOXTDtR0XAclLnZBC9BLaL8S3k1uwrInRDZd5Gry Mm20IvaZYB0sRhnAMG2ak9jGxSIo1ycBwjn6n1SJXw5neKHrlJNzqIBgcV8AUw6Pm89S 6Wyw== X-Gm-Message-State: AOAM531IDl8ZvdmwBQPPQwKOlNpxI/x79t6jWmlerPttJECQZ2OQ8+0g vzLxn5/x6kUvv1YwiTdEZY3qrw== X-Google-Smtp-Source: ABdhPJx5OuUvBmtXjQwfIsNwKD4N/ljc6cUbAVeb337f+qYrbzgGFk5fTQQbiDBQuvH2JFjHmSxnyQ== X-Received: by 2002:a63:db57:: with SMTP id x23mr1121154pgi.178.1595445024421; Wed, 22 Jul 2020 12:10:24 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:fda7:aaf8:9d1a:6749]) by smtp.gmail.com with ESMTPSA id n137sm342398pfd.194.2020.07.22.12.10.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2020 12:10:23 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Subject: [PATCH v2 6/6] arm64: dts: rockchip: Add Radxa ROCK Pi 4C support Date: Thu, 23 Jul 2020 00:39:49 +0530 Message-Id: <20200722190949.215656-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200722190949.215656-1-jagan@amarulasolutions.com> References: <20200722190949.215656-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200722_151026_473109_B0572E5D X-CRM114-Status: GOOD ( 12.54 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:441 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jagan Teki , Suniel Mahesh , Michael Trimarchi , linux-amarula , linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Rock PI 4C has AP6256 Wifi/BT, PoE, miniDP, USB Host enabled GPIO pin change compared to 4B, 4C. So, add or enable difference nodes/properties in 4C dts by including common dtsi. Signed-off-by: Jagan Teki --- Changes for v2: - add radxa,rockpi4c arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3399-rock-pi-4c.dts | 51 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index e7b11e8fd9b6..48cc045e6928 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -37,6 +37,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc-mezzanine.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4a.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4b.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4c.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock960.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64-v2.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts new file mode 100644 index 000000000000..4c7ebb1c5d2d --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd + * Copyright (c) 2019 Radxa Limited + * Copyright (c) 2019 Amarula Solutions(India) + */ + +/dts-v1/; +#include "rk3399-rock-pi-4.dtsi" + +/ { + model = "Radxa ROCK Pi 4C"; + compatible = "radxa,rockpi4c", "radxa,rockpi4", "rockchip,rk3399"; +}; + +&sdio0 { + status = "okay"; + + brcmf: wifi@1 { + compatible = "brcm,bcm4329-fmac"; + reg = <1>; + interrupt-parent = <&gpio0>; + interrupts = ; + interrupt-names = "host-wake"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_host_wake_l>; + }; +}; + +&uart0 { + status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + clocks = <&rk808 1>; + clock-names = "ext_clock"; + device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; + }; +}; + +&vcc5v0_host { + gpio = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>; +}; + +&vcc5v0_host_en { + rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; +};