From patchwork Thu Jun 17 04:49:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 12326507 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4042EC2B9F4 for ; Thu, 17 Jun 2021 04:51:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0715B6023D for ; Thu, 17 Jun 2021 04:51:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0715B6023D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=XhyT7LBg2e8hOKJfEk9Mnufnkkp/TRdasIdAGsikRSw=; b=T6TFwtLCGdzsf6 jCT8qi8u0/S58bJjxBXBbLdOB1kpE3VfqI1zmlWnFxiMWhzObzmuEBKtFmB222o8F/fcrKtfrFnM8 Q7BLb3KUUq0D72slH/MgjF6nGOpoZ/oU+b6j7MRa40ohwjcdJoo70nnXycOJV2ermnbH4Dt5DdDVc nKsg00gLVpqffWszIJk4Ldmll6Ou7VYfg7+0deZ6/XcBu8thWar4ssNx2ddYYBYkPE3nYpDtgasuY zHwwB/nmMgQKVIVIQugQTaePSMncoSSEZmtJWB8f4BpxmSAMn4YsZjaMa6dLEQPkINTaQy7Sce4I7 5Besaoh/94pW5JlsjqQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltjyi-008mu2-0U; Thu, 17 Jun 2021 04:50:08 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltjyd-008mrt-CE; Thu, 17 Jun 2021 04:50:04 +0000 Received: by mail-wr1-x42f.google.com with SMTP id y7so5068625wrh.7; Wed, 16 Jun 2021 21:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G8xBS3pgbjn1u0NzXrJPbnHQ5MKIiawbeczldYN/4uY=; b=gRZDlpwJC98qkdPgrOJkADH6IP23iv9SrTRmpkw2AkJwJ+KoAtVQFY5MmhSCAgzXAP CQz3L5elU7d+jI1qjhW5wSKAeqqhaKHpG5zGPQYTJsPxU+uyYo8xdEWOD3FyBVrz6U4T t9kdWVXw9nJkuoavkjqU2+EaWpZ15IsQXvOuIGJAjqyXo3CIA+iBOegeI61ukmYECbBA VUW32LtiG9zLQrTt3ks8Fa4r3tiOjyYN9J63rQSGwNvTPLBf3nLnPijM1+6SkPYs3BVv vw1c8ANYTHxRNeSFxUpKblCz+MmmUnte44HQ4js1hQ8cAY7Qu9JEN0KWpf2qg60dvjy4 vMDg== 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:mime-version :content-transfer-encoding; bh=G8xBS3pgbjn1u0NzXrJPbnHQ5MKIiawbeczldYN/4uY=; b=SiGwio6q/QCZdOjuON8jVOa72wTzLGf7aXcNTWGxqNS8Wyxs+canopXG8z6WQdurAN P0H6N2IWY9Aj6QRTkBiZytFFpR7HJO9m2eUNhFXrzH7GSLVXhUX/x+RvOaVSb3PhYM9H H8/9tZfp4MOFJiZ8Lkjg8yiB0Eo2sUHmxp8nrYkym03/IxKvYTQodh89OwbMR5C9Lz68 +PA8VI4v4dQ9YjjiXaL6VIEvvdi7CShQhoXHTdMP+xsMRxap+NfbNUQrm3txocO43kOO iGLX9xP7Yj+gl7Mib41Ng1dya7Dax8h/K7HfZp3wz3Ub+U6EkJ/AxQRpa3gIi2KVmb7c 4rXw== X-Gm-Message-State: AOAM532TIwRCZzjzXioqMWS9UI6rrAJ1yW1+IFKQjRgHA90wdgDU+VYl 0qfL2A3a0RHjRndecQ5bo6IqH11wfg== X-Google-Smtp-Source: ABdhPJx88fGa0319NJTKdbmepy1yUaY/3BNtC2Mjf2cyEjMmkgRDpZVAMMnOMoXSvFjVc38WHmCZMQ== X-Received: by 2002:adf:facf:: with SMTP id a15mr3278608wrs.308.1623905400757; Wed, 16 Jun 2021 21:50:00 -0700 (PDT) Received: from localhost.localdomain (ip5b434b8b.dynamic.kabel-deutschland.de. [91.67.75.139]) by smtp.googlemail.com with ESMTPSA id n13sm4587460wrg.75.2021.06.16.21.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 21:50:00 -0700 (PDT) From: Alex Bee To: Heiko Stuebner Cc: devicetree@vger.kernel.org, balbi@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, Alex Bee Subject: [PATCH 1/3] arm64: dts: rockchip: add ES8316 codec for Rock Pi4 Date: Thu, 17 Jun 2021 06:49:53 +0200 Message-Id: <20210617044955.598994-1-knaerzche@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210616_215003_461247_10CBAFF1 X-CRM114-Status: GOOD ( 10.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Rock Pi4 boards have the codec connected to i2s0 and it is accessible via i2c1 address 0x11. Add an audio-graph-card it. Signed-off-by: Alex Bee --- .../boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi index 7d0a7c697703..e5c1083174ff 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi @@ -36,6 +36,12 @@ sdio_pwrseq: sdio-pwrseq { reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; }; + sound { + compatible = "audio-graph-card"; + label = "rockchip,rk3399"; + dais = <&i2s0_p0>; + }; + vcc12v_dcin: dc-12v { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -422,6 +428,20 @@ &i2c1 { i2c-scl-rising-time-ns = <300>; i2c-scl-falling-time-ns = <15>; status = "okay"; + + es8316: codec@11 { + compatible = "everest,es8316"; + reg = <0x11>; + clocks = <&cru SCLK_I2S_8CH_OUT>; + clock-names = "mclk"; + #sound-dai-cells = <0>; + + port { + es8316_p0_0: endpoint { + remote-endpoint = <&i2s0_p0_0>; + }; + }; + }; }; &i2c3 { @@ -441,6 +461,14 @@ &i2s0 { rockchip,capture-channels = <2>; rockchip,playback-channels = <2>; status = "okay"; + + i2s0_p0: port { + i2s0_p0_0: endpoint { + dai-format = "i2s"; + mclk-fs = <256>; + remote-endpoint = <&es8316_p0_0>; + }; + }; }; &i2s1 { From patchwork Thu Jun 17 04:49:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 12326511 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2E74C2B9F4 for ; Thu, 17 Jun 2021 04:51:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A4A7F6023D for ; Thu, 17 Jun 2021 04:51:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A4A7F6023D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=444rEOoGRMcbrvOWyfn+awpQAoFy1mNxYnWE8sU0/Hk=; b=T1+GPaQCCnvc9g 7P3djkTOcupfuTZHUj/fz/HXf8aLF4YaK0vkIFi+R4pyhapn2gMa3Cx3hY+9MRwjn0RuSHxyciw37 oeLB7OQH8Y9MVoNCzUxaT0Xaw5hDbWZzwq8XHiFibPaAIdStM+hEk4JbFedBF5itD94ZghhXFQyZV 8SvEwqlgAPtX5VcwtpTokoaOf/G1VR4JDXcqP0iLiWoWM41ynp6CCQT6PnoT+M5XEcWnoHYB3dp2t 0Cj6VFAr0F9FFMeblO1aCTiW1zMfhaGroHkbhHl/ZZ7YXJApUj4il2hQEf9JJDI+wC3fMcSADf79D FtR+rgd58qz7l2waDDPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltjz8-008n2E-8V; Thu, 17 Jun 2021 04:50:34 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltjyd-008msA-Vs; Thu, 17 Jun 2021 04:50:08 +0000 Received: by mail-wr1-x42b.google.com with SMTP id e22so1497049wrc.1; Wed, 16 Jun 2021 21:50:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1H0pRK+p9SqfiPEkg/fuHEcESDP6rKm5XaeGluOXB44=; b=rpQs4ZXeo+Yv7RZBLrTk8MPAbfNG6uJkL0o0C/VYsmaGbu+xJYA42CPhNls34kCK5a V1t6TKoFIaN9XXPfgonRV5RH+OuJX8Lh/j/uUCgWdfJ3vKu6cXaAiXZNZhXzHBrekgbX ZgxsoQAjfgwQ9htKXLkCYLpALrLFyXczcowzPREIfZo4so33dWFjQpyfOSH0roTcdvS/ 0WByXlgJUcQUjaDVEf7AajWtPkkEN/UjI2FX8Lo8qU6JVmJf49VGdnIeSAVs/hRvlK0/ Id+Q/mbDe+KD9amsbH/VpFyzd/S8UZDkEaAJ9duhq138GCEqeREvyyFwiGJaGZTQ9Oxo GTkw== 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=1H0pRK+p9SqfiPEkg/fuHEcESDP6rKm5XaeGluOXB44=; b=ot51rLHJ1NJvtpHRQzdO9QEvjLtHzIvWnwo8mrzljODrqDkyWNHo4tOUMXWO9R/f/r vfECMvpkmLW2CUnNMOLtpwff9ARRgNyeDN7D78WsrPgQ49v0fbTlhRc6MhhJM9IQ9Q+v T57IzTX8RJM/9Gs0H/nUFmGj9N3KRwCilr1A7yhhqIP/8kUJEMcvF41hrUvRdYUqXIP/ MkB6IapnRzSlxVELE+uiQCZxcm5x6CRNkvbOnPT+5Aio2qufVzzay7WR/UKxW8I//uDu Uhaxb57QSZe8woZVBwuwgluJBsxJ79tZYTqbAUoNkaGAWBoM/iVTrxlFnCMOoYDFG8hs hgMw== X-Gm-Message-State: AOAM531q4LAuBZZdFwTOoHBAtbP7poNUtCpBljSvGMZhmp/fOk14o/x4 NlZvn0aikK1gzv/xT/7QqA== X-Google-Smtp-Source: ABdhPJyK5VW6f5WGABPtt+CT0g9pGSVIMgGRmmCBlmt4nt0PrKA7657C9oY+PUkydL3HprmgUjJ1eQ== X-Received: by 2002:a5d:4689:: with SMTP id u9mr3155825wrq.31.1623905401488; Wed, 16 Jun 2021 21:50:01 -0700 (PDT) Received: from localhost.localdomain (ip5b434b8b.dynamic.kabel-deutschland.de. [91.67.75.139]) by smtp.googlemail.com with ESMTPSA id n13sm4587460wrg.75.2021.06.16.21.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 21:50:01 -0700 (PDT) From: Alex Bee To: Heiko Stuebner Cc: devicetree@vger.kernel.org, balbi@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, Alex Bee Subject: [PATCH 2/3] arm64: dts: rockchip: Add RK3399 Rock Pi 4a plus board Date: Thu, 17 Jun 2021 06:49:54 +0200 Message-Id: <20210617044955.598994-2-knaerzche@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210617044955.598994-1-knaerzche@gmail.com> References: <20210617044955.598994-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210616_215004_062336_0F645606 X-CRM114-Status: GOOD ( 15.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Rock Pi 4a plus board is the successor of Rock Pi 4a board. Differences to the original version are - has RK3399 OP1 SoC revision - has eMMC (16 or 32 GB) soldered on board (no changes required, since it is enabled in rk3399-rock-pi-4.dtsi) - dev boards have SPI flash soldered, but as per manufacturer response, this won't be the case for mass production boards I didn't add yet another compatible, since the small set of differences are captured by the device tree. Signed-off-by: Alex Bee --- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3399-rock-pi-4a-plus.dts | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a-plus.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index c3e00c0e2db7..dbd7d37950f1 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -43,6 +43,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-haikou.dtb 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-4a-plus.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 diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a-plus.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a-plus.dts new file mode 100644 index 000000000000..2deaab7f9307 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a-plus.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Akash Gajjar + * Copyright (c) 2019 Pragnesh Patel + */ + +/dts-v1/; +#include "rk3399-rock-pi-4.dtsi" +#include "rk3399-op1-opp.dtsi" + +/ { + model = "Radxa ROCK Pi 4A plus"; + compatible = "radxa,rockpi4a", "radxa,rockpi4", "rockchip,rk3399"; +}; From patchwork Thu Jun 17 04:49:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 12326509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FFDAC2B9F4 for ; Thu, 17 Jun 2021 04:51:43 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1FCB760FDA for ; Thu, 17 Jun 2021 04:51:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1FCB760FDA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iCQR3BmsFRatzx9SddXAu7m7DE0jwX8XAiOawwDZ7C8=; b=OFsbBaYgCoYNxL eqm4i3snnZBrm5wE5h6myjr8nP/BC/zYshQRWmOIU4KU3jmEkI3NAP8ZYKEnhrw/0C08tNG+L9p8f G8VFGByPjxNEITsk6BAT7+0sKcJBz+eOFy+6jIuLYYk29MsiqcwDzzTvsNhz5tWbULlLxJIyWnWrM Ey2lk/F4otWH/NHjJ8STFboKxQbUG5ow70oxW/eiShaFnSTrcJ61zp19w1itLADy+TI2sAr0peS0A NDBErVOQjUF+jDa/gKDAVjn60dNYrBN8GU2XF2UDnfdviAfVKKpAjQ2DsxalTlNn9E5vVcoUknNQh 106hqCttlG35yEgWpjZg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltjyu-008my4-1y; Thu, 17 Jun 2021 04:50:20 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltjye-008msI-QJ; Thu, 17 Jun 2021 04:50:06 +0000 Received: by mail-wm1-x335.google.com with SMTP id y13-20020a1c4b0d0000b02901c20173e165so2895466wma.0; Wed, 16 Jun 2021 21:50:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ASVo2MLoqVP1mLF6Nd3xdMslTrtZKM7Mb5C6XqAN9Os=; b=FHM8WTkrJ5sOVzzApmHO1kODYwLZheKZiN+Dv7007BCbcYQYVmxGSFAy+1wHvpZT8N p/bJu+/TqfBIGRtpgsEPdqKOvltEjWjCmENWI3Uao9PnBs2UY/qhPgW0NLrFMQ3rCa93 I8Kia0V5WTLKTH4kUUQX7L/uQx7Zeh0q0wsp373RsupINBdP3zJ9DwflL7wG7NCoA7GI TMtSErfAzbe3QZ5wet/jwyYhcm3KWSHYeifs/qVr9EXW9uaVhY1BgRsRAw+ikR7PIgoi IoKltUU6dO0Ux/0r3fOj4ZeLfCD014ipoARQVFGvY8vRFyk1ZbCBmtV/l5VeU7x+xmKd VhEg== 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=ASVo2MLoqVP1mLF6Nd3xdMslTrtZKM7Mb5C6XqAN9Os=; b=pgrlvZlAnnVDhs7pQumFzfPUowJONOEeEWhyRU2bhfzoQHLrjYbDubMAWamhQMTIJB rPgneZHAvfz0KGDCEARgLhwIG+cjx4z3nRxkzoR8yS5TkpX5fDHjaK0oRdtzgFqXtt5F 37u239DU9ZHUnVTqh8ZEBiZFP4yfiTGiRVPRUhqiaLBFNMs/krF+Su/kDv2CdiV9CHAo zvQ9n/iNKWdK003m0WLr1FmxYqYQtlrVAvQ/WSXyD4B16ow/dl99qLL3MbCEe3RomQc4 wWLy+nbdKOG1w0Kml92KpIA2ibeW5P/szr9HfNFPttG/1ITnA83H2agooD+/UQYxaEtS P1lg== X-Gm-Message-State: AOAM532xFPGuJDNolLJ6/Ivf7t2GWtmUYt0D0qO767DPUTEIR0/jj7/T z+aOCVJ9ro5XP25rf8uRsIiiWqj4AQ== X-Google-Smtp-Source: ABdhPJykCMd2j7kccm6Lk69DK/jMdpK2aAoJdzlwIytRotmEuFmHTkvf2l6vWkoFn0SfSipgLCeULw== X-Received: by 2002:a05:600c:3ba2:: with SMTP id n34mr2705531wms.120.1623905402247; Wed, 16 Jun 2021 21:50:02 -0700 (PDT) Received: from localhost.localdomain (ip5b434b8b.dynamic.kabel-deutschland.de. [91.67.75.139]) by smtp.googlemail.com with ESMTPSA id n13sm4587460wrg.75.2021.06.16.21.50.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 21:50:01 -0700 (PDT) From: Alex Bee To: Heiko Stuebner Cc: devicetree@vger.kernel.org, balbi@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, Alex Bee Subject: [PATCH 3/3] arm64: dts: rockchip: Add RK3399 Rock Pi 4b plus board Date: Thu, 17 Jun 2021 06:49:55 +0200 Message-Id: <20210617044955.598994-3-knaerzche@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210617044955.598994-1-knaerzche@gmail.com> References: <20210617044955.598994-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210616_215004_895061_9279DA23 X-CRM114-Status: GOOD ( 16.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Rock Pi 4b plus board is the successor of Rock Pi 4b board. Differences to the original version are - has RK3399 OP1 SoC revision - has eMMC (16 or 32 GB) soldered on board (no changes required, since it is enabled in rk3399-rock-pi-4.dtsi) - dev boards have SPI flash soldered, but as per manufacturer response, this won't be the case for mass production boards I didn't add yet another compatible, since the small set of differences are captured by the device tree. Signed-off-by: Alex Bee --- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../dts/rockchip/rk3399-rock-pi-4b-plus.dts | 47 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b-plus.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index dbd7d37950f1..e867e5889d44 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -45,6 +45,7 @@ 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-4a-plus.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4b.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4b-plus.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 diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b-plus.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b-plus.dts new file mode 100644 index 000000000000..ea68b8c9d9ba --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b-plus.dts @@ -0,0 +1,47 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Akash Gajjar + * Copyright (c) 2019 Pragnesh Patel + */ + +/dts-v1/; +#include "rk3399-rock-pi-4.dtsi" +#include "rk3399-op1-opp.dtsi" + +/ { + model = "Radxa ROCK Pi 4B plus"; + compatible = "radxa,rockpi4b", "radxa,rockpi4", "rockchip,rk3399"; + + aliases { + mmc2 = &sdio0; + }; +}; + +&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>; + }; +};