Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1166918ybh; Thu, 23 Jul 2020 02:04:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSZT+r5PfAzBRR5CfrKpVMgQgluXyigJwOlHafKtnUPiisty5t5dcoP3OnFExlZBUANf8h X-Received: by 2002:a17:906:82d4:: with SMTP id a20mr3183706ejy.165.1595495053310; Thu, 23 Jul 2020 02:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595495053; cv=none; d=google.com; s=arc-20160816; b=CmIgQZtwk8r4iYMwIOEZKIAP1niu0DGoJlllmAFlSCX86NNdNGlnV8doDbN2ilULlB i4f35/uHcDEvc97SblKsOp96Pzwy3NqtekpX5nit9Yy55g56VDkFdd+uFZDMNkht+3WH pe4TDWKRoYiDNPw76VrVLRFWCojRjG25gg+JVKZu3mBpuhnST7zvNp4wlA9xQuJYmuLp 7r5ZGm0EYqQInhmrWaiQ6QtdpL4eocP6ylIgRryetLjQC1/f1Roht3eYwqgzA5B4kDIj 3H3DePWJGMg21rYzIYaBoAD6t917jzGwYEi3O+6bi3gjpnk8ufbYto9NRAMilWIaAtjM 24ZQ== 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=nMTCvpA03j/HvhHxdleIon+wdOLzcdNROWHhfNRo/CA=; b=m5ANfXmGr8hAxJOVE0rMJX1//xAHZqNgYsYqwyCgRm8H6XCBxgezuvcvqhrz+qjCKy cucTLXeL1IlqbPIcxfIXdT4/OlGbi7h7RG3ZI9kZkq9+wv6AVmW+ucmEkpyQY25qp0Cg yetNVKQPY+0cDann6xX4RFWNABrgy9rsxP+vv3gIGxqzjwhC2aESV3fa/EXEmSfZUJft ZPc8cBwswjAlYKplU+Rg2y3oNNPeul6kpo8a+Pap2+ZCPIBQWxz/9EnqSjhREQVlRUsz j4nQWmGgRU/2TI8cpSh68OTAJmM9u4Nc7lwT1jdD5TiXR2JxLkrhuvEJCh7AQ2YdZ9n+ JOeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rqJG1uSN; 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 a24si1472790ejs.633.2020.07.23.02.03.50; Thu, 23 Jul 2020 02:04:13 -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=rqJG1uSN; 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 S1728159AbgGWJCi (ORCPT + 99 others); Thu, 23 Jul 2020 05:02:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728145AbgGWJCh (ORCPT ); Thu, 23 Jul 2020 05:02:37 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F01BC0619E2 for ; Thu, 23 Jul 2020 02:02:37 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id w2so2759498pgg.10 for ; Thu, 23 Jul 2020 02:02:37 -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=nMTCvpA03j/HvhHxdleIon+wdOLzcdNROWHhfNRo/CA=; b=rqJG1uSNxj0UjXWnxEL68YJ+e05mYQF9ICkOlWoNcPunoLOl2uMdK3oHAwtPsd8DUZ pN9PCxFKIBF2lkbnZnQGnBauHF7ciXcAKLwB6CmgAhES3WlOhR7etuetdUws9aPqTFoS t2gJCcYSrVh9vzQoJrR0D0tmtqsZu3+aw8yPE= 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=nMTCvpA03j/HvhHxdleIon+wdOLzcdNROWHhfNRo/CA=; b=Al95pfU1aOzx633Zt1yu1SAHlX2mXefbbcuRq0z/fp/KkfAtgGmzctSdtiV6/pmg9A KETXWS7C7ZCxG2AljmAAaxujsI+p9x8mJ8f17ghO3bZa4trYdyVKlamYNlUi7iDj47yM KECxRVwWWh1PVB093oYLlLszO0b3vtPIaGEfkdao5Qr9DwBah36GPbe9VwHcuBdKAIWU bsMhCQexUHZB6uf/gj60XnMD5pIEkbAYhfRYz6gf7mj7x+oSik2BBsZ47zP2pN3DKSu3 QMsmaRyqH8dypcQIKP4croudziNTUiA2XQDHZ4QoYWFwTyAp0c0TcslNYXCLKhqOwIQx UOuA== X-Gm-Message-State: AOAM532n9vx3jtBBWj1rq+OPlxiymyup2RDPs0Go9+vMdl3yjNISe8mM eZ6t+BpdmAhe4KwOIY6dpuvjMg== X-Received: by 2002:a63:a558:: with SMTP id r24mr3446741pgu.70.1595494957109; Thu, 23 Jul 2020 02:02:37 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:cbf:ea0:8a30:a3af]) by smtp.gmail.com with ESMTPSA id k23sm2319383pgb.92.2020.07.23.02.02.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 02:02:35 -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 v3 4/4] arm64: dts: rockchip: Add Radxa ROCK Pi 4C support Date: Thu, 23 Jul 2020 14:32:10 +0530 Message-Id: <20200723090210.41201-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200723090210.41201-1-jagan@amarulasolutions.com> References: <20200723090210.41201-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 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