Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2087410pxa; Fri, 7 Aug 2020 02:50:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMXiFXB5DFDfBMbOVNbnBmTv3prDEW8Kavd4UeF081zA6LAeXk75dsNoxTjKQ7DnQuR8UA X-Received: by 2002:aa7:d410:: with SMTP id z16mr7823719edq.287.1596793801977; Fri, 07 Aug 2020 02:50:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596793801; cv=none; d=google.com; s=arc-20160816; b=vBf4/hUfP3dCtgFDhSz4N+3COQ4y+VRnowgozACxVH3DxM2nsvkyxzjnTrgagr0p1w 4xmmx0PiV0eeFJNm+vppiy8ELDJFOONdgEQzIPT0vchORlOHWLQUNo0bdzmq7YI1afUL qZAcUCzPeGPB4wf+k4Cc+3TBtvs7rTe+T5BpNDJJhiVt2pkl8s1nl6d7axyrRQoJg7KI c0KJ9qSi9wxIlZFX2T8w1M1/qfXF2cbdqw3E64JW2bV2sol1aA+PmoziQRKv/QaVH4hT DPtn1AB2o9DKXrCrj4hedTWDHaCiIM8L6zf+3PJcK3O3zIZ81AnvDplNhi5bboIn+ABh Ez+w== 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=Qtqjn9bdXGvUfpcD1HWzU/py18DJffCjiF+w/RFjz2g=; b=HH3vmwmpmRTBwqCSIEX/t3QVaasHM46wDK2BPezRzN3Ni+SLzqmXkWoPDSnK2nPVpE EvyfRNrBNeEQe76v6GKPUhw+chepoYRF1we1IRp/ft7Y4Jbht1e+e1idHIQmbUKVchrS raWMNcZr0N8xKpIPlqxrAqAfJ1G++rj0dDwM7/nkw9ScpbAMiJQ7YVEwuxUFPqHnoF6v JD0KGxPLRdBRx8t7W3uArjZtQFPimK+JFDs++3lnID00B3qIx47OvALy+xSIKZkO+si8 jfygVa8YvHNr/fFHKz3P/qZjAsUPnYOZFVAdh8X1fGU8Qa4vrQ5MiSYOeEVyyOWps8eT KyJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FnPFmg0+; 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 dp1si7656755ejc.173.2020.08.07.02.49.39; Fri, 07 Aug 2020 02:50:01 -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=FnPFmg0+; 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 S1728166AbgHGJsy (ORCPT + 99 others); Fri, 7 Aug 2020 05:48:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728036AbgHGJsx (ORCPT ); Fri, 7 Aug 2020 05:48:53 -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 BEF38C061574 for ; Fri, 7 Aug 2020 02:48:53 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id 74so707085pfx.13 for ; Fri, 07 Aug 2020 02:48:53 -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=Qtqjn9bdXGvUfpcD1HWzU/py18DJffCjiF+w/RFjz2g=; b=FnPFmg0+YjpnOkedvmWUx/ChyDyzoLbOYxMCplO9uSXgjyi2P9moYPhApSPzIst4Q/ FyVpEp9zRgs4lIOPwgA2WL+R4KAyqm6b1reDWc64DnQ+JNLRyC1CdS07wQVyYO0zSLug LO8Tgr/oTyUjlzGhqSXRbsCFJMaaBRVMzOWCc= 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=Qtqjn9bdXGvUfpcD1HWzU/py18DJffCjiF+w/RFjz2g=; b=erLLTT2hQVoEa6HBrmLWDlOQUnYbGt9yQt9aJmM+t1GODDXqEOFr2nDxg2UZzpM3xs w7ykPb/xxtCKSS8Z0PdDg9Yb1ZGLL4R8Gzwrl+tF2r4Wu8n09P4FjK0lcFSFWJWp/1IQ KwRbr40I0nj9NGg08FDkJIbfhnYllzRVD3WLV+7BKzYI8J+CmNxdK2bGM6YCGEiEmMDa /gSY96MtDKGRwqSpydPOrqRX3I3VTddNFbs2TEFLNOlwE6KNP1BwffIvyk99LmjN+3YY asRm1DbU4edRvF1oDgOufefjWVe0MzOEGKTAENCVPzpNbwhSM1qfn+FlZQalfTq4ed3j JoHQ== X-Gm-Message-State: AOAM532fiAQkHRs5ubqxVl2L4B7rtlsXIUYOqcgWVLetkf6lH+oFVAi2 mpGlTGBzwmwW9UAEZdkr59uJ8g== X-Received: by 2002:a62:7ac2:: with SMTP id v185mr12567409pfc.277.1596793733318; Fri, 07 Aug 2020 02:48:53 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 02:48:52 -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 4/4] arm64: dts: rockchip: Add Radxa ROCK Pi 4C support Date: Fri, 7 Aug 2020 15:18:26 +0530 Message-Id: <20200807094826.12019-4-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 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 v4, v3: - none Changes for v2: - update commit message - 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 8832d05c2571..02cdb3c4a6c1 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -35,6 +35,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