From patchwork Sat Jul 4 20:16:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1439 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 B6FEF3F03F for ; Sat, 4 Jul 2020 22:16:22 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id v15sf26240114pgi.3 for ; Sat, 04 Jul 2020 13:16:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593893781; cv=pass; d=google.com; s=arc-20160816; b=qYZZLJTkuXEaMgnBD9WZ/utmc9c42mRrw2DVb1JviFRsIs010OcbzlJfSn2TLB6BEI 17hDCshRa6T3RgWHmbtwY3VXaz6dcjiCgy2u4/bYbdHGirqAsv/VBH1CjzqLkTsz2Nxz q3QL0GrNiwHFlxDMlf2pHvMxtMjF22S8gmkzIO9MIGqHNBhu7aF5FbT7r4kMqAWTI7mz 0s9ol8hsyvFKhHQbW633mhGClb/Ruxp4mJUm1vbYSNAfNqiuV7pQFOAs5qtVsDhzgZws AKEHEspxaytZprjBAAEfYM4TXY46a5ey4+Uwi2k19khBeAnnQfCg2qmcZ+ALCn6VmLku 1SxQ== 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=S7hSw70YZcz3YzgUA7cCLLOIO6TvsThRvcxWbkYT5DQ=; b=k65iTPKHlnzUtgHzXBS6yPTaUHBovC8K5C6W0eWFkJOfysf/st25j3sC0J3tH8XBo1 bOKszd7z8Anx7E15HKOSfX4J36z0pOpLmyYS6K80doJUHMRNaCqj79R8hP/3FISk7zyC aPxvqS3xP1hpsUHMKZkqpnkLVJms0gnPtyUtwYQKhVpxnI1y0f0zHwtG4fOIumwDooLZ 92b+6LZqD0Q3T/xtXl5TiHeeba2kOemJARm68hK1o+4u6BtoYa2aaNlEuc8RQ9uwshpO fI4C1zgWRLufvUBzE6AEf8oijIQxJt4fOi+G2jMPFqWHgbaT/W9g0ILoSKnVPqKb3fDQ LxFQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kCsTO3lA; 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=S7hSw70YZcz3YzgUA7cCLLOIO6TvsThRvcxWbkYT5DQ=; b=SC5et1/wv9laYK8PU59ynUeCb1ZDrIenGsiVH7axYii3PM1IJyZMtgIFuECx24ubFB npmPaZ4t6y0M2xsHCFjym2fsuy6S692KIvbO1FbTvZieaMuZyOduJid9SMj4duYg+cHt /Nn6AgiGByimJ97JA+OgWSgc7mGlt6j6YH1KI= 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=S7hSw70YZcz3YzgUA7cCLLOIO6TvsThRvcxWbkYT5DQ=; b=s6DZSdalleJPdvYLOWvADu/UVqHfAEyddg7lDBQE82ukimmSMcL/3mBuRYrNXDzBzu f1fffvDRsp68fi8xADQmAf23l3N9B5+12JL8XRktBdXwf/v7JKiltuV0O/O1uODdilMZ CI4BX3ISFNmWcqizEC/Gvmw/Egn2tWAKssLigZ91dei74R2GHFUeiXVITqk+kgYELWZ8 7Sb2qz+A7wOQ7fYDEaSWpzzjpusu7BeHizd4Kj8VuvTGzx7b7frRGYigMqYe3RnnsMl0 8w23qQIk7VH6j41xYfGI+PfM5zFcLODm8aPPjntkq/w/zxC4pj3DQP2DLMvSqAVxJ+Hl 50cw== X-Gm-Message-State: AOAM5304I0zyXANQUwZoY3gQEbq7xnXj3TuELqNpF/D4UUGn1TU6Vaix O39A8EUO1G3n0Zgptrqw8Wnv0WUk X-Google-Smtp-Source: ABdhPJxAwh/tozSbDXcD5N5Ncl5fxaA3+mwOGcEZjd5nhQC3ffVzPYF4dwXVfbkaauG+qDwR8/apKg== X-Received: by 2002:a63:141:: with SMTP id 62mr33206832pgb.366.1593893780837; Sat, 04 Jul 2020 13:16:20 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:7b91:: with SMTP id w17ls4503154pll.10.gmail; Sat, 04 Jul 2020 13:16:20 -0700 (PDT) X-Received: by 2002:a17:90a:254f:: with SMTP id j73mr33928459pje.16.1593893780327; Sat, 04 Jul 2020 13:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593893780; cv=none; d=google.com; s=arc-20160816; b=Su05nDDnnfP8exPNTTqWvqJODZAJpzNQbkeYYbL5J9gENb+hUXnlUMWBP6fgv6EQdM +oOxXBaHzuICMfeXZIejgY2tyE/iiZZK641aaMTH21QuqgKbWkEPJW9Q8tEObZlpTo9V YYnXdnnH25mD1+Bifa1tp43KQrXcfC3ewqbkEnR6Io6NyCtOz1jSyvF8eo1eISEsHjRI o+Sfy/qw8cUVU7sRbAzaHbUO41F6Ktepv92zMZdQ8MxaUGAECnXfRQkFqtyRjSOrVswm xyH6pHkOrppm0DJ2V+tuo5Gc2P6px5Yp7MVA3J955v/8aEPbiFV1stjX6evBdmLCe7Ya fgZQ== 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=1LJ8XZzAMnwatcyvnEIkzckG/GwAtPASUgyz1CJ13Rc=; b=WHkHDEFJyOy1Fwn4ApUAEzSgzPtmpxyz5wBhRMzHbbF+lV5c+RIPz407xDfS7ndgAF kL1OZnOTiEMeFwDj7VGbkg5MFYT633Wml225wUqgZiN8U3oMvfOrzS874YxR8K1pNCgj /oN35O1U4CofL+AE7VCMXEaetVCglsL6KznXsaviqA3KolH/rVtsyX4hmm0/+IcIEnA2 G/jLgctHfPdowVTm6O+ATrx9gf5S69WSsLI2yxMcOwAIBumjyIufB7wzVJGp2sNLZ0PD /lVfC++NPkTlYzCovGPYTZ4CxSEs6318WUT4U+vxad4MSGdb+rEft8hIponUt/ofG+gT AmFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kCsTO3lA; 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 j19sor20426472pfr.16.2020.07.04.13.16.20 for (Google Transport Security); Sat, 04 Jul 2020 13:16:20 -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:8b42:: with SMTP id j63mr35090427pge.131.1593893780036; Sat, 04 Jul 2020 13:16:20 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:bdf4:3289:4b66:dcc0]) by smtp.gmail.com with ESMTPSA id d16sm14960791pfo.156.2020.07.04.13.16.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jul 2020 13:16:19 -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 v3 1/4] arm64: dts: rockchip: Trivial cleanups for RockPI N10 Date: Sun, 5 Jul 2020 01:46:01 +0530 Message-Id: <20200704201604.85343-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200704201604.85343-1-jagan@amarulasolutions.com> References: <20200704201604.85343-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=kCsTO3lA; 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 v3: - move hym8563_int into rk3399pro dtsi Changes for v2: - updated commit message - add more trivial changes .../dts/rockchip-radxa-dalang-carrier.dtsi | 60 ++++++++++----- .../dts/rockchip/rk3399pro-rock-pi-n10.dts | 2 +- .../dts/rockchip/rk3399pro-vmarc-som.dtsi | 75 +++++++------------ 3 files changed, 73 insertions(+), 64 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..6330ede90e35 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"; @@ -35,8 +66,14 @@ hym8563: hym8563@51 { clock-output-names = "hym8563"; pinctrl-names = "default"; pinctrl-0 = <&hym8563_int>; - interrupt-parent = <&gpio4>; - interrupts = <30 IRQ_TYPE_LEVEL_LOW>; + }; +}; + +&pinctrl { + hym8563 { + hym8563_int: hym8563-int { + rockchip,pins = <4 RK_PD6 0 &pcfg_pull_up>; + }; }; }; @@ -52,10 +89,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 +105,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..9d1dadb94380 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,13 @@ &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>; +}; + +&hym8563 { + interrupt-parent = <&gpio4>; + interrupts = ; }; &i2c0 { @@ -298,15 +271,29 @@ regulator-state-mem { }; &io_domains { - status = "okay"; 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 +304,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 Sat Jul 4 20:16:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1440 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 43AD83F03F for ; Sat, 4 Jul 2020 22:16:27 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id z187sf26101328pgd.11 for ; Sat, 04 Jul 2020 13:16:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593893786; cv=pass; d=google.com; s=arc-20160816; b=aJJVdePEgg4yKrpEx2bXVUzMFZ5SzSX7d8sGj4wXuYeU/Yr9UmPC3m8qKKp5NLpGML 0PwkbBzNhigQDY9sgPZ2FPOXT39X+1U5WFf9tyd/ZpjhtG5C8l/O92nugJRbBJZyGp2T 70GG+Di4xj4xtaHxbbveNPBp8Iuo8Ayq16CN42NXPg8DevEKRS7eipxnX1ZLCIN74rIQ zSmaxkqMYmAToZXGkIx984uHQs/SHRu3iUS1b1YXLTdCTz/pl1NmtaNz3fQ8suDsQQIb nSVe/Hy0kbhx7lr3wNZ1tKyP7eHYA5ZLers/oI35Jm3N1XBfSs0jQJnUsXRG4zC167WT 9OPw== 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=J3L9dutCm2txOHKIF6MLpKeLKyMiQiDmXnraSNLv2QM=; b=EwcNmFL73MZqztpZ2VkA5shACT05r3Tx22ftY38l+CB4Pzz+EGVKN8upCzUYrRs0Rm JqfakyydYtvehAN/YgHB8s6Z1xEyMbuw4f52Pjk6tPBgkcFBcabNXlhLRjk7G+qd1fMx yYON+JsOUvVdCnp2YHph171MW3Cqp4BlTdFKkQrZtOAh0qQLlh32HT7vL04fJgNUSHyF opZs6MR/SkrLlqElGVd3Qsxdd5YrWSNAGBmbrFvdP38Ckf/sSnbOt8vRReKs4sgnvFUp VpsW3NILKj21awI60jNdK86LoNtQ2+iJah9sj0c+SaQWZFEkKZ3+AbiS6HIQ4myWgIqt hhNA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BCVdtmJK; 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=J3L9dutCm2txOHKIF6MLpKeLKyMiQiDmXnraSNLv2QM=; b=eNtkvbXOMv2SwbsWOgRvYMQUwhmu+pIp3mmdkvAVvQ5ljnbO2SNvzMRKFbdYLt/tzr ggnDXYeEZmaSHeuhC7ZsKZC5t7Lg9hdiwcycflfiRiOyM2zw8/ZMNXybrQGEw0trogAr Xv4ir0pfrMzCNyICCx64+bkVjuWvpMDc+rEv8= 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=J3L9dutCm2txOHKIF6MLpKeLKyMiQiDmXnraSNLv2QM=; b=Y93v2rTkyoo/CSe2rflt7r5jcZ9DeFdZvK6mCBl4HotiikBXBcCfbiEASbdDDrJ9eG 4iW586152Fzuo9QTffnkyhkWo/Mm6GHGT8llbLzNo3e1tJeNQ1qA1AEXTxGx7xOCFV1k hh04HbT7oIfRu2Zl3y7Y3esWbilgIMqrZ3GsKrBLmvivq114XYDk50nYb2mDWbvQ+u1/ PTm6rJJ747N1G+U9xbDe4ZhOh2OChm1HOB6TYsqIN/IWDJASGUUx9WSE6+18+KuBFJh4 LD1GOu236pI/LTcsTNVlEYghd4GITTq71Ima31ZhDDq7dvXRgjW9D5HF6NgqafeU1M2g DHvw== X-Gm-Message-State: AOAM533uXrt2M9+59Lo44/Sry1/nsp0CihL4W1GqpFTgB967bV88Hg4r hGe6F8WlUVtHU3KwYvqSJRVJyvv4 X-Google-Smtp-Source: ABdhPJz3F8aAIa3+mcyddlCyBmJF4W1DLo5+0QYCcc2auqErdZ+2qNU8mLyutNS3Q06eHhs89eaq1A== X-Received: by 2002:a17:90a:9515:: with SMTP id t21mr2297356pjo.5.1593893785728; Sat, 04 Jul 2020 13:16:25 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:224:: with SMTP id 33ls2261390plc.9.gmail; Sat, 04 Jul 2020 13:16:25 -0700 (PDT) X-Received: by 2002:a17:90a:66c7:: with SMTP id z7mr45179864pjl.172.1593893785310; Sat, 04 Jul 2020 13:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593893785; cv=none; d=google.com; s=arc-20160816; b=NdcBXCeFKqtk7rvqynLfgBRvaj1+GSOxj1lJe7AWoh+5gw+ObFf6z8Z+WCTHK6ip3a cNiV5BGLD6oX3yTDk4BhOisX7PiBktlJnqiIZ66iDBZ+fM3Q+2qsPnqNFmzH0dOqk4Eq Uh225VTi9x5j449P8Fra6XGf/UikgB24QT6/3kK7S3qq8aRaUPQ648jCKpZU10uQmnEv UWEOPoV8HSK9sTHmEzrefrEQFTUp8wI9cCLODl3Zwz7P3DJjR/zwOGFTKtPAj0g64zRI SglNw9jDIxMWbXMDemntFMduWMNHFppMP1A8IgN8Lq7z4e00a5GfhJn/cu1hSPvAcpmN Bx0A== 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=8Pwa3FaE5tOhqm9VWi06eI/JUnaCwiRKrrFOCb3b/8Q=; b=rIjuePnx9tIEePxpxjk8QTCLhNiQIeFnqyE2Z1zwRV7Ux/dVZ1Fqnnp1knqrlm1cRN QSjWm6AHLYfqyH3PQfrQLNxi0O2AzRpdYbjeaJa+SW+dD4w9sXlH7iQpq0wuMCDOTJjm JpI1Cl7jqpIGoiGxNJPfRilSnj8SYdwBwl6YliRFtAXPfgNr0ZszXG+aenaHrAREKrzy t32eTskgMlnIAPmjrs2B7GOqKse1PLOQhGEut7H4HfVdZjetEw+L0JxvCE8rAk9xw8Eu VoWe6disaYyfeQgfksnzOkI17FbEi0s8Gymdh0/Sm/Ld+BaZZg6YOf3stos9++mYl8RP euwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BCVdtmJK; 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 dw21sor20217614pjb.33.2020.07.04.13.16.25 for (Google Transport Security); Sat, 04 Jul 2020 13:16:25 -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:90b:2348:: with SMTP id ms8mr42173414pjb.5.1593893784799; Sat, 04 Jul 2020 13:16:24 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:bdf4:3289:4b66:dcc0]) by smtp.gmail.com with ESMTPSA id d16sm14960791pfo.156.2020.07.04.13.16.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jul 2020 13:16:24 -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 v3 2/4] dt-bindings: arm: rockchip: Add Rock Pi N8 binding Date: Sun, 5 Jul 2020 01:46:02 +0530 Message-Id: <20200704201604.85343-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200704201604.85343-1-jagan@amarulasolutions.com> References: <20200704201604.85343-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=BCVdtmJK; 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 v3: - none 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 Sat Jul 4 20:16:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1441 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 4A5B83F03F for ; Sat, 4 Jul 2020 22:16:31 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id t6sf1400956pgv.5 for ; Sat, 04 Jul 2020 13:16:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593893790; cv=pass; d=google.com; s=arc-20160816; b=xYKjMQE6NFJUt77BAUpgpMDWJVGKcLLtgrU/lcnfcPa2yOHDNz6Pp6CjT25/x4X9OU mPiQ/OGJKKK9Rpv7ABvOWqsf6xaUVScmpwUjYdkZaQ6HzD3yoVbPSPPYglA2oO5dChjS iKOKqJGy6W/Xg7OcI15fWCg98SoC1/IKVkGEMShn+P4gzbhZrqZe+Dxr1yGpg74PCASr MKncrl+jMxfAu4ytuDk/hnH3N2KeneH2zvlEPu7TGnzTRiqagxenkRjMdowfN53YUIww JvPbQjMvyfkh50XHR4JR9qYxacKjgThOJo7aIgCWERRAApZHVLj1CHsh/GZCwQurjUeH k3Pg== 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=AyR0G0SN+JBdOshLwuyX+GNF6kOOmvmkSl6QFX5j8vc=; b=h9B0uiOtTVFUqF4oP4cFTSQhygyEmsznB6gSTi9XKNqgcXlcd2ukq9UU4pHYAWvyrd FKXxO3CPkIjM+zjMNPjCEKoEQzrLm0vU5Ls1GSzU7+HvCkJigv0cRfAZVn/IH5GN4w9G iozo44bXX/MLVH0GEb4OZDiSWyXOk5Xkk8g9uVDsrrBQlq23P206Cfagp1f1SeX8TxNq kXSybECTw3llzaj2uFcsLAAHhxI9iC6eGS2l8fCPYf3hBxR5Nz2dP07/zDEIdX0p40qq vHRuss30eoVZNCCN8BaRwpNGH8S0whet+Kf+tBFmj2BBy3IJcHKNnyD1wKYa1fYrqXsZ 4F5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jQCfdmTz; 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=AyR0G0SN+JBdOshLwuyX+GNF6kOOmvmkSl6QFX5j8vc=; b=ZEXlguQq6U3IoiMeNrgeHSDFPttNu0Cz31RNFsb9/9rgS3X03CNs0r7Qe7fbxh2EkR jM6bWHJU+K6D0xI4dgAwkaUaWqeBPZKrRYWUEl/E7XAFGu6UohKjmMCxRgKjbOLdJlrM ueKKH07smJPxeRt1QQYymkJ5tMmRQ/ZIPaTis= 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=AyR0G0SN+JBdOshLwuyX+GNF6kOOmvmkSl6QFX5j8vc=; b=a9taLgHhjMEJ1NEHrIEkzEwNy6AercISgbdkzdQDbIbxLWDP3zho1ohIJq2UClIt18 tqstoJP5Yd6JBKkdarAwnYha0oswXLeOBzTaks9BMm5l2f6wje1253NAnvbJ8kTJJ7DM EnAcKyCRO5Iw0jL9nspwxDLE75aJjPPKtzKU8yoOAS/V/OSZEFMrT10v8ObtlHON6fyX SyDEP+VT7kECWdKgQU9O1vONAtVU8zO190/9VtpJQcNqOIS5QLKWxzogg3yseXEE80G6 8dulzFO4nXwDrQ3OCUz9RZmanArNrswE6nw5gZY6eiOH+dJ7cRnP8JnXdTy6R5U0famj WbWg== X-Gm-Message-State: AOAM532hY47R4k4RhYLM6DEqQDadT4WywYCSdh+86wNmvt5MJp52Xkxw Qn1V/2I9JHhpffZ0pAZmBtbrjWlV X-Google-Smtp-Source: ABdhPJxg0ExZF2ifQ1reF7b40RaB5r5BBde8XCB6MutALsp7ncfSBqbEI8HeqFE7CJV1CxpGgJzaZg== X-Received: by 2002:a65:644d:: with SMTP id s13mr34630407pgv.103.1593893790118; Sat, 04 Jul 2020 13:16:30 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:ea0e:: with SMTP id w14ls1495122pjy.3.canary-gmail; Sat, 04 Jul 2020 13:16:29 -0700 (PDT) X-Received: by 2002:a17:902:9689:: with SMTP id n9mr10726252plp.160.1593893789646; Sat, 04 Jul 2020 13:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593893789; cv=none; d=google.com; s=arc-20160816; b=RIZOTteprls0tIqMa5k9nMNLiaolSyQO/Tbi787reSxOMhuSinzZa0J3S8svnfUnOC CBP3ruu8ktYT/gEupK1G2VKuRp5uh7oiTlUAGIixe2KQFg5VUF5yLnd9RGKkxrI0mXMC skPmpmb1ClaJzsberXD1A1kmH29ZDRwntf8KQ90d/jQ1qUTgqGU5KeS08dORiWTO7aLl ekifszuGFZLCViq5tUTpdEH/rtVQKYhi3hDajFinRiL8S8zYOB1aRkmnWvd14nCyoKsw GmUdN4ltPbD6P2S3VL4hFkyFWgNrq34ZoazrPK0DY6ry45X+hTORK2VCk3R40FMiBllg ZGhg== 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=stgYGI05GMpLc1dby1HK3//+vvGghHGDspfaIVM0Hak=; b=FcRNUurR7xaGKIqCLxWB8kNu1VjFc7a1M2fA1Yq3vyWA9bPOi6ND6I6VbiA/TjlXnd HekGwnEtxF4+o+OeJG7+tsknG7Hcv4V9X8Ze9bIQmdzYPBDvLzyiDNYG5f1aetA0f5wN 3LszbJq3X/u3zYSQP5jetSW5znyrhVZHheZXgN71foN9dtpqrKauQPjcl0tRQv/QoRvB 3omBtBlO8Dbj+JrhlJWCYqi2QVRoJL+kjvLOwsfwnaZEQDIdCh72G5g9dVXEcxdrYYW6 KNTfiu0/5EhlndfEa3Hwo5db+/IwV8HM+FSj6J0BKoKRcKJimSQidJxsOtIkQqaSG6ep Ht+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jQCfdmTz; 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 br17sor2293791pjb.13.2020.07.04.13.16.29 for (Google Transport Security); Sat, 04 Jul 2020 13:16:29 -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:c915:: with SMTP id v21mr7975668pjt.48.1593893789294; Sat, 04 Jul 2020 13:16:29 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:bdf4:3289:4b66:dcc0]) by smtp.gmail.com with ESMTPSA id d16sm14960791pfo.156.2020.07.04.13.16.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jul 2020 13:16:28 -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 v3 3/4] ARM: dts: rockchip: Add VMARC RK3288 SOM initial support Date: Sun, 5 Jul 2020 01:46:03 +0530 Message-Id: <20200704201604.85343-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200704201604.85343-1-jagan@amarulasolutions.com> References: <20200704201604.85343-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=jQCfdmTz; 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 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 Sat Jul 4 20:16:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1442 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 2142E3F03F for ; Sat, 4 Jul 2020 22:16:36 +0200 (CEST) Received: by mail-pj1-f71.google.com with SMTP id e14sf12812351pjt.0 for ; Sat, 04 Jul 2020 13:16:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593893794; cv=pass; d=google.com; s=arc-20160816; b=Cnr9FOt2KWap7eM9f0tgkhG6tGrAA71WX8VcfmDdwetBboueK8g3yCTXBjbb1hOYFk D6Ji2v04o4qcNTW5BJwXc/z/U2jhhIUrKGtHEEtkaLNUEMdY+vRiJy4YvlbbE6BA4KHD Mzkn9KC47gls0IxOq49VxYTKPxeiRLeXpWhlw1+kFmK78gs4pFKWS/Al/76vtb/PbNep f4Hcg54jYebRlAwC7xCA+TXojX3eBfpDNfF8fjYPIZzTafRdFzP/gAczoz+0B32j0Zlx /9COy6HBwrfvzti+0GdDSs3gTUCx8d75oL7hcP3rLa0eL4yGRrvmyP/Kk9n38UMLWdtf p4+g== 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=46BwNgF9F1DDfh8KzmyL5lftW1mn4xSaGRVU3Cehc6c=; b=k8kpMLRmAW8bHa9PjV6Xpk4vYolHqDKiCm0z0jb+PrHqqGRT5ncYcq0BwOcvQ2MLp0 ID/j+FFPGNWbCNHKzyjHQJITNdKidcuTilnUlQS068YzNm9l9U6suvrHit8hMMsAz/rO CtXn+cmouQ61y1Z0m+b+zpuS82Nc/Pdmy8a5B/1mTdtZpotcpGAG9hYCYnYx4E5zj1Gm sZIrOSvJqOw5o6fb0033kTW0It6VvNZnO6LHtmp62/yGxFcErpo1hsX1XHCfNLhPh1iA dAjqbMT3HTYMrWayK+t94eOuhACZO6SkJnDCIexnegZmQDajCf0HlmcQsOytLwi4z+Ww YMyw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=l3pUPpqX; 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=46BwNgF9F1DDfh8KzmyL5lftW1mn4xSaGRVU3Cehc6c=; b=nKGN6gQAUg9e5WaxdDi9CVLDUg6rEOF0zrCXWvXK2ybvElIyxy2bSEOin9/MUaauOz gOe6kwntaJaWrUFVR6eFFHG1fluoMQ8ZXS+fykXuezO/0NGN/9MLyMq0WrLXx7F6Reu7 KZJYns8wV41SzJYj60v3ymaB92trALyI1KVRc= 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=46BwNgF9F1DDfh8KzmyL5lftW1mn4xSaGRVU3Cehc6c=; b=OBkemyWp4dlNvqiShpTEUiAHRKLhsENC2ok1yckux4zSVrKaxbAbE5KJ7gZot/864e 2AJEA+zD5zUrWRXhbGhl4YrM9t4OzoRNbdYy0m03QaDlRA74Cwosl0mJOWfh29qP0Z2C hIYMNNSfJuP6boqaJPTP9OeVCYZBrWHjW2K7HsBUAZbW9l5P+Tv8/qZgl9WNlZY//FUq wT/US5UHLh8lN5U0GHx7mL30pvmNDhoIpiCmHKr+VGXh/ZBfhtoInf59mm3bc2GeIp8O eFghMN/4iq80HyLvGvcjIsqP1M6ehyp3t+nuTma4Wi0eVkXPjCy3dMwI7utLScL/l6ht pCEg== X-Gm-Message-State: AOAM532Qy6eaK3fT5MM+tgast8oxXk6bF2H695C7fFk1R6473rUlSmzY F5EomihIxmjeRCSXgyPvkf4u70MT X-Google-Smtp-Source: ABdhPJyLKWpzM677WpovXqVqMWZMsc81fHOueLydzG1IE9P7IR+Hs4pXHOBIjg2VvLLbqC7ZfhfScg== X-Received: by 2002:a17:902:7441:: with SMTP id e1mr4345849plt.71.1593893794495; Sat, 04 Jul 2020 13:16:34 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:525b:: with SMTP id s27ls2063251pgl.11.gmail; Sat, 04 Jul 2020 13:16:34 -0700 (PDT) X-Received: by 2002:a05:6a00:807:: with SMTP id m7mr39429318pfk.246.1593893794057; Sat, 04 Jul 2020 13:16:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593893794; cv=none; d=google.com; s=arc-20160816; b=wI0oe81t7Mq/Y9UXd+iulnlAQzXzy//CBNq28SBH9buTMktMNz9+p+tKVRlw3DLLTX J1wRc7diiHBD0TqTPbm2cjpVFISmjcoFuQfesru5uabxxh1uw0qLG8oXCFoTy/DuvIkW XuguUI3Y/nkc/EaQJLdOmJOAGVOWKqSquGQOD3cQXTrkoDw7Mzi4/kh3kaxVMQ0GJv0f ckk2udkPOVWDLgE5d9/9PInCVP+9Iz6noiQBCbiEVOWqhqwzwjaZZ6JOtwpIvaMAvUC1 uyNAXce1P6GhSUtsi4jHcFe7LqtyQND2Q6rrKzx0CH6IroNknurq1cdJ3z436B8kZ4KN NlIg== 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=iz5gEZOmf2Z/DfumNACLyBntux+apLMSkaM/2QmivIQ=; b=RrpVednOIYWrKt+cJx1liyOcU1NNTliznZrRdNgxtglGJd0Dc7WVMXpFc46OmlP5tr BwGPnWvIPKboTvUPJu4nU6WpGQ1AY/SkG75Z6l09MFB/X6QpZD5PEus9/lEJtgbch9IM ZC6ORWcYcVKaFhB7qjl3KugurjZYuzCR/6JTu8Yd5ADtjmiBRqFpPushLMsA/hAWz6qo XGPWGSx8bFrzzfQKN6iXFpNkCQUS7I8ZOj2cTKJSxvjRRJe8G4QHSbIRpXggLAt5xIC7 B4X/9kQloGtZMXcie9g0/Ct6bh8ZbsmPzwlJrTU1KR/8iZNQPgu690z5h4Sd+Quxta9X y+0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=l3pUPpqX; 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 9sor20211716pjo.40.2020.07.04.13.16.34 for (Google Transport Security); Sat, 04 Jul 2020 13:16:34 -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:930b:: with SMTP id p11mr44102304pjo.230.1593893793769; Sat, 04 Jul 2020 13:16:33 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:bdf4:3289:4b66:dcc0]) by smtp.gmail.com with ESMTPSA id d16sm14960791pfo.156.2020.07.04.13.16.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jul 2020 13:16:33 -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 v3 4/4] ARM: dts: rockchip: Add Radxa Rock Pi N8 initial support Date: Sun, 5 Jul 2020 01:46:04 +0530 Message-Id: <20200704201604.85343-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200704201604.85343-1-jagan@amarulasolutions.com> References: <20200704201604.85343-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=l3pUPpqX; 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 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"; +};