From patchwork Thu Jul 23 09:02:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1567 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C3D7341487 for ; Thu, 23 Jul 2020 11:02:39 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id 75sf3580927pga.20 for ; Thu, 23 Jul 2020 02:02:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1595494958; cv=pass; d=google.com; s=arc-20160816; b=vbNCRMBuf7PeBVim6jndy0wMtjk5XbZEnO4qbjCiU10fex/vF45vV7qHRtSczAtY8p UNTai2q01JhBDdwey9wnTN+nKqgxyikKrqdHXq9ZA9o9chDIf/FB/7kZijZDlA/iL06k FiyJWS09aNzEZoVRCgTbjhm/UYHdKij4HeHJNEVi4nhi9EzQSlsLHSEbaDkTvrkj1p1U S7ZqAwM6ZrgDxAwTS/cLNgRuQV3nicOpdmI2hlDN8fWyuDY1gQVlZmb9hEK66eBcl3y1 WjCTOidAWUF/G63ohI9Zy22bQUTKo7UZ4CapI9e7RATG2xkO1pQLTFcoZ5Mv+OnKBi+1 ZobQ== 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=n84w4zWwtRgXzHqMf0x3kTHibCKM+g0xZXrtR0/Pneg=; b=wTOuTtnyGLrT4MWl84NmOzGZk6D3fJ74uFpPn1M9yTBGZip4mstJOwsFdJkfp+XaIN KA6bA4h7MS7FVL6d+nQfjKMzk7FKTNt2GwKhtOm+QrYQRCQA8a63IGl0HW1qr0bj/7Pa aXgPXwaGle4LuuIPvNIXd0mkd8/vFUDmrX7T/MZZdXwmg9x4RVnGQFXYsMk3MHfU6x/D iioKmHThk6n6zYPLJj3Wu6a/M8SiEv7o/atQLZbCGMbSF2RlyDb1Hf/EEAIgzRg03bWq jG5juzVpDCoqWzmVj3zqbj/aG5ZmU/RaR++nvW5/wQzr2P8avAjHZHzHY6w6rn05mWHC aHXA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rqJG1uSN; 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=n84w4zWwtRgXzHqMf0x3kTHibCKM+g0xZXrtR0/Pneg=; b=SrQB1qfA7U5vCfqG0eqCNpx7fVhPcq5BI4XeUJjOvyEulzu9VxAYRHfBdKjAHp5TGj 7E8O6cJtj28JqPnDDtjJDtbYYp4X7dg8cKJdnsuJ5z8cegibhs7//Ja8cYJSusaViDTk sfvvimNMUipK/efdLxlEu2b+of5xpMjdmTbuI= 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=n84w4zWwtRgXzHqMf0x3kTHibCKM+g0xZXrtR0/Pneg=; b=gEYcVpBbbzuyE3CAwluEhUNmEht3N8n5yk2eNLb9kKodAKjrhPDu2LmiDycriiYSO0 w0aR/Y1HZCqwVUPK6jkH9+ZbcqHk0elET43uLYmWuwcAQwIxIgQCbAop91fac+tCG5W9 yWcPskaDVEugpaLNG1wp6nRK1r2u//wrN2DVzfT+udeLlh3msYEorkFIsDEi/yNu+TAk cngc2F1047RxS7603Baxpc6W9oRL7xEsDMHBhzE9VGOZmuZi049c7oO0h1jiGe15XhLI VzwHWnSX93rSasa5ZVdsT5JLt6ZaSFSypuDKoEtqbT0JZvNsR/NnUHoCxlF9OEobFI76 qivA== X-Gm-Message-State: AOAM531NOBRMmgejokhgCtXCAcs1cKHEnXUBe2nR5SNjf2HwMTaKXlJ4 1lzjNh1F6NCeAGWbes2glyCu6Q6A X-Google-Smtp-Source: ABdhPJyjE7oUNazgrQT4JaU0TQiNWAtKK9CO+DXPqRlWuZBSPw9FiCjNMMpucnw6YtSKSnT63OTeNw== X-Received: by 2002:a17:90b:338d:: with SMTP id ke13mr189662pjb.60.1595494957942; Thu, 23 Jul 2020 02:02:37 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:a9c1:: with SMTP id b1ls2043420plr.0.gmail; Thu, 23 Jul 2020 02:02:37 -0700 (PDT) X-Received: by 2002:a17:90a:f18c:: with SMTP id bv12mr163185pjb.15.1595494957491; Thu, 23 Jul 2020 02:02:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595494957; cv=none; d=google.com; s=arc-20160816; b=mUi3ykRD1mbAtdZpFdcIdj5jheJdRyxj9kQyBOEEtIECpI+oUxHHe3v2dZT6+SejsQ bjbGGo87/J+M7jkB24sPt0UxqvJRoWp0NOyagn7dhzsK0FnfSFKx2pHP04xis2KRlB+4 voItJdP/kpjfMLw55Ic3o5I1iHOZpJ9+D5XKXXVA+Ebm8+9NcXeZbVmpJQtU0L9lbFO1 jF2ZPV3FyvkEREBHO8VekGgvSkBfj4qwZwVZ1iU6v0+rUFch+ZuzyHuRl4SK2MCJB2Sy CswU8EpFPU+JQnu2pZuODn0G5vUgRgJejI8sUh/IDhfHU7sc8jILxIRS2QqKaSm766ko /KvA== 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=nMTCvpA03j/HvhHxdleIon+wdOLzcdNROWHhfNRo/CA=; b=Gl4V0XY3DVhfpl8gURwcv4wONbd7BMvQ0qoxrAedxt9hgJukW7G1L4BVxu64cSOxcb rXTQzm+sbji0Egoo9VgQNsYETkyasC1HYxzA49bFZzbb05Py3TK35pNIeg83DbxiZvia 9ylGToZZKdgsQ/K324TSimYN4P1Ad9ibfQNvNvq1T6M7cjdMyHgW+x37KfnWOeFA7E2E 3j0PZb7GQjPMitHWwY8+x/Ee2muChrKyHSK/N0HgT3C5/YsT/YuN7m9rmWVUxrAylBO6 D9lJbmRF4hYi+vWtf1ey53Tn5PWXyVnEniE9CXInYXzQ3JbKl4WHhUsNiMVIc3U3QiM3 vn4g== 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 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 28sor2370681pgl.60.2020.07.23.02.02.37 for (Google Transport Security); Thu, 23 Jul 2020 02:02:37 -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: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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rqJG1uSN; 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 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>; +};