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: 12260687 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 35392C433B4 for ; Sun, 16 May 2021 23:08:02 +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 F032F6100A for ; Sun, 16 May 2021 23:08:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F032F6100A 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-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=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=SmbULJvsdjeVTRMUzISM92tKB+kHqPFCf/9vmvHu4u4=; b=ezoVgDr+d1tmCvnr8/q6/mbc1 +4Ar9tx0B3PprQrqaNoz716UBVcZ5IyuokQx6JSwyOi+ERiG3YNhhkFAPAUgacfU2Z4+r9JRYyTqE N9N1h9tN4DqM9fuLZXhXT9ltSQgioNdi2KXK/FQHXmBNQj9jOHOkNjo+vP9IPoE5c18XJMzOiqJEi hsFKsX+LntP4a4rBSE4FhZHyhm2q3NCOcMl6kIEabqnNKr+rx0RWtIqBoPlSQP19ys0atku2BxlrH EewXuKJrYHVKRNyBO3rwssaQEHGeUDjV30+70Qf6eEzT4B0lG4N8Q5m2uo8iCh8q+FaQ6tdzcgYT4 mVH99DsOw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPqA-00D7oK-5j; Sun, 16 May 2021 23:06:30 +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-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 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: 12260691 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 AB4CCC433ED for ; Sun, 16 May 2021 23:08:25 +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 73F1D6100A for ; Sun, 16 May 2021 23:08:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 73F1D6100A 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-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=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=ycMXrj8YhgNyWx97V1wKqD0kV1DWPLl2qnjjTBXe6M8=; b=HDA7peFGeEFBLnMPP5SdgdIIO K22pWx4hqpGQFlb34SsVg57cRqRNgj2BcZoYb2zUFyZWoNWLrDHFMrm/4vgA3J8iWNB1p1Cry4wBI 1NTPdLY+Tnq7/a9hqnuuqRISl98y7vVcwrTgh60ULemlL4TLzPwYNtn72S2I+chaGp+rvkD7oCu5q b1h2gtVhN/khgBWnZl9PFFaPpKELJAK7+oMztSxRd9TsJvtY8Q4e9bizprRyeKpU20uXkqbLyXQHo sWb1rxXBRDIc6uiX6h9guR38AEAWUDZSUPz7x/wsXGoH9KdHLGIdyOLDsTouJOEtmDuba9AGfV2Uc qloWCuCOA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPqa-00D7to-F0; Sun, 16 May 2021 23:06:56 +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-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 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: 12260697 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 CC979C433B4 for ; Sun, 16 May 2021 23:08:51 +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 56C4D61073 for ; Sun, 16 May 2021 23:08:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 56C4D61073 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-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=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=erq/uQogxN3/oMmzvxYMOXS33KG69n21MPd8DmFNBeo=; b=LbvRnY2YWdXra8SD2utbdbIl1 l/iXpdPszDcpCuGv7Vg8Snqw5BEWtm0/9/9FeTA/AoAZNL07ndnC6fyAq7omwL/WM/1iEsyEYfjwn CoAqwYPTMcZfFNF+owS7d0grJkBCM97lOVE1CKC5LnI5VLvZ8qDcpv9maL0n1/ycjel7GhSDY0KF8 QlmfeZLayJgSWX2at/TiUQs4eEy/Xm+HfNj/yenQ/5QNK0DNFDC1mD+eeZVopfPbDze90JN1coEz5 x25HxRWaaVeZNaPO/BfNRSs6SgA+NQyO4DzGyviTODwqXFaMUiYxUKL9H6Ky5iyMhhWf5xJxJevYz aeIl9AtnQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPr0-00D80X-Ms; Sun, 16 May 2021 23:07:22 +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-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 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: 12260693 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 7F89BC433B4 for ; Sun, 16 May 2021 23:08:41 +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 1440561073 for ; Sun, 16 May 2021 23:08:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1440561073 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-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=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=osG+QW0coRhZL8Hdm+1y+ggOk96w2z4C9QKmcpESWII=; b=GATgjwR3+VJmO/Yoge4sfZxbE ViqAhjXy02pVZpLsK2h2+2wzNTmhg1midkrhrIgIaKwZsvlOb3Fewp0wE+BVlpADog2NiZkj7HNOZ efkkN3TsZYe6iG9A3J5LWiXAG9JJB9XSZGzTrri++kIa5QypOiFNwQiIS1ThpqVQIjt9p7KLGEs4Z 2jiVqeiOEuxURb/KL8Lo9+kAWB5dS/NILA42SlXo1jY7bplH8e7a1crKJG1NkFn8qT8jZhp6ch0Gk thnjtMqgD4BCkZrJKzPMQsg0IzgO1k9Xuzn3WiiEO7RA/NKIbJMKg5Rbxs7uIp7/7Xh5B4FgjB3sX lOA2PZ/AA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPqo-00D7we-1H; Sun, 16 May 2021 23:07:10 +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-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 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: 12260699 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 E54BBC43460 for ; Sun, 16 May 2021 23:09:15 +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 AD6BD61164 for ; Sun, 16 May 2021 23:09:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AD6BD61164 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-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=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=P75rCTYx6Q1Z8+MpnFdB8S6OvIyll4i+WR+TG3Eq5qk=; b=RyDsihLolrdiNKDPStWK+bdBS jnwhsofEQkhwBEELoIRl3z++9g3jToX3YYZbFiGAWR5qYmBiBypfpD+Sbt+U+WthCJ3wAlESOfHo4 zRCa83DUKqT5uGViERKpPbZNGnmpP11llEMAS3ZigKF2p8daq5PWfgxdweMoKIMcf5q4OWBDA80B3 pBeseMJkJmh8qoAvK91lzCN+a0mfLbsxbZPkyW9EccVJw3hv5D1RTRC8kGFF+1mR8NbhwK0eIhXUl hJzQ1DAKvVj4yVPXlxgr/38S+klwBRjQbuOMLH0eiASgkPYHvkFkRRy3f4kHyw2BRbqLOyeygPuK8 WwPoBn7vw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPrT-00D8D0-4t; Sun, 16 May 2021 23:07:51 +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-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 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: 12260695 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 2CCB4C433ED for ; Sun, 16 May 2021 23:08: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 EDAFC61159 for ; Sun, 16 May 2021 23:08:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EDAFC61159 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-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=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=rbMthBrj4nhfTfrpovH8pyDK5MCle2kIBlYf6LL9WiM=; b=jVlRvk0vbkvp00VwcKmRjQdNx A0QNMfEEMy33PBoe2nF/aJNqkU/8SDHuthAH8Z8bLmk1E6XR4Wj4BWB9fHwa7JEw0th2Lp2A7iEZK 21Fr+k4q/UMd9R+Dk9dDJiDdIcV6Q1kfhsRHwGouM0O4xYMHSaX0RfqYbWzPRHxsuTn1TSrLgsCpd IG2BB5jfyQu0HgYKVPcvL6NKRju2tWt4cRdRCWi6oKVC5GYCxaPorPlNjp7902/HoY1c/M8bAoJQM 9kUnH249FJZSW37kvVixa+tbKVat2a6sdi58rUN0nyQkDfSLRxUtzEukHAr3TUY+ehdy50U+6y+9J 0VKIhIUoA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPrB-00D84j-JP; Sun, 16 May 2021 23:07:33 +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-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 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: 12260703 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 43D09C433ED for ; Sun, 16 May 2021 23:09:59 +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 0B63B6100A for ; Sun, 16 May 2021 23:09:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0B63B6100A 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-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=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=2/ylTLo31eoOKc7B3mep/+oX40x2boBmp0qhd/tnB3M=; b=PBaHrMLMACnoC4WhNc2B760k/ aNrKXqKo5wRTCnQaZOpLGI3EwqwcdX9VS2EPCPNwmq+tCeB5pb6WRw2QKtWYvbx4EIiNQzx1CWWiu YwxMBZbS0pMLBrRXPl7Gd96Ez31yUrORHFou2Tz1yXGiImPYNBjwNjb/AGmFcfgSXRj6WhdrskRws eKqxp0zl6qdOXZ0Zb2dq5YAvPAtHMcnPIuuT+qtYBer1/s0xk8siTRr4n1VfVt5LFL4UuQMY5usEY mWH8XRPP/WB9sQsD73oCCwTBuNZOU8XE2Wgb1prOCVN0J0KHJaOQcA3YpS5Ama418IwqXGYEjKGlz +TgaNEMQA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPrj-00D8JM-CA; Sun, 16 May 2021 23:08: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 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-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 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: 12260705 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 63E2CC433B4 for ; Sun, 16 May 2021 23:10: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 23D7F6100A for ; Sun, 16 May 2021 23:10:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 23D7F6100A 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-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=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=EME8MbA1ZXutjxrRgAt/E/8zl0yX+vKyvQlWI8+SsY0=; b=J7K+MZwoRKUv6GEnToCnxp6oP wHzQ8F7HQd7St1HY9lx0d9s9N5t2B5KtCOKzIABT6+/Wxc3BvngJaVXTKy0IhoW+xgzzx2CpBnda2 zxTdp1fm2HJVNCeA96s/VDg1YzATYoeQEAUveGy8fHwJEn45xeNNb2f1oC/F9vxfYsKxedpcci4zD v4XIUeFHjfyaye4zftRi2osqOcL1CnHfIckCmtl4gbfhHYLh+DRphfB71oPcMJuIyoVFlDATE89Bv P0LKWo5JX4HfzUZx9Z6qar3vUh3SJ3vYaujmcyGvya9SZzJT2dJew+iSqfk94A2Ic133kRdPQzXAM 5ZhMT9a+w==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPsF-00D8XQ-9L; Sun, 16 May 2021 23:08:39 +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-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 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: 12260701 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 3BAB9C433B4 for ; Sun, 16 May 2021 23:09:49 +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 A83656100A for ; Sun, 16 May 2021 23:09:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A83656100A 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-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=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=HOUxdag4uoYHXI3YfSqeQG2pXe2E7UC9jGNdVPVbZR8=; b=JKR1I4EDuXzcNkI1KNHlHRMEs QHul51cg2eWOCRMoAUlXTKfzSzRu7mfGfLYmuUYVtoviBriwx/TSgtfzw/KcFe2iza1/yIqESfmoZ rA26wNVNKmS2ARG2suh+Z7tVzvncHQJZ/8UxBIx9Ah8glETHg1qsr0IdfyzHgqnLT/U1Nv3T3ObxN Et5NWOkL9JdQs2562xNPvpDkFq3KXTLA/dcfw16Ty+CYAzqbSZB+hR4bSpFxYHUAkGSgOsjHPd32U 6Rn5uUoYmZP7FJgkp1/kxseSFfw+XuEmLVeasIZ/8luSOpRizuPgeSNaGvcs/BLpvNeB6LVfzSRIN DuCuzZOlg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPry-00D8QD-5Z; Sun, 16 May 2021 23:08:22 +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-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 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 = ,