Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp749967ybh; Wed, 22 Jul 2020 12:11:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1emOMpu4NsNe2lN26D2ItBXeggo+G026SA7GQnbUdFhxSxWGjJBZj06oatXlbPNVmtJnQ X-Received: by 2002:a05:6402:94f:: with SMTP id h15mr883096edz.313.1595445097879; Wed, 22 Jul 2020 12:11:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595445097; cv=none; d=google.com; s=arc-20160816; b=C3IDvbzLybtKSOhwAzIgs9ZiTKzcY73SGqidlXQA409vY+1kqM8HaWiqCNHE8RWCaP tgjzrOCtQv35mzMQZKiGEacZ5MBI107MAq2RHuzQaqrmCBTFzXwRot/uiCCG1cMRXLXw bXhprOfGsWCM8IhNMcaR2mwg4w8c88CiNmbLciqo4VuZaiqMj9YMzJmewHOnC/dPGTGV SjcE35wLzb8hfGFqXnG7Q7N+F3tNC1xFod7w8tjmEHpuWoSEOT++i9rTD5BwsMe7xYb+ WV4d1quqTmq2HetmwRT3GYf2Sg8AvVhW4tT8DHSDAvnyFb5v8gnOaF8bm6P0QxR7oeWa Vp1Q== 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=cGX6YRrhbrO/m3jF24wl30NH0VjikDWGykW4dnyjN5I=; b=MRKWnIEWUXB7FZhn5PJHib2QIVMDRvk8ePJqvwSLODUnsiDrYz0wpqVjYD0gD2smLs TNqH2SXfqJ+/DvTCk6phTCJSMqXKOPnXI+mL9r+n+tEfq3ivqh8gilbVV1osCUkFsgKD 6Wrdk+SMX/qwI0kYf0Jg8v50Tn4QE7dZ4KUazg/yM6S8OXjE3m6xXAwGdCUkE8t6oIWk hU1UF2IuaedHC2hUORCfBW2898RWZFJ0spoYx55YKKpSTSSDDapUN6Cy5Ep5NL3Ncfxy 9MuQsceiN/6IJun3oj0fDBpjOpoDzyrAdGMYmx7F7ks9kh/oN5OkznInJUmPzDDFEMPI fZMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pgsehobR; 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 v12si510565eds.85.2020.07.22.12.11.15; Wed, 22 Jul 2020 12:11:37 -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=pgsehobR; 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 S1732647AbgGVTK0 (ORCPT + 99 others); Wed, 22 Jul 2020 15:10:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732575AbgGVTK0 (ORCPT ); Wed, 22 Jul 2020 15:10:26 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9406C0619E0 for ; Wed, 22 Jul 2020 12:10:24 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id 207so1787589pfu.3 for ; Wed, 22 Jul 2020 12:10:24 -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=n6BZ3bKEOoF14U6uIiKBFUBguf666Hc4dR3qCX4hNAoWAlsOYpfxFX2RixtvknQQ3z an+lQhzT43NOMmnlxdNZVeTeYXlZZFQ/rsFm7jrEe92SLppVRxQa9NBAIOAYjOHah+eN 50bmTlG8J0uvMVj3Zo2a1NkeKWyuaJ9ZB7BY64lV2PpXGZLtX3OgKQQCVxX0Qqz95zCQ iPt+BY3khXHBXFA9E0cpXFuFuQh69O34TDfk+pAUAJ40tPaGGEF8IFaVocUulrk3ZIdi 8JXczwdC+QOMPV/TYCBC3JBWrpoLav43dwHPkQUnIgxWGOCP6PVA1VJp2UQB+vy8M2ym tVcA== X-Gm-Message-State: AOAM532+WAHCQK4Q+HX3jPYP6aslImgWYHQJme/w9dM8jP6OApoyqHqG nOfEDDdtg3LhmOQWlv19ThQTZQ== 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 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 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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>; +}; -- 2.25.1