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>; +}; From patchwork Mon Mar 11 08:20:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 147 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8E6F53F03C for ; Mon, 11 Mar 2019 09:20:20 +0100 (CET) Received: by mail-pf1-f198.google.com with SMTP id o67sf5323955pfa.20 for ; Mon, 11 Mar 2019 01:20:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1552292419; cv=pass; d=google.com; s=arc-20160816; b=p2E4su8g+2H17T/+wY2phvsSrFE3iokecPVTRNgNcxMCvrjTicEbGaR1oSNPljPQs1 XZCAjGqJHy/qpv5MTWKnbMKdloOV0pAsjwWr3WuhgX5gULWuairWyOdCi+din3XW4aph DWkXR7HIv06sfdtJzb++ozLHjZkUMcGDD0zj9NEl2ZTlm8hAQQT09VkWZNR7CSHCJlv0 1rdWn01eHdtB87sXC7qxjnjPx2ns2XRLfJJ1tUl2zRyXsa3FXMtAg/pO8odaeJSKHQ5M mjAWEVD0ro2gnF16v2C0KLDd0WsSWSItnsohBeg8N6isQPqOF2AV7/iJlRbJInvnHJ5w kadA== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=rs5ohBV1FaSmzErJij2ac+XwVRcy9SzijZZ6a0MP1jk=; b=KfEH941W70KLQOF7ft5W+Qeucn9YXtFdVTxbFmSwypj+5RXeSt6GCsQagyiSNxmRYu dnVv+o+5jeoteTyHNMdfa+Pv9cCUwe/tK3Yckcs3Iw7s7wUniWWXHbaq5uvYTmJMwEDk rtxe5mvZKiYy8wtX56IPnX5GEFBPGZ1ecdhHrTe527SaLlON8UTCUVrVhlpgC6h6uT/3 I+jNyCJYxQJlddILudgwZYzo1tjZ5hWyqojzzyi7ngjQPXh3S0hWmAr9MBmfVtGbBwqW NMY6YJcqIvvdpFHiGkCGX4qSmCD24NsitSaJMt8aoFbeMQE9aDlGc4Rwqyly0a1ZcX9p FhVg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cEwIxSwt; 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:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=rs5ohBV1FaSmzErJij2ac+XwVRcy9SzijZZ6a0MP1jk=; b=lqNrj/Z4VGkqf2X1FFv/Zof/gmkvefFQ0+GAUZhgARjaesKj0fKpqnxf2gts4B7r/Y 2m6Tff+sGGPqNRLKEg0rjp3cPfNggFy/kz+bM1g/2HEFhxnE6QmNLPjRTirARUxkWVx3 nPlTIJTzHDJOwPnehwfnN89K32ibMCPvOStz4= 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: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=rs5ohBV1FaSmzErJij2ac+XwVRcy9SzijZZ6a0MP1jk=; b=ClnWn1nEUZ462KxUM9CYfb98bA8gJ6hrnVXebIeX9QxcQbc85fKB1ZzedMfIVU5bVC aks55Dsd19j8Fv1JnC/NcRSKc84ul0OFyFpAjod7/OXioYUOau0K/Mx7TH8+MdWEn+fw eV5N3YaEh76TQSe1zOlMd6Ud95p5Gpqg5qD95GbVCmh7OEZLqlu1RGa8u4ZVJMl0ey6C Srt4k0ZClCNrrLg+jEXqKVQWHeey2ZWCHaIMxZFe4Fq/bVGjbewG6XZ+zvLz44sb6Hjl oh5P/MXSXulaHA9QMTzJjcRkx3dNYx/3hLB2Ug3sGYB9ewzRShtdKMPb6gnDX/mi29Ni ZkYA== X-Gm-Message-State: APjAAAVTQ2+BBKPkbxGPwEZ71yDxcKuB+wBqJx5BM0PgVMLhUViVpMDL 2G38AkvTMT+KjQ6LkpnMfCTMagRa X-Google-Smtp-Source: APXvYqwNtYCYG3AR+4sISjG162FCBmeG+g78T3hXIW49rAKVVqSjNQwf81bY3jB7UstaRWrsNghPEQ== X-Received: by 2002:a62:e010:: with SMTP id f16mr11561922pfh.16.1552292419200; Mon, 11 Mar 2019 01:20:19 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:4554:: with SMTP id s81ls7369361pfa.3.gmail; Mon, 11 Mar 2019 01:20:18 -0700 (PDT) X-Received: by 2002:aa7:8750:: with SMTP id g16mr5422940pfo.123.1552292418831; Mon, 11 Mar 2019 01:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552292418; cv=none; d=google.com; s=arc-20160816; b=v4iAI45C23nihhXVhLQ0+ZgnFzGaEdZZx3Uczjzk0EJx7YdQzKxZcBFsJWzYEhGIKT piH+lIUsXJWjhKd3H4lOzu6MttJqBvgGpjMOw96cvzJx2E0Arhc4opkZxUMRyaTLn2/b U1DQZVQVwNV/X+MON2qqBQhEXWVM0K0Ij1Cnve4flNHPntK7pwkCW6pjmN3FBrYmC86l RkbCkye6CG3zIRYKxwtx/ewhY/ACpSDKFTLAoRuGjUYCiTZvnVX6jOMF6fwsDfeoGp87 7Y2oRr6ANp2CSGtvLpvApToDdsXxssK8Cba3ciTRZeu858zr2TBfD9ZdbNoVdhvFHWDe Tvhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=oLgEviGZxKGV2+H3UGp5sMGd9P333i5wU/KufHmm9II=; b=o6qL0hP1IqyKq2WeZROZYCbX2frpxFNRfimF/JJB8ZjS7V+TS9a33MIu6jmkTLgU7m Ke5JwKwv0MxVS4JlSIYZTjwfMRb8GF7zhGbqqxrG4qVsHaekr+MCiW1XTS0zeSjdMvYK wFTHL/GV7WW0CFb/ipcjVvm0n1Oay0Zh3fPitS/0TkHYjqF/XFoP1ALERO/iFgSlmL0V Fu/RCMf6kWLHvAx9uE0P4uMhOsaYR8Dxwu9o9xQp2D6nHg+r1mrqJSid67x91mDL/yvG +CXvvAx/xwDO1BOnJJXy/h+K9BFNxKtFBSwNfI3r4bHt5ofXpu6P8QoX1sZBIc4uPmRH fOFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cEwIxSwt; 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 a8sor7315495plm.39.2019.03.11.01.20.18 for (Google Transport Security); Mon, 11 Mar 2019 01:20:18 -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:a17:902:850c:: with SMTP id bj12mr18180898plb.69.1552292418080; Mon, 11 Mar 2019 01:20:18 -0700 (PDT) Received: from localhost.localdomain ([115.97.184.151]) by smtp.gmail.com with ESMTPSA id l5sm8262196pfi.97.2019.03.11.01.20.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Mar 2019 01:20:17 -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 2/4] rockchip: dts: rk3399: Create initial rk3399-u-boot.dtsi Date: Mon, 11 Mar 2019 13:50:03 +0530 Message-Id: <20190311082005.18550-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190311082005.18550-1-jagan@amarulasolutions.com> References: <20190311082005.18550-1-jagan@amarulasolutions.com> 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=cEwIxSwt; 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: , u-boot,dm-pre-reloc is required for SDMMC booted rk3399 boards and which is U-Boot specific devicetrees binding. Move it on global rk3399-u-boot.dtsi file and rest of the U-Boot bindings will move it future based on the requirement. This would help to sync the devicetrees from Linux whenever required instead of adding specific nodes. Signed-off-by: Jagan Teki Reviewed-by: Philipp Tomsich --- arch/arm/dts/rk3399-evb.dts | 1 - arch/arm/dts/rk3399-firefly.dts | 1 - arch/arm/dts/rk3399-puma.dtsi | 1 - arch/arm/dts/rk3399-u-boot.dtsi | 8 ++++++++ 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 arch/arm/dts/rk3399-u-boot.dtsi diff --git a/arch/arm/dts/rk3399-evb.dts b/arch/arm/dts/rk3399-evb.dts index ce004d0d18..9162f3dd50 100644 --- a/arch/arm/dts/rk3399-evb.dts +++ b/arch/arm/dts/rk3399-evb.dts @@ -155,7 +155,6 @@ }; &sdmmc { - u-boot,dm-pre-reloc; bus-width = <4>; status = "okay"; }; diff --git a/arch/arm/dts/rk3399-firefly.dts b/arch/arm/dts/rk3399-firefly.dts index f90e7e88db..46f2ffaf8d 100644 --- a/arch/arm/dts/rk3399-firefly.dts +++ b/arch/arm/dts/rk3399-firefly.dts @@ -592,7 +592,6 @@ }; &sdmmc { - u-boot,dm-pre-reloc; bus-width = <4>; status = "okay"; }; diff --git a/arch/arm/dts/rk3399-puma.dtsi b/arch/arm/dts/rk3399-puma.dtsi index 8304f67192..9049694243 100644 --- a/arch/arm/dts/rk3399-puma.dtsi +++ b/arch/arm/dts/rk3399-puma.dtsi @@ -492,7 +492,6 @@ }; &sdmmc { - u-boot,dm-pre-reloc; clock-frequency = <150000000>; max-frequency = <40000000>; supports-sd; diff --git a/arch/arm/dts/rk3399-u-boot.dtsi b/arch/arm/dts/rk3399-u-boot.dtsi new file mode 100644 index 0000000000..f533ed95eb --- /dev/null +++ b/arch/arm/dts/rk3399-u-boot.dtsi @@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +&sdmmc { + u-boot,dm-pre-reloc; +}; From patchwork Mon Mar 11 08:20:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 148 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 8F1513F03C for ; Mon, 11 Mar 2019 09:20:23 +0100 (CET) Received: by mail-pg1-f200.google.com with SMTP id n10sf5070360pgp.21 for ; Mon, 11 Mar 2019 01:20:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1552292422; cv=pass; d=google.com; s=arc-20160816; b=akEUFSXuIU8UzZbbYb9olXLi0QzcrxHUSM3s7DnDwHG+UhXsm5cTwChBmWl92g0f7m DnpgQk9TAJRympiadPFQabS4Tf5rxlu5j0Svpl3Ve9poh/OGwo+Ag8CI3F9NCVAw2uNi miKbno2irJckcpQVjv7crvwGLuGoQgL7h7/nfWTGT3c23vojwEHCuIVeKdR9VD/6dJnb pzplpr7liF38pyKtpuFk8SW1206R7D5ucse7T2e/11ILz4P/7LCST5hkE/LPY07Z/ktQ 76BhUeCDafpX5TTMgdpjocYWlgNYCeQ+j9T0YZEMnYsLsK7G6ZDGCk3gwlwP2aUzcmCJ to7w== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=AICbrZtJwYK+ThzvBEGW3PGIG7qSIU8ENOpheWIyqmc=; b=uCMHlaoYClx0HqL0vXC+jUsrZlupTCcy3dI/60HAdxHaK2hRAf9U40ROFrXSBEx0RB 3yAIr9wmsbHw4twARX1ZUkqM220u5zF3ZnDsSfwOqKcfBnwIgXuOR3CiMkMxdbAx/d8v O+6luM2l728xVlCduUaQ/HNiNzED++8pDRFG61m/pSdy8WWHNOdHFWo40+9YgHJuv7H+ BhfA6RIGww3frzR8fi7qhWzwKwcniM/8GnfhhgLWQflrFZkxoOe4Ws7+7Oi3yb97m/0H Cnvz3AGPUP2Z2kW9NqmUmymK1zc08s8caPPol0ZPa92EIl77+FMXhj3cRC4hqPQiCkYK u9UA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=chvbvs3v; 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:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=AICbrZtJwYK+ThzvBEGW3PGIG7qSIU8ENOpheWIyqmc=; b=ZKsid7TuVSeJ7pMiAGGwa5tQr9oNs6VyaLGoRSMf+NVSTc6VQlNzYJLljP1PiXAePT vYOhdK/eAWHEdTCUMm1OFUntplDMZGPkZM0ULzBHs7b17sooAWI0t8vNFqxy4FqGTTzE DPGDv56/77fyJMQttp/VYNqNoVNitQUv7dAFU= 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: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=AICbrZtJwYK+ThzvBEGW3PGIG7qSIU8ENOpheWIyqmc=; b=N0Dx+MVQztLDYtuq3J7I9oz870phwC0C8uOVh8ISmMncXIU7S45QBYMCZHQJMuJMAr 5TtBiJAETMJSXRtsDEXey1AH1HRb3eKndAgv0zUogloKTit1Jy8fFVO6GnKGL+bC5gVS f3dfENo4w88ds0mpwKLnejknE2/7wTalP7pia7DEy7dVZVmS2zsETeAkDHNRyMcycb9Y wVDrOKiox0tQwiYCfF3cv3TRVMYLfyBMNuZnFJMFoZeHg7kc/4VCsOeArVyRvycgIhaw k22ylKoSZZlNO1mYGa3TuVUC+Vnkt1s4KSTJDVjtXMpuUtgI2xckpF5g2e88pSWqdnol FiJA== X-Gm-Message-State: APjAAAVfx4G06+4iJO339EL2IqstDirvSx85j5oIsOcau5+axDpTO/QE mXgnyZLdUaeBIbok5aheza/7KSaY X-Google-Smtp-Source: APXvYqyl7S4dP8HgKM3vc7gC9E/TKykaVnljfSBMoHUCQX9X+fWygP/Pfh7CqoPhZ1O4EuCWw98Tww== X-Received: by 2002:a62:1f97:: with SMTP id l23mr11925221pfj.93.1552292422316; Mon, 11 Mar 2019 01:20:22 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:430a:: with SMTP id j10ls4585556pgq.0.gmail; Mon, 11 Mar 2019 01:20:22 -0700 (PDT) X-Received: by 2002:a63:fb16:: with SMTP id o22mr28322435pgh.209.1552292421856; Mon, 11 Mar 2019 01:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552292421; cv=none; d=google.com; s=arc-20160816; b=V1Ihjo10uV6VvYRoXLjxOHl0ruB/YBsKkxAjXa0u50IMZbKUfNvkMLj/p7XiivfmJP yXYD8PfMfaMkXRH9RGoCCUpmrxA+Z0Al0LlcVaCrtx4rucQKYedMWhZHxfhNj8DJzKLh 2iy3snLuJqVZDuvuoNtf96QIk27wLN2JSQg0E4PaqLhbvyJWOmSmo3vk8vc4yopy1aZN eamXC9cWEZnAPejPuvmXE3j6cqvlqof61MaL6ZZLXu7fPWvfA3D1g5t8t3PEOQXv17w8 iESZk4a07LfoYHj7fYx/lfGHJhIY9zRH0z7CO1hyKjmOxxY5Iv17GNN2gtXC6aivwGu7 CRGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Y18xtXJ/sy81R+ckKdjjNjILIcjas/Kl8K8sPcODygU=; b=0mX8LOzDohAJLOIy6vEQpeydxfnGmlo6d2cJ6MrmOjJP4VIMLkLbz90/+hxHJEEd6n +7OHc368QCXzAqKZpAFcNlUVa6XN/ZIlgpM2lDYKuypclQkhs5qNv8vrcfuXxz0by7bm l1azVmcgUH8dazk//15ZvbBrmyZfbPMNrHT7GH+ryTfXShBCzG4jNT+iGdYwyjazJuOm /AgZNYMXUweFq3KRHOE0Pv9ndvJ2PJKRcTkp8JbT9A/sCR3EOTOOVx9dZNuJP6Q0epYI MLN06XftMZlgsu83RN22HarpyqZxIiqpevmuwiDPIcGSrXsoVspbFq30Om6AIR5cGITJ bRYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=chvbvs3v; 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 s18sor7361278plq.22.2019.03.11.01.20.21 for (Google Transport Security); Mon, 11 Mar 2019 01:20:21 -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:a17:902:7b90:: with SMTP id w16mr33475711pll.228.1552292421249; Mon, 11 Mar 2019 01:20:21 -0700 (PDT) Received: from localhost.localdomain ([115.97.184.151]) by smtp.gmail.com with ESMTPSA id l5sm8262196pfi.97.2019.03.11.01.20.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Mar 2019 01:20:20 -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 3/4] rockchip: rk3399: Add Orangepi RK3399 support Date: Mon, 11 Mar 2019 13:50:04 +0530 Message-Id: <20190311082005.18550-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190311082005.18550-1-jagan@amarulasolutions.com> References: <20190311082005.18550-1-jagan@amarulasolutions.com> 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=chvbvs3v; 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: , Add initial support for Orangepi RK3399 board. Specification - Rockchip RK3399 - 2GB/4GB DDR3 - 16GB eMMC - SD card slot - RTL8211E 1Gbps - AP6356S WiFI/BT - HDMI In/Out, DP, MIPI DSI/CSI - Mini PCIe - Sensors, Keys etc - DC12V-2A and DC5V-2A Commit details about Linux DTS sync: "arm64: dts: rockchip: Add support for the Orange Pi RK3399" (sha1: d3e71487a790979057c0fdbf32f85033639c16e6) Signed-off-by: Jagan Teki Reviewed-by: Philipp Tomsich --- arch/arm/dts/Makefile | 1 + arch/arm/dts/rk3399-orangepi-u-boot.dtsi | 7 + arch/arm/dts/rk3399-orangepi.dts | 771 +++++++++++++++++++++++ board/rockchip/evb_rk3399/MAINTAINERS | 7 + configs/orangepi-rk3399_defconfig | 75 +++ 5 files changed, 861 insertions(+) create mode 100644 arch/arm/dts/rk3399-orangepi-u-boot.dtsi create mode 100644 arch/arm/dts/rk3399-orangepi.dts create mode 100644 configs/orangepi-rk3399_defconfig diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 876c032d11..9033586edc 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -50,6 +50,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \ rk3368-px5-evb.dtb \ rk3399-evb.dtb \ rk3399-firefly.dtb \ + rk3399-orangepi.dtb \ rk3399-puma-ddr1333.dtb \ rk3399-puma-ddr1600.dtb \ rk3399-puma-ddr1866.dtb \ diff --git a/arch/arm/dts/rk3399-orangepi-u-boot.dtsi b/arch/arm/dts/rk3399-orangepi-u-boot.dtsi new file mode 100644 index 0000000000..236b61d78d --- /dev/null +++ b/arch/arm/dts/rk3399-orangepi-u-boot.dtsi @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +#include "rk3399-u-boot.dtsi" +#include "rk3399-sdram-ddr3-1333.dtsi" diff --git a/arch/arm/dts/rk3399-orangepi.dts b/arch/arm/dts/rk3399-orangepi.dts new file mode 100644 index 0000000000..cf37b96a6b --- /dev/null +++ b/arch/arm/dts/rk3399-orangepi.dts @@ -0,0 +1,771 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd. + */ + +/dts-v1/; + +#include "dt-bindings/pwm/pwm.h" +#include "dt-bindings/input/input.h" +#include "rk3399.dtsi" +#include "rk3399-opp.dtsi" + +/ { + model = "Orange Pi RK3399 Board"; + compatible = "rockchip,rk3399-orangepi", "rockchip,rk3399"; + + chosen { + stdout-path = "serial2:1500000n8"; + }; + + clkin_gmac: external-gmac-clock { + compatible = "fixed-clock"; + clock-frequency = <125000000>; + clock-output-names = "clkin_gmac"; + #clock-cells = <0>; + }; + + adc-keys { + compatible = "adc-keys"; + io-channels = <&saradc 1>; + io-channel-names = "buttons"; + keyup-threshold-microvolt = <1800000>; + poll-interval = <100>; + + button-up { + label = "Volume Up"; + linux,code = ; + press-threshold-microvolt = <100000>; + }; + + button-down { + label = "Volume Down"; + linux,code = ; + press-threshold-microvolt = <300000>; + }; + + back { + label = "Back"; + linux,code = ; + press-threshold-microvolt = <985000>; + }; + + menu { + label = "Menu"; + linux,code = ; + press-threshold-microvolt = <1314000>; + }; + }; + + dc_12v: dc-12v { + compatible = "regulator-fixed"; + regulator-name = "dc_12v"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + }; + + keys: gpio-keys { + compatible = "gpio-keys"; + autorepeat; + + power { + debounce-interval = <100>; + gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; + label = "GPIO Power"; + linux,code = ; + linux,input-type = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pwr_btn>; + wakeup-source; + }; + }; + + sdio_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&rk808 1>; + clock-names = "ext_clock"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_reg_on_h>; + reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; + }; + + /* switched by pmic_sleep */ + vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 { + compatible = "regulator-fixed"; + regulator-name = "vcc1v8_s3"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_1v8>; + }; + + vcc3v0_sd: vcc3v0-sd { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc0_pwr_h>; + regulator-boot-on; + regulator-max-microvolt = <3000000>; + regulator-min-microvolt = <3000000>; + regulator-name = "vcc3v0_sd"; + vin-supply = <&vcc3v3_sys>; + }; + + vcc3v3_sys: vcc3v3-sys { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3_sys"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_sys>; + }; + + vcc5v0_host: vcc5v0-host-regulator { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc5v0_host_en>; + regulator-name = "vcc5v0_host"; + regulator-always-on; + vin-supply = <&vcc_sys>; + }; + + vcc5v0_typec0: vcc5v0-typec0-regulator { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc5v0_typec0_en>; + regulator-name = "vcc5v0_typec0"; + vin-supply = <&vcc_sys>; + }; + + vcc_sys: vcc-sys { + compatible = "regulator-fixed"; + regulator-name = "vcc_sys"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&dc_12v>; + }; + + vdd_log: vdd-log { + compatible = "pwm-regulator"; + pwms = <&pwm2 0 25000 1>; + regulator-name = "vdd_log"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1400000>; + vin-supply = <&vcc_sys>; + }; +}; + +&cpu_l0 { + cpu-supply = <&vdd_cpu_l>; +}; + +&cpu_l1 { + cpu-supply = <&vdd_cpu_l>; +}; + +&cpu_l2 { + cpu-supply = <&vdd_cpu_l>; +}; + +&cpu_l3 { + cpu-supply = <&vdd_cpu_l>; +}; + +&cpu_b0 { + cpu-supply = <&vdd_cpu_b>; +}; + +&cpu_b1 { + cpu-supply = <&vdd_cpu_b>; +}; + +&emmc_phy { + status = "okay"; +}; + +&gmac { + assigned-clocks = <&cru SCLK_RMII_SRC>; + assigned-clock-parents = <&clkin_gmac>; + clock_in_out = "input"; + phy-supply = <&vcc3v3_s3>; + phy-mode = "rgmii"; + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; + snps,reset-active-low; + snps,reset-delays-us = <0 10000 50000>; + tx_delay = <0x28>; + rx_delay = <0x11>; + status = "okay"; +}; + +&gpu { + mali-supply = <&vdd_gpu>; + status = "okay"; +}; + +&hdmi { + ddc-i2c-bus = <&i2c3>; + status = "okay"; +}; + +&hdmi_sound { + status = "okay"; +}; + +&i2c0 { + clock-frequency = <400000>; + i2c-scl-rising-time-ns = <168>; + i2c-scl-falling-time-ns = <4>; + status = "okay"; + + rk808: pmic@1b { + compatible = "rockchip,rk808"; + reg = <0x1b>; + interrupt-parent = <&gpio1>; + interrupts = <21 IRQ_TYPE_LEVEL_LOW>; + #clock-cells = <1>; + clock-output-names = "rtc_clko_soc", "rtc_clko_wifi"; + pinctrl-names = "default"; + pinctrl-0 = <&pmic_int_l>; + rockchip,system-power-controller; + wakeup-source; + + vcc1-supply = <&vcc3v3_sys>; + vcc2-supply = <&vcc3v3_sys>; + vcc3-supply = <&vcc3v3_sys>; + vcc4-supply = <&vcc3v3_sys>; + vcc6-supply = <&vcc3v3_sys>; + vcc7-supply = <&vcc3v3_sys>; + vcc8-supply = <&vcc3v3_sys>; + vcc9-supply = <&vcc3v3_sys>; + vcc10-supply = <&vcc3v3_sys>; + vcc11-supply = <&vcc3v3_sys>; + vcc12-supply = <&vcc3v3_sys>; + vddio-supply = <&vcc_3v0>; + + regulators { + vdd_center: DCDC_REG1 { + regulator-name = "vdd_center"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1500000>; + regulator-ramp-delay = <6001>; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_cpu_l: DCDC_REG2 { + regulator-name = "vdd_cpu_l"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1500000>; + regulator-ramp-delay = <6001>; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_ddr: DCDC_REG3 { + regulator-name = "vcc_ddr"; + regulator-always-on; + regulator-boot-on; + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + vcc_1v8: DCDC_REG4 { + regulator-name = "vcc_1v8"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + vcc1v8_dvp: LDO_REG1 { + regulator-name = "vcc1v8_dvp"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3400000>; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc3v0_tp: LDO_REG2 { + regulator-name = "vcc3v0_tp"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3400000>; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc1v8_pmupll: LDO_REG3 { + regulator-name = "vcc1v8_pmupll"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <2500000>; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + vcc_sdio: LDO_REG4 { + regulator-name = "vcc_sdio"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3400000>; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3000000>; + }; + }; + + vcca3v0_codec: LDO_REG5 { + regulator-name = "vcca3v0_codec"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3400000>; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_1v5: LDO_REG6 { + regulator-name = "vcc_1v5"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <2500000>; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1500000>; + }; + }; + + vcca1v8_codec: LDO_REG7 { + regulator-name = "vcca1v8_codec"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <2500000>; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_3v0: LDO_REG8 { + regulator-name = "vcc_3v0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3400000>; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3000000>; + }; + }; + + vcc3v3_s3: SWITCH_REG1 { + regulator-name = "vcc3v3_s3"; + regulator-always-on; + regulator-boot-on; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc3v3_s0: SWITCH_REG2 { + regulator-name = "vcc3v3_s0"; + regulator-always-on; + regulator-boot-on; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + }; + }; + + vdd_cpu_b: regulator@40 { + compatible = "silergy,syr827"; + reg = <0x40>; + fcs,suspend-voltage-selector = <1>; + regulator-name = "vdd_cpu_b"; + regulator-min-microvolt = <712500>; + regulator-max-microvolt = <1500000>; + regulator-ramp-delay = <1000>; + regulator-always-on; + regulator-boot-on; + vin-supply = <&vcc3v3_sys>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_gpu: regulator@41 { + compatible = "silergy,syr828"; + reg = <0x41>; + fcs,suspend-voltage-selector = <1>; + regulator-name = "vdd_gpu"; + regulator-min-microvolt = <712500>; + regulator-max-microvolt = <1500000>; + regulator-ramp-delay = <1000>; + regulator-always-on; + regulator-boot-on; + vin-supply = <&vcc3v3_sys>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; +}; + +&i2c1 { + i2c-scl-rising-time-ns = <450>; + i2c-scl-falling-time-ns = <15>; + status = "okay"; +}; + +&i2c3 { + i2c-scl-rising-time-ns = <450>; + i2c-scl-falling-time-ns = <15>; + status = "okay"; +}; + +&i2c4 { + clock-frequency = <400000>; + i2c-scl-rising-time-ns = <450>; + i2c-scl-falling-time-ns = <15>; + status = "okay"; + + ak09911@c { + compatible = "asahi-kasei,ak09911"; + reg = <0x0c>; + vdd-supply = <&vcc3v3_s3>; + }; + + mpu6500@68 { + compatible = "invensense,mpu6500"; + reg = <0x68>; + interrupt-parent = <&gpio1>; + interrupts = ; + pinctrl-names = "default"; + pinctrl-0 = <&gsensor_int_l>; + vddio-supply = <&vcc3v3_s3>; + }; + + lsm6ds3@6a { + compatible = "st,lsm6ds3"; + reg = <0x6a>; + interrupt-parent = <&gpio1>; + interrupts = ; + pinctrl-names = "default"; + pinctrl-0 = <&gyr_int_l>; + vdd-supply = <&vcc3v3_s3>; + vddio-supply = <&vcc3v3_s3>; + }; + + cm32181@10 { + compatible = "capella,cm32181"; + reg = <0x10>; + interrupt-parent = <&gpio4>; + interrupts = ; + pinctrl-names = "default"; + pinctrl-0 = <&light_int_l>; + vdd-supply = <&vcc3v3_s3>; + }; +}; + +&io_domains { + status = "okay"; + bt656-supply = <&vcc_3v0>; + audio-supply = <&vcca1v8_codec>; + sdmmc-supply = <&vcc_sdio>; + gpio1830-supply = <&vcc_3v0>; +}; + +&pmu_io_domains { + status = "okay"; + pmu1830-supply = <&vcc_3v0>; +}; + +&pinctrl { + buttons { + pwr_btn: pwr-btn { + rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + + pmic { + pmic_int_l: pmic-int-l { + rockchip,pins = + <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + + sd { + sdmmc0_pwr_h: sdmmc0-pwr-h { + rockchip,pins = + ; + }; + }; + + usb2 { + vcc5v0_host_en: vcc5v0-host-en { + rockchip,pins = + <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + vcc5v0_typec0_en: vcc5v0-typec0-en { + rockchip,pins = + <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + sdio-pwrseq { + wifi_reg_on_h: wifi-reg-on-h { + rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + wifi { + wifi_host_wake_l: wifi-host-wake-l { + rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + bluetooth { + bt_reg_on_h: bt-enable-h { + rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + bt_host_wake_l: bt-host-wake-l { + rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + bt_wake_l: bt-wake-l { + rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + mpu6500 { + gsensor_int_l: gsensor-int-l { + rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + lsm6ds3 { + gyr_int_l: gyr-int-l { + rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + cm32181 { + light_int_l: light-int-l { + rockchip,pins = <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&pwm0 { + status = "okay"; +}; + +&pwm2 { + status = "okay"; +}; + +&saradc { + vref-supply = <&vcca1v8_s3>; + status = "okay"; +}; + +&sdhci { + bus-width = <8>; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; + non-removable; + status = "okay"; +}; + +&sdio0 { + bus-width = <4>; + cap-sd-highspeed; + cap-sdio-irq; + clock-frequency = <50000000>; + disable-wp; + keep-power-in-suspend; + max-frequency = <50000000>; + mmc-pwrseq = <&sdio_pwrseq>; + non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; + sd-uhs-sdr104; + status = "okay"; + + brcmf: wifi@1 { + compatible = "brcm,bcm4329-fmac"; + interrupt-parent = <&gpio0>; + interrupts = ; + interrupt-names = "host-wake"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_host_wake_l>; + }; +}; + +&sdmmc { + bus-width = <4>; + cap-mmc-highspeed; + cap-sd-highspeed; + cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; + clock-frequency = <150000000>; + disable-wp; + max-frequency = <150000000>; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; + vmmc-supply = <&vcc3v0_sd>; + vqmmc-supply = <&vcc_sdio>; + status = "okay"; +}; + +&tcphy0 { + status = "okay"; +}; + +&tcphy1 { + status = "okay"; +}; + +&tsadc { + rockchip,hw-tshut-mode = <1>; + rockchip,hw-tshut-polarity = <1>; + status = "okay"; +}; + +&u2phy0 { + status = "okay"; + + u2phy0_otg: otg-port { + phy-supply = <&vcc5v0_typec0>; + status = "okay"; + }; + + u2phy0_host: host-port { + phy-supply = <&vcc5v0_host>; + status = "okay"; + }; +}; + +&u2phy1 { + status = "okay"; + + u2phy1_otg: otg-port { + status = "okay"; + }; + + u2phy1_host: host-port { + phy-supply = <&vcc5v0_host>; + status = "okay"; + }; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; + status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + clocks = <&rk808 1>; + clock-names = "ext_clock"; + device-wakeup-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_reg_on_h>; + }; +}; + +&uart2 { + status = "okay"; +}; + +&usb_host0_ehci { + status = "okay"; +}; + +&usb_host0_ohci { + status = "okay"; +}; + +&usb_host1_ehci { + status = "okay"; +}; + +&usb_host1_ohci { + status = "okay"; +}; + +&usbdrd3_0 { + status = "okay"; +}; + +&usbdrd_dwc3_0 { + status = "okay"; + dr_mode = "otg"; +}; + +&usbdrd3_1 { + status = "okay"; +}; + +&usbdrd_dwc3_1 { + status = "okay"; + dr_mode = "host"; +}; + +&vopb { + status = "okay"; +}; + +&vopb_mmu { + status = "okay"; +}; + +&vopl { + status = "okay"; +}; + +&vopl_mmu { + status = "okay"; +}; diff --git a/board/rockchip/evb_rk3399/MAINTAINERS b/board/rockchip/evb_rk3399/MAINTAINERS index caad30641e..07ee8ce92c 100644 --- a/board/rockchip/evb_rk3399/MAINTAINERS +++ b/board/rockchip/evb_rk3399/MAINTAINERS @@ -5,3 +5,10 @@ F: board/rockchip/evb_rk3399 F: include/configs/evb_rk3399.h F: configs/evb-rk3399_defconfig F: configs/firefly-rk3399_defconfig + +ORANGEPI-RK3399 +M: Jagan Teki +S: Maintained +F: configs/orangepi-rk3399_defconfig +F: arch/arm/dts/rk3399-u-boot.dtsi +F: arch/arm/dts/rk3399-orangepi-u-boot.dtsi diff --git a/configs/orangepi-rk3399_defconfig b/configs/orangepi-rk3399_defconfig new file mode 100644 index 0000000000..cdccf221b5 --- /dev/null +++ b/configs/orangepi-rk3399_defconfig @@ -0,0 +1,75 @@ +CONFIG_ARM=y +CONFIG_ARCH_ROCKCHIP=y +CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_SPL_LIBCOMMON_SUPPORT=y +CONFIG_SPL_LIBGENERIC_SUPPORT=y +CONFIG_SYS_MALLOC_F_LEN=0x4000 +CONFIG_ROCKCHIP_RK3399=y +CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x4000 +CONFIG_DEBUG_UART_BASE=0xFF1A0000 +CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_SPL_STACK_R_ADDR=0x80000 +CONFIG_DEBUG_UART=y +CONFIG_NR_DRAM_BANKS=1 +CONFIG_FIT=y +CONFIG_SPL_LOAD_FIT=y +CONFIG_SPL_FIT_GENERATOR="arch/arm/mach-rockchip/make_fit_atf.py" +CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-orangepi.dtb" +# CONFIG_DISPLAY_CPUINFO is not set +CONFIG_DISPLAY_BOARDINFO_LATE=y +CONFIG_SPL_STACK_R=y +CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x4000 +CONFIG_SPL_ATF=y +CONFIG_SPL_ATF_NO_PLATFORM_PARAM=y +CONFIG_CMD_BOOTZ=y +CONFIG_CMD_GPT=y +CONFIG_CMD_MMC=y +CONFIG_CMD_SF=y +CONFIG_CMD_USB=y +# CONFIG_CMD_SETEXPR is not set +CONFIG_CMD_TIME=y +CONFIG_SPL_OF_CONTROL=y +CONFIG_DEFAULT_DEVICE_TREE="rk3399-orangepi" +CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" +CONFIG_ENV_IS_IN_MMC=y +CONFIG_REGMAP=y +CONFIG_SPL_REGMAP=y +CONFIG_SYSCON=y +CONFIG_SPL_SYSCON=y +CONFIG_CLK=y +CONFIG_SPL_CLK=y +CONFIG_ROCKCHIP_GPIO=y +CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MMC_DW=y +CONFIG_MMC_DW_ROCKCHIP=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_ROCKCHIP=y +CONFIG_DM_ETH=y +CONFIG_ETH_DESIGNWARE=y +CONFIG_GMAC_ROCKCHIP=y +CONFIG_PINCTRL=y +CONFIG_SPL_PINCTRL=y +CONFIG_DM_PMIC=y +CONFIG_PMIC_RK8XX=y +CONFIG_REGULATOR_PWM=y +CONFIG_DM_REGULATOR_FIXED=y +CONFIG_REGULATOR_RK8XX=y +CONFIG_PWM_ROCKCHIP=y +CONFIG_RAM=y +CONFIG_SPL_RAM=y +CONFIG_BAUDRATE=1500000 +CONFIG_DEBUG_UART_SHIFT=2 +CONFIG_SYSRESET=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_EHCI_HCD=y +CONFIG_USB_EHCI_GENERIC=y +CONFIG_USB_HOST_ETHER=y +CONFIG_USB_ETHER_ASIX=y +CONFIG_USB_ETHER_ASIX88179=y +CONFIG_USB_ETHER_MCS7830=y +CONFIG_USB_ETHER_RTL8152=y +CONFIG_USB_ETHER_SMSC95XX=y +CONFIG_USE_TINY_PRINTF=y +CONFIG_ERRNO_STR=y From patchwork Mon Mar 11 08:20:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 149 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 48B113F03C for ; Mon, 11 Mar 2019 09:20:26 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id a72sf5319908pfj.19 for ; Mon, 11 Mar 2019 01:20:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1552292425; cv=pass; d=google.com; s=arc-20160816; b=SXR8HVuIunfu5Ac/k8M2vRIiupAlLTZJVOJ333vSumxeuUNFHnDhjecgTbeN/45IIX aRZtfoSZnFA4O8mmGzck0uinXiwlBAFPd3o44o1HekgW7N6RaAI1UvRuvHskAZXfWe0n 1S0rv0RuDsC6iOphOFSq5hQtJKAuO3YIpYyMgt7ig0094QTUSKnDOkxPfl2bUfIPUnnu Ds/p4Re/bIrSpVSiyxWHVyM+fFlZ1jTBPUQbqkMQSSL6dQ2D67Gr43ZxQCXfX9zdrr6G yETw3oSlNjgzVtb1tJUNtbAwcH5WyUEVFfy/9hgzFYumbXxM6jlfvlmAM92PnBwKnhbJ zorQ== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=9aa4gZtlqG7A4/KkrGSyuH9hy+KtgHQTXS0erVEh4Xg=; b=dkHqQwF2Y01yvP6t98ZyZP2aunCgy4ZcAIovp+7zuXd1akORAXMk/7HV0LhFYJ9KBV krrI6H929yvkimpe5ko64KMuruueTO0wKgbM++OGxUlavUFZBDJ25we+h99Jgi6s1v2/ XBP/SmQSQ0avHzpGtx7qZtp0SBMH+coXi+SdWlkKko5BbtDCQEB/A5h5D7H9nPbTHHpl O3frc2uDp2Wf/+DHcHxEq+y/UYPKT+4qwxQ+u0ih+JEZNlViFNJC7HaG1+xSc2eZyDO2 eG7NNIJSIuxoIaQI4d0u5s7ijw9AuJTZMxs6LI1XcemCVSwe2asqC/0qn4l3acawDmxs aJQw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qd46G2mv; 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:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=9aa4gZtlqG7A4/KkrGSyuH9hy+KtgHQTXS0erVEh4Xg=; b=f1u1SVojgBBGqI/G+Ba59gn6RtGGWIQniZNjaNflQQAwx9iMW/Dfp9aQJ5wQw+nTJK K7O6ypTsSzfW9KWy4xxfvm8FCFAWwnPqmB/0gg83z2cWBgXY2ourkf66Un7pTPbxuKJD bSuSrORKldNsCN7I65/cKbjvdTWxoo6df3DR0= 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: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=9aa4gZtlqG7A4/KkrGSyuH9hy+KtgHQTXS0erVEh4Xg=; b=ktb1WE3845y7ms2JCUSsgod6vn7NKTlKKsEruyVpW+iROriKk9Nbhh12s0hRzwrAOX moNKSuzrOHM9Y/CNNg/8hNDgrL53rqlQUwMM6tI366KNUFpJMZ/f4BmKTX2HSisoS+Ty JOOP/ZHYUyWBcRSq4kD9ucuiwwB8rPcwzLnphPMtAHVFZpyhYRTDw0YRetd7bbfFfpAj 2y1R+7euDN+Syltk8vI6Q4kEGEonHR6313/UXDRAx1T10Sq8v6qc7D7Es1SPmcgYA5u9 kUVbq2zjXuO7NaSPBtiu5w+Qd0oXYZAEDd4aUZo3LVxkhIk0eamKjuusUIfJLlCDiVJ8 AchQ== X-Gm-Message-State: APjAAAVpa0x+OFBFyRt+BI1FfZw0QcwJXxMoCg0olY0YxUyQPbbkmQM2 xbzr5sZZ9XLSZDabeeF9cw5T9Xs4 X-Google-Smtp-Source: APXvYqz9eDBrGCq9iUmvxUiCZqIrytwlflKeaoz8mXDt9faQB299iCqR/w3m8S63HCvcfHFnkhmOBQ== X-Received: by 2002:a63:5142:: with SMTP id r2mr11770291pgl.144.1552292425040; Mon, 11 Mar 2019 01:20:25 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:f51b:: with SMTP id n27ls7389830pfh.8.gmail; Mon, 11 Mar 2019 01:20:24 -0700 (PDT) X-Received: by 2002:a62:1851:: with SMTP id 78mr32486675pfy.206.1552292424631; Mon, 11 Mar 2019 01:20:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552292424; cv=none; d=google.com; s=arc-20160816; b=YOLkhX91ML79NpVjAQCddd4ujg4uc2A8uE24Hk7sCvSZTD9vKZM41zUu4mrQaf9VH3 ep8wgleOh4UOBJR+wbEJQ5ywoDykhsq8q3+OTpzoGmrMALS4VSQpZIpwT9SuH2WDriwo paYmjYJmGzOCBV4LKFJKTjWikuq39erh22khGsuZXH9TY9zCX9uemLR2Gp454eyfEpeF sydzJ+zjrcQFb4qbyFEtW8gvTzq/sWAjfSkEsVJlEfEl5CTWQx8Pdi+YgoS//phzjzHo N+s02dMKJfHM9TfeaYIuwork7uHhZnTZFSHGvtJ7Oj2eCPPgUY12MFYudJHfwyp2P6ky I0gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=nEh3zL+L2OAYpRnKSEWRWv/I8F76inl9g2PWmf2i70g=; b=Kp1LopZqwSiTkG0QiCXU59MQ7Ftg7w8au9DHVTv8Mof88tW59POsRqs5W89K4cguRE uM1BmZcoTRQFgyJIxqBoc6NeORh4xMddwE8OfDvJ4/3ukpPifb0hjtj2/aPPw/mJniLQ P9Xwuu1OTieoh29kNZB/jrqnrvX3liDrTH0xF+hwB+PQPXNoQr207v0oR0Q1jx/K/3vP bE3JAzVHP7lEoMGLJb6rOFq6okmZYV1D1EFGJF45cQGcd5LblEqyhLjckT+qmqHtlQKL Ygts2arA6lZApIEzERlPUq8dC9jQZarmAARF2hVc351cxFyHpQ8bmHpvfCZd7V8YCDFn xATQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qd46G2mv; 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 g67sor7188329plb.5.2019.03.11.01.20.24 for (Google Transport Security); Mon, 11 Mar 2019 01:20:24 -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:a17:902:2a48:: with SMTP id i66mr31748093plb.14.1552292424268; Mon, 11 Mar 2019 01:20:24 -0700 (PDT) Received: from localhost.localdomain ([115.97.184.151]) by smtp.gmail.com with ESMTPSA id l5sm8262196pfi.97.2019.03.11.01.20.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Mar 2019 01:20:23 -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 4/4] doc: rockchip: Add global doc for rk3399 build/run Date: Mon, 11 Mar 2019 13:50:05 +0530 Message-Id: <20190311082005.18550-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190311082005.18550-1-jagan@amarulasolutions.com> References: <20190311082005.18550-1-jagan@amarulasolutions.com> 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=qd46G2mv; 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: , Since rockchip have an individual doc/README.rockchip, it would be better to update the same instead of maintaining it separately in board files. So, add the documentation for rk3399 - procedure to build - procedure to boot from SD Signed-off-by: Jagan Teki Reviewed-by: Philipp Tomsich --- doc/README.rockchip | 69 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/doc/README.rockchip b/doc/README.rockchip index ec10ebbc26..b8d693bbc9 100644 --- a/doc/README.rockchip +++ b/doc/README.rockchip @@ -88,8 +88,36 @@ One RV3188 baord is supported: For example: +1. To build RK3288 board: + CROSS_COMPILE=arm-linux-gnueabi- make O=firefly firefly-rk3288_defconfig all +2. To build RK3399 board: + + (export cross compiler path for aarch64) + + 2.1 Compile ATF + + $ git clone https://github.com/ARM-software/arm-trusted-firmware.git + $ cd arm-trusted-firmware + + (export cross compiler path for Cortex-M0 MCU likely arm-none-eabi-) + $ make realclean + $ make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399 + + (copy bl31.elf U-Boot root dir) + $ cp build/rk3399/release/bl31/bl31.elf /path/to/u-boot + + 2.2 Compile U-Boot + + $ cd /path/to/u-boot + $ make orangepi-rk3399_defconfig + $ make + $ make u-boot.itb + + (Get spl/u-boot-spl-dtb.bin, u-boot.itb images and some boards would get + spl/u-boot-spl.bin since it doesn't enable CONFIG_SPL_OF_CONTROL) + (or you can use another cross compiler if you prefer) @@ -225,6 +253,45 @@ tools/mkimage -n rk3188 -T rksd -d spl/u-boot-spl.bin out truncate -s %2048 u-boot.bin cat u-boot.bin | split -b 512 --filter='openssl rc4 -K 7C4E0304550509072D2C7B38170D1711' >> out +Booting from an SD card on RK3399 +================================= + +To write an image that boots from an SD card (assumed to be /dev/sdc): + +1. Prefix rk3399 header to SPL image + + $ cd /path/to/u-boot + $ ./tools/mkimage -n rk3399 -T rksd -d spl/u-boot-spl-dtb.bin out + +2. Write prefixed SPL at 64th sector + + $ sudo dd if=out of=/dev/sdc seek=64 + +3. Write U-Boot proper at 16384 sector + + $ sudo dd if=u-boot.itb of=/dev/sdc seek=16384 + $ sync + +Put this SD (or micro-SD) card into your board and reset it. You should see +something like: + +U-Boot SPL board init +Trying to boot from MMC1 + + +U-Boot 2019.01-00004-g14db5ee998 (Mar 11 2019 - 13:18:41 +0530) + +Model: Orange Pi RK3399 Board +DRAM: 2 GiB +MMC: dwmmc@fe310000: 2, dwmmc@fe320000: 1, sdhci@fe330000: 0 +Loading Environment from MMC... OK +In: serial@ff1a0000 +Out: serial@ff1a0000 +Err: serial@ff1a0000 +Model: Orange Pi RK3399 Board +Net: eth0: ethernet@fe300000 +Hit any key to stop autoboot: 0 +=> Using fastboot on rk3288 ======================== @@ -385,5 +452,7 @@ There are some documents about partitions in the links below. http://rockchip.wikidot.com/partitions -- +Jagan Teki +11 Mar 2019 Simon Glass 24 June 2015