From patchwork Sun May 16 23:05:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 12260667 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 B9204C43460 for ; Sun, 16 May 2021 23:06:46 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 886FA6113C for ; Sun, 16 May 2021 23:06:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 886FA6113C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=yfZ8xVVM+quHk79PtwDo39lmycBVMotfsvikqpg3Ty0=; b=bd1vmfKy333rf2faetyi1sXlQ 22PCKKzk9J6I21kTO6cWKVbfmLI237PXcfJ2LaKfXdLzmK6oKLT/ZvaNh3e7sKGXXa6SqZ4Vc9PMZ TQV9GB3omzwlHcOobSQO5dUe+XSM31vLjN5v7qz5wKWgUUIaWy2zF6ulD/ycpYmXx5NgrNmxCLerZ 8HrsXrto1sOZlVONZQ5nLHwCYqh9hRqw99lp+lJlL8nvNZEDbZbWTEIksAkWAKUd5QX80z3vQ+iyl yPqE5Jvaybsp0uIeHW9ZHD5WAQgW3MB8CtOWW/xvoMo1suER5ZpZDVwJ5Bf6mwKw6ud59hxYHLQPW dv91MtBLQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPqK-00D7qo-VK; Sun, 16 May 2021 23:06:41 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq5-00D7ni-CR; Sun, 16 May 2021 23:06:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=c0fMqdsWoMPNaGZvOq7oT2myXJmoWVpui0PRaLWEN3o=; b=Eopo9cyKqBQhEWmujsIrTJPUuF Xy6hxAEI+GTZ02skXdSGq5lNWJw7yk/u64Qtl0lPmH1ffTMRoJ5nHgZaXtvKHrDivKUscDZuegElL SQqBzwUBIx9kuPJ/rN2fxaiaUFJS41Og2mqt4SYzQqosad0dU2ghdjDVdShnxYIZXKVNg6AeS/dl8 Up+cXHLIuIwjMYkph4CtqrwTj8Dw16/oJJ9WCMi9Fga27NzvQTuSFi2PnLRD7z4UOOnvV5+4lfOmU 2BS/FtdcUDpVmcFc3a++vDamYcyXog5O0U0Ml4r9XaXWaWlXCT2Bg0Wxxb58qrhcn/bTXDIeaQiTc QZhcCDUw==; Received: from mx2.suse.de ([195.135.220.15]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq2-00DKcd-S5; Sun, 16 May 2021 23:06:24 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4E398B001; Sun, 16 May 2021 23:06:19 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-rockchip@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Rob Herring , Heiko Stuebner , devicetree@vger.kernel.org Subject: [PATCH 1/9] dt-bindings: arm: rockchip: Add Rockchip RK1808 and TB-RK1808M0 Date: Mon, 17 May 2021 01:05:43 +0200 Message-Id: <20210516230551.12469-2-afaerber@suse.de> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210516230551.12469-1-afaerber@suse.de> References: <20210516230551.12469-1-afaerber@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210516_160623_092805_3428D823 X-CRM114-Status: UNSURE ( 8.80 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Define SoC and board compatibles for RK1808 SoC and Toybrick mPCIe card. Signed-off-by: Andreas Färber Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml index 4a6f772c1043..829f67f659d1 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -580,6 +580,11 @@ properties: - const: rockchip,rv1108-evb - const: rockchip,rv1108 + - description: Rockchip Toybrick TB-RK1808M0 mPCIe card + items: + - const: rockchip,tb-rk1808m0 + - const: rockchip,rk1808 + - description: Theobroma Systems RK3368-uQ7 with Haikou baseboard items: - const: tsd,rk3368-lion-haikou From patchwork Sun May 16 23:05:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 12260671 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 51CE7C433B4 for ; Sun, 16 May 2021 23:07:28 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 0C1B561164 for ; Sun, 16 May 2021 23:07:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0C1B561164 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=D07XfUV6B1k94UO50Abc/onzCZJv5qaFyLApF1by3ag=; b=SKnOTEkI9fTZAGhjGKHD3eqhZ +oUs4nhTVYqsdvLgjKFELxfw5TgcYUoLXos7sDquGAn1/cpwEV2lG9igysFpFArNl6h3DEJqfz1sz RcVSE171L1Xdam8wi65N5Ff+hKEEOWm5pHDyYAzMZvrtu49TDAf1vVydCAPTf3lwG8rn0MDPUgHgH DJSHXycOwo84Ewzhh8H5IWbhPbxtEF0yDAJl0TkhhIIj+Hf2NQE05gKgcPrTImzqYP2/l4fJJJVI0 K8s+Y2XT+jtC8rFceUdfvRF6CkQ8yP4CT3PR4P68YO5qW2qqE0g0QgT1QwgNNgCpj9I6Ay0EerKxS uT4ZJaeVA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPqy-00D7zx-9Q; Sun, 16 May 2021 23:07:20 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq6-00D7o6-FV; Sun, 16 May 2021 23:06:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=nUnJ8k97snK9Yo0nVjlBxyBdyFk2H4yqFRzFTQRxlNA=; b=NyKWJBGwM/aZytk/+UTmYuLtz4 xefwUQ8sKHT0MwfdEfjJPNgPevOprPGqdY3Z9LZFQFDXxCojmSeeqxmkrMR13Mq6YSEQk0fYMj4/P vYUoWBYp3P7NwRsF30i88GP7MiOEW0cpjJmUeKL6U38QMZTnOd9dWXFXkJGoG/JguC40qxoj59rdo Szq/+/wbZYqGDDVvmn9EwDb1jpidqxnZoKwAcD+yvLqZpC4+My1WXoEnraV5WQwEYEwVyBVrYrRIW lbYU62IA1ypoCmwKRjjwts+F6Gb5bS5c6Pw1McXFGiiduGzrBrYK2mS89zwLc8dhDoTXbOMFo/tJK zlBHAK4w==; Received: from mx2.suse.de ([195.135.220.15]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq2-00DKcg-Sv; Sun, 16 May 2021 23:06:25 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id CEB8DB11A; Sun, 16 May 2021 23:06:19 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-rockchip@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Greg Kroah-Hartman , Rob Herring , linux-serial@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/9] dt-bindings: serial: snps-dw-apb-uart: Add Rockchip RK1808 Date: Mon, 17 May 2021 01:05:44 +0200 Message-Id: <20210516230551.12469-3-afaerber@suse.de> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210516230551.12469-1-afaerber@suse.de> References: <20210516230551.12469-1-afaerber@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210516_160623_100880_6CB8E5BF X-CRM114-Status: UNSURE ( 8.22 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add a Rockchip RK1808 compatible. Signed-off-by: Andreas Färber Acked-by: Rob Herring --- Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml index 87ef1e218152..68545e421bbe 100644 --- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml +++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml @@ -23,6 +23,7 @@ properties: - items: - enum: - rockchip,px30-uart + - rockchip,rk1808-uart - rockchip,rk3036-uart - rockchip,rk3066-uart - rockchip,rk3188-uart From patchwork Sun May 16 23:05:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 12260677 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 851D8C433B4 for ; Sun, 16 May 2021 23:09:01 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 134606100A for ; Sun, 16 May 2021 23:09:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 134606100A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=JutjWdXiHrZ+tZLTlMpCc4BRFSuZgYfG0+kJ75R6Gz0=; b=h9J9UqfZBk7lGToI0qx1tOLjX 8drsDXppY+uFw/42SU9xwzacxd+colP6XqwCngj0ovZu4eATpupXekcWjpxcfKeWPaCH5kTb0IZ+j DUuJwzY0x93dr2U1WSAPs6TOT8/QL0IjTihQIF6pqMbgB5A5zyqbu3MbttsktUHGwBRbRU/UEBrhd +iB6Lm5Lz1Pp+lWlwYKl1GpY2HTUvJcvI8fjoKdXKljvMXBvWsMpJSThXnaa1WRhwY8FCyKAvOoXe 4zZ54EnyoyBDS+ErIhLZCcO+Ohllqv4XYFFd33SbZbYmmpm5D+xy515m3Eu6RVL/t14FAeAJYLeUA nNio0aXkg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPsV-00D8en-0O; Sun, 16 May 2021 23:08:55 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq6-00D7oD-UD; Sun, 16 May 2021 23:06:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=ePqHjWjCPZ4r43DtlnBElqwAZrBPU7E8Y+KXWdqk0d0=; b=kZdmNucN7w/yAbXHG8U0nbNkFV K/FHF7KDA9B5sHsdmZ4qLbfYZe0yFHAVfOOYNd08/RR/fyUv5qKtbn0OhBLRZ2/ZFHQ4kCCKzqtvg i4Zs3AJl/GzC/ZiYS+A/9VBC36s1Kgl+w0MNPzDKa80he0F2qKLDNDk8XqlCZx1aIw6yRrcRGCDn2 6qpnWovS4QayB9YOC/WeUAvktJpVYo2iptbQu0KBYyfg3NWYNllodjs9wuPwVjQ7UJsNEIGqWWQ6j gKuMZhNSJStXFB7z9skk0fvBYPBr8z4Lk7/WD1vFEbYELXNOZvjXEmEK+nAXn8XL6Xsxkn5Z0Q7yR yg/N85Zg==; Received: from mx2.suse.de ([195.135.220.15]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq3-00DKci-0T; Sun, 16 May 2021 23:06:25 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 2D5ABB1D0; Sun, 16 May 2021 23:06:20 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-rockchip@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Rob Herring , Heiko Stuebner , devicetree@vger.kernel.org Subject: [PATCH 3/9] arm64: dts: rockchip: Prepare Rockchip RK1808 Date: Mon, 17 May 2021 01:05:45 +0200 Message-Id: <20210516230551.12469-4-afaerber@suse.de> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210516230551.12469-1-afaerber@suse.de> References: <20210516230551.12469-1-afaerber@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210516_160623_368995_97408E37 X-CRM114-Status: GOOD ( 11.26 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add an initial Device Tree for Rockchip RK1808 SoC. Based on shipping TB-RK1808M0 DTB. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/rockchip/rk1808.dtsi | 203 +++++++++++++++++++++++ 1 file changed, 203 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk1808.dtsi diff --git a/arch/arm64/boot/dts/rockchip/rk1808.dtsi b/arch/arm64/boot/dts/rockchip/rk1808.dtsi new file mode 100644 index 000000000000..af2b51afda7d --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk1808.dtsi @@ -0,0 +1,203 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) +/* + * Copyright (c) 2021 Andreas Färber + */ + +#include +#include + +/ { + compatible = "rockchip,rk1808"; + interrupt-parent = <&gic>; + #address-cells = <1>; + #size-cells = <1>; + + aliases { + serial0 = &uart0; + serial1 = &uart1; + serial2 = &uart2; + serial3 = &uart3; + serial4 = &uart4; + serial5 = &uart5; + serial6 = &uart6; + serial7 = &uart7; + }; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a35"; + reg = <0x0 0x0>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP>; + }; + + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a35"; + reg = <0x0 0x1>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP>; + }; + + idle-states { + entry-method = "psci"; + + CPU_SLEEP: cpu-sleep { + compatible = "arm,idle-state"; + local-timer-stop; + arm,psci-suspend-param = <0x10000>; + entry-latency-us = <120>; + exit-latency-us = <250>; + min-residency-us = <900>; + }; + }; + }; + + arm-pmu { + compatible = "arm,cortex-a35-pmu"; + interrupts = , + ; + interrupt-affinity = <&cpu0>, <&cpu1>; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + arm,no-tick-in-suspend; + }; + + xin24m: xin24m { + compatible = "fixed-clock"; + clock-frequency = <24000000>; + #clock-cells = <0>; + clock-output-names = "xin24m"; + }; + + firmware { + psci { + compatible = "arm,psci-1.0"; + method = "smc"; + }; + + tee { + compatible = "linaro,optee-tz"; + method = "smc"; + }; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + system_sram: sram@fec00000 { + compatible = "mmio-sram"; + reg = <0xfec00000 0x200000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0xfec00000 0x200000>; + }; + + gic: interrupt-controller@ff100000 { + compatible = "arm,gic-v3"; + reg = <0xff100000 0x10000>, /* GICD */ + <0xff140000 0xc0000>, /* GICR */ + <0xff300000 0x10000>, /* GICC */ + <0xff310000 0x10000>, /* GICH */ + <0xff320000 0x10000>; /* GICV */ + interrupt-controller; + #interrupt-cells = <3>; + interrupts = ; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + gic_its: msi-controller@ff120000 { + compatible = "arm,gic-v3-its"; + reg = <0xff120000 0x20000>; + msi-controller; + #msi-cells = <1>; + }; + }; + + uart0: serial@ff430000 { + compatible = "rockchip,rk1808-uart", "snps,dw-apb-uart"; + reg = <0xff430000 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = ; + status = "disabled"; + }; + + uart1: serial@ff540000 { + compatible = "rockchip,rk1808-uart", "snps,dw-apb-uart"; + reg = <0xff540000 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = ; + status = "disabled"; + }; + + uart2: serial@ff550000 { + compatible = "rockchip,rk1808-uart", "snps,dw-apb-uart"; + reg = <0xff550000 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = ; + status = "disabled"; + }; + + uart3: serial@ff560000 { + compatible = "rockchip,rk1808-uart", "snps,dw-apb-uart"; + reg = <0xff560000 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = ; + status = "disabled"; + }; + + uart4: serial@ff570000 { + compatible = "rockchip,rk1808-uart", "snps,dw-apb-uart"; + reg = <0xff570000 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = ; + status = "disabled"; + }; + + uart5: serial@ff5a0000 { + compatible = "rockchip,rk1808-uart", "snps,dw-apb-uart"; + reg = <0xff5a0000 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = ; + status = "disabled"; + }; + + uart6: serial@ff5b0000 { + compatible = "rockchip,rk1808-uart", "snps,dw-apb-uart"; + reg = <0xff5b0000 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = ; + status = "disabled"; + }; + + uart7: serial@ff5c0000 { + compatible = "rockchip,rk1808-uart", "snps,dw-apb-uart"; + reg = <0xff5c0000 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = ; + status = "disabled"; + }; + }; +}; From patchwork Sun May 16 23:05:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 12260673 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 C5EB4C433B4 for ; Sun, 16 May 2021 23:07:50 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 3D60B61073 for ; Sun, 16 May 2021 23:07:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3D60B61073 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=2xa3BVAbA4NqC4XP9rp5Sm36u0dky+J2ce/gZ+1+EI0=; b=XcQvY1gXnfGWBnMB85mF0zixF 6q9yxtEjJljoxFDjGhpYRccnKTOUR0wOujlVY35Uz/q3pcEnKjpKvl37nkG7l+yOu4Y6BLxeR7yqM 9qnrfpMzSbXERjFL73TNhVL23WdW86ooutmRE8AAnQPRfCTGvHuRJ5GD80tQQjHhTBS6OaQlsbD/x F3TZgIk3jG6rGuSiEDPX0kfStMwJWL8xjIOUfaQbrBHIicKZmmJRsCABUOJ9hc67Api59ausLsk1u WNzIkFi112Po1vnGgzCUsFllgRp+sPLdU8N/PkhfJsAHyL+TQW3m2maCHbTcjXANNsf665QvJFKBA 6LDGstLuA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPrM-00D89c-Ri; Sun, 16 May 2021 23:07:45 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq6-00D7oB-M9; Sun, 16 May 2021 23:06:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=RdHT7KuHEx7yHRxCMbfc6rVbd1/ffAhJZYkSaJvpE28=; b=dZsHyjm3/IO6y6xio804ZscU7t JaUjlFrlZcXoyQ3/jUn2Gj6h2yA35+O+P3jOuOoMXblJ321ZW0+ti+DXo4Dc53Y8cM5AdOXCN1Hkd /O5oVy/CmG49bIytg3ARUxXM2282lpi05AVXNimLnYo73lmu3qHBT/VS7r8xvSqnPiQ77ZjgUt551 B23psAkCZmh48xSzuZWe1dqzUOoqbDY6kiaR3ms2lDIfJOQ3n9Tli5Xyw8RBvct6WhcJ26FYMsORT 4/sG5NlJJC3evKP7ph5VtcnBd8nl4oT808AWoniC4FdynWCdZdteQLuKwOVhMB4a9VfDwWkSz/IpS 2f4TW7OA==; Received: from mx2.suse.de ([195.135.220.15]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq3-00DKck-Bu; Sun, 16 May 2021 23:06:25 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 853EDB1DA; Sun, 16 May 2021 23:06:20 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-rockchip@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Rob Herring , Heiko Stuebner , devicetree@vger.kernel.org Subject: [PATCH 4/9] arm64: dts: rockchip: Add Rockchip TB-RK1808M0 Date: Mon, 17 May 2021 01:05:46 +0200 Message-Id: <20210516230551.12469-5-afaerber@suse.de> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210516230551.12469-1-afaerber@suse.de> References: <20210516230551.12469-1-afaerber@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210516_160623_570920_0B41B2D0 X-CRM114-Status: GOOD ( 12.77 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add an initial Device Tree for Rockchip Toybrick TB-RK1808M0 mPCIe card. Based on shipping TB-RK1808M0 DTB. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk1808k-toybrick-m0.dts | 55 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index c3e00c0e2db7..d5a3837ccb7c 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -3,6 +3,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-evb.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-engicam-px30-core-ctouch2.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-engicam-px30-core-ctouch2-of10.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-engicam-px30-core-edimm2.2.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk1808k-toybrick-m0.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-evb.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-roc-cc.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3318-a95x-z2.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts b/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts new file mode 100644 index 000000000000..2f8075d2391c --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts @@ -0,0 +1,55 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) +/* + * Copyright (c) 2021 Andreas Färber + */ + +/dts-v1/; + +#include "rk1808.dtsi" + +/ { + compatible = "rockchip,tb-rk1808m0", "rockchip,rk1808"; + model = "Rockchip Toybrick TB-RK1808M0"; + + chosen { + stdout-path = "serial2:1500000n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x40000000>; + }; + + vcc3v3_pcie: vcc3v3-pcie { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3_pcie"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + vdd_cpu: vdd-cpu { + compatible = "regulator-fixed"; + regulator-name = "vdd_cpu"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + vin-supply = <&vcc3v3_pcie>; + }; +}; + +&cpu0 { + cpu-supply = <&vdd_cpu>; +}; + +&cpu1 { + cpu-supply = <&vdd_cpu>; +}; + +&uart2 { + status = "okay"; + clocks = <&xin24m>; + clock-names = "baudclk"; +}; From patchwork Sun May 16 23:05:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 12260679 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 4ED33C433B4 for ; Sun, 16 May 2021 23:09:06 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 141CF6100A for ; Sun, 16 May 2021 23:09:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 141CF6100A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=2jhDyNDCsR1DKPCNU51E9a1d9zrHC/9whVMgF600Eqk=; b=dsyxtpIAVawvasmgzrfRMDQKx xoKDkpSdck6gsihf5pkW2yyEVymhEd/s3JAEDwsB1/cB4jqT1TK6TF55VPmWZq+5UVBVl/tVJaSD0 GrcE5Xd50Suq8r0nQ+HH4JqcTO9tWd6PLpBiXY10wDVxuViY0inm+QaJ45VtY2EdcFHXr2LcY9Ztj A6ISjPYdAfPYaYU2eaOj6RcQSap//H6TXzIjC8lqkoTUfp6QJCyuS9E007D7Q1bfrgme0he2QFfMS Ac3B9afhl6V/UOnMgPk+IGgyNtfEztZknfKkSSQvOG/a0vLJmBNVMMbUl7qphGigj+hWulVcWqv6I tUQGQpfZw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPsZ-00D8gx-SN; Sun, 16 May 2021 23:09:00 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq7-00D7oM-Vb; Sun, 16 May 2021 23:06:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=53oYo7BlX7RNapV64mjQVYn+6D5hJMjiTqFpVSzEk0U=; b=TJEOmsK8BhMP1rLxi0LhAPGxB2 SoUH9fjRJxWswy1EQ/acvzrY9UX0BmNx0jxf9RCh9CtWTH6aSw3vXZP3NlHjBVA5mwwC90i5HJrAg j8iH7F+Ox2mb9HDIAvD27PVPztSJHgAAPrd/0uirz+B1+KZd3d1Zu8kBjtqG5XVYVr4bvZ2BiDhZM Ov7MhkEqGckZzQLdiuI/Mp5zP/vtFjSdcmglqM36ICGhlku1zcEB03RJzUWt6JeqOQ1QVtpGgDv3S ws+YwiE/ThDNoBXP02rjUsmJX5d40TNlgy4hIugf5VHEKF8qL9P6iy9neup4rP+Ac6dZvs3CRBFYv pDzLgI1Q==; Received: from mx2.suse.de ([195.135.220.15]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq5-00DKe8-Da; Sun, 16 May 2021 23:06:26 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id CCB85B1DD; Sun, 16 May 2021 23:06:20 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-rockchip@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Rob Herring , Heiko Stuebner , devicetree@vger.kernel.org Subject: [PATCH RFC 5/9] arm64: dts: rockchip: rk1808k-toybrick-m0: Suppress vGIC interrupt Date: Mon, 17 May 2021 01:05:47 +0200 Message-Id: <20210516230551.12469-6-afaerber@suse.de> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210516230551.12469-1-afaerber@suse.de> References: <20210516230551.12469-1-afaerber@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210516_160625_623644_824C7267 X-CRM114-Status: UNSURE ( 8.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Avoid the kernel getting stuck after: [ 1.175956] kvm [1]: IPA Size Limit: 40 bits [ 1.177164] kvm [1]: vgic-v2@ff320000 [ 1.177545] kvm [1]: GIC system register CPU interface enabled or when dropping GICV reg entry: [ 1.176001] kvm [1]: IPA Size Limit: 40 bits [ 1.177191] kvm [1]: GICv3: no GICV resource entry [ 1.177664] kvm [1]: disabling GICv2 emulation [ 1.178115] kvm [1]: GIC system register CPU interface enabled Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts b/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts index 2f8075d2391c..15293a8576c6 100644 --- a/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts +++ b/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts @@ -48,6 +48,10 @@ &cpu1 { cpu-supply = <&vdd_cpu>; }; +&gic { + /delete-property/ interrupts; +}; + &uart2 { status = "okay"; clocks = <&xin24m>; From patchwork Sun May 16 23:05:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 12260675 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 47BF6C433B4 for ; Sun, 16 May 2021 23:08:58 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 0FF4D61073 for ; Sun, 16 May 2021 23:08:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0FF4D61073 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=G6eo+RNvoJo0SOQ3RuTOus325oc/kA6VuCZSeI0wibM=; b=YX+cYgqln1TWVzV3SLGQ8idK2 ac7UzuGNlJbBgSlHaVORFEIwhrXILZfadRSvmNhggA1OdSGAvcLfQk9rAISNcx2dkCeY5Y2UzuDL+ LbkKIT7gLT3o5sXJvQgtyMn3jxXHnHaGVK8+pFszklTiwZGAJOhzYlrwI8RU4ITqqfhj2qQELTyLp w4B9wh6ZBGlDEhOMa7/fVuQj7EX7K1/+R8Mwshb3r1RuD6JEgVxNdv7sv7A+73ObseZrAGBedi3lZ kXsl/gP9/+CGx09GbeTj9ITooeD06XQX+ywVQIdJIwkoUT1hgb7TLfU/QrWVRpNMV79Nytgb0skEt jUIxmOQIg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPsS-00D8dZ-DR; Sun, 16 May 2021 23:08:52 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq7-00D7oL-SF; Sun, 16 May 2021 23:06:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=xKyJF3WGNbjSqtr8fUds/mmg6tH3HBuJkCVNrm13e3E=; b=fN5iZEs8Amv53HcyFaHU8a7PHZ oPz5CqSghitHIZIEbqs7vxpXqoTk8LLG14AQQwGBBB6lDcx9fFv0XPId2GjzbleWLil5jqHUx63u7 lHH7sY4kBiBh466z82rWVZS9sovTTCwiw/t6OkuZEJTuKy4i4F/BGlbCcZIkPoUyxtN+5cgtQOwJO sFlxyED5m6266LZ8SZoKbOKON6I2ka7JNo3F2oHnsJK9LZ2iJ9k9hqomSFx5h68wAbZoNHEexM+cT /YxM3Azerd/fUhYl6mqsybdPmxW2su5QtHpmdY2ikSeV5WGFG5yFHi2wDiuU70dE4OTCwtxBU/J9f NIKVOrMg==; Received: from mx2.suse.de ([195.135.220.15]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq5-00DKe7-DF; Sun, 16 May 2021 23:06:26 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 27C66B1EA; Sun, 16 May 2021 23:06:21 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-rockchip@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Ulf Hansson , Rob Herring , Heiko Stuebner , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 6/9] dt-bindings: mmc: rockchip-dw-mshc: Add Rockchip RK1808 Date: Mon, 17 May 2021 01:05:48 +0200 Message-Id: <20210516230551.12469-7-afaerber@suse.de> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210516230551.12469-1-afaerber@suse.de> References: <20210516230551.12469-1-afaerber@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210516_160625_611770_562098ED X-CRM114-Status: UNSURE ( 8.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add a compatible string for Rockchip RK1808 SoC. Signed-off-by: Andreas Färber Acked-by: Rob Herring --- Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.yaml b/Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.yaml index eaa3b0ef24f6..54fb59820d2b 100644 --- a/Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.yaml +++ b/Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.yaml @@ -30,6 +30,7 @@ properties: - items: - enum: - rockchip,px30-dw-mshc + - rockchip,rk1808-dw-mshc - rockchip,rk3036-dw-mshc - rockchip,rk3228-dw-mshc - rockchip,rk3308-dw-mshc From patchwork Sun May 16 23:05:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 12260685 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 6B0FDC43461 for ; Sun, 16 May 2021 23:09:16 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 341BB6100A for ; Sun, 16 May 2021 23:09:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 341BB6100A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=K7AB/GSCqcadNeKrGKQ/lc6pSqvK+syCUl6yOLx/a/A=; b=i/bKrmMffZrXorQiRQyVJQ5Yd XzyS16iQQBAwqE+7qx3yI7A8ePdUb2LtHsGN9lWDHPoT5GFK9t1qakicRPF63dPOWJFDoxKkfT86C +GtdJv8ogeSQ0Bo8O+fhf3l/VfVLIcZCqtrgWcBs8RLgqD1IFpoiodsa2+OJVQ71cWucpfXDjGcMd f8AETFVy6nVid4QrKN1/omIHSSJHy/GX+a88XAW51Qk1EeE9idEU4gA9+E8IHUANuNBc8moTQ7b0T E+7TG3Nqv6MI1jffpLacf/hxuOwyt9JE6/V5LlbzcZ2si5rq35tE52riYChRxSUZZbvvL2RdEI36g O6V3HE8Ag==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPsl-00D8oT-Ka; Sun, 16 May 2021 23:09:11 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq9-00D7ob-06; Sun, 16 May 2021 23:06:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=PiAtmuEq23FRlRQfE0sPADKHqpiKdshWBduacG3QKzI=; b=W2bQnHicJ0/0ubSjp90FfUe/D5 j6boH40Qx6GlCnQzBVOLTRI2hI84nOdNOtTGUBc1CpCQPJhG2pDdAJo6VknwsqNXZWj0jV19zxZ5L vugCrkZGyz3w+6vbIQHJDMxOOI+REV8aQZtK+5XWE0KdxDVKxor/UuvgpRiHURqSeK4xRvs7NwWlv 3O2EgT/MAYcu9BNgAwKCouwoUxgihI9EvwaH/k2C+X2YxHciYBRHbJy+V2c/kyWOXpmSfbR5VZvgS R5D4Q+L0zgnhWGhM6TjzBE77JT4vj5kSKE7hH5Y+2FZarzvPgaTb0BLGd2ux3zZEIJDH0c2hyINwG Ts7Hm8Sw==; Received: from mx2.suse.de ([195.135.220.15]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq6-00DKeE-2W; Sun, 16 May 2021 23:06:27 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 6AA63B1EB; Sun, 16 May 2021 23:06:21 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-rockchip@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Rob Herring , Heiko Stuebner , devicetree@vger.kernel.org Subject: [PATCH 7/9] arm64: dts: rockchip: rk1808: Prepare eMMC node Date: Mon, 17 May 2021 01:05:49 +0200 Message-Id: <20210516230551.12469-8-afaerber@suse.de> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210516230551.12469-1-afaerber@suse.de> References: <20210516230551.12469-1-afaerber@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210516_160626_278950_4CBEDDD3 X-CRM114-Status: UNSURE ( 8.55 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add an eMMC DT node. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/rockchip/rk1808.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk1808.dtsi b/arch/arm64/boot/dts/rockchip/rk1808.dtsi index af2b51afda7d..b4a71c5c8be7 100644 --- a/arch/arm64/boot/dts/rockchip/rk1808.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk1808.dtsi @@ -199,5 +199,14 @@ uart7: serial@ff5c0000 { interrupts = ; status = "disabled"; }; + + emmc: mmc@ffd00000 { + compatible = "rockchip,rk1808-dw-mshc", "rockchip,rk3288-dw-mshc"; + reg = <0xffd00000 0x4000>; + interrupts = ; + max-frequency = <150000000>; + fifo-depth = <0x100>; + status = "disabled"; + }; }; }; From patchwork Sun May 16 23:05:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 12260683 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 D4A56C433B4 for ; Sun, 16 May 2021 23:09:14 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 9C8C761073 for ; Sun, 16 May 2021 23:09:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9C8C761073 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=zEsoZknBJi1xA1YjHmSv/tb+ZOfNHpR2l8A/Wm9Gh04=; b=U4gNXmw7VJx0FpG+HQvYPyRaR xL5jHn2YiaccK8bguVHW3zQfAHGGp2DiMUFEkdqrA19wqW+ejyUraL8t1ui/MPkX/lVLzp/0eAqqe ASnmHIDs3JVw8pENzP1cyN8CUhlFuU8eaJgcZxl/ZpMSQKU/nqXi+YZz9XS1kQiix9Zvuhkb7DzDp OhGnmUPgIM55h7aNGCwOieWEL3kim53hGbRrQbcvdmnFxwdvqvMJOmKrdJDx9F8ZMf86bSQU9AVke DvNJGR28tjKyNuuKC5ehHxZMlPA69ZEa6eZHqvWvVgeQTiLJE+Hns9rbYltM7u5VFZAImLb+LKbAt ri6O1LlFw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPsh-00D8ky-AX; Sun, 16 May 2021 23:09:07 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq8-00D7oR-J4; Sun, 16 May 2021 23:06:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=WQx1Oa1O3JtHSEcF1yaSjpRPxL48ZQOEiymgFVcdGf8=; b=CpT6RAJgWo3NCM79mXHqicuWbZ 6TFDG2Xla1t+Z3kYfUHFXeQDVeC1cGVpTrBs0q3JDHzh3269DTuLfEWARLgd/eBFz/bHBqPZ5L46l Q5W78FohbEZsxfQq2ilrDBCXJxtO8bnNpguf+BzespQCbCx/zL2HwjP/qfrIm/Mdsa5vbvWmrcCfc nfVFwvSfWVO2Qy2/GXgb1CT4K1t1STRmkGUg2DJScFLFQQW6Vl1bXUpl//kG2D/R5Ajeo7ZzVsIm0 7VzTvrEPeH7Bj6OSb4/yG/yjfYEL064tuEJLqQobpn3BVjDEmRmZP3NveRn9kTALON5TS9MZXEO/X Fk+ySDCw==; Received: from mx2.suse.de ([195.135.220.15]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq6-00DKeD-2R; Sun, 16 May 2021 23:06:27 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B014DB1F0; Sun, 16 May 2021 23:06:21 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-rockchip@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Rob Herring , Heiko Stuebner , devicetree@vger.kernel.org Subject: [PATCH 8/9] arm64: dts: rockchip: rk1808k-toybrick-m0: Enable eMMC Date: Mon, 17 May 2021 01:05:50 +0200 Message-Id: <20210516230551.12469-9-afaerber@suse.de> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210516230551.12469-1-afaerber@suse.de> References: <20210516230551.12469-1-afaerber@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210516_160626_277258_CB7361BF X-CRM114-Status: UNSURE ( 9.12 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add fake clocks (based on downstream kernel's debugfs clk_summary) and enable eMMC. Signed-off-by: Andreas Färber --- .../boot/dts/rockchip/rk1808k-toybrick-m0.dts | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts b/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts index 15293a8576c6..aabe7a7034b2 100644 --- a/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts +++ b/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts @@ -38,6 +38,34 @@ vdd_cpu: vdd-cpu { regulator-max-microvolt = <850000>; vin-supply = <&vcc3v3_pcie>; }; + + hclk_emmc: hclk-emmc { + compatible = "fixed-clock"; + clock-frequency = <198000000>; + #clock-cells = <0>; + clock-output-names = "hclk_emmc"; + }; + + sclk_emmc: sclk-emmc { + compatible = "fixed-clock"; + clock-frequency = <297000000>; + #clock-cells = <0>; + clock-output-names = "sclk_emmc"; + }; + + sclk_emmc_drv: sclk-emmc-drv { + compatible = "fixed-clock"; + clock-frequency = <148500000>; + #clock-cells = <0>; + clock-output-names = "sclk_emmc_drv"; + }; + + sclk_emmc_sample: sclk-emmc-sample { + compatible = "fixed-clock"; + clock-frequency = <148500000>; + #clock-cells = <0>; + clock-output-names = "sclk_emmc_sample"; + }; }; &cpu0 { @@ -48,6 +76,16 @@ &cpu1 { cpu-supply = <&vdd_cpu>; }; +&emmc { + status = "okay"; + clocks = <&hclk_emmc>, <&sclk_emmc>, <&sclk_emmc_drv>, <&sclk_emmc_sample>; + clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; + cap-mmc-highspeed; + mmc-hs200-1_2v; + non-removable; + bus-width = <8>; +}; + &gic { /delete-property/ interrupts; }; From patchwork Sun May 16 23:05:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 12260681 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 C24F3C433ED for ; Sun, 16 May 2021 23:09:08 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 4769B6100A for ; Sun, 16 May 2021 23:09:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4769B6100A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=yRBzcJ71wlEXnQKEGzsfkiMGwpQA9lJM2qPnXe7FFZM=; b=mD4Ho8lqFW8C2HxBYlSKEtEwP TA5djHbVNOa6yygqaRyauCXZwJmfp4ngtkBJWlH/KdSzFnsBaP4SRR0Q2jyLhX9ZdQ7TVwXly/yKb sKq8Z0h6I6QkTbA+0LqEjwl5lq90ikSfiuc6Jphu0QOeaPYVwSH3JkWQf+ECJoPv+KEvJHhkWLO/a Ib8N0PHOmEpeAkqqB1APjwZjuWKk7Fx0X3nwgCUXYViDSF0N66FlOJlVNcxl8UzB7kjXUwUvScE91 eJ0dhYcAscZSiBzzpmrcj4YjjBREl7Lej0mC1q/c8sTrL3uGOBqxaog4n6bKD7KsOxM14BrJ01Xs/ 3o4pJzvGg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPsd-00D8ik-Lv; Sun, 16 May 2021 23:09:03 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq9-00D7od-97; Sun, 16 May 2021 23:06:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=QpagjBDnee6mgrVuQlrpEoBRQ+UPTqN8ipLXUovCG/Q=; b=B6KTVXeRAl/4fbiBBzFAmlGTtD su4wioSC3BQBpe4UmBoiEfObRKZVm9ZcIZmYGWBG5lD1IXqAqg3ZCF/AEBLQ66T/mWb6dTrQYC3xh QtHgr+Fp79BEJXptFr2yl3ZDiqsJE8KrU7V3rFZ2bVKVF3BxOG3+YGzWM4lLJdzvyoJNtK5JVGuSn U0fU8+NYSS9vZ2hjoXiEeN7VVrGQHrs9SntCFd2IpYaOK8hmhmILl6W/Ma13VulaCz1xra1SxuQqO agdSbej9H/ql6/P5tRMEPK88unoSqPiJqlm5dAkFHg5uNRl3Lu+bZ9jH0wgPp8i5EI6ynR7I2try/ UvuDZt3A==; Received: from mx2.suse.de ([195.135.220.15]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq6-00DKeO-Gh; Sun, 16 May 2021 23:06:28 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 04EC7B1FE; Sun, 16 May 2021 23:06:22 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-rockchip@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Rob Herring , Heiko Stuebner , devicetree@vger.kernel.org Subject: [PATCH 9/9] arm64: dts: rockchip: rk1808: Add CPU operating points Date: Mon, 17 May 2021 01:05:51 +0200 Message-Id: <20210516230551.12469-10-afaerber@suse.de> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210516230551.12469-1-afaerber@suse.de> References: <20210516230551.12469-1-afaerber@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210516_160626_728492_A43718A0 X-CRM114-Status: UNSURE ( 9.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Associate operating points with both CPU nodes. Data source is the shipping TB-RK1808M0 DTB. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/rockchip/rk1808.dtsi | 64 ++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk1808.dtsi b/arch/arm64/boot/dts/rockchip/rk1808.dtsi index b4a71c5c8be7..82614c47f144 100644 --- a/arch/arm64/boot/dts/rockchip/rk1808.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk1808.dtsi @@ -32,7 +32,10 @@ cpu0: cpu@0 { compatible = "arm,cortex-a35"; reg = <0x0 0x0>; enable-method = "psci"; + dynamic-power-coefficient = <74>; + operating-points-v2 = <&cpu0_opp_table>; cpu-idle-states = <&CPU_SLEEP>; + #cooling-cells = <2>; }; cpu1: cpu@1 { @@ -40,6 +43,7 @@ cpu1: cpu@1 { compatible = "arm,cortex-a35"; reg = <0x0 0x1>; enable-method = "psci"; + operating-points-v2 = <&cpu0_opp_table>; cpu-idle-states = <&CPU_SLEEP>; }; @@ -57,6 +61,66 @@ CPU_SLEEP: cpu-sleep { }; }; + cpu0_opp_table: cpu0-opp-table { + compatible = "operating-points-v2"; + opp-shared; + + opp-408000000 { + opp-hz = /bits/ 64 <408000000>; + opp-microvolt = <750000 750000 950000>; + clock-latency-ns = <40000>; + opp-suspend; + }; + + opp-600000000 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <750000 750000 950000>; + clock-latency-ns = <40000>; + }; + + opp-816000000 { + opp-hz = /bits/ 64 <816000000>; + opp-microvolt = <750000 750000 950000>; + clock-latency-ns = <40000>; + }; + + opp-1008000000 { + opp-hz = /bits/ 64 <1008000000>; + opp-microvolt = <750000 750000 950000>; + clock-latency-ns = <40000>; + }; + + opp-1200000000 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <800000 800000 950000>; + clock-latency-ns = <40000>; + }; + + opp-1296000000 { + opp-hz = /bits/ 64 <1296000000>; + opp-microvolt = <825000 825000 950000>; + clock-latency-ns = <40000>; + }; + + opp-1416000000 { + opp-hz = /bits/ 64 <1416000000>; + opp-microvolt = <850000 850000 950000>; + clock-latency-ns = <40000>; + }; + + opp-1512000000 { + opp-hz = /bits/ 64 <1512000000>; + opp-microvolt = <875000 875000 950000>; + clock-latency-ns = <40000>; + }; + + opp-1608000000 { + opp-hz = /bits/ 64 <1608000000>; + opp-microvolt = <900000 900000 950000>; + clock-latency-ns = <40000>; + }; + }; + arm-pmu { compatible = "arm,cortex-a35-pmu"; interrupts = ,