From mboxrd@z Thu Jan 1 00:00:00 1970 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=-6.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED 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 30DF9C43381 for ; Thu, 21 Mar 2019 15:56:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E64C2218A5 for ; Thu, 21 Mar 2019 15:56:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=lechnology.com header.i=@lechnology.com header.b="SexjxEYM" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728535AbfCUP4b (ORCPT ); Thu, 21 Mar 2019 11:56:31 -0400 Received: from vern.gendns.com ([98.142.107.122]:45270 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbfCUP4b (ORCPT ); Thu, 21 Mar 2019 11:56:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EXjGFrZqIbl/ueZ09OAHu8stNQswpltDmvpgiYd8PYU=; b=SexjxEYMwX0LgHB/GdhcYjCdcf 16fp+NV6azTZiWcI4kBmc4YnDoaaQzrGgfRVKWG7INXLL32YhJ8WFZuFxPTV9+0gRzgptJnjpzdEF oJz6O4hERx/kLabFAKxx+GASw1bSl8G62TZUj+ab3jd+lkdN8EFujVyn0LDuJVN41ajfdsfb6NbB9 BuEaemaH6JVtA3+hxZpTgc1aPS4T7kzqGZbqBJoMDrMSu04ux4egiyF78d0Woi8WUfiTpvLQrMhEv Z2i8oOtU+h6eqIT4ltZ/fH/vSrcxVG4PZsgRoLMYqcvb54KKV4oirgzrynB8UTmGzHUD3pa43mSm+ IZL5hXLA==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:38792 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1h7023-0001OK-QK; Thu, 21 Mar 2019 11:55:03 -0400 Subject: Re: [PATCH 2/4] ARM: dts: da850: add cpu node and operating points to DT To: Bartosz Golaszewski , Sekhar Nori , Kevin Hilman , Rob Herring , Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski References: <20190321141010.19612-1-brgl@bgdev.pl> <20190321141010.19612-3-brgl@bgdev.pl> From: David Lechner Message-ID: Date: Thu, 21 Mar 2019 10:56:27 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190321141010.19612-3-brgl@bgdev.pl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/21/19 9:10 AM, Bartosz Golaszewski wrote: > From: David Lechner > > This adds a cpu node and operating points to the common da850.dtsi file. > > Additionally, a regulator is added to the LEGO EV3 board along with > some board-specific CPU configuration. Should mention the LCDK board here as well since it is included in this patch. > > Regulators need to be hooked up on other boards to get them working. > > Signed-off-by: David Lechner > Signed-off-by: Bartosz Golaszewski > --- > arch/arm/boot/dts/da850-lcdk.dts | 31 +++++++++++++++ > arch/arm/boot/dts/da850-lego-ev3.dts | 30 +++++++++++++++ > arch/arm/boot/dts/da850.dtsi | 56 ++++++++++++++++++++++++++++ > 3 files changed, 117 insertions(+) > > diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts > index 26f453dc8370..f29ed9010812 100644 > --- a/arch/arm/boot/dts/da850-lcdk.dts > +++ b/arch/arm/boot/dts/da850-lcdk.dts > @@ -155,12 +155,43 @@ > }; > }; > }; > + > + cvdd: regulator0 { > + compatible = "regulator-fixed"; > + regulator-name = "cvdd"; > + regulator-min-microvolt = <1300000>; > + regulator-max-microvolt = <1300000>; > + regulator-always-on; > + regulator-boot-on; > + }; > }; > > &ref_clk { > clock-frequency = <24000000>; > }; > > +&cpu { > + cpu-supply = <&cvdd>; > +}; > + > +/* LCDK has a fixed CVDD of 1.3V, so only op points >= 300MHz are valid */ > + > +&opp_100 { > + status = "disabled"; > +}; > + > +&opp_200 { > + status = "disabled"; > +}; > + > +&opp_375 { > + status = "okay"; > +}; > + > +&opp_456 { > + status = "okay"; > +}; > + > &pmx_core { > status = "okay"; > > diff --git a/arch/arm/boot/dts/da850-lego-ev3.dts b/arch/arm/boot/dts/da850-lego-ev3.dts > index 66fcadf0ba91..553717f84483 100644 > --- a/arch/arm/boot/dts/da850-lego-ev3.dts > +++ b/arch/arm/boot/dts/da850-lego-ev3.dts > @@ -125,6 +125,15 @@ > amp-supply = <&>; > }; > > + cvdd: regulator0 { > + compatible = "regulator-fixed"; > + regulator-name = "cvdd"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-always-on; > + regulator-boot-on; > + }; > + > /* > * This is a 5V current limiting regulator that is shared by USB, > * the sensor (input) ports, the motor (output) ports and the A/DC. > @@ -204,6 +213,27 @@ > clock-frequency = <24000000>; > }; > > +&cpu { > + cpu-supply = <&cvdd>; > +}; > + > +/* since we have a fixed regulator, we can't run at these points */ > +&opp_100 { > + status = "disabled"; > +}; > + > +&opp_200 { > + status = "disabled"; > +}; > + > +/* > + * The SoC is actually the 456MHz version, but because of the fixed regulator > + * This is the fastest we can go. > + */ > +&opp_375 { > + status = "okay"; > +}; > + > &pmx_core { > status = "okay"; > > diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi > index 559659b399d0..ee61d1253b58 100644 > --- a/arch/arm/boot/dts/da850.dtsi > +++ b/arch/arm/boot/dts/da850.dtsi > @@ -20,6 +20,62 @@ > reg = <0xc0000000 0x0>; > }; > > + cpus { > + #address-cells = <1>; > + #size-cells = <0>; > + > + cpu: cpu@0 { > + compatible = "arm,arm926ej-s"; > + device_type = "cpu"; > + reg = <0>; > + clocks = <&psc0 14>; > + operating-points-v2 = <&opp_table>; > + }; > + }; > + > + opp_table: opp-table { > + compatible = "operating-points-v2"; > + > + opp_100: opp100-100000000 { > + opp-hz = /bits/ 64 <100000000>; > + opp-microvolt = <1000000 950000 1050000>; > + }; > + > + opp_200: opp110-200000000 { > + opp-hz = /bits/ 64 <200000000>; > + opp-microvolt = <1100000 1050000 1160000>; > + }; > + > + opp_300: opp120-300000000 { > + opp-hz = /bits/ 64 <300000000>; > + opp-microvolt = <1200000 1140000 1320000>; > + }; > + > + /* > + * Original silicon was 300MHz max, so higher frequencies > + * need to be enabled on a per-board basis if the chip is > + * capable. > + */ > + > + opp_375: opp120-375000000 { > + status = "disabled"; > + opp-hz = /bits/ 64 <375000000>; > + opp-microvolt = <1200000 1140000 1320000>; > + }; > + > + opp_415: opp130-415000000 { > + status = "disabled"; > + opp-hz = /bits/ 64 <415000000>; > + opp-microvolt = <1300000 1250000 1350000>; > + }; I just made this point (415MHz) up for experimenting with undervolting before going all the way to 456MHz at 1.2V. I'm not sure if it is actually useful to anyone else. > + > + opp_456: opp130-456000000 { > + status = "disabled"; > + opp-hz = /bits/ 64 <456000000>; > + opp-microvolt = <1300000 1250000 1350000>; > + }; > + }; > + > arm { > #address-cells = <1>; > #size-cells = <1>; > From mboxrd@z Thu Jan 1 00:00:00 1970 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=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS 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 D9ABDC43381 for ; Thu, 21 Mar 2019 15:56:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A7C32218A5 for ; Thu, 21 Mar 2019 15:56:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="j2ewZbJD"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=lechnology.com header.i=@lechnology.com header.b="SexjxEYM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A7C32218A5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lechnology.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cyhGxUPb4EMlJrSVvWOfuNuoSk6TyGnvNA5s/wyXvKg=; b=j2ewZbJDxeGyPaV/ChhNAy4r/ GL3j6lo8A1sGHRw6furmVscj6TlKUIQamxWNTVdZldVwCzJAkwAzdPGlsZdEOA4M2z8i7ib6Zbt0E msjSBLumdqiH5j0JjpvXQMUWyHMDeLZGsT72faXanuOGl3Vb9kfSgCx5uShbU/xFzn2SeJo/EBvhp qO6P8+1ZnYrIV9CMxABqG7EbI6LX02NuaL40GwSmV0Xzfwjw4aZn9RvUFZfPfkrGeFWsVE6+1g9dx 61G1vzeo+p1B+quChcG9c+j10Uk+kP6x+h60zYgH6TptZ4HoG+1MSKRH6UK0Ul9tLZQiRLBo7Cu29 LWUj1Wbvg==; 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 1h703V-0006Zi-UM; Thu, 21 Mar 2019 15:56:33 +0000 Received: from vern.gendns.com ([98.142.107.122]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h703S-0006YA-I3 for linux-arm-kernel@lists.infradead.org; Thu, 21 Mar 2019 15:56:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EXjGFrZqIbl/ueZ09OAHu8stNQswpltDmvpgiYd8PYU=; b=SexjxEYMwX0LgHB/GdhcYjCdcf 16fp+NV6azTZiWcI4kBmc4YnDoaaQzrGgfRVKWG7INXLL32YhJ8WFZuFxPTV9+0gRzgptJnjpzdEF oJz6O4hERx/kLabFAKxx+GASw1bSl8G62TZUj+ab3jd+lkdN8EFujVyn0LDuJVN41ajfdsfb6NbB9 BuEaemaH6JVtA3+hxZpTgc1aPS4T7kzqGZbqBJoMDrMSu04ux4egiyF78d0Woi8WUfiTpvLQrMhEv Z2i8oOtU+h6eqIT4ltZ/fH/vSrcxVG4PZsgRoLMYqcvb54KKV4oirgzrynB8UTmGzHUD3pa43mSm+ IZL5hXLA==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:38792 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1h7023-0001OK-QK; Thu, 21 Mar 2019 11:55:03 -0400 Subject: Re: [PATCH 2/4] ARM: dts: da850: add cpu node and operating points to DT To: Bartosz Golaszewski , Sekhar Nori , Kevin Hilman , Rob Herring , Mark Rutland References: <20190321141010.19612-1-brgl@bgdev.pl> <20190321141010.19612-3-brgl@bgdev.pl> From: David Lechner Message-ID: Date: Thu, 21 Mar 2019 10:56:27 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190321141010.19612-3-brgl@bgdev.pl> Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - lists.infradead.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190321_085630_678491_E2CC3919 X-CRM114-Status: GOOD ( 21.04 ) 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: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 3/21/19 9:10 AM, Bartosz Golaszewski wrote: > From: David Lechner > > This adds a cpu node and operating points to the common da850.dtsi file. > > Additionally, a regulator is added to the LEGO EV3 board along with > some board-specific CPU configuration. Should mention the LCDK board here as well since it is included in this patch. > > Regulators need to be hooked up on other boards to get them working. > > Signed-off-by: David Lechner > Signed-off-by: Bartosz Golaszewski > --- > arch/arm/boot/dts/da850-lcdk.dts | 31 +++++++++++++++ > arch/arm/boot/dts/da850-lego-ev3.dts | 30 +++++++++++++++ > arch/arm/boot/dts/da850.dtsi | 56 ++++++++++++++++++++++++++++ > 3 files changed, 117 insertions(+) > > diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts > index 26f453dc8370..f29ed9010812 100644 > --- a/arch/arm/boot/dts/da850-lcdk.dts > +++ b/arch/arm/boot/dts/da850-lcdk.dts > @@ -155,12 +155,43 @@ > }; > }; > }; > + > + cvdd: regulator0 { > + compatible = "regulator-fixed"; > + regulator-name = "cvdd"; > + regulator-min-microvolt = <1300000>; > + regulator-max-microvolt = <1300000>; > + regulator-always-on; > + regulator-boot-on; > + }; > }; > > &ref_clk { > clock-frequency = <24000000>; > }; > > +&cpu { > + cpu-supply = <&cvdd>; > +}; > + > +/* LCDK has a fixed CVDD of 1.3V, so only op points >= 300MHz are valid */ > + > +&opp_100 { > + status = "disabled"; > +}; > + > +&opp_200 { > + status = "disabled"; > +}; > + > +&opp_375 { > + status = "okay"; > +}; > + > +&opp_456 { > + status = "okay"; > +}; > + > &pmx_core { > status = "okay"; > > diff --git a/arch/arm/boot/dts/da850-lego-ev3.dts b/arch/arm/boot/dts/da850-lego-ev3.dts > index 66fcadf0ba91..553717f84483 100644 > --- a/arch/arm/boot/dts/da850-lego-ev3.dts > +++ b/arch/arm/boot/dts/da850-lego-ev3.dts > @@ -125,6 +125,15 @@ > amp-supply = <&>; > }; > > + cvdd: regulator0 { > + compatible = "regulator-fixed"; > + regulator-name = "cvdd"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-always-on; > + regulator-boot-on; > + }; > + > /* > * This is a 5V current limiting regulator that is shared by USB, > * the sensor (input) ports, the motor (output) ports and the A/DC. > @@ -204,6 +213,27 @@ > clock-frequency = <24000000>; > }; > > +&cpu { > + cpu-supply = <&cvdd>; > +}; > + > +/* since we have a fixed regulator, we can't run at these points */ > +&opp_100 { > + status = "disabled"; > +}; > + > +&opp_200 { > + status = "disabled"; > +}; > + > +/* > + * The SoC is actually the 456MHz version, but because of the fixed regulator > + * This is the fastest we can go. > + */ > +&opp_375 { > + status = "okay"; > +}; > + > &pmx_core { > status = "okay"; > > diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi > index 559659b399d0..ee61d1253b58 100644 > --- a/arch/arm/boot/dts/da850.dtsi > +++ b/arch/arm/boot/dts/da850.dtsi > @@ -20,6 +20,62 @@ > reg = <0xc0000000 0x0>; > }; > > + cpus { > + #address-cells = <1>; > + #size-cells = <0>; > + > + cpu: cpu@0 { > + compatible = "arm,arm926ej-s"; > + device_type = "cpu"; > + reg = <0>; > + clocks = <&psc0 14>; > + operating-points-v2 = <&opp_table>; > + }; > + }; > + > + opp_table: opp-table { > + compatible = "operating-points-v2"; > + > + opp_100: opp100-100000000 { > + opp-hz = /bits/ 64 <100000000>; > + opp-microvolt = <1000000 950000 1050000>; > + }; > + > + opp_200: opp110-200000000 { > + opp-hz = /bits/ 64 <200000000>; > + opp-microvolt = <1100000 1050000 1160000>; > + }; > + > + opp_300: opp120-300000000 { > + opp-hz = /bits/ 64 <300000000>; > + opp-microvolt = <1200000 1140000 1320000>; > + }; > + > + /* > + * Original silicon was 300MHz max, so higher frequencies > + * need to be enabled on a per-board basis if the chip is > + * capable. > + */ > + > + opp_375: opp120-375000000 { > + status = "disabled"; > + opp-hz = /bits/ 64 <375000000>; > + opp-microvolt = <1200000 1140000 1320000>; > + }; > + > + opp_415: opp130-415000000 { > + status = "disabled"; > + opp-hz = /bits/ 64 <415000000>; > + opp-microvolt = <1300000 1250000 1350000>; > + }; I just made this point (415MHz) up for experimenting with undervolting before going all the way to 456MHz at 1.2V. I'm not sure if it is actually useful to anyone else. > + > + opp_456: opp130-456000000 { > + status = "disabled"; > + opp-hz = /bits/ 64 <456000000>; > + opp-microvolt = <1300000 1250000 1350000>; > + }; > + }; > + > arm { > #address-cells = <1>; > #size-cells = <1>; > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel