From patchwork Fri Aug 7 09:48:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1587 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8DDC43F22D for ; Fri, 7 Aug 2020 11:48:55 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id e4sf1192573pgv.7 for ; Fri, 07 Aug 2020 02:48:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1596793734; cv=pass; d=google.com; s=arc-20160816; b=vrNJMcN+wubMNqus/3VoSY5IhKMo6ccgfRilVtb/D3SMppg4gbLx5e5+CrDJPnnSBR iAQtWJnah8HoHnAcSOOczSCRZPRDgPwjJ4EwDLAzQZKp7xDn+pNnjQHWaiKutguQ1yVw 5r3Xh2f1R5uv2hsL00nbHBEzRXahwGJKVU7rD+2OSKSO2mlmhu4Vtw07vudH5LKoik95 U4cOEzkg7jz64DpmB0XkElJw18xG37qSY3UGsdIjj3IK2U50lWy4rYT8iyWdjuiHVq2Z Vv6P4QTm+G0R4KQU9M1HDF/8A+kz9h3GesPhWnFeFIYSIUT1gnRRzzhh3JRynYQ5XU6h mXDw== 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=2J7FKHX0k9PbW4ZzodoLblxrGBMvO1opwvJCZraMSJc=; b=yRP+ZJRX4JtXa74lI847vFS3IYT3L6/3fj0cJRiaJBz/NXhp9W6j1eNfWSl7MNFjcJ Q9/pCpmdtSntRWOr86xOPFJ0Wp81P0OGf3N0Q/UxUDpQkuUdGtl9293pL/7qxmXmPXK+ yRd5o4CawGS3Sjn2HdQ2j+9mntChbMfhbz/qxedXTSDvJ7L2FEhaj6x9SFSzywtYReT/ ZTaMK7uxfdBlsm8atV5O6eKm4496w7if1etw36tCK+1ZWF6mskHf1bqzcRrN4btnmKUI mdmmHyfuVCbizTigpQzqYf7Jr5h0VqNoNd4s0l89wV2hgGH6N0b6ix0v8myms9t7K4a6 5byw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FnPFmg0+; 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=2J7FKHX0k9PbW4ZzodoLblxrGBMvO1opwvJCZraMSJc=; b=lwFpJbcu1lK9MMsiDAsJTdc17UmptQCjo00r6oiGinQ2qGCM+mkWdV4No0SwaOjh/p SAlknp118T4e8Ca5o0JR0hcunXQ7xHgV1ZR+xfkHELe3mpDkgtopN4nAERuHsonmCYd9 8sTCkODm83ew8I63dFD/x9/iyN8pjv432XkDg= 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=2J7FKHX0k9PbW4ZzodoLblxrGBMvO1opwvJCZraMSJc=; b=SObqix+oE5OG7jVcoRjdZoTdLuV3RrbKXtNjMUi7CD09QDdtknbFkASPPL8x1R7UKY pqvFJOZ30VMVjqs56Rie+g/aO7KebJxXl0dSWcynNSMclUBpiW6mWPPGG8G2KDfmtX3S OLgTKE24h0jibaV7q0uUcTE9XDDWPrtDS4xhufDBVqt7OCV5Oja3yDUMmyrPl1uxAcuc Zmwq0wBDgTgMq5NiJqw7PBplR+/lhZsJHzUsiTQQQQsirjvm/3yQmvJ4+lYyMBmLhoA0 TEsGWOW3c+3Olnvx6+mqzTfOa7vRLoUgF1GwlYAst7Gb5jhbmSKBKLY1TpbGDkomFo6c +EmA== X-Gm-Message-State: AOAM530Qr3vqhp3Xp/l/W9uT25HVaMYka6KeQDbdaYEed1IJ+BVHttSp u6ljGL3spWvfI17/flYBn7OQ810U X-Google-Smtp-Source: ABdhPJyrNrQAQA2MJy02R570e/Epts7wTSI6fP1LEWP8LtKMVZl5Ll02pg+hct/yXQs925EFQlJxvw== X-Received: by 2002:a17:90a:c291:: with SMTP id f17mr12849278pjt.92.1596793734096; Fri, 07 Aug 2020 02:48:54 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:6d86:: with SMTP id i128ls2390965pgc.6.gmail; Fri, 07 Aug 2020 02:48:53 -0700 (PDT) X-Received: by 2002:a63:b709:: with SMTP id t9mr10734653pgf.376.1596793733606; Fri, 07 Aug 2020 02:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596793733; cv=none; d=google.com; s=arc-20160816; b=0oqaOhXKgFwf7krQIyUFUI0/X2TRujNFsNhw/MMhrJRxrUuyNgHcDX1x5TnttWFQs+ iez+q014Q0jkeALGtS4M1gSyEzomIyWLKIEimhK0dZcZTFbHYI8MuqFC0neavPZ7uDPC XT4r/2PegoO5aovTeQAX2oUddxU6ZWi0QDq/r9g+eNW2pwF/rYU68NPVeFYcy5XVjKhT DY/gTyQTsvDCdy5E7OT/o6vwokow30b2eKVew2UA92ijWBgYxdQccGHq9dJc1icflNaY VeKBJq19iv1QJ7gfySGqXgD+BkVLMzyUXUmxAeJA3gP+x0gfV/TMTOpCaRTefix0IVjm 6o8A== 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=Qtqjn9bdXGvUfpcD1HWzU/py18DJffCjiF+w/RFjz2g=; b=SNnHM1Vy/Cy1/5Z/MgdE/ETBqqB3sGYOnUCHkzNt5V+7RlSbxYtuEy5yuT1b4/V4RI 9vuYoquXDTdEonqNLNHAFoTX7bM6oIg1PuEUQtr8QHwHc89oav9rTQF6Y0az0wRBG7qe 5S8kJf1dsWZfe4l1mvKkAlJi65TkxSlURzLl6i95t84zlEy8SnJ9qz5oZgNEAiuhiG5y YPz+TQ9noGQgu72lClDsgLg+N96Tb3iZGNcfvYUSFMSZ6mxWoopFXPO7J9riUKrdNJ2O beD5kCHlOsDamMokaq5PTg2VyMETlZQcIAn5yqkYR+U3GDefzLT5Kpx9gXUev1rt0uVB a6pw== 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 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 m126sor9790233pfb.9.2020.08.07.02.48.53 for (Google Transport Security); Fri, 07 Aug 2020 02:48:53 -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: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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FnPFmg0+; 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 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>; +};