From patchwork Mon Mar 11 08:20:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 146 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 259C03F03C for ; Mon, 11 Mar 2019 09:20:19 +0100 (CET) Received: by mail-pg1-f200.google.com with SMTP id w4sf5076000pgl.19 for ; Mon, 11 Mar 2019 01:20:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1552292417; cv=pass; d=google.com; s=arc-20160816; b=Rh5l6J7eloJzFgdFvjueIazrE4UInBSGzJVWGgkd9pdm/aR91EYjhskTEavE1Nz1f9 djeWaDH4Pdf8jBXnwuzZtazlWTso7ZhiAz4+R9ntFNbREFn5h7oXHd0GMPTkYUfOnvnj rW2WLhxP++09+YvZIIZHHbYrDP5tzO1nlyEgtcq1k0o6+IxZCDjA+2N4beLJb0dUGZmL zG36oD/k0GXS9bu3kTORjOheXMfU4+dzqghHMDs1HAkl93RNTXrHqrtTvTX6YW3gbhdi zTSmMDUrD5xuppoVyi+n8QXdELGYP9CWHbDGg5WHUoxOyH4mjoNhUXUn2xJ9nlry3I4W ZfAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=qoQ4WKhIv1eYXLIvCivZAR73Q3HtwvzFQQFHZc+eADk=; b=RGq7shbAON5GofjuuoTZfv5syd5m/M947ECfUPh3Pu1uFbmEjFWLIcfvOBoIjPG4S5 QnWB+kjIvJfoPaIAljWQLgU73Gqd34n5ggB2bQ669cjzOEx5em8576KatfDhVAA/uuet bt2zoLrccv0C7JqiPYY0eYRUdCu4LEAyaY4dQJvS6PKisDGg3Ub5BA3wc0c2GJnPBQGQ hXYsX/DPL0m8QghqVtkxc+LXMFLUiw3osWkIbTGK+HUcsrJPiRAFwCTUGceDgvPWZxUv dygzC85/2EahKfxT6iijNtlMEC9exuRc/tl4dBATX7MNcs2BKNawh0zrwnG3AvhXKANn S26A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lG6wHsAi; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=qoQ4WKhIv1eYXLIvCivZAR73Q3HtwvzFQQFHZc+eADk=; b=om9vHXwJvbC1a8AnYWLFLN+Jb1+VHhAbbz1mlKBScJez41jpjwuipd0fEYstXrgJqn ULpx5aOspZrbjjcBrU5eJPhkmLGneiMiQNUDwv29sifaq6+Qpta7L3MXIdk0OVlNpfI0 +uJIzJ+8RXEM2PdqknHb9+5ViaoyWl4ETH5GA= 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:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=qoQ4WKhIv1eYXLIvCivZAR73Q3HtwvzFQQFHZc+eADk=; b=mlFHhnoT/wJBCV0SJ8G70Pyt4n8u6/KcTZzW8FWputg7bG24Y7Uo0E8N2s9yPy6her Ih/levU7AM/0iiIsugu//SJ0Cq0QS2QKYgt0Iy5VQ6/o61rUPmYQQl6DMHJV81rJF/uv FbEDQd8gac38rOKOd3yna5Z35kejj8ABJXD3bOskeZch7trmYdP+CuUUSHso0iJRDMS/ 5LHTIFvJULK1QbYXYKhW6+iU9XYlQtedIKNrBOaSUvqXM4Lo7F0IKupNqHDgUSezKC6Q NNvN4jDn9EB08S6MKnzM5eldxIK1R/w7h3NKYSabwtZ+r4qdXRXVztdt1uswDQ35IfYm alYw== X-Gm-Message-State: APjAAAV3XDcJOwQ/hDr1E670SESx7VZeZ08Phr5Z93BpRBek8PimIZVr Alqz6gXKgeet/gVmlwg3wHWugTua X-Google-Smtp-Source: APXvYqy8T5IcCZ8vUcA5OObBYhZ0Ii/3Ykw+eG+yFFmDHjn33sH623Ba6x6kXQRvCADZifmyVx8U/A== X-Received: by 2002:a63:42:: with SMTP id 63mr11947444pga.48.1552292416930; Mon, 11 Mar 2019 01:20:16 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:a514:: with SMTP id s20ls8416882plq.0.gmail; Mon, 11 Mar 2019 01:20:16 -0700 (PDT) X-Received: by 2002:a17:902:850c:: with SMTP id bj12mr18180807plb.69.1552292416502; Mon, 11 Mar 2019 01:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552292416; cv=none; d=google.com; s=arc-20160816; b=ty5diYP/eSvMvch+q1Ov6EE02wsVLbwCJkDnWAG6L6tRNvkPx8u5VFQhsGau7ssQST DPwl1Ww/bn2fOD077l+l8sWCo7j2AXmZaGT4kfLaDxk1JapW1GD4YDFqLiUEQJH8VK0O 1tIgf4mzRc0AUBz2NWkmr5NZZWi7YdI9LrfY16ISewnDXEYSoxravxSWU/R9Ff5AFFHG 4HpSXaLPa2fin5YY/2n8JFdAjgwInHPNX8UIL6pUKK3Zj4N8uNfsfqSMtNhUApL+h0A1 2H9bfvkCscwhqEu4Gv3XrYOZnAsBPP3S7/q0xOId82/3L0nb+De0cz6DuJga7OQWra22 jLSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=+Ez9B4MFQMDylO3fRDKbGu6TdI2LwDKhZbEeiLwUsW4=; b=l/V6PPeV0VMkOMBF/LFgbgn3cOOi+lMtoSH9Ok/wWq9W2xCdyKKcxyqyMzqeJgnbMS Kl6TaGHJG2Viy0fGZ4DjyNRdYRHEURio8IzDshxW6CqjO+EJY5Zv9Yd8q9gom2SGG96H 3C/Ll627Y7E5wSpfKedNaKqao0d1bGR5e0qYQ34Zqj5ChflecRvbpEXcfHbxVsg9omV/ uA4QSHf0dnhxhMCQiPYT0GZLlbkAn68/+80h/wFfVhK1yVKVOXyPZb7j2NxI/cJGxE9A o5be9Nw1rfa/JRoDn89dTM+6dIn4TwqVjMDThKIDayQclCfiOKMfP6O9quBs9A+TEqcd ddLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lG6wHsAi; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id c7sor6876957pgd.85.2019.03.11.01.20.15 for (Google Transport Security); Mon, 11 Mar 2019 01:20:15 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:2259:: with SMTP id t25mr17070795pgm.107.1552292415127; Mon, 11 Mar 2019 01:20:15 -0700 (PDT) Received: from localhost.localdomain ([115.97.184.151]) by smtp.gmail.com with ESMTPSA id l5sm8262196pfi.97.2019.03.11.01.20.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Mar 2019 01:20:14 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich Cc: Kever Yang , zhaoyifan , Akash Gajjar , u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 1/4] rockchip: dts: rk3399: Sync rk3399-opp from Linux Date: Mon, 11 Mar 2019 13:50:02 +0530 Message-Id: <20190311082005.18550-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lG6wHsAi; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Sync rk3399-opp.dtsi from Linux. Linux commit details about the rk3399-opp.dtsi sync: "arm64: dts: rockchip: use SPDX-License-Identifier" (sha1: 4ee99cebd486238ac433da823b95cc5f8d8a6905) Signed-off-by: Jagan Teki Reviewed-by: Philipp Tomsich --- arch/arm/dts/rk3399-opp.dtsi | 133 +++++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 arch/arm/dts/rk3399-opp.dtsi diff --git a/arch/arm/dts/rk3399-opp.dtsi b/arch/arm/dts/rk3399-opp.dtsi new file mode 100644 index 0000000000..d6f1095abb --- /dev/null +++ b/arch/arm/dts/rk3399-opp.dtsi @@ -0,0 +1,133 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2016-2017 Fuzhou Rockchip Electronics Co., Ltd + */ + +/ { + cluster0_opp: opp-table0 { + compatible = "operating-points-v2"; + opp-shared; + + opp00 { + opp-hz = /bits/ 64 <408000000>; + opp-microvolt = <800000>; + clock-latency-ns = <40000>; + }; + opp01 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <800000>; + }; + opp02 { + opp-hz = /bits/ 64 <816000000>; + opp-microvolt = <850000>; + }; + opp03 { + opp-hz = /bits/ 64 <1008000000>; + opp-microvolt = <925000>; + }; + opp04 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <1000000>; + }; + opp05 { + opp-hz = /bits/ 64 <1416000000>; + opp-microvolt = <1125000>; + }; + }; + + cluster1_opp: opp-table1 { + compatible = "operating-points-v2"; + opp-shared; + + opp00 { + opp-hz = /bits/ 64 <408000000>; + opp-microvolt = <800000>; + clock-latency-ns = <40000>; + }; + opp01 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <800000>; + }; + opp02 { + opp-hz = /bits/ 64 <816000000>; + opp-microvolt = <825000>; + }; + opp03 { + opp-hz = /bits/ 64 <1008000000>; + opp-microvolt = <875000>; + }; + opp04 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <950000>; + }; + opp05 { + opp-hz = /bits/ 64 <1416000000>; + opp-microvolt = <1025000>; + }; + opp06 { + opp-hz = /bits/ 64 <1608000000>; + opp-microvolt = <1100000>; + }; + opp07 { + opp-hz = /bits/ 64 <1800000000>; + opp-microvolt = <1200000>; + }; + }; + + gpu_opp_table: opp-table2 { + compatible = "operating-points-v2"; + + opp00 { + opp-hz = /bits/ 64 <200000000>; + opp-microvolt = <800000>; + }; + opp01 { + opp-hz = /bits/ 64 <297000000>; + opp-microvolt = <800000>; + }; + opp02 { + opp-hz = /bits/ 64 <400000000>; + opp-microvolt = <825000>; + }; + opp03 { + opp-hz = /bits/ 64 <500000000>; + opp-microvolt = <875000>; + }; + opp04 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <925000>; + }; + opp05 { + opp-hz = /bits/ 64 <800000000>; + opp-microvolt = <1100000>; + }; + }; +}; + +&cpu_l0 { + operating-points-v2 = <&cluster0_opp>; +}; + +&cpu_l1 { + operating-points-v2 = <&cluster0_opp>; +}; + +&cpu_l2 { + operating-points-v2 = <&cluster0_opp>; +}; + +&cpu_l3 { + operating-points-v2 = <&cluster0_opp>; +}; + +&cpu_b0 { + operating-points-v2 = <&cluster1_opp>; +}; + +&cpu_b1 { + operating-points-v2 = <&cluster1_opp>; +}; + +&gpu { + operating-points-v2 = <&gpu_opp_table>; +};