From patchwork Wed Jul 1 06:17:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1426 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 438C13F082 for ; Wed, 1 Jul 2020 08:17:40 +0200 (CEST) Received: by mail-pj1-f69.google.com with SMTP id e14sf4382445pjt.0 for ; Tue, 30 Jun 2020 23:17:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593584258; cv=pass; d=google.com; s=arc-20160816; b=PWBykkwAo6eKVD5MB36eZ5XagBgQjMm8KEMOqmV2gjSETdHfGh8e3G9Xm6ltadyYns bySJhqfWD3Oq54gle3SLIYAn3kQ5JISEts3lrP1XxRIOZVbTYurjnOAzE0ITxxlL+xUr 0u196gzzmUe/lD+y1fdzjVO6Qzkc2Yu9fB9ii8ll93+SL2Rl4HowMnbSRg+VRUOf2Deh z/ONW5hh4lOObjeUnLb4kKXgVD5D7ypDeOUHLM0XzaQTEsRTOjNtMYLVYYMxgpLIwaOj Zmw7ZFsGNVYW+8e0SvbMtfe92Jg6mGx5YyXA0MQyD5eMc1sCQxhtNpSiVALZJWJLVICn LDiQ== 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=f3b6fTeC7lBzH9GIhrf1sTCpehDUtpThH12FwAQLS34=; b=mE5uYemTU4H8+Uh0IVI2A8EKEil9uZyEx3FpnXIH3GDmHS4lo2wlxwCMacMFuuDWT4 rj4nQPuAaxPCZ/X+0vXuP7k1Ghgi5kvzBajSUPtzSJnrmsykYewNnmk2QeUGYpUHHteI x/OlguirsBmnB8jX7UPwhnbHmz7/Ap4WEEufMtt8MyGdJOx5aD6oSofXrZ2LgJeRAhP9 tFiun03zw9ACqvnEUb0u4gQ2LCGKQWQ+/puAzhP+GPE3FJfAibeKh96vD+MktfJF80Xb g+/6+gVAZKCgi+/6t+mYUCr4ixmaZ6HHLBFHx7nDxPXk/YhE67lpCWIdMDMDC7JPs8pD /JpA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JqCkgof1; 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=f3b6fTeC7lBzH9GIhrf1sTCpehDUtpThH12FwAQLS34=; b=UF2mrr2bGsvOWCgfs48ka2iH1K9de4IgMNz1eV0uJsnfABpbaNUe0LgkBEXtKd7KWJ keLEAjJef3iN0j5LJ66qN21RzIeDenico5c8voKUYy+E3P6ZmxtPNTbr5e3e9L7OSFRt mgMKhQB81ZyGRIbhqhbJkbf9fd1+Eh1lz3hYY= 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=f3b6fTeC7lBzH9GIhrf1sTCpehDUtpThH12FwAQLS34=; b=nMlhP5YhREynk2/YsDYN/Y3xtzAFYL7oaKKMb1TQtNQevKvDUXAo4TFQ91JbWRVU0H nSedItwvtmEh6inhaQvhP+TpCNScDJK3SpUKp3I6tKWsDgAODv0kpmFpZSacbRlFuuvD 5fRoWug0PgHGD3OGZCILRJtr5t7j77ruOyKhESyl5sikPJoomjksPzqePrhr+rE9n3JT L4G3c6ZL/seL97ki2P+O2+Fnbt+JnUX2kyeNSh4bVD3vUqMAv89KvB1fCpOm3lG6hpoS nw1Ne2oK9TlvWv3ZB7OA3i1gI3zNuPCxcQit3crDm64vN/n0StDWZ+FRtENmSIagsX3N 6lMA== X-Gm-Message-State: AOAM533xoDeNDgIDB3Q2ZKDvNKNBDOOaozTwhNNBvRn1sDP5XDcrsZAu PmYC+xTsfsfKVYRBAUWjMXwJIDqF X-Google-Smtp-Source: ABdhPJyRZrXJAp4eDykIS/P585LPtSsTYtlC0S1Y4BMrxG99TxnefANw2m2/gtDeuPvZJw9u1KD0xg== X-Received: by 2002:a17:90a:df0f:: with SMTP id gp15mr26323140pjb.98.1593584258273; Tue, 30 Jun 2020 23:17:38 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:7143:: with SMTP id g3ls565989pjs.1.gmail; Tue, 30 Jun 2020 23:17:38 -0700 (PDT) X-Received: by 2002:a17:902:8544:: with SMTP id d4mr21356053plo.234.1593584257764; Tue, 30 Jun 2020 23:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593584257; cv=none; d=google.com; s=arc-20160816; b=pWwt6+H/b2xrfUkE22FjhIqKOPe80l0IXP1s+KIc31XTFgXEN01d7gbt0UTkThkzNY zN806k4d2JNKV23bKyt/Wd9IfjCwcyRpf7msSm9XDhZIo6aLVp8v+f01DWDZlD8M/D1f z7Dqopu9oi+g7G4bQidXjha5VP9gQ7PAIQugDAPfkKHwu8U/HIYYpDH/M0y1g7J/lmij b3n8IRBEg1x0GEVcZf6mJ1Fw2rA5YW+mfmSWXXAKrTbLXrxXnxpcHeAnC/z3VQ7XrCRw q+TAR9cLE6MeI8rPm/qT1+s//n0Gn7HDiyVPbe7j+2Fs5NPnatYb3+L9Csva/REQcSvN wJPA== 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=iH9E3L0O7L+w/GPGtGgup8mLd4eqGKkz57JBYB7Djo4=; b=pCBNIYxQ71DGw6BrzbMZjkud9o0iTAImHZrnZ/suVD2Fm22s9QbSNuYWGqEf2ZLCCo 3Qx1+DOVs8vOnSCsGVt7RBpOTTJ+bYBmSRvwk/u/ChY4akw9LxROUKPGfbVE+HtSIC+R Fukk9O8MR1F+i+uF9ReLfTZJWfPM5FTm2gpj4ZPg8fZ78/gD+zk40UGb/w9939CoXO9M qGgJ1I0fkFQdKXeGgoB+wm0sBtyulnletdWF09KCYfM+8W6Kk9fXepdYr95ql5B4e+Ji Rdq3XvfOj46mTWL7IDuLjOMcFTZwEP0hyPOhVtnJQUaV11XFgGXp+VbRnoVp27lVqgpJ M6Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JqCkgof1; 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 e7sor6352251pfn.42.2020.06.30.23.17.37 for (Google Transport Security); Tue, 30 Jun 2020 23:17:37 -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:aa7:8e90:: with SMTP id a16mr21628391pfr.84.1593584257374; Tue, 30 Jun 2020 23:17:37 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:356d:fc3d:92ff:192e]) by smtp.gmail.com with ESMTPSA id n189sm4555744pfn.108.2020.06.30.23.17.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 23:17:36 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: Tom Cubie , Suniel Mahesh , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula , Jagan Teki Subject: [PATCH v2 1/4] arm64: dts: rockchip: Trivial cleanups for RockPI N10 Date: Wed, 1 Jul 2020 11:47:14 +0530 Message-Id: <20200701061717.143753-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200701061717.143753-1-jagan@amarulasolutions.com> References: <20200701061717.143753-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=JqCkgof1; 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: , Radxa dalang carrier boards are used to mount vmarc SoM's of rk3399pro and rk3288 to make complete SBC. So, this patch adds trivial changes to properties. - move common properties into radxa dalang carrier dtsi. - maintain ascending order for nodes, properties. - change the order of dtsi include so-that common properties will reflect in main dts. - drop unnecessary header includes. No functionally changes. Signed-off-by: Jagan Teki --- Changes for v2: - updated commit message - add more trivial changes .../dts/rockchip-radxa-dalang-carrier.dtsi | 58 ++++++++++++----- .../dts/rockchip/rk3399pro-rock-pi-n10.dts | 2 +- .../dts/rockchip/rk3399pro-vmarc-som.dtsi | 64 ++++++------------- 3 files changed, 62 insertions(+), 62 deletions(-) diff --git a/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi b/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi index df3712aedf8a..8b0b03681667 100644 --- a/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi +++ b/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi @@ -8,24 +8,55 @@ #include / { - chosen { - stdout-path = "serial2:1500000n8"; + clkin_gmac: external-gmac-clock { + compatible = "fixed-clock"; + clock-frequency = <125000000>; + clock-output-names = "clkin_gmac"; + #clock-cells = <0>; + }; + + vcc12v_dcin: vcc12v-dcin-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcc12v_dcin"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + }; + + vcc5v0_sys: vcc5v0-sys-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_sys"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc12v_dcin>; }; }; &gmac { + assigned-clock-parents = <&clkin_gmac>; + clock_in_out = "input"; + phy-mode = "rgmii"; + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + snps,reset-active-low; + snps,reset-delays-us = <0 10000 50000>; + tx_delay = <0x28>; + rx_delay = <0x11>; status = "okay"; }; &i2c1 { - status = "okay"; i2c-scl-rising-time-ns = <140>; i2c-scl-falling-time-ns = <30>; + status = "okay"; }; &i2c2 { - status = "okay"; clock-frequency = <400000>; + status = "okay"; hym8563: hym8563@51 { compatible = "haoyu,hym8563"; @@ -40,6 +71,14 @@ hym8563: hym8563@51 { }; }; +&pinctrl { + hym8563 { + hym8563_int: hym8563-int { + rockchip,pins = <4 RK_PD6 0 &pcfg_pull_up>; + }; + }; +}; + &pwm0 { status = "okay"; }; @@ -52,10 +91,8 @@ &sdmmc { bus-width = <4>; cap-mmc-highspeed; cap-sd-highspeed; - cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; disable-wp; vqmmc-supply = <&vccio_sd>; - max-frequency = <150000000>; pinctrl-names = "default"; pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; status = "okay"; @@ -70,12 +107,3 @@ &uart0 { &uart2 { status = "okay"; }; - -&pinctrl { - hym8563 { - hym8563_int: hym8563-int { - rockchip,pins = - <4 RK_PD6 0 &pcfg_pull_up>; - }; - }; -}; diff --git a/arch/arm64/boot/dts/rockchip/rk3399pro-rock-pi-n10.dts b/arch/arm64/boot/dts/rockchip/rk3399pro-rock-pi-n10.dts index a1783e7f769a..539f4005386d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399pro-rock-pi-n10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399pro-rock-pi-n10.dts @@ -8,8 +8,8 @@ /dts-v1/; #include "rk3399.dtsi" #include "rk3399-opp.dtsi" -#include "rk3399pro-vmarc-som.dtsi" #include +#include "rk3399pro-vmarc-som.dtsi" / { model = "Radxa ROCK Pi N10"; diff --git a/arch/arm64/boot/dts/rockchip/rk3399pro-vmarc-som.dtsi b/arch/arm64/boot/dts/rockchip/rk3399pro-vmarc-som.dtsi index 0a516334f15f..0b150881ab6c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399pro-vmarc-som.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399pro-vmarc-som.dtsi @@ -7,35 +7,12 @@ #include #include -#include / { compatible = "vamrs,rk3399pro-vmarc-som", "rockchip,rk3399pro"; - clkin_gmac: external-gmac-clock { - compatible = "fixed-clock"; - clock-frequency = <125000000>; - clock-output-names = "clkin_gmac"; - #clock-cells = <0>; - }; - - vcc12v_dcin: vcc12v-dcin-regulator { - compatible = "regulator-fixed"; - regulator-name = "vcc12v_dcin"; - regulator-always-on; - regulator-boot-on; - regulator-min-microvolt = <12000000>; - regulator-max-microvolt = <12000000>; - }; - - vcc5v0_sys: vcc5v0-sys-regulator { - compatible = "regulator-fixed"; - regulator-name = "vcc5v0_sys"; - regulator-always-on; - regulator-boot-on; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - vin-supply = <&vcc12v_dcin>; + chosen { + stdout-path = "serial2:1500000n8"; }; }; @@ -61,17 +38,8 @@ &emmc_phy { &gmac { assigned-clocks = <&cru SCLK_RMII_SRC>; - assigned-clock-parents = <&clkin_gmac>; - clock_in_out = "input"; phy-supply = <&vcc_lan>; - 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>; }; &i2c0 { @@ -298,15 +266,23 @@ regulator-state-mem { }; &io_domains { - status = "okay"; bt656-supply = <&vcca_1v8>; sdmmc-supply = <&vccio_sd>; gpio1830-supply = <&vccio_3v0>; + status = "okay"; +}; + +&pinctrl { + pmic { + pmic_int_l: pmic-int-l { + rockchip,pins = <1 RK_PC2 0 &pcfg_pull_up>; + }; + }; }; &pmu_io_domains { - status = "okay"; pmu1830-supply = <&vcc_1v8>; + status = "okay"; }; &sdhci { @@ -317,17 +293,13 @@ &sdhci { status = "okay"; }; +&sdmmc { + cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; + max-frequency = <150000000>; +}; + &tsadc { - status = "okay"; rockchip,hw-tshut-mode = <1>; rockchip,hw-tshut-polarity = <1>; -}; - -&pinctrl { - pmic { - pmic_int_l: pmic-int-l { - rockchip,pins = - <1 RK_PC2 0 &pcfg_pull_up>; - }; - }; + status = "okay"; }; From patchwork Wed Jul 1 06:17:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1427 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2E9133F082 for ; Wed, 1 Jul 2020 08:17:45 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id 72sf17102944pgb.1 for ; Tue, 30 Jun 2020 23:17:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593584264; cv=pass; d=google.com; s=arc-20160816; b=xo15iQxxYWczTnuiYrR3oCLo4p6iN2SfWPsaUOA8GwgKibgi6yFOiIg/EIzJu8cads CgwCCB0xZ3sfZ0sykNhNXteLFfDyDQO8KsWvYp6FjVxOWgKjwck/r8LMpPPPNj91ahAk ed0DbG0EE9Yvl3vL6hbkjU2YfXoZAQrGQbXBXCc000k+CJtTSKNJAqaqZLuIvOZsZMhk EDF8aO3M+nS4IDCcD352YPF7zJIQIZzS+NFP+ESIoo5p0DaQLUlNKJXQeB1Fj+L7bGDl /47KzvzRzc0kmw+wM9apSbIz/dLgML5JAS8tunGHlh+ef0kYypZO4V6vyLI/2OYwDblA xaCw== 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=At2vR3uh3GSw2LSc4ewotX2DHNFrlJGvUFntthijdkA=; b=pQnI5Og1DYSJyLE++JAqc295rq4IB7nQTcb2dODTbaLilykpEbmDXZgufm9WKOTMu6 RKL739eY6vB9PgzdhctV9qgDHPlNcrOKyFV6029UKpbK0QvzyyaARHLy0EACp6F1oxt4 E+3CcQWXybNLmGWWPA9GsS8erkyaf1ICT/SWx8peOSPH3BMlbmPfvjelt5YYlXVCKn1U 2S6MPnk8KNkGzlNmAuTsF9feii/3fPuyHxDJDmHSjylaDlBN/7ZGVSHoCKOSGIIPnHnN 7sUodiJ6gHUuODlpfvUlFnioxyoZKLhe+x25LTfY0xIzG6QROqvlodumRJilLvLFYWG8 7HIw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CNzrNl4e; 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=At2vR3uh3GSw2LSc4ewotX2DHNFrlJGvUFntthijdkA=; b=mhUdSEaT//wzmKkKayYgxyNDAwYsGcOhX6NXPx7p8jsYF52lGsAEAjnlTDWvOdR3qm kjMaRO45LvKULVqFyBIxzLzAFdKkGmzcbKY/Mzb678wpopChoVBGidQXVvOAYdO+TF4S +SDjSMebgH51UQGMYWkzgocn5hOmPEmFPZHqM= 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=At2vR3uh3GSw2LSc4ewotX2DHNFrlJGvUFntthijdkA=; b=d2FDzwGaqy4KxBodtcTlplPVMxqhxSFzAAI/ODyd7F0uFLljQ0cu1Beb7jy9QZa8yL ybxGN5yxYGkPPmItHOXAG/RpSmI1rxf2/ZUqtriNJP9MdgPXVE1DjuzhzqcVpPWnjmkv uLbKj2eW11FGDg1REscC5yOYKbw/BP7HmGENtFNYRrIckhujzZRIsemqSDcWqc72iPgb M1JZ9CnSYii14gXo2jRASBmzlSf5tNCIiTe68KHAJ6Zi3l14ZEu1M9iPDVqR41/5OeAb xwgTQha2upldtdM7j4JHchbLtUXUtHcm7Y4+A8MsCIpOgpSCg40WTfItyjaRp+JDQyaV p/zQ== X-Gm-Message-State: AOAM5337UNDmeLFYHp5Q5BTPDMpHWFjeeOcpYtiPDLSAPx+wIcmVZCwI 3lEmYJLPYioooQis2gguyF23Ba9r X-Google-Smtp-Source: ABdhPJwYwC/ugjD9gszxT1Kp/VmV7WKdTx9QIncaznDFuPK5xUXF9aUtgH6/Ap+zLhbelaxwFQ86YA== X-Received: by 2002:a63:e60b:: with SMTP id g11mr18945717pgh.188.1593584263945; Tue, 30 Jun 2020 23:17:43 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:7e97:: with SMTP id z145ls426024pfc.4.gmail; Tue, 30 Jun 2020 23:17:43 -0700 (PDT) X-Received: by 2002:a63:5509:: with SMTP id j9mr18116288pgb.195.1593584263461; Tue, 30 Jun 2020 23:17:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593584263; cv=none; d=google.com; s=arc-20160816; b=GUh+xtvE3XgrOwgk5L8rMva7DJ355Uuu941Kiu8niDmHmdOk+xfbA41X96W1mbDfbY M5p1AfcF9SNBTGw7LwTG3GMJvJyYVkGScIwSsfaPMi9B+pBMfan1lO/M9Fy+E2Mr7K5U E8wieVXbCV9nYP615XBANj3gIp/V58KTlT9jgxpGCQdzzuLglS9qoRYqvxtcpfy7cq0s D8bP8wDWODbXYgorrZ/kSaeDr2V7cVgkvQrNufiG6GOe9tVZ2mDipBlRL1WLRA+Chmjc 63ziX0XNIUrpWb08AbS2lnjvK1IBmmzl0aGbXPR/9C+hMwE8E/yABNfVQrPqR5f9lYfO q3Hg== 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=DnO9Dbm5aKhNDV/xMOJzvJqucQG5L1b5w3UlETsElwI=; b=aTDlEQJhEfOzsCcdrBK0OC+eewEKeMiKMYyu0f1QhFUG55dZEBTkHIwiim3bf6ODcE OqCTXMHZBV+x9KP3eKXA645lgU9ockO8uJPDvpqL2ABTI8B5h/T4MHi7BFwKAiyLTdtH bgC3zo7rk+dGB8qiexf3rqZIgcMcqzKLKvHyQ3tWkOXS8Ws3CBlYCy5Ilz0KA4u/2GJr XBSyEOpGa4HdiWgkqJtAInuKqqduKKT6h+FkUVBk642zXJuw6ebP4mHTzPoK21fCyZbM nZlguNwvQe3UuXVrMgRNgOBh60dAtXtXoYpQnZSF8XLNamgW7GnYwfbtL9XQ0tTpnqop hrVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CNzrNl4e; 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 m22sor6478016pgv.70.2020.06.30.23.17.43 for (Google Transport Security); Tue, 30 Jun 2020 23:17:43 -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:3f42:: with SMTP id m63mr18898284pga.310.1593584263134; Tue, 30 Jun 2020 23:17:43 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:356d:fc3d:92ff:192e]) by smtp.gmail.com with ESMTPSA id n189sm4555744pfn.108.2020.06.30.23.17.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 23:17:42 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: Tom Cubie , Suniel Mahesh , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula , Jagan Teki Subject: [PATCH v2 2/4] dt-bindings: arm: rockchip: Add Rock Pi N8 binding Date: Wed, 1 Jul 2020 11:47:15 +0530 Message-Id: <20200701061717.143753-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200701061717.143753-1-jagan@amarulasolutions.com> References: <20200701061717.143753-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=CNzrNl4e; 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: , Rock Pi N8 is a Rockchip RK3288 based SBC, which has - VMARC RK3288 SOM (as per SMARC standard) from Vamrs. - Compatible carrier board from Radxa. VMARC RK3288 SOM need to mount on top of dalang carrier board for making Rock PI N8 SBC. Add dt-bindings for it. Signed-off-by: Jagan Teki --- Changes for v2: - none Documentation/devicetree/bindings/arm/rockchip.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml index d4a4045092df..db2e35796795 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -435,6 +435,12 @@ properties: - const: radxa,rockpi4 - const: rockchip,rk3399 + - description: Radxa ROCK Pi N8 + items: + - const: radxa,rockpi-n8 + - const: vamrs,rk3288-vmarc-som + - const: rockchip,rk3288 + - description: Radxa ROCK Pi N10 items: - const: radxa,rockpi-n10 From patchwork Wed Jul 1 06:17:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1428 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7336B3F082 for ; Wed, 1 Jul 2020 08:17:49 +0200 (CEST) Received: by mail-pj1-f69.google.com with SMTP id h93sf17698016pjb.2 for ; Tue, 30 Jun 2020 23:17:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593584268; cv=pass; d=google.com; s=arc-20160816; b=hHwg+nkABulbDNR5305FzGq/5f02o3pS+wYsb9fb58szNHnbwLDhc6G5wT5vFILNXK dJE7VhuCSuiBkeR2wBDmOIHmFayKKbvgTMta35S0OqJx8H+cYNiFemhgf59ZYL30BAHa H2QAwS3AxW6+q113t4VnN9w0VM05SKIXkmDMQhHiad4r01y6deAUPFlkueVGoKUWMZbd /C3S1iMZikDVbW3NIqcKTUhMAKxLvcddPRne797TcbCqU2UsDpQQ1k3JVHbLKHjjlXOd tPHVZlU8lRMIyXHG9Gch0eVm+t5ODizNuInuUk0XjqgTZi/QcEvdjAes79KdNYUkmT1C nWGQ== 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=Cv0YOgxtzINmsUuG4KQYI58TJMrI4OisFvKAzmEwCJA=; b=NFDM0b6HSUP38lTQu4WHinl+l9qwJd/cpYsKSCKxfeUEiNPtGI5pZWTg6imd+MRECD defSq+wl6wCi6duASGTJpGup8MnK+Q/qG3+UbuYJ1df+lWTJy+xkGHSFaCCdSUmm0chA 7gG/My+NFn9auXN1sPeRwvJeDozuU7/HeUGzorV1pII93dLyQSJjQ4G9Dj7uRBw/ONtz N3AtLI6R4Fm1YS/kHVCHMP8RqEJjbNOC/FnsJk73reL8wNkPvBo2V1x3rro/228RLc8u SR54LhGDifTGoP5QqY9vpRbjarDVDSetnZtIWSK2v1TWC7tNfstKZQb9IqdY4K6bFByl N4rg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="HFlkQF/7"; 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=Cv0YOgxtzINmsUuG4KQYI58TJMrI4OisFvKAzmEwCJA=; b=CLDz4pGK1HqEV5Zv7XVzBArrweTjitGGQKJuLA9R7YQd0mCOXYXlNGzTfldL/wIDP+ BBSPjSnbpLFZB9lJjQWPTb7YJWKTLPpL8/clgjvfaNPgQbr8j4WwWWjsmRkYekj/T6JO sT/H9mN//1HVy7m0w/zLfIcO7iTmeJ9raXnyw= 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=Cv0YOgxtzINmsUuG4KQYI58TJMrI4OisFvKAzmEwCJA=; b=lEMf2wY6C11aC271sQKViu6mIGTU5CcxBNlW23ldKLY5VmWjqiliEwQqRafxGFbooc vwZHD9ymBLyv2XjK2scnkhs7zicfT0ZVXT/NtarQAxPwV1d4QrohfLKo/vRqdxchwes1 euCxeE148cIqmAUeNr0b0Vw0XAHFDhDxng+o2brGtKyN9BlOqcGb6ZgmcxYnOd7yPomx 7oFSlAse5NawBP/uAKGRuEv+YFPPenZZcOeB19+RVvW/8ugCVN7XdNgedmKQpDehja8F T1oYlvTBFPVfKXvBdtWhKvHYjnz2W/ZUq5gISkq6T1TJXp+5dhrB6Bi47CylwscmoEyI jRuA== X-Gm-Message-State: AOAM533SU7WtWO9XJrCjGWvzx4QvxKs2DdsY8tFMBkFumYNe4jRki6pW biDozXM65Ea/K9R/SAmNIHxssHbb X-Google-Smtp-Source: ABdhPJxpv2l5r5ewL8IofQr7/28Ld9HzqCszaigYkdMffvZW9CTikD5gt7/gThVzs9bHQjHI+d/R+g== X-Received: by 2002:a63:3c41:: with SMTP id i1mr18938756pgn.349.1593584268238; Tue, 30 Jun 2020 23:17:48 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90b:384c:: with SMTP id nl12ls564943pjb.2.canary-gmail; Tue, 30 Jun 2020 23:17:47 -0700 (PDT) X-Received: by 2002:a17:90a:11:: with SMTP id 17mr25756984pja.15.1593584267683; Tue, 30 Jun 2020 23:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593584267; cv=none; d=google.com; s=arc-20160816; b=z+XYYSFGoE+iiLunNvkDnPt9bgGG8FUYxt4grbDooLDpVwF3zqnl2e0Sa7VQdkvwHO mslMRJmno3NmCa4pTkivExGnIc5Iew1yCqjNojj9lxJhg7Xl3lIhj1K59a1heb7eeTrA 1RZn67B7HhBtayOjpzfLggjyHG1SB7/n+OMFo2bjxCa9/+/cS66kLwXyLHwJ/FyjUPIx pZDXvIzdlEEobqtpi/x5qiZMWCU1CyC0YXyfQd5bNi8voK9UY6onaaKXIElBfLzVLuod hM6s831dsF4CbKrppAtMHGAvpmTZ9aAd4ECzyHP+1JvpgHKErAJ05d6gIy2OECI4m/gm yRGg== 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=hSYqSpg1Fv/tx60jXpe2B3Kc18W4ccZ8cFrXVSCLQD0=; b=lj5fFxbRjgRFwdc2P/9YP3SUDDmdKhBOCAe5qbq1sHI8Jj+dpgMvRjzcfIVTHTCXyN OEOKh28g3xO8XXb/7M5OS9mOhNnHMe8lTbFkLafAMDBwx3fO1Xxfmw/DmQ56q8+QH+fM GqClLRL46HhHnRjrMXWh1b1rbhQ5jtYsGDu4oe4pv5Ufk5cZBuwiFcHRiXN0B4TR6vYj pDacybUy0z/ovoZX6LqYQVexuRdPICPemT4rqHjilgUWoZ+0fChimTr7JY+sWOHkyYe9 ESaanHXT03i7Xm9cS1isKDp9WyfyS3HfIBt5o+q4nJPveuUr6JY4slQG+23FOROgu2X3 nViw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="HFlkQF/7"; 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 k1sor6837034pld.51.2020.06.30.23.17.47 for (Google Transport Security); Tue, 30 Jun 2020 23:17:47 -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:90a:ae14:: with SMTP id t20mr24716914pjq.184.1593584267221; Tue, 30 Jun 2020 23:17:47 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:356d:fc3d:92ff:192e]) by smtp.gmail.com with ESMTPSA id n189sm4555744pfn.108.2020.06.30.23.17.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 23:17:46 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: Tom Cubie , Suniel Mahesh , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula , Jagan Teki Subject: [PATCH v2 3/4] ARM: dts: rockchip: Add VMARC RK3288 SOM initial support Date: Wed, 1 Jul 2020 11:47:16 +0530 Message-Id: <20200701061717.143753-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200701061717.143753-1-jagan@amarulasolutions.com> References: <20200701061717.143753-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="HFlkQF/7"; 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: , VMARC RK3288 SOM is a standard SMARC SOM design with Rockchip RK3288 SoC, which is designed by Vamrs. Specification: - Rockchip RK3288 - PMIC: RK808 - eMMC: 16GB/32GB/64GB - SD slot - 2xUSB-2.0, 1xUSB3.0 - USB-C for power supply - Ethernet - HDMI, MIPI-DSI/CSI, eDP Add initial support for VMARC RK3288 SOM, this would use with associated carrier board. Signed-off-by: Jagan Teki --- Changes for v2: - drop pwm include - adjust dtsi based on trivial changes in 1/4 arch/arm/boot/dts/rk3288-vmarc-som.dtsi | 270 ++++++++++++++++++++++++ 1 file changed, 270 insertions(+) create mode 100644 arch/arm/boot/dts/rk3288-vmarc-som.dtsi diff --git a/arch/arm/boot/dts/rk3288-vmarc-som.dtsi b/arch/arm/boot/dts/rk3288-vmarc-som.dtsi new file mode 100644 index 000000000000..0bcb9f067d66 --- /dev/null +++ b/arch/arm/boot/dts/rk3288-vmarc-som.dtsi @@ -0,0 +1,270 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd + * Copyright (c) 2019 Vamrs Limited + * Copyright (c) 2019 Amarula Solutions(India) + */ + +#include +#include + +/ { + compatible = "vamrs,rk3288-vmarc-som", "rockchip,rk3288"; + + vccio_flash: vccio-flash-regulator { + compatible = "regulator-fixed"; + regulator-name = "vccio_flash"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_io>; + }; +}; + +&emmc { + bus-width = <8>; + cap-mmc-highspeed; + disable-wp; + non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>; + vmmc-supply = <&vcc_io>; + vqmmc-supply = <&vccio_flash>; + status = "okay"; +}; + +&gmac { + assigned-clocks = <&cru SCLK_MAC>; + phy-supply = <&vcc_io>; + snps,reset-gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; +}; + +&i2c0 { + clock-frequency = <400000>; + status = "okay"; + + rk808: pmic@1b { + compatible = "rockchip,rk808"; + reg = <0x1b>; + interrupt-parent = <&gpio0>; + interrupts = ; + pinctrl-names = "default"; + pinctrl-0 = <&pmic_int &global_pwroff>; + rockchip,system-power-controller; + wakeup-source; + #clock-cells = <1>; + clock-output-names = "rk808-clkout1", "rk808-clkout2"; + + vcc1-supply = <&vcc5v0_sys>; + vcc2-supply = <&vcc5v0_sys>; + vcc3-supply = <&vcc5v0_sys>; + vcc4-supply = <&vcc5v0_sys>; + vcc6-supply = <&vcc5v0_sys>; + vcc7-supply = <&vcc5v0_sys>; + vcc8-supply = <&vcc_io>; + vcc9-supply = <&vcc_io>; + vcc10-supply = <&vcc5v0_sys>; + vcc11-supply = <&vcc5v0_sys>; + vcc12-supply = <&vcc_io>; + vddio-supply = <&vcc_io>; + + regulators { + vdd_cpu: DCDC_REG1 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <1400000>; + regulator-name = "vdd_arm"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_gpu: DCDC_REG2 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1250000>; + regulator-name = "vdd_gpu"; + regulator-ramp-delay = <6000>; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_ddr: DCDC_REG3 { + regulator-always-on; + regulator-boot-on; + regulator-name = "vcc_ddr"; + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + vcc_io: DCDC_REG4 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc_io"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vcc_tp: LDO_REG1 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc_tp"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcca_codec: LDO_REG2 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcca_codec"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vdd_10: LDO_REG3 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-name = "vdd_10"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1000000>; + }; + }; + + vcc_wl: LDO_REG4 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc_wl"; + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + vccio_sd: LDO_REG5 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vccio_sd"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vdd10_lcd: LDO_REG6 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-name = "vdd10_lcd"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_18: LDO_REG7 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc_18"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + vcc18_lcd: LDO_REG8 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc18_lcd"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_sd: SWITCH_REG1 { + regulator-always-on; + regulator-boot-on; + regulator-name = "vcc_sd"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_lcd: SWITCH_REG2 { + regulator-always-on; + regulator-boot-on; + regulator-name = "vcc_lcd"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + }; + }; +}; + +&io_domains { + bb-supply = <&vcc_io>; + flash0-supply = <&vccio_flash>; + gpio1830-supply = <&vcc_18>; + gpio30-supply = <&vcc_io>; + sdcard-supply = <&vccio_sd>; + status = "okay"; +}; + +&pinctrl { + pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma { + drive-strength = <8>; + }; + + pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma { + bias-pull-up; + drive-strength = <8>; + }; + + pmic { + pmic_int: pmic-int { + rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + + sdmmc { + sdmmc_bus4: sdmmc-bus4 { + rockchip,pins = + <6 RK_PC0 1 &pcfg_pull_up_drv_8ma>, + <6 RK_PC1 1 &pcfg_pull_up_drv_8ma>, + <6 RK_PC2 1 &pcfg_pull_up_drv_8ma>, + <6 RK_PC3 1 &pcfg_pull_up_drv_8ma>; + }; + + sdmmc_clk: sdmmc-clk { + rockchip,pins = <6 RK_PC4 1 &pcfg_pull_none_drv_8ma>; + }; + + sdmmc_cmd: sdmmc-cmd { + rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up_drv_8ma>; + }; + }; +}; From patchwork Wed Jul 1 06:17:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1429 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C56143F082 for ; Wed, 1 Jul 2020 08:17:53 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id p4sf17053518pgf.10 for ; Tue, 30 Jun 2020 23:17:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593584272; cv=pass; d=google.com; s=arc-20160816; b=Z6c6zxXrT3eUvcTfErs9/ZYl7XgwfbqqyrhTP5N1VSEmqtOSa+Y6pcJ1u99g2alV3e 2czsmOXVe12dAIpFfsqIJ6ETstinQ+/86TmhmhIHEgslVhEgF3ggR8YjbciL23uWQzh8 URvYigXDH9DtqLMkeO59aY5izIICjF+q4IQLfinWrFpBh3Hatj5H7wz++cuUX/urIyH+ bDAf7g2HjkK6p/hMVSTOLv0ZcZCDLPjZAIZfSki3q4GPG5uyed0IEmwEW1wfKwWskBmU ExPW8e68csL7rOoxu1RTQBC1C66l4D/eqIIZ+akIGydbDwAfTHs+f8OBJAah2l0+lQcf 3ZxQ== 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=GB6ggHm3PWNKmsRS1SQSl8FvMSqBCOez9emKs7+x9ko=; b=Aa68/dPI0JfcS0p5pxmN9XUQ0/ZDFbgFMyhrpkrGQDkb4FAkuMZby3NfcAclbugB1V Cr3sL/IT8TD6UFBF1OeP4qP6ZKcRhh/jTxz5sKG7zQ5sUKly3ej064PnO7KOG/50I86b uukj+K7w9oWpqE0G/DwnDgOj91NACzea2qGShlyBa/jtv3Yl8zRJMWpNcs9j68C+fB8j RVX18x2IEUVhKat3KKFM+18GITnBcm28ANW6hT8OdrkjMJ95WUHBP+dpH5jdlqrU7b8X zXRpPT0SCr1rY9/b9HwdAMxbkaiOD3R6+sXw0x2ASsMh5KQ14Xd2qHKwcjGBk0sWS0Cu rUsw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ALuNgxv+; 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=GB6ggHm3PWNKmsRS1SQSl8FvMSqBCOez9emKs7+x9ko=; b=IKZFzuln7bBkHBUSA6Q4eG9+SzkgmAJnC/2WkAwGNCaGOqu8gkQLUbxevrJOp+rnrv jpMRU3CiVKeNwCHznY+h6bRnGxHhozNNa/BxaKXJRHXjJeOSZPfDeMoyJ0Vj8EMExh4P MbHjiB3Yxqrki3+KXA74mwUsKTqcrCDw1PsHs= 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=GB6ggHm3PWNKmsRS1SQSl8FvMSqBCOez9emKs7+x9ko=; b=BSx48blKfDWLfxNQxtBMxfZvMF1qS/YFgb1RWFv7l2yxeX4ex0fCtIZ59mFEA6jiEl LtcMkA9bbT8XpOrJwAHpTfiSM1x8GyF5zs0TjzTCxemJRfq6x5D8POs0/xcawZ9nN/qo s8GN07l8ljq9SBthg4+g9nyjVaEyuaUJ5wyuqK+dSfAYD0A5/m7lQv2Z79nRc/mYZlya aVXllzJ4H8k4vFyyOAGNF8vefiyMkS+nxDmxi62KniPmDuOvPSHsc4VHe8amEf+J1MmQ qCDZqGI3jKwGinFaDFXzxBegH8MQR6x5++dhq/c5DePV2/ZbgJY6EwwMVs6+o/QVPeLo iU5g== X-Gm-Message-State: AOAM533yeWZSM9pqWLNGEfxbLXlL39qyP1M/ke5Ew8cHii0WCdLdHKM9 YKlVI9tdHIVuEk9Z7scJOmk87Nzz X-Google-Smtp-Source: ABdhPJyaqo3zlBZQP+Z0Jp7kjQebhwdbuFMheQusvRPqSAV/p8L3Nz2oabRwWsGlNlmr0htJvZTzhA== X-Received: by 2002:a62:f942:: with SMTP id g2mr15869557pfm.65.1593584272582; Tue, 30 Jun 2020 23:17:52 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:9f8f:: with SMTP id g15ls521301plq.6.gmail; Tue, 30 Jun 2020 23:17:52 -0700 (PDT) X-Received: by 2002:a17:90a:304d:: with SMTP id q13mr26126694pjl.73.1593584272071; Tue, 30 Jun 2020 23:17:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593584272; cv=none; d=google.com; s=arc-20160816; b=dntRrp72IkALk64JpudPIdUJ8B2JqzGyPcjSfNhyIcY4p16FhsI1ZFUjZUWMA3HWJB +O0Vn/IG2P6ygrtCeNURM05QdZNmy3yErIdEeFmukDE9cFe7/GYHp5Ht2vIF+KpulO9D qcONR0ebdec2E6oa7mF2QhW7ApUc2YrQs22a+aZ6kA6ayq/cZeGmsgIvueJyRJhVn7Ka ECQsqdrtgdS9wIhirUm9nmeI0BAHwfFPCqxob0x02pN5fSqn0tIhYigafjgU5wVQKVeU 8nhKSG21W9sdvQbs5Xz5AbQAQ/hk/4w0np18ba2+b1GXpxofjsWaKhwnd8OQ4hkyCxbJ ypHg== 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=2i13HrhbdyWBz2VSMHspL7oRwZeUoksbANwTdThdMao=; b=imTlpzfkqZGVhyxUJBfpdqxMFn+rUtMKkfNIj43h7mWG1y9hs0z6QM8xk53s0/ZH4i UL3DzJoHedrLdkIo1RgOhroL5q+IgzOHCF5OacWeIsyOEn9vrPTLamuXiZ9Wn8Rns8/b xtgPEX5+iRTPqcR0HujwGr8GgzpEM74Ji+3+CzeEYKVEpQDSAyvMEf2LluG977fHz4Am mOGEmglfUu7Op9irDCECi/grKaQ/XIs8vqFyhvom4cWmaaBJRBcA+N6/jgxtDsFVyRvz XD2L0wOBkijXHYJVpmIsem2NfnExAZzLfszd/rv7cJpFrl6nr/SXqSTo0cLGxEJO/DkO 04hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ALuNgxv+; 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 d20sor6786764pld.60.2020.06.30.23.17.52 for (Google Transport Security); Tue, 30 Jun 2020 23:17:52 -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:6bc5:: with SMTP id m5mr21147547plt.101.1593584271768; Tue, 30 Jun 2020 23:17:51 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:356d:fc3d:92ff:192e]) by smtp.gmail.com with ESMTPSA id n189sm4555744pfn.108.2020.06.30.23.17.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 23:17:51 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: Tom Cubie , Suniel Mahesh , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula , Jagan Teki Subject: [PATCH v2 4/4] ARM: dts: rockchip: Add Radxa Rock Pi N8 initial support Date: Wed, 1 Jul 2020 11:47:17 +0530 Message-Id: <20200701061717.143753-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200701061717.143753-1-jagan@amarulasolutions.com> References: <20200701061717.143753-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=ALuNgxv+; 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: , Rock Pi N8 is a Rockchip RK3288 based SBC, which has - VMARC RK3288 SOM (as per SMARC standard) from Vamrs. - Compatible carrier board from Radxa. VAMRC RK3288 SOM need to mount on top of radxa dalang carrier board for making Rock Pi N8 SBC. So, add initial support for Rock Pi N8 by including rk3288, rk3288 vamrc-som and raxda dalang carrier board dtsi files. Signed-off-by: Jagan Teki --- Changes for v2: - reorder dtsi include so-that common properties will visible to main dts. arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/rk3288-rock-pi-n8.dts | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 arch/arm/boot/dts/rk3288-rock-pi-n8.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index e8dd99201397..1d1b6ac26394 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -964,6 +964,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \ rk3288-popmetal.dtb \ rk3288-r89.dtb \ rk3288-rock2-square.dtb \ + rk3288-rock-pi-n8.dtb \ rk3288-tinker.dtb \ rk3288-tinker-s.dtb \ rk3288-veyron-brain.dtb \ diff --git a/arch/arm/boot/dts/rk3288-rock-pi-n8.dts b/arch/arm/boot/dts/rk3288-rock-pi-n8.dts new file mode 100644 index 000000000000..b19593021713 --- /dev/null +++ b/arch/arm/boot/dts/rk3288-rock-pi-n8.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd + * Copyright (c) 2019 Vamrs Limited + * Copyright (c) 2019 Amarula Solutions(India) + */ + +/dts-v1/; +#include "rk3288.dtsi" +#include +#include "rk3288-vmarc-som.dtsi" + +/ { + model = "Radxa ROCK Pi N8"; + compatible = "radxa,rockpi-n8", "vamrs,rk3288-vmarc-som", + "rockchip,rk3288"; +};