From patchwork Thu Jul 9 10:07:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1464 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3F1BD3F06D for ; Thu, 9 Jul 2020 12:09:11 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id v25sf996354pfm.15 for ; Thu, 09 Jul 2020 03:09:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594289350; cv=pass; d=google.com; s=arc-20160816; b=GHSAshgmCzgfUpr5b6yKK3/syrGo7OGZxeDKEOON2/onap4tGgs7IdTWmMJOQMSxuG cubt6cabuEnIjTdmwd+uaC0/iN9p1CWE+EUMECruO6AFrasEjDiWqa/phxRMQAAB10H+ nSEMtIz+IDX3GarK0K00Up504rJaETaybgbozpcaNroVAf2aWS1/CBtapl6aZHYlB0J8 kNsiVSnDqsq1/39XgEVZ8/iDizcRKmC7wdgR1YFo6rpoJmMxVREieyAN8xWlZed3QnMf Bfiz4nYxkkpQLfJAlj/OkKIDxXn/i3lS9wHq1Ud/VW6J9Cs8KSGHqVluc8mPIXKqsuqP B6cg== 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=VAaVzzI3s2gkorby5xsDhXsQc5qKg3KLlshmonbT6ww=; b=a2E0eB92w4R4MdDl7H70BCeOO5/lYgDTznq4lUOO2MbQL2bDEwHI2Wq1Z1S1W5uStZ 5N45qhfsCjj/BHBAfigTVETlKYMb0zKrT8Ik79HIofxDQzq2pnoe0Hss/JQkfQf13v6d git8ebVTOL7h5HJKzw/lUWSAUTdx9NcRWgGXp4dV1mXh/5hw4x3TJCj2fHWnHGeTMH7+ BZwFUYMtXnIznQMBtzh35ebEFwVmNbUR7paHa2s9QNDni0YuqLyhosKWCJkw9g58gmV3 n3Qhi73Rx1+eJ0xCvHGCCvzd6NI7HQAK5SO4I+MdoFsJvOSfSaEZPG6pp2Wo9lNEXxxB 0Exw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZgxOC2Nd; 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=VAaVzzI3s2gkorby5xsDhXsQc5qKg3KLlshmonbT6ww=; b=VO0SKRBNxNoJmhrQt5YmR0ptG+673bZWnzpiCBcQQzdN282tFgtcpScJds7wqHdUTT 9UUgP+nW69o18c4iuWjUVvob7JtVC0ICrpyBsgY1UicHdlGsGRfF3+hPKHoZEgE+8+5R i9Xpbw9S0vUoaP5LSoV7PAkbp7l2HomvY9NCI= 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=VAaVzzI3s2gkorby5xsDhXsQc5qKg3KLlshmonbT6ww=; b=XqhHaRNYBXlHpSymOrzQLU0RiIHFpDm39JRXeK8SOVBlklTx2IkHTmsXRdKjaoEmB+ TbAmkqlRdJ4rpbKGxJ9PQnUdNPLLNXpuCrMYX9tK7TJJp2OPJIGK4F2YKGwmdK5j3icS QRI6hPiIQH8mYT+CgKPbbSIM3ZY3wSbFsCFOzdDjzW6NZvcdvEV+f8/kcpEFv9EfHFHx /jqsUtFhHan12k24PcLDsqDQIHa1dI76TdKwo79YDrZ5wecJyz6btYHSvC69B7sDysjm 6VcDlY9h4c2kqsGltQF2tkYVKxwopgtsssExwNz6oC+v3yWlIUOE8ZGFtStqloJjHKBH W91A== X-Gm-Message-State: AOAM533A9HMw5HT3JrEJI830jd2Vbr2ZU5RzslJJHfYPWguT9vuUTz1i xvH2cb/i7OmYOROuqD2g2d6efh+k X-Google-Smtp-Source: ABdhPJzmF7hMb/ooC2N6BMw2ktvFgfGAkugrHESmYUXkB4SzTo2jXlpJHezSm7XVNfr90u67GBjSXQ== X-Received: by 2002:a63:de4b:: with SMTP id y11mr29763049pgi.26.1594289350005; Thu, 09 Jul 2020 03:09:10 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:6b02:: with SMTP id o2ls2186244plk.7.gmail; Thu, 09 Jul 2020 03:09:09 -0700 (PDT) X-Received: by 2002:a17:902:a515:: with SMTP id s21mr46810293plq.192.1594289349465; Thu, 09 Jul 2020 03:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594289349; cv=none; d=google.com; s=arc-20160816; b=K3DYf4BBDJPsayXKc7t525FJjE9o09e+/PDNGKdxWHQtsm8fhuSyKB0ojdROR6ilH4 xRIJwcU8j7StZwKKZtNJFoZiD/UUThreEvbNPQ+fa+c4EXaTC7iUrT5hzaodQT6SlDd5 DAXg7j1y28zauefETrarnYEzM4QIYbVvTpmtE0KPukmaow1i+AqfMMQfDbQpLfcflIHT +Bsym+EWcDenPAJWXlBJmwT0YdkW1iWn3Cq88SS8jQYBDTm9HHzmVs9B/f6jkBCGWYEx ztaGSaBfITPNirsEUSrGJjtlMkCUuchxdKqkxzMVMS6BfO7ViXnIA0kHel11vGkYmIXW tnNQ== 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=7GlKmsDfajxoEQByZOU5laddM+m8R3hyzOJ5BtugjyA=; b=Mp96XY87RglGQsJjWM6pjmenki15Gk72VuEvbI4CSw8fHRWhfbHKNPpFw4/f1CXyrR iQvyoj308WewEKE3EuT1oQrZ1SWnyctBOzXeWhDd1poYeAXsXvmOry9fV3YhJbIMgOa9 5y3zrYHOBW6fBFaQ1Qc4KK+0yiVQ75595obvvDXkEqTZufvncNI05KQDCebeQMmjZihx uwOSkNcJNhuVodFawjCtT6a/eb2QS5GviAgVRdyR2CnQfT9ae1l0yOyYIASEHtnXueTd 1BiGw7cZO7+Fy2x4cORe+RrGo1gpFCWLpWdEW2YLFurAHMBZ2Jt0KJVRwoL+fjJS8Ijq qw+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZgxOC2Nd; 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 d14sor3005059pgv.43.2020.07.09.03.09.09 for (Google Transport Security); Thu, 09 Jul 2020 03:09:09 -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:2d44:: with SMTP id t65mr43760200pgt.257.1594289349091; Thu, 09 Jul 2020 03:09:09 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:24b9:69b0:e917:1d11]) by smtp.gmail.com with ESMTPSA id ji2sm2076527pjb.1.2020.07.09.03.08.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 03:09:08 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: 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 v5 1/4] arm64: dts: rockchip: Trivial cleanups for RockPI N10 Date: Thu, 9 Jul 2020 15:37:53 +0530 Message-Id: <20200709100756.42384-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709100756.42384-1-jagan@amarulasolutions.com> References: <20200709100756.42384-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=ZgxOC2Nd; 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 v5: - drop redundent hym8563_int pin Changes for v4: - move i2c2 into rk3399pro dtsi Changes for v3: - move hym8563_int into rk3399pro dtsi Changes for v2: - updated commit message - add more trivial changes .../dts/rockchip-radxa-dalang-carrier.dtsi | 67 +++++++------ .../dts/rockchip/rk3399pro-rock-pi-n10.dts | 2 +- .../dts/rockchip/rk3399pro-vmarc-som.dtsi | 93 ++++++++++--------- 3 files changed, 80 insertions(+), 82 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..450e5bb5af0b 100644 --- a/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi +++ b/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi @@ -8,36 +8,44 @@ #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>; }; -}; -&gmac { - status = "okay"; -}; + 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>; + }; -&i2c1 { - status = "okay"; - i2c-scl-rising-time-ns = <140>; - i2c-scl-falling-time-ns = <30>; + 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>; + }; }; -&i2c2 { +&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"; - clock-frequency = <400000>; - - hym8563: hym8563@51 { - compatible = "haoyu,hym8563"; - reg = <0x51>; - #clock-cells = <0>; - clock-frequency = <32768>; - clock-output-names = "hym8563"; - pinctrl-names = "default"; - pinctrl-0 = <&hym8563_int>; - interrupt-parent = <&gpio4>; - interrupts = <30 IRQ_TYPE_LEVEL_LOW>; - }; }; &pwm0 { @@ -52,10 +60,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 +76,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..9ed5b27d715c 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 { @@ -297,16 +265,53 @@ regulator-state-mem { }; }; -&io_domains { +&i2c1 { + i2c-scl-rising-time-ns = <140>; + i2c-scl-falling-time-ns = <30>; + status = "okay"; +}; + +&i2c2 { + clock-frequency = <400000>; status = "okay"; + + hym8563: hym8563@51 { + compatible = "haoyu,hym8563"; + reg = <0x51>; + #clock-cells = <0>; + clock-frequency = <32768>; + clock-output-names = "hym8563"; + pinctrl-names = "default"; + pinctrl-0 = <&hym8563_int>; + interrupt-parent = <&gpio4>; + interrupts = ; + }; +}; + +&io_domains { bt656-supply = <&vcca_1v8>; sdmmc-supply = <&vccio_sd>; gpio1830-supply = <&vccio_3v0>; + status = "okay"; +}; + +&pinctrl { + hym8563 { + hym8563_int: hym8563-int { + rockchip,pins = <4 RK_PD6 0 &pcfg_pull_up>; + }; + }; + + 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 +322,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 Thu Jul 9 10:07:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1465 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D0E503F06D for ; Thu, 9 Jul 2020 12:09:30 +0200 (CEST) Received: by mail-pl1-f198.google.com with SMTP id x14sf921322pln.18 for ; Thu, 09 Jul 2020 03:09:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594289369; cv=pass; d=google.com; s=arc-20160816; b=U7jqepMDLe/Z8cNwHNp86T31tBKnxauOtKrYadBDAttSYnWthQ68zLBHISEBB7pIf1 HXWx/C3weSAPixQLsrMjyJk7+jXNt/i5GfERWvIZq3dLe47f7WOZvIvCQwm4LOPgEBuO iwjxBdH7G0Dh/6ctpcm0aJi0pK1ZtV58Zq3o7Z8SMIx2sWeIAmAVY9PoeCEVJjMr56jq KLjOlqOVY9nM4UrpTBh1Vj8AyDYC989YelZeytHd8WqyTkqRZteCKumBtqlghPDa/7q2 C8ffWXFJ6Gw/ky7r5lzs6jAgYX81vb248xVPPiwCuXxXzvyAHHegdscMyK838t2JkeM3 B5Lg== 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=HRqKIrWm/6VirgszygyDAgCiMG9z6TLI4fVOfcDDgBA=; b=eYci06lWrvD5uRsAQ2HJpwsAAuZRGUo1cPzvWOl/yGHLMiEnGnOPb/mpuT8jCuCb57 DhEEZXY1Iwd8PLoK5wsQRJVsYRl4qCNIgoWLcfHHcq8Y7ocPTaeOIw3AyuXne+3tRbF4 f6DGB3hX2Po9JvOTO8KWgdBjjSZ2tihmKZSB5GRg4NQYldDzzRBiElN7HH0zgrPEaWID jOjJLncFSnTB8Qrops0Zff5e8BEIWcYWAdymtOzp/+8SSIKSpzLTG0/L22QYxl0bHvTM f7yxV1qQDFCTWNsM/gRITgPDQPxEjfj0HhV+sDwFIaciOenl8pUdWlHqfxBD/8O632mE NTkA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iQZYnRQy; 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=HRqKIrWm/6VirgszygyDAgCiMG9z6TLI4fVOfcDDgBA=; b=moYojwRRzF+NH7dKmMxHEk5iUodU0/UPoLqdi9i/y2dYnvmoNsxYqfJIWHXmRkzuhX cmRZUjIPtuPYz35hTmWliSP2ybytBTP8LfeJUqO2RTcD55RJHI4eDAPRFrk7RCutxp2v QsuIA0Hes9ei8lnZXbeJuvUNqt2+F2Dze7iFw= 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=HRqKIrWm/6VirgszygyDAgCiMG9z6TLI4fVOfcDDgBA=; b=evZJE0KTnFGiPkwj1flGygkzodAynMPbRIh0OsZ2Tu9p6leUtvPfn9jsZ+0uBiOySF 2qJKUKAlM0/8D+RD5ltFv7KOXxgOakSfktxHbZfBxJ1PwoDrcmyVv4TCx+YewnfuOXBl 8p4lUrT3lAqPBcKgJA6IktWMhdaeT/oY6F41BJ/t1N/5cBpyUAyCA/oMgXU741bau63t Xqoj7/ShUZqv36Zw9T0JeLFD7JIcCVGFtSuL6VBoGTFWDJKYLVfXFBZ1jI1wAI6O6g56 /DCinZpXBFq3pZKQYb4ymooEZvUXrKEhJSLIJnpCxfgDcRJ1gX0Ajf8j26XTbGNOlSR1 Y0CQ== X-Gm-Message-State: AOAM530uWBP8dlCcAifJV6sjcYuR2LhC+Ax2hZy+rErni58ylU8bsqFy ULwUi1ztT47hbbTXbWmTaY6Emfhr X-Google-Smtp-Source: ABdhPJxldVLV9ykVcfoku3OlPUEqRUXSPIhYqNplK1R/KRxoxPNIaVuYrmrS6PE6wIqZI4FXXSuowA== X-Received: by 2002:a63:fc09:: with SMTP id j9mr55222879pgi.308.1594289368998; Thu, 09 Jul 2020 03:09:28 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:ce4d:: with SMTP id y74ls1771458pfg.3.gmail; Thu, 09 Jul 2020 03:09:28 -0700 (PDT) X-Received: by 2002:a62:1b4a:: with SMTP id b71mr49739108pfb.9.1594289368520; Thu, 09 Jul 2020 03:09:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594289368; cv=none; d=google.com; s=arc-20160816; b=HphdYS3d4qaB72bht8TjIqmUlVl1e8w+GYSPdEUJ51BfstOgR+3kXF5EQYx/ymBIuh eEUEaCVN+AKzYCRw+dKT9l8QHtb+nKMhr18S/o6ELeBuKuSDVpbeNhubopZGXv5rTquP 8wPYkOLokEr3nVMXlBSLvV4BbSQy+yijwhi04kjN/eCPu6eHihQG3/qVso0G/I31luw+ dr0MOHAsgXcncZ+m0EzKcgU86X/0EM7delvyCNOITehCMKhA/7Q363GSh7MSszCmTHFv FOqU641uI0wufyB70CEuOKWmZwC3cBdCO/CD+f+75cQTkwiSCZ21fxAPT1SRQekWYzmU 4xxg== 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=EExkFy1OcEoe6hs+RoO17R7D/BdcPHITnB4C1QKxAF8=; b=eR+LY7LLX+yy0K++du571LqIH8X42G5G0tU1FnQniSOB2vPOEnAKRdAxd+dY6vfiwK vHIW7pDvbsHnD+rtnjRL/JGXhiE3T2gRZmwzY5PK/naPUGzHEooJNJQD+DEj1EWZB5g5 ZoBicyYDyxvbgUQQJxS+u2AMstPfJZx1PXnf9Z2Sxj2MF0PHzfedDzCAiLr9/ccD2W2i FdIItDhLReDAQ9hQa7SR0EIAKBb87OXcc/aaYoEEMUGKCJsGF1y8bXdg3ngd1JNre5cc byKIgYId+C2N34LJD0DLY/lkxJ+/TPhSwinOhQgMGy4tWmo3IgfonpOtkqY8N4SEFE2u 98XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iQZYnRQy; 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 f15sor3140442plj.50.2020.07.09.03.09.28 for (Google Transport Security); Thu, 09 Jul 2020 03:09:28 -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:d698:: with SMTP id v24mr23031167ply.163.1594289368237; Thu, 09 Jul 2020 03:09:28 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:24b9:69b0:e917:1d11]) by smtp.gmail.com with ESMTPSA id ji2sm2076527pjb.1.2020.07.09.03.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 03:09:27 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: 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 v5 2/4] dt-bindings: arm: rockchip: Add Rock Pi N8 binding Date: Thu, 9 Jul 2020 15:37:54 +0530 Message-Id: <20200709100756.42384-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709100756.42384-1-jagan@amarulasolutions.com> References: <20200709100756.42384-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=iQZYnRQy; 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 Reviewed-by: Rob Herring --- Changes for v5, v4, v3, 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 Thu Jul 9 10:07:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1466 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 29E6D3F06D for ; Thu, 9 Jul 2020 12:09:42 +0200 (CEST) Received: by mail-pj1-f71.google.com with SMTP id h93sf1263191pjb.2 for ; Thu, 09 Jul 2020 03:09:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594289380; cv=pass; d=google.com; s=arc-20160816; b=PwsopT55N4rfTEPBLtlZcNwzWoo+ZRJc6x/tCbNS8LFh+w9wtZkaOwHOOd1eyRyVUa 198jWOI9BqP9zsyV7rKcZoM9Cdm4TLNL/FrVCH/4egFgSrwnrIU3Lx40iMC2RrACt87J aeyjLSl49Oe3JjCjsgj6FaIzP4t1EhEmXphSRW1glddpQRmvVwXZUWeZLWw/mSjH822T J5LPgpGDdT9pajz4VR/SejIJtDjy1k3bEy/OXtANsi+hqNPtdVJgRzfYRgxGvabS4fNU 7/bRGVWHDsty0gL/2pts6bTQh3+oaky8pw/Ab+kcz0m7xkWFxwEuniTPxd3juDCD8n/H 74Dg== 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=9cJu0Z9aqr2OAt6vWeO99/fi4bv3mu8OY3M4mIU5bno=; b=U/CPw0w3iBgA9d0+q7j2CeP21i4fj7XXbqSnNRZlBI3T0omeWfb00qSDjPOF7Zf2iu D6lamkRjn9z/CH/Ze7lFp4W8H+JkIWTrjB0JYClSwFayOOPPp7ThJLo233ZqFQdLtg8i 2OfEqjx6mEXjQ0lXicd+aDNmxXal6C53k4NM1PAk4vdeLQl2dNqjJKCf4O3Xilx8nztT +plgfotR7oehqUtnEYVnE88eqci21UwjLavs+RrWIe0Fbzdk/+Qv3HIFgLdhHRngd78P KbP5E+bLMdG1/9n1IEOIP2xOZZlrdpEj2DTZ9labF+lwGGQa+aJiojbJDcZ2ZLVsg5ZV 26Tg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=k7ImIHHc; 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=9cJu0Z9aqr2OAt6vWeO99/fi4bv3mu8OY3M4mIU5bno=; b=ViLCDl0jnkzRQ5GHoUleDN7f8WoYGqxkNGsBRvhy/RuOiJTd94CoF+iJzBd5d6Lzzw 0SryzKGsjFp9K5iVK1dLVJwGchSnURdr4WpiLuHoSJun0RDLhQ/mdX+6TUOySHMPRPl5 S2wdMYeFero2aIGj0YVsfIrHt8JzdIy9w67Lg= 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=9cJu0Z9aqr2OAt6vWeO99/fi4bv3mu8OY3M4mIU5bno=; b=syNOxuZ6oPBcFAam+OAuWn/V8TK1v0gVrx8O2xH2ITvtFi/lQMNRqhiHOPPfWwhl1K zwUgqrTOffDWWxXO1BTe1x5YhqIDnXY3y4NQbr5ZKp5/YiEjs/ozX5RsFdlhFOWG1g3R gKbiQHJeiWxabjPtaiBVO4pzbAlPXtKzDFUfuFthVMPRXhbfAnuK5sBM5j5zfv+zewZ1 DMQijB/A8YlsT41Bjt4399izGSLLx5+71ieNd2GAQYR9dQknHaCoIxs2oFdQ142aUwZW yHPvicCpL3smP7KzWGum0FhnTa6fc7XJusl7vYC0E8yPC/wVdcDHuDfpXP8sneIhMBfT 4arA== X-Gm-Message-State: AOAM533J/kH8DZnqrsEX2ip4+R/GGPBmK7lxdKO/eD++dU8EzJ6G63rH yujZM9i3JrXKSbmqdxMcrpC+dvej X-Google-Smtp-Source: ABdhPJxv9UoNPevaoMoE760ocnsS3bbzsjnE0t0hXGPQAakYPBUpjownCB1MWhBlP5mFHjJRiogR1Q== X-Received: by 2002:a65:644d:: with SMTP id s13mr54104847pgv.103.1594289380658; Thu, 09 Jul 2020 03:09:40 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:ce4d:: with SMTP id y74ls1771659pfg.3.gmail; Thu, 09 Jul 2020 03:09:40 -0700 (PDT) X-Received: by 2002:a05:6a00:84e:: with SMTP id q14mr57807511pfk.309.1594289380218; Thu, 09 Jul 2020 03:09:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594289380; cv=none; d=google.com; s=arc-20160816; b=wOmGpkgGDH5YSQNBNJ5rhQgZoeE+pZLhndsvGQnzPWHTrKoqdp5HUxbpfSfFeimkJx +WHAodrUL46DamAE4jwZy0QOu5AzjfN48YAGSDNh2+YfZ9Z1i6uPq/Lk9o1nrb9Spo0r +iPoUoU1PS549rChpsgEqDVv0MP9cJvKe5VitYE8zqG9328ZGZkMWgUrvbY2slCkIoP0 H/iUFVxyIKP2jdWVww+0YpWZm5As2W7bxKv1ZC1o8QB+OGgqp/Cj/C8tQr7N7U/nhKuC qKQEAhUxfY+XpMyS7JM+05ZO0ZmNKXg3cIQZr89LIpD4UTFj0WShsVZ/6agxTjOS2QFU PINQ== 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=5zxC1xQwcAxpqIOKvr+x57/yu/LASlbZKZ/U/0+Q6YY=; b=iKqgDRfE1HOefx23jklexmgk80bsOgP4SEqVesZu9G7QpdzFmP0qY56sxCPaZiuE0h V3cfEN5XYt9FUXmEm+VHvfjeLOgA6mCSO5zaQ9twe5+f9hAavFYAR5w+9NSwI8iRGDYw kN+Mj5ggjUbJbVT4MJDyKBL7U9IxJrb4YxKVT2+qJmyTtfoBOf2xfrgKoJgo+WL7f1E2 Wm29cWBbKwBYUrZYVVVwA/jkvR68/mQiNJq9EgonMXeBhng8fq/Evb/RxiBiicbDbudZ ywUtMd5gEcBGc4KC8xgYdIB4ZILaxmRAU7DWSS92T2HVR9F4NhbD7ONE7UCyK8yzHZeQ k3Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=k7ImIHHc; 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 k14sor3245376plk.15.2020.07.09.03.09.40 for (Google Transport Security); Thu, 09 Jul 2020 03:09:40 -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:9a02:: with SMTP id v2mr39443442plp.59.1594289379870; Thu, 09 Jul 2020 03:09:39 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:24b9:69b0:e917:1d11]) by smtp.gmail.com with ESMTPSA id ji2sm2076527pjb.1.2020.07.09.03.09.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 03:09:39 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: 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 v5 3/4] ARM: dts: rockchip: Add VMARC RK3288 SOM initial support Date: Thu, 9 Jul 2020 15:37:55 +0530 Message-Id: <20200709100756.42384-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709100756.42384-1-jagan@amarulasolutions.com> References: <20200709100756.42384-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=k7ImIHHc; 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 v5, v4, v3: - none 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 Thu Jul 9 10:07:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1467 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A25353F06D for ; Thu, 9 Jul 2020 12:09:48 +0200 (CEST) Received: by mail-il1-f200.google.com with SMTP id y13sf967145ila.10 for ; Thu, 09 Jul 2020 03:09:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594289387; cv=pass; d=google.com; s=arc-20160816; b=TiHjlZgcvi5/fQNfte+SynEceD/t91JzkTgGlpC3Go+fLiM2c/m1DYHHnkV+2ck0Aj INN7ur8be7gZXdx7KuFGH+q87wCVfQMLALX36Vzv0FbHxNpks9aIR0zdUGvx8Y7yH585 uOGChwvmsuHSmRNqHF5lMout4OJTsGLiLB1trTgjnbuBv8g85U/5F6aFGnYnaagWJlL/ SvUK0fPFT6Bdx2L6t3OONv9xgVfhzTTeKemHcJisObXwdCY8vF0vsNLh9e6W5k56y1gM 99ofENj/c9ZrcrG1orBorvsHeMLDQTLA71KRxsqyHjF+il0IVV6mjwzFdqv/i7gjDvoI iuug== 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=ZDVS1CuvNafqQENefvzoYC3t4J9uWqqTMM2OhfrlrLE=; b=Y6TV+l40/F16DjgZea0Y8icJ9hRsdk1cWHzfxt6vnve4IJ/9zYbpqFzPRsn3pSh0Rh gTEFVPEY0VduukH7kdV7mx95IfrBJMUXTkraJPqiyPx1Z9x8cH8z62B/BUnxcCmnEpac BFrR7C/jom8uHVRkxG3VDgQVYIR4s5gQ61w2yorUCrPzhKefsVw/5mrjGCNv2gKYzKzs Kmy3ZljnryD1oaTqxsSvBr0CxIamO56FsYP9qHLJqYL0Vct4cfkbji5wt1vvmgukg8Pc eyL4QJvaFSzMObKTloaMjXokJB1acqaClBEfSsGM950QXD2Ytwsld/IyxSx/sovLJQAm LLkA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WbXnCsJa; 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=ZDVS1CuvNafqQENefvzoYC3t4J9uWqqTMM2OhfrlrLE=; b=FEeHQFvfcCMaQpXwyGlipWu/+cTAbEBHQzZTOnF9d2ZQFI3XYV9LdWaNy9BJnF3SCN 7Ym7ie2zXhYlzmTAOYn+g0GB5lO8U8rTbR1IbXUQYx36w1bAMyQevPGcUV960YqMoKCX cT/hOkNE37b1PpLXtQNrlyaHcBB1vLZzJovPc= 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=ZDVS1CuvNafqQENefvzoYC3t4J9uWqqTMM2OhfrlrLE=; b=bJGAWRK32uSLk68JiZMieEReHya401v7Uw75E/SJ72jreuEKHHOS7McM3PvKjfxBuT ugaqZaNMou7IyZo/MY8ghVuotNogeZMNhH19VZIoZniiGPEM2hF87o18/MdZ7IspOGdn FheVjQKyETr7CMSMh5aSmLy2yZERL/qRiiOJ9vzhUipL/pnXxgPw79EBEDr+PYuFb6x2 kDv/C/Gdg8COTi8PGrTONsPmrcvqvR/1dbyT/WlTVyfgTsNI7JwRjZHErPCQVGJkNyMj GI3KPm1P8GBqEcx2ABkyYOWbzi8AWlRQ6MlAIp0HKhzzz7g7q8BX7n8aWZrpL9tUg+Iw uIbA== X-Gm-Message-State: AOAM532dbhc/B8k8wPEt8Dsj0f4wEmjSyAy2BcpsVfx+LQzS8l4/GjMt yyg4wCYooUl99pxcOwJTYScG0RKr X-Google-Smtp-Source: ABdhPJyA8TvTtfFo8m7uJZkaa9tkgcJ+RhOEwTDKF+YzijlQbCbnak76WBEzZB3dq59YBi4Sx8pVig== X-Received: by 2002:a05:6e02:606:: with SMTP id t6mr44915064ils.181.1594289386993; Thu, 09 Jul 2020 03:09:46 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6638:d0a:: with SMTP id q10ls810582jaj.5.gmail; Thu, 09 Jul 2020 03:09:46 -0700 (PDT) X-Received: by 2002:a02:9642:: with SMTP id c60mr69969857jai.71.1594289386605; Thu, 09 Jul 2020 03:09:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594289386; cv=none; d=google.com; s=arc-20160816; b=MgYZ5PmMo3XoGZYmA3KwYDwn8fnyWGDHBqyhCtPXMXWhUH6OaDoWY9VFYwXNxQfqH9 VEbvX7rQVFzuAG/nHoACK4WsdVTMyG93OBehzA1sg1TPcDCh/V9FlNrT/SzWQSqA1A75 TMI/0R3oDhCC3cb2ziO3pmyvLb9XoY7OjZ40wyeRDVUEd5tL28azaOPOfgfKnMTJC8S1 UEL3jFA/GMRMvmAtSEhvnhOVsymX3Q6+LofcbwllLkNdkJ3OgZIsxVyTDDwcr1MsGcWx bmHxBHhjeXQID8nd6+uBuNjJ22pWbKR5gY5mJ3Wr91AUm9mHiMQ4dkRPSfNLMch3N44h PNgA== 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=76l8qPKsbcZxqhpyjedMoRnwYdl4LVn9sy/6xNrRrrU=; b=gAx4gUn/kgR/PuxGludJrrpsLr1mNQJ3pmiSR3fVOPs9JvJWE/LuYxwTVPUw05L7ro By1Qsgj3wEEuo1/g9ZCtoOnZfX79HdSVXUYUBfRP+/aDghK+lM51zQ1jfLRAAZrot1Mm 4fEo1qR2a8Osk+vGgIx4qrssmKs6ardM4/nKJOAv935KR+vvhW5+axJA5ANhDJ0yw2dm mHgHUIi2SsNp9e4wYQD/xTiuDaSnz8FLwD0IN5VRiw+Ob08D5vz1Ne71n5bWKgCK1Fb6 rQUgfK4E27voAM5ApkAPnv78+XHbqjHqdUGbEnYiSblet2VHWNyv0WX0n9fznJ/HgVsx HAtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WbXnCsJa; 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 207sor978378iou.50.2020.07.09.03.09.46 for (Google Transport Security); Thu, 09 Jul 2020 03:09:46 -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:a60a:: with SMTP id c10mr14992743pjq.117.1594289386275; Thu, 09 Jul 2020 03:09:46 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:24b9:69b0:e917:1d11]) by smtp.gmail.com with ESMTPSA id ji2sm2076527pjb.1.2020.07.09.03.09.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 03:09:45 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: 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 v5 4/4] ARM: dts: rockchip: Add Radxa Rock Pi N8 initial support Date: Thu, 9 Jul 2020 15:37:56 +0530 Message-Id: <20200709100756.42384-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709100756.42384-1-jagan@amarulasolutions.com> References: <20200709100756.42384-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=WbXnCsJa; 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 v5, v4, v3: - none 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"; +};