Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2088154pxa; Fri, 7 Aug 2020 02:51:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA7VHS809RNCStYe7SH+6mQdrWlEqaDu5k0tWH7vACdGZJq8cuMRURrYh0HXF2JeJ9So// X-Received: by 2002:a05:6402:1d92:: with SMTP id dk18mr7800641edb.206.1596793889138; Fri, 07 Aug 2020 02:51:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596793889; cv=none; d=google.com; s=arc-20160816; b=mQjWfLRd+VTx2uBCsmA3gftFdLHRI5dlRZm7Uy23PeynF0thsMY7A+gG7nGziL9frb C0zmLYKq48TjXyAJsagIT63KfehTDZ6CPXO9tSV1CihwaAd8YzXSOCBzuxLaC9svPvjs tT+qhkI4kgXy6BZkrt0tfivCf8Z5N/9Vspgx4bAojBwM14xS2rSfIgndqqQ+da+BBgVI W4YGEh0pspW+Hk/t9v2DB07kGfwJ+NyINRUb1BoL23tGYyGIDMrAjtcyG8QmFl3W34s2 GhIX2kT6uTDdsoLhs7GigPosfQAL54qw83qPT+IYf5rWM/hgQu6am7s0TG3PEh9ebOev Oydg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xpgEOhtDJgg+JHNnGT0zB8AHGVroP0sa6vGC4+WgrY0=; b=innIs8OX2xi3iccnpX910Kiz1hvIxJ1lxdiNwdOBFrdBvSShVUY+mu8CAF8g8Wrf8t hBKYTLg3abXcRDBfFjJaq7KUI2rB48jfghofZWbZ67RhP7I+jTkM0O+NSdhzs+K6NMdK e7hBr6AYoIxiUYdjuURZALQM8iyVcIwRYdmN6xIedN+6q2EkhC+4Q+goziJCUlOGO4mj 0dZs5FciNKSI1GUmMQtH3GlHfKdXJvaiUKljzDDGg8mBRZja0rjKQhQ68tMjnbmIVEi0 InWMEgQAI07nvki+CPdQpkSznXVL37Uc79rJZ8m6MElPOBwpTrK3yPfoZG707jUWhZRl KpFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZJhlgW2q; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d24si4849704edz.145.2020.08.07.02.51.06; Fri, 07 Aug 2020 02:51:29 -0700 (PDT) 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=@amarulasolutions.com header.s=google header.b=ZJhlgW2q; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728270AbgHGJsu (ORCPT + 99 others); Fri, 7 Aug 2020 05:48:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728036AbgHGJst (ORCPT ); Fri, 7 Aug 2020 05:48:49 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DD94C061575 for ; Fri, 7 Aug 2020 02:48:49 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id d4so647509pjx.5 for ; Fri, 07 Aug 2020 02:48:49 -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=xpgEOhtDJgg+JHNnGT0zB8AHGVroP0sa6vGC4+WgrY0=; b=ZJhlgW2q36OOGZfDH+aVuJIJqLtDiPY1IJ+JNpipBmkcUcKzKRt6W4wJ9BloVTvOI7 S/gMa9lcyz/lfgdM6Jsrjt9JdqHC+rH2sgidwu+hyAKgQEU7JKmKxS/opbT5jYDum0Qt x9ikHjOy3sAPQTU304WZPw/t3AWt0PNOmc5vQ= 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=xpgEOhtDJgg+JHNnGT0zB8AHGVroP0sa6vGC4+WgrY0=; b=HZEJ/Es/arZvVm1ZpneqwzDj7b30GZDb0JslvJjVr4fxmvwxWzh9C1HCMpFKHpE+3d wlW7SaHI2vckdGLvHDFalw6Ag+AEYBAEjfB46xXIe8A18BqhkW027abL+bXIN0R70WjY VRkEeIk2Ku3bEDNPa01Kpfk0ax48K9ZHrdZO7liCzhh9yCXS3vfwWxw2GaKR6rI6xS4I jl4ZJ4MJrpijPFdMoTCZSYRxUPg1CuipfEN9aGqXTK6T1XlM6uh3335bQB62FF0kn8uH x6ydmcTvkHfffStfEQvEt1yjJRckf5DPvxjIgv/rY+H4+KKAiu63EJC9R3Cw9MXOqoNm eflQ== X-Gm-Message-State: AOAM531XVS17ZcmOaQCioGSD2voCELGg8XwjKtwQFv6LYJD6X3i5Ktku n730e0pQt33XiSUnp5um92ieKQ== X-Received: by 2002:a17:90a:2110:: with SMTP id a16mr12756782pje.104.1596793728986; Fri, 07 Aug 2020 02:48:48 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:6097:2d32:26bb:64fe]) by smtp.gmail.com with ESMTPSA id d65sm11412112pfc.97.2020.08.07.02.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 02:48:48 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: Suniel Mahesh , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula , Jagan Teki Subject: [PATCH v4 3/4] arm64: dts: rockchip: Add Radxa ROCK Pi 4B support Date: Fri, 7 Aug 2020 15:18:25 +0530 Message-Id: <20200807094826.12019-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200807094826.12019-1-jagan@amarulasolutions.com> References: <20200807094826.12019-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 v4, v3: - none Changes for v2: - update commit message - 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 42f9e1861461..8832d05c2571 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -34,6 +34,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>; + }; +}; -- 2.25.1