Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4289948yba; Wed, 17 Apr 2019 08:28:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+Y9by69Q3fJJbndI5e3f6AQPaQM4A+Xzn03Ma41I3w9ogzblpoBfZkZN3O3vizjETU96o X-Received: by 2002:a63:fa54:: with SMTP id g20mr79683178pgk.242.1555514902862; Wed, 17 Apr 2019 08:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555514902; cv=none; d=google.com; s=arc-20160816; b=F+gi1gh65csOTB9TFMDwEh23T2Mioh5T5XVmOCb5bw+8K+5NNqASEnGt0JriVYJOI4 gBzFMBn3XXde9KvfIXePil8HlsOa2R+ycZv+8UILuvE00+AOsQ1CLe/Y+ppLHozA+gDK wGdUnCmoMBX1kq9E6G/DJZFHo0l0Ctq8gZ+BUULopJn4OAJstp1VvJjk7hVo3ZW+32pw w+6YhsdItr7N/vIZb4QuRjUdfwCdBn0fWAJ+5wNYLzyPEEOhSTALqpYdsmU4jPV8lScx bTAfO27qqtg4aRFcm/NdrMA0ppIuFBrsJzeCgGx14QDjC9lbcBrmEzDJUOxjumq0OS7D vcQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=O6d+R1BA43CR6//FSBQc7Q2qw1KEWApHiN8cbRKfTm8=; b=M8+geTcbUeCpe1mZaVJA/lEp4/lH2SOioUQspkntnTx+i2eHRmL0ZA+OoAqQPd9OIZ HhP1aeB4Lg2B5nkTOnLKWsegD2EYDXRtQJ1M4UNokiT6CIShsnUgEHR2yA04+eWdkC0A nsL8IN/TfzNyaFwZ/UoRxYGX0S1W73F9VyP4udDhZiQShiAlpiN0Uw4TbKd9T15ejUYq HOR0eBKzlNGIhZzYgMSzhWPP14uAEC0zg4djxbFk4VKniXlt6iedFJkV88PCjr8BOi5T aaqtZ9ATHMGGcVfuBT2PKI2IRY/zz6Rn8tX9y3Oo9e95GH4a7culNJ2eWaHRdVznQRYf 1o6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=gjA8tgi3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 124si46603141pgi.38.2019.04.17.08.28.06; Wed, 17 Apr 2019 08:28:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=gjA8tgi3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732658AbfDQP1M (ORCPT + 99 others); Wed, 17 Apr 2019 11:27:12 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:33247 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729356AbfDQP1I (ORCPT ); Wed, 17 Apr 2019 11:27:08 -0400 Received: by mail-wm1-f66.google.com with SMTP id z6so4904643wmi.0 for ; Wed, 17 Apr 2019 08:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=O6d+R1BA43CR6//FSBQc7Q2qw1KEWApHiN8cbRKfTm8=; b=gjA8tgi3EC0qRbECr8Cct+TmYC5CMjj/GgU2OF86G8Y7rItYg8M34zayAY00WG6/iV S/n2o82YcarsmAtaVWAWaSYJMtC3pvDv27iA7MJ7Tzt0oYhWvKiSmP9ndCLrDIxzFkxa OtamkC9HMF7tHkfH9ZL+4OsoN95x6ZzyjzzA/dnJBPAw4LbhU5E4O/nA4biYe6XyUM9g MVM+WM8p664K1b5odzTZkvVBkgY/YhHTST0Q8AqmqVNMkDbPhXR1+HPAwiUHA/WBQQ7Q OU1xvPD/fdSHfokeXn4YmJpQ12bs/67Vq4WB5qW+GlJ/aSSBWHMc3YuHezHHMJc0d2UC JCeQ== 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:mime-version:content-transfer-encoding; bh=O6d+R1BA43CR6//FSBQc7Q2qw1KEWApHiN8cbRKfTm8=; b=hWTw9vQ20Jv+WtXgPd8dvzkQJyvSjidRF2NSaEtQTez9OB4bOsOrtdg1LIEDfWbypW 1sV7lie7kiPa4B/Uatjtpr+YuGCMRYb8z2a6DqzdZOi4bcrE4PeTwV30Ga/447m1z/Pm P0g/JNabk1zTOf7Irq4SMNRH3jTGxYzKD3dQ/h2LxJnsIRqEojtgc2I2x2f0KwjyHRvh 9EroN0p9cQ4bUcjz+Rgd3dgsvHFDBdeKn9gbmDkYI63ypqm08bblyfVIbOKTt6/ZKJGf VwVvtfx7qRap5klnHgrrY0jcWEarHztQuHJu6PgGH5DY/pMS4IzmFdVbHY13R10k1yFf oXFw== X-Gm-Message-State: APjAAAUSPPrOohVEDk3rwcNCTLBJjqyYOm3uY+GVEaK5ggNm1tbTjqfF e7mWuMqE0TOfNDcJqMfTGacOhg== X-Received: by 2002:a1c:c18d:: with SMTP id r135mr30812979wmf.112.1555514827085; Wed, 17 Apr 2019 08:27:07 -0700 (PDT) Received: from localhost.localdomain (aputeaux-684-1-15-216.w90-86.abo.wanadoo.fr. [90.86.218.216]) by smtp.gmail.com with ESMTPSA id v16sm75478817wru.76.2019.04.17.08.27.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Apr 2019 08:27:06 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Rob Herring , Mark Rutland , David Lechner , Adam Ford Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v5 1/5] ARM: dts: da850: add cpu node and operating points to DT Date: Wed, 17 Apr 2019 17:26:57 +0200 Message-Id: <20190417152701.23391-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190417152701.23391-1-brgl@bgdev.pl> References: <20190417152701.23391-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Lechner This adds a cpu node and operating points to the common da850.dtsi file. All operating points above 300MHz are disabled by default. Regulators need to be hooked up on a per-board basis. Signed-off-by: David Lechner Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850.dtsi | 50 ++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index 559659b399d0..0c9a8e78f748 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi @@ -20,6 +20,56 @@ 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_456: opp130-456000000 { + status = "disabled"; + opp-hz = /bits/ 64 <456000000>; + opp-microvolt = <1300000 1250000 1350000>; + }; + }; + arm { #address-cells = <1>; #size-cells = <1>; -- 2.21.0