Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4438513ybc; Tue, 26 Nov 2019 08:58:23 -0800 (PST) X-Google-Smtp-Source: APXvYqzikgi2zYW0UKyGSb/bfih7jGHLLblUKsHkCuROWcLKX+tdebAx+b9y/2vg6wjVj6932lE2 X-Received: by 2002:aa7:d9cf:: with SMTP id v15mr557421eds.182.1574787503809; Tue, 26 Nov 2019 08:58:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574787503; cv=none; d=google.com; s=arc-20160816; b=EM6zE05wtShP2qohdrUxQO+PhLIpr+WKt36asJ/sDjk7d7aqwcZeXkTVpLlmMnwsx0 fj2Ba7tmbALZZPcVs03ETie+jWwSKNGtBq5VjQrGa39wleQurU/eRRHASCK7/8NsSBeU IgbeLnXztorJsKyYgvf2GaG05cgtwPW7Y1Phve0hSNpSNnw+ZWrmCOAsXcrzt2KPImrm 0kCOt0k41j7YRiX2DdXmIBQG8T5LIjMqkI1iJbRwNiD1K3KUCp++fgKit+/YiQck7D0D SuzlzRNOU6jhKxf2F2E5DH1rNZ7rZRx8BQpWE6oE5A/DeQkSv2F1iM0NR14EdWip6VKw OruA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Gl/Beop7xUh6TGXP5REpiqk343lqbDC85R1Ktd+gB/A=; b=ies0un5dkiESLfdAQkTJypDlCGS4684vUBhPuBAcJvjsCggZTUSpxhUs18mKAA29Rd jHTQorSQl05ryX9unbrxlrgoFt/Mz4oFRqjfgbT30hrq1RwpFwsGBD1ilnEV8fVPb9yg Oq7U5UKD+LuqK/8PSeTd7F5QizxPq2btO627jHPn+fZ+CrL2+e+W9EZatr6tiPr5FNqe J795EODSPawLlVMkv/3pEoDe3h6TIlalH84WMXzKrHTqf96bLkU6Z4v50PHWV7rZ/NpB IFvcONyYK2a/qOTSKV748LBTMbpMxSyuqTckLrgzOPIQYlMYsH0ucVgboIea0KwpBRLb jVoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si7981205edv.385.2019.11.26.08.57.59; Tue, 26 Nov 2019 08:58:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728848AbfKZQ4H (ORCPT + 99 others); Tue, 26 Nov 2019 11:56:07 -0500 Received: from www1102.sakura.ne.jp ([219.94.129.142]:34757 "EHLO www1102.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727879AbfKZQ4H (ORCPT ); Tue, 26 Nov 2019 11:56:07 -0500 Received: from fsav402.sakura.ne.jp (fsav402.sakura.ne.jp [133.242.250.101]) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id xAQGtfEc076814; Wed, 27 Nov 2019 01:55:41 +0900 (JST) (envelope-from katsuhiro@katsuster.net) Received: from www1102.sakura.ne.jp (219.94.129.142) by fsav402.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav402.sakura.ne.jp); Wed, 27 Nov 2019 01:55:41 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav402.sakura.ne.jp) Received: from localhost.localdomain (121.252.232.153.ap.dti.ne.jp [153.232.252.121]) (authenticated bits=0) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id xAQGtahH076800 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 27 Nov 2019 01:55:41 +0900 (JST) (envelope-from katsuhiro@katsuster.net) From: Katsuhiro Suzuki To: Heiko Stuebner , linux-rockchip@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Hugh Cole-Baker , Katsuhiro Suzuki , Vasily Khoruzhick Subject: [PATCH] arm64: dts: rockchip: split rk3399-rockpro64 for v2 and v2.1 boards Date: Wed, 27 Nov 2019 01:55:29 +0900 Message-Id: <20191126165529.30703-1-katsuhiro@katsuster.net> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch splits rk3399-rockpro64 dts file to 2 files for v2 and v2.1 boards. Both v2 and v2.1 boards can use almost same settings but we find a difference in I2C address of audio CODEC ES8136. Reported-by: Vasily Khoruzhick Signed-off-by: Katsuhiro Suzuki --- arch/arm64/boot/dts/rockchip/Makefile | 3 +- .../dts/rockchip/rk3399-rockpro64-v2.1.dts | 30 +++++++++++++++++++ .../boot/dts/rockchip/rk3399-rockpro64-v2.dts | 30 +++++++++++++++++++ ...99-rockpro64.dts => rk3399-rockpro64.dtsi} | 18 ----------- 4 files changed, 62 insertions(+), 19 deletions(-) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rockpro64-v2.1.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rockpro64-v2.dts rename arch/arm64/boot/dts/rockchip/{rk3399-rockpro64.dts => rk3399-rockpro64.dtsi} (97%) diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index 48fb631d5451..3debaeb517fd 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -33,6 +33,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-4.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock960.dtb -dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64-v2.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64-v2.1.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-sapphire.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-sapphire-excavator.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64-v2.1.dts b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64-v2.1.dts new file mode 100644 index 000000000000..9450207bedad --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64-v2.1.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd. + * Copyright (c) 2018 Akash Gajjar + * Copyright (c) 2019 Katsuhiro Suzuki + */ + +/dts-v1/; +#include "rk3399-rockpro64.dtsi" + +/ { + model = "Pine64 RockPro64 v2.1"; + compatible = "pine64,rockpro64", "rockchip,rk3399"; +}; + +&i2c1 { + 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 = <&i2s1_p0_0>; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64-v2.dts b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64-v2.dts new file mode 100644 index 000000000000..7bd37eaa1d57 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64-v2.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd. + * Copyright (c) 2018 Akash Gajjar + * Copyright (c) 2019 Katsuhiro Suzuki + */ + +/dts-v1/; +#include "rk3399-rockpro64.dtsi" + +/ { + model = "Pine64 RockPro64 v2"; + compatible = "pine64,rockpro64", "rockchip,rk3399"; +}; + +&i2c1 { + es8316: codec@10 { + compatible = "everest,es8316"; + reg = <0x10>; + clocks = <&cru SCLK_I2S_8CH_OUT>; + clock-names = "mclk"; + #sound-dai-cells = <0>; + + port { + es8316_p0_0: endpoint { + remote-endpoint = <&i2s1_p0_0>; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi similarity index 97% rename from arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts rename to arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi index 7f4b2eba31d4..183eda4ffb9c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi @@ -4,16 +4,12 @@ * Copyright (c) 2018 Akash Gajjar */ -/dts-v1/; #include #include #include "rk3399.dtsi" #include "rk3399-opp.dtsi" / { - model = "Pine64 RockPro64"; - compatible = "pine64,rockpro64", "rockchip,rk3399"; - chosen { stdout-path = "serial2:1500000n8"; }; @@ -476,20 +472,6 @@ &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 = <&i2s1_p0_0>; - }; - }; - }; }; &i2c3 { -- 2.24.0