From patchwork Mon Jul 20 10:55:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1511 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id DAC143F080 for ; Mon, 20 Jul 2020 12:56:27 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id o5sf12441433pfg.10 for ; Mon, 20 Jul 2020 03:56:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1595242586; cv=pass; d=google.com; s=arc-20160816; b=KeT1niHF9jikKIzPcdnKzPC+36Etf0XG3VuNcauOT2mwaWe1l06HLCnZ9SxODFR+V/ 55ld4UpkieP52lsepdOlsvJKW/Sni8npBz+nursX7jOYPXzft/vJi2QXxCR31R9UOwd2 1ov3uLpDH+3SVG495gYjlCSuCTzHySnroUx+p2Ei4dQ2KH9mqnr9tKGQW6Pi4aLDbSqh /oVECYdayd064UQC5CHBYVFC0uOBClB++qAVhzEJ2nrdQhiBh57FJq07nvKxlgvdUzAw Yoys4Qg7udlOTqhDbKb7+lWv/c6mExsVX3KpNQ0rEGcwqOmnvpAzVQLUOmyuCA3lVDkm LYpA== 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=42OMjtJz+B1AKu3kFmGS9pM7v/dbdFl/YDFL6Sfpmmg=; b=ORwxhara//tBYVFtFqvdnC5ckSWGacvthy48BaPJ61+A5Jfe9twJd8nf19epkX+Sxj OJFc8nCAZQIpemHBi+Lm830RYZaYkKxrKAff/vX0xsrs5AgKuG7ztyidfvo9LrNga2s1 3h3FIG5I/XDWjPZZhnVvrkuBs82d9QROYsIGgBHReDQu6Lx7e1YM0bBA/3O6PG7Rq2jx UPqBdGFs4+/AN2gTjKKm+0KiWta4B2BHHMioGgfveMampogYKJKrvBH1tTv7gzjMEaGM tJ88ySXnFWFEt2vVN6KWnJl/G/CEPKWgFmBIP9dtoRJ0sX/Mvz3ekvoYIAmE48HfpaAW Aumw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Ly3MetxY; 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=42OMjtJz+B1AKu3kFmGS9pM7v/dbdFl/YDFL6Sfpmmg=; b=CJ+5yZyfRZEo5HgsyH9ZjL5GIRq/9EOWLpFGYEceQelIz52/xCrwji6mrcnYFU/cld antIYGfahlMRswKC4znYmWSH28bjOwjskZGC6noK20YdIo0oE7cWfmmaSwvXgUYV5maD S6pBO94SJ0zlpjYOEzAqqap7aN2OKWcbtPItY= 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=42OMjtJz+B1AKu3kFmGS9pM7v/dbdFl/YDFL6Sfpmmg=; b=PLci/eqx5aK0fEu7h12ebY12r7ws8UyHsGJ5FDmulQdaVcnZ1QWiXPEjl1jtuWx1yp HNV8Tm3xSfuMykIb5r+EylH4J1akYo3JO6d9jVZ4tdD1hind2yhRUDi3BbjhzA308f4G PwIWUuxmrHjCaZVXsuxCp2vxBZA2PpM3mvZt5SKgws2pwb8cgLK6s5EthdHRyV7AQ7xz nwIjvZdVx6PFgpwgldJ3ZBgd8CAdmh1MhIaAGqtWuO2ZxWe5Imu9r3CV52TUHLwmb3lJ Etr6mX7NNOA2UQprXunDEQSqsAmChHat2gKjYrbNyDKyv1xLNCsWUkTa682X43LK9GLP L8Wg== X-Gm-Message-State: AOAM530EgZH7vJHkdLBbXYcbI4N8iRF4r5xFU5tV5xM9GUNlUBEjkZ+u e7CPA3JZ+vTmdyhoLm4fMDdZzHOT X-Google-Smtp-Source: ABdhPJy+8w8H2v2Hr0aYgxPkmo1Nwi9D/1oEquYIrS6QHaAugbwoY8fOxKdS0nI5EJVz+HQwF3XTdA== X-Received: by 2002:a62:1c13:: with SMTP id c19mr18256616pfc.52.1595242586211; Mon, 20 Jul 2020 03:56:26 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:7757:: with SMTP id s84ls4543868pfc.9.gmail; Mon, 20 Jul 2020 03:56:25 -0700 (PDT) X-Received: by 2002:a62:82ce:: with SMTP id w197mr19212547pfd.322.1595242585714; Mon, 20 Jul 2020 03:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595242585; cv=none; d=google.com; s=arc-20160816; b=I7TbssQo8cnw04tH38qNjyrNhcqVrBHvAvqDN7pzmi9TYTk8jbJsCEJR1x3Hmjdfir QwOuJ9p7Q5MFNlcAwXjon8XACNZorlUIKIDf1YvWWq2UjpvBtcKgFxzPLRTmGYVo0fQ6 kZnLS9DKJqyz0ZIEXHSAbQJIlTIhaWmja+Sb2giUyLch3v9xylzEb7Pld1IBFmksza8v lPOFADOwNlGfqSAtNLR7Z4KrYy17ltpNpZKtzASqD6PoZj4xCj0/KmBMdYQ1MWqnAdXh jyWmPiH3oAbNqxlIVuwZ3CIEGMiEjD+SEod8oAO88cuil94+Uicazv8MKDd/yiHWNKaT 41wA== 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=nSOMoYdoeN3ixxkr9HyJ0ziUQqzOG9TSyjql14cVs8g=; b=W+euOH50+HUh/XKC6zXhRcCaGuUUfPsOUNlYE448suBP49KD57B3K6EH+AYLoBSvpT lfEu8UE2YFSYQ/ZTk/GsAc9wA5hyOVjCZ1ccpieouAY4w9DXSXtqZsMsVvYqfTu6EOJe UPT7KbKfWxgczVo8+W4q1SDJRmPRoU40gw+f57GaK8qGP0QbPLF12TrjXxNSeEobyKVm xNzTRTu2nGgA7gJWmJdCj6Zf4HiZDM0wCWU1sXfbBwmnQhB/kCLcWDHEJIHli8WGugjP +d26TTfGV1DWPkWnB7P4eZEaS6ryfNGsT3DccCbbpKQym/qNerwr8NVvK6BzSbQ5dxY5 tGKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Ly3MetxY; 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 em21sor13714174pjb.14.2020.07.20.03.56.25 for (Google Transport Security); Mon, 20 Jul 2020 03:56:25 -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:a17:90b:2350:: with SMTP id ms16mr14056450pjb.127.1595242585402; Mon, 20 Jul 2020 03:56:25 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:8c21:db7b:4558:fba3]) by smtp.gmail.com with ESMTPSA id j5sm13984721pgi.42.2020.07.20.03.56.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 03:56:24 -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 3/3] arm64: dts: rockchip: Add Radxa ROCK Pi 4C support Date: Mon, 20 Jul 2020 16:25:31 +0530 Message-Id: <20200720105531.367671-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200720105531.367671-1-jagan@amarulasolutions.com> References: <20200720105531.367671-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=Ly3MetxY; 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 --- 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..9d07ebd1ec82 --- /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,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>; +};