From patchwork Thu Feb 14 13:09:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10812667 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E4AC3746 for ; Thu, 14 Feb 2019 13:09:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2343206E2 for ; Thu, 14 Feb 2019 13:09:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C38EB2D6BE; Thu, 14 Feb 2019 13:09:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6F85C206E2 for ; Thu, 14 Feb 2019 13:09:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=PVWq4LChk2+nllAve8Kj0Y9Hi+6REKaqm5izuBS6tC8=; b=sEjmogcEILrNHYHKUGioEO5vuF WK6EZMM1Y5VTS9MnhEXNhQZuk0PxOl02olrry/VT5+VhYERImI/Q7XNTXQp20lws0X1bZ15Xoa/5M b0qSGlcspz2fBDy0PBuY9k/Y4GERSS64lIGvCcCL2YxJCqqEPqeSvMg03pn37IOWdsLeg++JgFGGi vKcFSZkYo9V1rO+kAJPbQj/9fGbt8c9cBMZQbvu1kTK38hIdKWCp64HxhIQ4AT0MxfSapoDpQPETN yAov4Zj+sz2gMLiBa3MsucNfPzvkdGZBdsYzlo450o/mPi5UVcSRe6yoXRP7hEMz8O7+4pDCaIMaA xP44inNA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1guGlf-0001Xn-51; Thu, 14 Feb 2019 13:09:31 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1guGlW-0001JB-VN for linux-arm-kernel@lists.infradead.org; Thu, 14 Feb 2019 13:09:25 +0000 Received: by mail-pg1-x541.google.com with SMTP id w7so3043157pgp.13 for ; Thu, 14 Feb 2019 05:09:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0v9wVQ3xaGBLf3TQlCnHEwdgsZp+XVStp3m7EDnD+N8=; b=Jp3DN4brMf4mZx4wDp3V4QNwlJvaOnGrID+tjX5gtyZlibgtU/rEPVD2L06mULeqpQ 7vEs4MaEizzqu3pwPD8pDKVAtFDCrZymkUAW24gBhdIkdCWqsMKfkWaTvgc+UOd9JiKR 2bMPoSGuqpzitElBDZiRmkwKOerBTXbeFg7ItSCEQLS5/jf/lZyQs1we3s2SmCFHS71S PZEYRQzKQfGuMeWjfj4d34MvWJKZahtrRKKTmi6n29QPPckcmd+AAOlDIni1LCKLPwdX b2G9ksplq3AOKman6glzXuecP7LFleexwpJbhqVUJ4iozuN4SirsRYjzyx1DwKa4/MJ0 +dwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0v9wVQ3xaGBLf3TQlCnHEwdgsZp+XVStp3m7EDnD+N8=; b=JhTZr/zHgzLV2wlfecbN8TlOvvB3UzVG7LV3efkdbNiWUC1lbaFtj/Wt8FPtf+p8IJ Whn4ZqYVile98OqZKKQA8w9h9ESTlXbDcDjGWg66/uBxm4twxyHos55nViqD3McVAAeY 4KQbQ3isQbqTOquDL2kKlXbMY2zhmMasMPvN4L9AfuO1T1nh9cUR3puskuHZS1V16d0b yODk+Cq8nWruxGfGH8pO+RTtdo1M92DDY6uosnBe90IwPOTQsNydTjpz0Zcfqyb1+ubs zGX9IRZeMnwOHQpdPYmiOS9+Nq0HnjmsiWi8x8u145rnHxlaPAM/jG7myf4eGRDMNGnO WVZA== X-Gm-Message-State: AHQUAubPyna2UleHOJdjPqaERDFJ0PlyV+LrPVEN4JjENvTlcz84ooK+ D2jQKx9TmdZBiuWueAa2kgA= X-Google-Smtp-Source: AHgI3IZFbl5j8qM5LeBkq0v6BKUCQd5a5Q9vNWiXIvgGz1wlVK2PenecD63p/+Y1tRe97hHC+bi89w== X-Received: by 2002:a65:6549:: with SMTP id a9mr3598261pgw.21.1550149762462; Thu, 14 Feb 2019 05:09:22 -0800 (PST) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id u2sm2999992pfh.134.2019.02.14.05.09.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Feb 2019 05:09:21 -0800 (PST) From: Yangtao Li To: maxime.ripard@bootlin.com, wens@csie.org, robh+dt@kernel.org Subject: [PATCH 1/4] arm64: dts: allwinner: h6: orangepi: Add CPU supply regulator Date: Thu, 14 Feb 2019 08:09:07 -0500 Message-Id: <20190214130910.9201-2-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190214130910.9201-1-tiny.windzz@gmail.com> References: <20190214130910.9201-1-tiny.windzz@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190214_050923_129567_86C8BA28 X-CRM114-Status: GOOD ( 12.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Yangtao Li , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The original orangepi use the dcdca to supply the CPU cores. According to the axp805 spec, the range of dcdca is 0.6 to 1.1v, 1.12 to 1.52v. In order to support more CPU frequency, slightly increase the voltage maximum and minimum. Signed-off-by: Yangtao Li --- arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi index b2526dac2fcf..e7aebaf91ede 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi @@ -159,8 +159,8 @@ reg_dcdca: dcdca { regulator-always-on; - regulator-min-microvolt = <810000>; - regulator-max-microvolt = <1080000>; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1160000>; regulator-name = "vdd-cpu"; }; @@ -191,6 +191,10 @@ }; }; +&cpu0 { + cpu-supply = <®_dcdca>; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_ph_pins>; From patchwork Thu Feb 14 13:09:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10812669 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E4333746 for ; Thu, 14 Feb 2019 13:09:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D287B206E2 for ; Thu, 14 Feb 2019 13:09:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C65A22D6BE; Thu, 14 Feb 2019 13:09:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 806E1206E2 for ; Thu, 14 Feb 2019 13:09:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Ku4wAcbdR2Bm42dETxumQzrAiNNuol92Q3aolNuwoQg=; b=XzlRrtFM8RC1dDAtKhZifYywXY xxlt3z7Ye/0yVS+0Tpbnc1PpNPeXQrC7KJtdkN7xGVk4jueKmcVoYKvpuz7M4xnyA6EPyUs4em90U dnwvW35ueCvkS8S4q1CsS5c/rdhsODsjmiq2KI2cIkCQ4NxH9rdqPSxxxpygHo7MpADhkSnA68Ttg CuX/76ZUakJOj7kdvuxhGn3LfWwNXO0deFlCbhH3qi20pw5H5D40MMhu6s6a8YuUHLJN9yiKvRudS VaRpwZh/f09jt0Hlo4M0ArE+I1UMHgSuiQUXOXuObwwQbkUcXMJPez+9yYJ/Z8TIv0H3RyKWuyBuC bOpBTxmA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1guGlx-0001td-57; Thu, 14 Feb 2019 13:09:49 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1guGlb-0001T7-U8 for linux-arm-kernel@lists.infradead.org; Thu, 14 Feb 2019 13:09:30 +0000 Received: by mail-pl1-x641.google.com with SMTP id p8so3159219plo.2 for ; Thu, 14 Feb 2019 05:09:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UVWqQXafZ/X9MCi3U1aPlSOSuzbIbsBPGV8F2Zf93Jg=; b=egQS5MjYIvfK2q+CxooRFAWh4AkS7EqSlpSl077t1wj+eNHqeCl5W+G1qt52k1RuG9 zIaHx6kU0VSmisLZPUnMM4mIdhJniH7DuQQDd2AXTfYHf4mEm365kRXyD7/kgSxdCyoR Zq+1JXXDvjiNPCdXA42cI690M3kDIMeus+b47iTeWx2C8WJx6FvqS+4n5n/eCXPLaBxP rWz3Ta67hXhJ34lditXLRNdzj3uLUdNO2+5sBQJXFE5X1NAlU+1WYhMRO4GVOyjL4ONk bJv3V+cgvMMTpQM7lk/LY5wHOJPMEMt462PUolpf7d+IrYv3UHQWFtnQHKU/1IJWKkij H6ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UVWqQXafZ/X9MCi3U1aPlSOSuzbIbsBPGV8F2Zf93Jg=; b=hsGt4Afi4MrvH5DRwjdxqTQdIDHJH+4JbBuoRmyOJmVDInYrZ8qDlzdpYc0zFf62Hv EyXV+n5nYHFjqz460BktZXpbt6PztTIUoqxM7PpDadfruLwjxyKImeq6882d7BTdGI/5 pBIYY7GbgY+b4M2d18vbetxcU0zSGdIHVzWOLB5cB/TTlTkBKlKvX07Xdgblw4xvpIzE n7Z2VZCLKO9zX7qi57C4keXuVNdf/1FOYKq5A3LVZRGH/Z0FqpIWG8a2D+JalQMIi7Sc fCwo23AcbByrJ6nm1oSBk+Gfk9BqV8YardflWyFef2E+PPAHDHLT+VmVFWkL5+7KHXXi DxMw== X-Gm-Message-State: AHQUAuYX64rf6LpfWUwuXU4k1cSN05lBR3nO02VHy5vWliBpekMpB257 vuHGtYIdQQF+KgtT+u9h0R8= X-Google-Smtp-Source: AHgI3IYv1lJgJTzn3LOHLhTgDD5gjpgJxfjbqSReqnB4xq3OJyh24csatJtdeVjAszOfgb0OXEaCaw== X-Received: by 2002:a17:902:b48d:: with SMTP id y13mr3973292plr.273.1550149767468; Thu, 14 Feb 2019 05:09:27 -0800 (PST) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id o16sm2517286pgv.41.2019.02.14.05.09.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Feb 2019 05:09:26 -0800 (PST) From: Yangtao Li To: maxime.ripard@bootlin.com, wens@csie.org, robh+dt@kernel.org Subject: [PATCH 2/4] arm64: dts: allwinner: h6: pine: Add CPU supply regulator Date: Thu, 14 Feb 2019 08:09:08 -0500 Message-Id: <20190214130910.9201-3-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190214130910.9201-1-tiny.windzz@gmail.com> References: <20190214130910.9201-1-tiny.windzz@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190214_050928_354837_A138D64D X-CRM114-Status: GOOD ( 12.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Yangtao Li , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The original pine use the dcdca to supply the CPU cores. According to the axp805 spec, the range of dcdca is 0.6 to 1.1v, 1.12 to 1.52v. In order to support more CPU frequency, slightly increase the voltage maximum and minimum. Signed-off-by: Yangtao Li --- arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts index bdb8470fc8dc..95c81250c2b3 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts @@ -213,8 +213,8 @@ reg_dcdca: dcdca { regulator-always-on; - regulator-min-microvolt = <810000>; - regulator-max-microvolt = <1080000>; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1160000>; regulator-name = "vdd-cpu"; }; @@ -251,6 +251,10 @@ }; }; +&cpu0 { + cpu-supply = <®_dcdca>; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_ph_pins>; From patchwork Thu Feb 14 13:09:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10812677 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BE39714E1 for ; Thu, 14 Feb 2019 13:10:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC8EC2D6CC for ; Thu, 14 Feb 2019 13:10:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA0EE2D9FB; Thu, 14 Feb 2019 13:10:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 615A22D6CC for ; Thu, 14 Feb 2019 13:10:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=GNeVZmvBrELk95YJqs1FSzb5BFBEu48FONu7oPlKfIM=; b=cNVqQGxHPFW0IhtVtdguTk/7UW ZYjhwxh3RZu62PeHQO3rajMyD3714GIfphvcQcpmKyhfJ74wd9X3lY3S/DcKCXUBLxt22DhIvdXWl XbLGhwVgsEmCkgdRSeWGxss0g6mn6z8f51yUxndhrkqArdRmCQED1Q/Jkd9MJL9MLeUIBi4OTZQjN t0XmzYA7zGjnSsFZD5PeGWFI8qWEZjqsbFMTEgG4ou4VYc/NjeuZOYKxDFSLcw5P8dfO+kZJIILqt +oOAZUSVV1598tiYD4b+DJrHHYDPyyWuwSlJKCIqNYp8k0e2/0YcdXY5XOJbwyBw5ZFIo8b1DspIl rwsmai/g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1guGm8-00029A-CJ; Thu, 14 Feb 2019 13:10:00 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1guGlg-0001ZO-BQ for linux-arm-kernel@lists.infradead.org; Thu, 14 Feb 2019 13:09:36 +0000 Received: by mail-pf1-x443.google.com with SMTP id n22so3102435pfa.3 for ; Thu, 14 Feb 2019 05:09:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+hK5V+00HuBIgvwFBMqvf1caVsLQS7fH30vXRswk3QU=; b=N4zOorQCPStoqHAzK8dkZTKIuQP4g/v0c1TBWu0ordNOpN4aVAkxtt0rp8IsunV+oL JZabue/BQgQ7oyk1EZFxhswYI6N4VS0t8uMNZvLg0klSFmA5pLDU/mDgolH0dEyGqxSm zokMSqu2kCGY+d9fL3j6oEt7yEAEVFngv8Bt9ujBDho+vikddNE8PbjcZmNNm0xK+MCi dWHOIfn8STLExiLjj+3+wW6TT+z4mheqy+c2CSzX3jrz1mNHO5s1nIVyWxsh5+siuqpa pEI56Q2+P7RJ7kS00p3dEpWoSe0rH1mNj+67idrGD5TyQh7qFhQI1MpTdTT5GbonMBbK W8Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+hK5V+00HuBIgvwFBMqvf1caVsLQS7fH30vXRswk3QU=; b=XcVMKv5hZh+lV00lOKYECE7tg0N24rdfzN5nMaAUvRp2wQ75LXyeH6H8aeGKL9r+Ul SD8ZZQgevHmlRoSrAjBIpMquE86JkRPiQWHRjt6EU55CkiR+mKZXoEhbwPYFabH3nP+m +YdFlsKWLGkrF4mdfRGCVeD9IE5jwpydhOJjGPQvrl9T1VyPsdLys2ntmVV2ugDW0xGa h9UczkigqdPIDLSX5Kq9Yz2EGnu4LF0nMbjW2Zcu397r5DbBjxSr1qF9NPx/BChQReM/ OiydFACimEVje8/u/t2V1ZasrBZ2xL25f/d+tBj4OZkc2O2m4rwfqIdfTjDCyNPDTI1O V3JQ== X-Gm-Message-State: AHQUAubmU5Ta3oCXXbABICqvhs8zxzjhERXzdvVj9mpadrBMaMODn1MG VpWQesbotVe25KR2LkLsbAE= X-Google-Smtp-Source: AHgI3IZE6om4PCXUD8l/xFXDXYr2gbJMaFNdC2/Pesiz51GgDeT7X6D+cXbbQrjUMdXMQpgE/YpFtA== X-Received: by 2002:a65:47ca:: with SMTP id f10mr3810384pgs.166.1550149771864; Thu, 14 Feb 2019 05:09:31 -0800 (PST) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id 15sm3625336pfr.55.2019.02.14.05.09.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Feb 2019 05:09:31 -0800 (PST) From: Yangtao Li To: maxime.ripard@bootlin.com, wens@csie.org, robh+dt@kernel.org Subject: [PATCH 3/4] arm64: dts: allwinner: h6: Add clock to CPU cores Date: Thu, 14 Feb 2019 08:09:09 -0500 Message-Id: <20190214130910.9201-4-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190214130910.9201-1-tiny.windzz@gmail.com> References: <20190214130910.9201-1-tiny.windzz@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190214_050932_900575_7CD0656A X-CRM114-Status: GOOD ( 11.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Yangtao Li , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The ARM CPU cores are fed by the CPU clock from the CCU. Add a reference to the clock for each CPU core, along with the clock transition latency. Signed-off-by: Yangtao Li --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index d93a7add67e7..57a1390ecdc2 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -26,6 +26,8 @@ device_type = "cpu"; reg = <0>; enable-method = "psci"; + clocks = <&ccu CLK_CPUX>; + clock-latency-ns = <244144>; /* 8 32k periods */ }; cpu1: cpu@1 { @@ -33,6 +35,8 @@ device_type = "cpu"; reg = <1>; enable-method = "psci"; + clocks = <&ccu CLK_CPUX>; + clock-latency-ns = <244144>; /* 8 32k periods */ }; cpu2: cpu@2 { @@ -40,6 +44,8 @@ device_type = "cpu"; reg = <2>; enable-method = "psci"; + clocks = <&ccu CLK_CPUX>; + clock-latency-ns = <244144>; /* 8 32k periods */ }; cpu3: cpu@3 { @@ -47,6 +53,8 @@ device_type = "cpu"; reg = <3>; enable-method = "psci"; + clocks = <&ccu CLK_CPUX>; + clock-latency-ns = <244144>; /* 8 32k periods */ }; }; From patchwork Thu Feb 14 13:09:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10812679 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F208B14E1 for ; Thu, 14 Feb 2019 13:10:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0D052DF06 for ; Thu, 14 Feb 2019 13:10:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DEB7E2DFA9; Thu, 14 Feb 2019 13:10:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 799F22E005 for ; Thu, 14 Feb 2019 13:10:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=rgIssZx/lfDk1oOyNFzv1Hn4bxFiMa+vRmEagBIxC4Q=; b=MjMqYQgCzRF+odilzQgc7V0FdJ eEIGi1q+SkfPZGrrnXppA/dSWY8Uh1ojPYEFOCHVCc49E710f2IWmRTmf0QYKfN+NXIEkg9wIXoLe DLVos/N1VTWDnxngVS4a5kymQT3aYkIZ5pA2X6+XKrdsAJYz6rPWT7E7WfUbWYOAKDD+Sf5qh9+my F87xDh4yu67WiUHIiKxR4EaYYMsfbsAfleLiBJPEMDx3P5bD9FQ6TtOR9hr79nc/lLqLLiswhKEhw KvTNqTliKDG/NpurGvm8jC3pg7F+symOdy1khHySvywmD0HM5CDttGs1y27KJwnn+pznNQzuLqjGM Rxo8K6/A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1guGmP-0003Qr-7O; Thu, 14 Feb 2019 13:10:17 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1guGlj-0001f8-Ra for linux-arm-kernel@lists.infradead.org; Thu, 14 Feb 2019 13:09:40 +0000 Received: by mail-pl1-x641.google.com with SMTP id o6so3136748pls.13 for ; Thu, 14 Feb 2019 05:09:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ofA8+5OQRWMQvRz/8D4Xr5InC1D52UQFLM4xDydHYFs=; b=Vrxqex71isZH7GRRW9BY6yHvd50IjDOjwgwxImUDtgkxn++JflpMl0l0dEC/hAKngc vMC064RwxVzhgdExZCCBopR80w/3pPKQqhGt9gd2oVwFLY8cDU98FvA6AAJTRtNR1KJH aVZeKe+wpl+U6eiPuhojdUqhUSXkzpqS3uP6HWN3HYkDR4T3y1xV+E0Nz/K24BEnTPXm cRG1KnTMCJQEUWyldNwiXrEWGdbOf1gxzH3t5sTUeem3sQxpIfAp9YNyJAPX71SDPwUK fY/wac7iVWBYc2pkUFGKn/3HOAYOjvNNlDVP9RH9GyuJZArpwSEw4vVdfUL2fKjYIqik 0S2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ofA8+5OQRWMQvRz/8D4Xr5InC1D52UQFLM4xDydHYFs=; b=Kt2lND3hhTDKzmrBKGLV4o5mDUpe0IeXx3a/hPf0+7SkySkar61iQQk2uNbhdCnOsw PgjLYr4QwIpHw5kSaSxwZP6eKOER7qM10wYvtZe47owF20Zhl6HqzmH357HhLsz/I1N8 jyE8s4Vjn5t3f6mHXiqc16dpM4EleWOXplcrGTGk840BwykyfnVuHYXggRMreh/ZrHam VzJebQDEk3ZUDGtKgXmc/fAWTUnAVf/3ZSqLafMTMLR0Cnk8lJrI/LWru2N6f7XPziRz DKznaBod/4wAfFhMDki4Lfog2mMm0ZIkXDPzCXeuFDbg+ZN1JRb6YTEENXXeih1Vlu9e SXwg== X-Gm-Message-State: AHQUAuZp/tw3r25pBNLUsqZxpBiX8FRD57iPZCHrIqDZRyainfHOrzUw 4PD0MVs6tgLtmYj+LG83TKM= X-Google-Smtp-Source: AHgI3IbX91T+syXYN7LWYJkdosLGW6PfkvSFvASEsnDCCb8pcgVeBNx9t2ByfEwgSO1gcfezi+bSng== X-Received: by 2002:a17:902:129:: with SMTP id 38mr4110852plb.140.1550149775352; Thu, 14 Feb 2019 05:09:35 -0800 (PST) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id b15sm8159128pfj.44.2019.02.14.05.09.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Feb 2019 05:09:34 -0800 (PST) From: Yangtao Li To: maxime.ripard@bootlin.com, wens@csie.org, robh+dt@kernel.org Subject: [PATCH 4/4] arm64: dts: allwinner: h6: Add CPU Operating Performance Points table Date: Thu, 14 Feb 2019 08:09:10 -0500 Message-Id: <20190214130910.9201-5-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190214130910.9201-1-tiny.windzz@gmail.com> References: <20190214130910.9201-1-tiny.windzz@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190214_050936_596780_B5D1FA39 X-CRM114-Status: GOOD ( 10.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Yangtao Li , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add an OPP (Operating Performance Points) table for the CPU cores to enable DVFS (Dynamic Voltage & Frequency Scaling) on the H6. This information comes from github. Signed-off-by: Yangtao Li --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 61 ++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index 57a1390ecdc2..46a4a69eb38f 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -28,6 +28,8 @@ enable-method = "psci"; clocks = <&ccu CLK_CPUX>; clock-latency-ns = <244144>; /* 8 32k periods */ + operating-points-v2 = <&cpu_opp_table>; + #cooling-cells = <2>; }; cpu1: cpu@1 { @@ -37,6 +39,8 @@ enable-method = "psci"; clocks = <&ccu CLK_CPUX>; clock-latency-ns = <244144>; /* 8 32k periods */ + operating-points-v2 = <&cpu_opp_table>; + #cooling-cells = <2>; }; cpu2: cpu@2 { @@ -46,6 +50,8 @@ enable-method = "psci"; clocks = <&ccu CLK_CPUX>; clock-latency-ns = <244144>; /* 8 32k periods */ + operating-points-v2 = <&cpu_opp_table>; + #cooling-cells = <2>; }; cpu3: cpu@3 { @@ -55,6 +61,61 @@ enable-method = "psci"; clocks = <&ccu CLK_CPUX>; clock-latency-ns = <244144>; /* 8 32k periods */ + operating-points-v2 = <&cpu_opp_table>; + #cooling-cells = <2>; + }; + }; + + cpu_opp_table: opp_table { + compatible = "operating-points-v2"; + opp-shared; + + opp@480000000 { + opp-hz = /bits/ 64 <480000000>; + opp-microvolt = <800000 800000 880000>; + clock-latency-ns = <244144>; /* 8 32k periods */ + }; + + opp@720000000 { + opp-hz = /bits/ 64 <720000000>; + opp-microvolt = <800000 800000 880000>; + clock-latency-ns = <244144>; /* 8 32k periods */ + }; + + opp@816000000 { + opp-hz = /bits/ 64 <816000000>; + opp-microvolt = <800000 800000 880000>; + clock-latency-ns = <244144>; /* 8 32k periods */ + }; + + opp@888000000 { + opp-hz = /bits/ 64 <888000000>; + opp-microvolt = <800000 800000 940000>; + clock-latency-ns = <244144>; /* 8 32k periods */ + }; + + opp@1080000000 { + opp-hz = /bits/ 64 <1080000000>; + opp-microvolt = <840000 840000 1060000>; + clock-latency-ns = <244144>; /* 8 32k periods */ + }; + + opp@1320000000 { + opp-hz = /bits/ 64 <1320000000>; + opp-microvolt = <900000 900000 1160000>; + clock-latency-ns = <244144>; /* 8 32k periods */ + }; + + opp@1488000000 { + opp-hz = /bits/ 64 <1488000000>; + opp-microvolt = <960000 960000 1160000>; + clock-latency-ns = <244144>; /* 8 32k periods */ + }; + + opp@1800000000 { + opp-hz = /bits/ 64 <1800000000>; + opp-microvolt = <1060000 1060000 1160000>; + clock-latency-ns = <244144>; /* 8 32k periods */ }; };