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: 1563 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9F6773F03F for ; Wed, 22 Jul 2020 21:10:26 +0200 (CEST) Received: by mail-pj1-f70.google.com with SMTP id g16sf2359049pjz.3 for ; Wed, 22 Jul 2020 12:10:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1595445025; cv=pass; d=google.com; s=arc-20160816; b=WX7FJ38IGTiq+DdYQoDq/SVMEcfz3wMUr4YsXuy7g6vV/LZWwM4DbU/NljgjV/dvkL r+jycWcyfVCMsq5yiU+gLN7C+UKUW6ZHOorsJR+ZfOYIiVF9ku1L/OgDnFCMS3ZCqM7B zjCObGOhHjKZJ6G02c0VMenJB03fnpNCzwU6ZjhU+IYfnDMj/tu+LfgGNRGSOHYHPDXt pu4D6xCJYZRiYa2ED94TJ9n0tOBNIERSDf0QtaIcWM+E1l+OA2/HDC7EWZCFM+OPi3nt deBSmB4uwsh6fxgt8eK6tm0c9rz9pIsRvnVIRp6XFmAyitN93SjI1UV85IukDM0klB7k bMMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=t8PNBpepdr3wMeOxgDILakj85288uYLH/gJUgc8zVjk=; b=NuzDaPi4v+9G/cHvD8myJYZFPxLcitstUs5CJ5Ub7rR4hhNyzNNQ9h7FQ3waF6gEqH BVWEaHrIItEcV9DeaZLZPZxWMy8OppWD7IgiiHh8sHTa4VdnJUahfPId3BCfHdai14ht kAqy/6KRfUWGVQu0wE279zCxUw/lXpuVWDhVfNlFPkZd9tOjBQo+2mz9Ic0Y8ULF7U2i Uds17+VbECbHE33Q2dl9HNFJ4qobREaRdjg0XrA/Kpf7HPWzlAC/HLosKz/RUK7KktqY xfnBhEC2IrWyk3m91gsnow+zKIaI+ZuNCSkwYZy2kzFzYNeWbdvzqrnrPURxc+BG8Rln eWpg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pgsehobR; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=t8PNBpepdr3wMeOxgDILakj85288uYLH/gJUgc8zVjk=; b=nQcujSnC3LM2kceXDAjgGlbob0UzJdpKfeMm4hYG6c9eLP9NQ6HBe6tie93bE6tZj4 79oTbZPZVDdEuShNsbpqI6sw5sQnsSeHZsQiGluaEKJImTdg9cZplTfZKHohtUMaPLD9 hoOMaaeVqlrZp40RNFIedf8tVRTHS61L+c9dU= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=t8PNBpepdr3wMeOxgDILakj85288uYLH/gJUgc8zVjk=; b=OLQyYPFDG0rywj94CfLog++sHbC9xM7PmF87vcvJ1fXcbif2s763hHJEa/seKehmik pMI+8D0uPk6e1RvMlL2vQ09iARLozSuklPXkwhlYMWaJLUEXt4O6IDQnLts9GlcD1l1O 22ayTaquwA8Xz6RKYNmDeNYLgQBFpFTBlxRZL5E254QmMZbcm+wk/OBs/QFSxG4Cdz4z mGVP4IC69Puz1cX324FHy+vpZT2uelD1BVojO6nQi+o44pNha3lrY05eM8t6jRMNFeah vW8f80fpcHIZe46x/lIgqtH4f4+smAwZPVM01IKEAcFU/zDbRyKMZyeHQx/VhzJPDbCV SVIQ== X-Gm-Message-State: AOAM5318XC1SpvfUB9k0pZhdmLrq1qh7ubn19I9F8BU7jORpHtD0bEst +ZCcY0qQK0bFUsYrgTM7+tjOkJy4 X-Google-Smtp-Source: ABdhPJxOubF0p0gnbNMTIK9y/UMC4ye1DDBRmDW3ZZaR/vGArk4n1mHAP15tQFCVu+NJ4UApDHJY5w== X-Received: by 2002:a17:902:6b03:: with SMTP id o3mr748010plk.69.1595445025187; Wed, 22 Jul 2020 12:10:25 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:6715:: with SMTP id u21ls914079pgf.8.gmail; Wed, 22 Jul 2020 12:10:24 -0700 (PDT) X-Received: by 2002:a62:16:: with SMTP id 22mr915426pfa.120.1595445024706; Wed, 22 Jul 2020 12:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595445024; cv=none; d=google.com; s=arc-20160816; b=0HZVf28Fuwtr9jxMVoVdEDY1O3mPLlGbl2hIR/yfQ34ZtsNPm3m2XyAxasHp76ktCg 2hfrZjJ3laszgtSyx5qacDqBizAQt8FLaAhwN0B//JhkgALVoPRs/7O3WPsPAop3eHfp eZWOsSCTRbh14Rq6T0f//XBmqIk7lijPwc5UZCds5fxGW3z+KJjR258k5FBcWCONuyS9 W8ueaQU5YfwqcLF7SxhR1kyjhISTntpoxvs4CEInqVqQBXIqM3O5+VNtijaZYJpcvZmP uk5yeH6UUjCIWU3YihCqySl5NQmkWCx8Sf4FEoaUjLKh/zuBeSdMxpE86tCWBs3tUyxQ R6hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=cGX6YRrhbrO/m3jF24wl30NH0VjikDWGykW4dnyjN5I=; b=PH2i2yrK5l+wE7kLd+FTkwwnHkNy/rE9GqVNJ/nkP4y+PM4Bk3T8DdcrCs+IxWeFka 64J2vShavSACd7bKnUpNuh/zWpolInLolhfru00yyueFwrQ94FmkaONUoChAkuNl920p 2bfAz5fe9Emk5lkuySOCNuF+F23dwHNvOlSeUr1wGs1UqzfCnHQPcXkPtyCw2OTg+1eH Li6Z1vpR0aTnh1wswMyGMOJrlryy88qw4+9cF712D3bJhM+jn7FhIBAesywPbskzZz20 ae3ZTBCk4VuNk5gxwphziL4u8OUrcx+yuaPZFjlSLr3ShtOmo5HE+SY17JP+ycgNGRIv MATg== 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 jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id l2sor468991pgc.55.2020.07.22.12.10.24 for (Google Transport Security); Wed, 22 Jul 2020 12:10:24 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; 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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pgsehobR; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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>; +};