From patchwork Wed Jul 8 06:36:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1451 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D25A33F209 for ; Wed, 8 Jul 2020 08:36:49 +0200 (CEST) Received: by mail-pl1-f199.google.com with SMTP id c4sf24586089plo.6 for ; Tue, 07 Jul 2020 23:36:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594190207; cv=pass; d=google.com; s=arc-20160816; b=PJOPVkBDiuvvQ26RW0gh+1aRBaXaghMRpNotfdu/H7b/1StBO1Y7/wfPbNNovQmUHj jKYYWunAEZ2HQ9B7MgBa85mz8PihqjY4RXcIC2pDwZ0n9aHA9oBpIGqhlJ5KJSbys7Cc vXhanbdvfudkqBAJAu2xJIHS+VmVFU1oqpJ6SxEispur7mizwhZVnQUvk5eWuwqbeL7U nAnnvJouNMas6kie1YFpIDmnq5TwYFwobpMK2jWG4Fgu4QEZi5oAS9af8C7GjOee11MD 9QajlAuMEugt1BjWCI4PtFcIl8E6EfDSXysnqxZTXGuv6ZdXDJdTU4AUnPD5POGl7YLT G0LQ== 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=gPC9NMH9hSxVzBi+RNXMzS9agjPzWvkw6YCy304kN5w=; b=iIutyzr5CaCxgLTYOCtbMz0dKwIlin3+Ne7lfFiZtikYK1EPHVNXkI5+AivbkAyXq1 6kE2558H/tpZjTnodx1ncoM06J76WVI+/rQqE937mlGTuqkK4NSAgLK3QtDJqgjfqNY1 lJcEloqiL9erouIU+1xrkupn6GYElScqC516eOSfZtv/QDES0/LR9CdDFVltxyi86Ve7 LFxnFvlA+c5fciYBQxi0xiDIBG+LlQkzra7PDwYjCICoAy5fN9pDHan5ZURUYUxjbJcy qROOMAD4Ft0sIZ4vGrrNC2lTObzwNmpXHULlHQypS5DE4kAvLyMfOiB77LYRpXqmZUBh dFiw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dZbc2VWp; 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=gPC9NMH9hSxVzBi+RNXMzS9agjPzWvkw6YCy304kN5w=; b=CGUPFPK6PKICA5MUi+x7orH8jMA5afDoV7pvMCnvSMIVIRvKzpupk7128bJOZMCj7l DR0FSUAg8Mkf/6rlrajahdLzypHOhxPJf+4rEgf85B+BISe3qQuPQJKQje4BbhC8a7UP UtRtK4fFdp7xTfqAC5EwjdfDztidleCgLLAFk= 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=gPC9NMH9hSxVzBi+RNXMzS9agjPzWvkw6YCy304kN5w=; b=evmat7Ky12QrPl6igI9GWPSoLQgzups4WBIY9rG+7teNPy8nBSMshy8wHM5nBpGuyd fVO7IycTtbGO9s1SbAEmihVRFY8VbfFbowmLEv5Q+kt57TFLxtvX9Uf+p6uvzd6wBcpM VPq1xrYWiDdjg30fktmoJWmxBsUIFm7sfzUAzoKEOsolVnZAo2WqT1kPQxnsGXOp+Q5f 8LT1YXN/7QNYCNBhXia2698WI2d1JYEnkkxT5s4UcPX6DWtzi3/wo0SKgZUj6YbQ7d1k 4eNDAnfc/9zWStfJzdTLR9o7i7H8zNu6sHHI16oJb5dQkYoL2MWO0OORYVeszhNoh2L5 vNhg== X-Gm-Message-State: AOAM532BHsVq0J7Hmj7nSbvqS23p96PdMI5je4z7eOkdApBinicCkHDD Ffv0NscBXpwqMAkuydmbcpt73UoI X-Google-Smtp-Source: ABdhPJzYKmhBdZwDv67MAB820IxUuJ2+Csva/OGb/pChv9RQoZK9kRgYTqKi7jmpNfCMAP9BHmyOMg== X-Received: by 2002:a62:e119:: with SMTP id q25mr34945882pfh.300.1594190207776; Tue, 07 Jul 2020 23:36:47 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:b10a:: with SMTP id q10ls576250plr.0.gmail; Tue, 07 Jul 2020 23:36:47 -0700 (PDT) X-Received: by 2002:a17:902:7241:: with SMTP id c1mr42040509pll.79.1594190207304; Tue, 07 Jul 2020 23:36:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594190207; cv=none; d=google.com; s=arc-20160816; b=mNCkdEkeoO3qffmkT9LDkHYGfolE+osYH/8XvLmD4XsINz4rfs8xSS8ur4m2WMvX3B 4h9fd9fJ0JhsImGP+jlaz4uSI5rr8BF9CMqpdg3g5x+x445MUzjSRND9Tg0T4y5DQvLT m+iz9FBFbOeT0yxkl7Wf0+CmofP7kgpNOhklhdfeitwx9WJ/6xqlehdn/MqK8sL2nLzw b45X9IPcFGcUwg39G6ay8nwM3woBIVpj6RHeBvsoJbi/op3uXnTHvq1U96NfPW6j+ZaN fK1Hs19WDZdckDhVUBSvmnWLMONGMRvJQa5EpnkpLYREilpBqyQeJvZlHSl68gcuoBlL 4avw== 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=LNhgJ2q2uo48GOrk8hWiL3C46b1eONoSiPmpkt6Yxqw=; b=MBQAC6cKV9mcvjBLQLXrwpkH/wfouuneDhZTeGBmRv8AbB2LvtMqBZer1sp0JFvz5V i9KKiVpwpHGeqbkLmqBNjWgoeBqOyAkjewSnX80VNXmDusC67HwULm1TX2xWe39PODxH p87zKqazO5qeb8ti97OdUhxLO9bcuZRlDlBqPKqEhqr0H93QrBfPF2pOVh+b/Hsq0cX2 HMlH2uTuxfYAxou+XNsyG55Tyj4SAnEEDKfHQ3wh0fkI+qIUP5INgHWLf8cVowX/FjD0 L3z0QfEonXpqL71d7ofw/1YBQDobVI+urpoYHp8E/k72yG19HhgqbLyl26Y75o45S6fX Z8rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dZbc2VWp; 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 nv14sor5976825pjb.5.2020.07.07.23.36.47 for (Google Transport Security); Tue, 07 Jul 2020 23:36: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:8c0e:: with SMTP id a14mr7974542pjo.75.1594190206594; Tue, 07 Jul 2020 23:36:46 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:ade2:f5f3:8cc0:52f9]) by smtp.gmail.com with ESMTPSA id c12sm24587898pfn.162.2020.07.07.23.36.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 23:36:45 -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 v4 1/4] arm64: dts: rockchip: Trivial cleanups for RockPI N10 Date: Wed, 8 Jul 2020 12:06:24 +0530 Message-Id: <20200708063627.8365-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200708063627.8365-1-jagan@amarulasolutions.com> References: <20200708063627.8365-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=dZbc2VWp; 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 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 | 98 ++++++++++--------- 3 files changed, 85 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..63eb498b365e 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 { @@ -297,16 +270,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 +327,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 8 06:36:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1452 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 327A93F209 for ; Wed, 8 Jul 2020 08:36:54 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id o15sf34296561pgn.15 for ; Tue, 07 Jul 2020 23:36:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594190213; cv=pass; d=google.com; s=arc-20160816; b=v8VRJy5ayG7fMFWGQoBO1Aa6Bz5VdvK+CB+jsBzsGxu1bvS0mIpcGab9XJZaEYOBnl Y5IOeCCcwI2oySxkH3zN8LtTxcYNWRmHjIcdBXwq8HfX6mA1XJ+lACk1ei7cbR3REq9l d84SwridDqJeQUyGQGQdQwoniCyrnJEth+wz7w38Qbu/PO+IXdYrFY3C3MNqmw+8HDFE c9eQny5goI6IX4PvxW2mw0nqA06dgdIGGdnIhKGnN100meF0kW/E+aIErKAlzbyFBta+ wmPpj4oAxy/Hd/iVhAMSlY2bCnDdTLcTC3osQ7CXt/E0T7g2RqAGujSTcKlEeOFiqduO e6KA== 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=PAFUAMvdvKtJaAB3i3wMMtW9gY83K8TARcaFX7U4Y2s=; b=oHZH4LjRi4m5xa+/96bnKoUoJFaBAmWoAN7CHZCeWPDrJy6fDYZ/2D0rwWUCL1afqS 0/F7sa2xAjXGu+kP3XEr09XtfIcWDSTa/ixY7wlh1+mPPrI2ls8Dd/RYHqnLvPHInOKe dH4wlASlEl5zWtgEyoeYr8WJDwJIecMU+a1m/BDj1j1Bgn7rDwFIQrLG/EO8jYarboOY ZoYSlpBj7USccgvmU7voSlhQ96dvz/Von5mID7JczUdIHGX1Fg1KEi6QeBPPhW5+XvOZ v8fJilZbSsL85vuIOo5ThnnwqPt1dZh74tqEJ6D/Li9e8ifV/59rgYLTWSow6sLiVCd9 qxOw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hdYrRret; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 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=PAFUAMvdvKtJaAB3i3wMMtW9gY83K8TARcaFX7U4Y2s=; b=ht9dtAAF2HPRBG/b1FG6o+JHsrYQmIIeQiDUfSUjXL4qCN4py80RiMGPN8LIPbFToJ ujoVmw+VJCwYYNzdA+jtHcnGVWPCjxgFfcmiHACDUZK1wdF1tjSTRAFw1xl2nksajkcM fuOkax0HmVKmUKPMTKm332jetwD8w5lqioW2k= 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=PAFUAMvdvKtJaAB3i3wMMtW9gY83K8TARcaFX7U4Y2s=; b=PMuu2fEs+PXaPwKAc7LcW+i338gZYfYr/Cc14dpdLzR18vXmMqf6C3RRz+olQNPGHQ iyLV4kRIX3MQznkkjIN3v3rDveb1JAhQV0lvIsQh/8/f2nS6ztyLPwf1LZl18lbdHswS 5oQAO4PRK78U6fJ6S4btaBHMoUnWXwCeEFyJZqfR0jxKnyqAHBP8MQATTxNImT2d9QTO 9KESRNvWz3NrEBEnf3UfAj1shOqdx2MS5AILgiRJ/zR+xA/kYxjyXYVcVCpwKs0b0mJh bljxIytCUwtZoJvj1mbD0PRITyODVZyhu4q7hBMFgHgbm0wgPODWMd+4oV0AV4cFJ9pO 0R4A== X-Gm-Message-State: AOAM5313PgcHJ73La9dFzZvvL9wYSpu+SbsB3hpJiZ9LjDb/KG9woRFl 7SzVh1qq66PYOM1XqYqsZ/v16i45 X-Google-Smtp-Source: ABdhPJyaZIHEejzC9LWFq8YP8R0Fq+3Pbqlo1ucrdBeNbHbAAb4dTHWP0viCWvlM4dzAXXdBB//Mmw== X-Received: by 2002:a63:8b42:: with SMTP id j63mr49407690pge.131.1594190212913; Tue, 07 Jul 2020 23:36:52 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:bb8f:: with SMTP id m15ls570003pls.5.gmail; Tue, 07 Jul 2020 23:36:52 -0700 (PDT) X-Received: by 2002:a17:90a:764c:: with SMTP id s12mr8066643pjl.201.1594190212205; Tue, 07 Jul 2020 23:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594190212; cv=none; d=google.com; s=arc-20160816; b=uumZ3+Gir/BKqBGcndZgu8Ir1a4BIBOMvL1JaQUsKtDZC5XfjnfZWD71s2E7krs0dw Cg/Jy2+AlNqvSqjyS5Y3zTqscK9aSQi2BzAdWfQKz4Kq+Bn3NualH3Wq71Esl4Ev9VzC fAMUF8iDZNzmAsZuGNfWbS9qZU2GELNXO8y+6XTYo5NevWI/J74xROdcO7FmzKw8qXzo 7GnFmdppDzmrTxPJBbftEyHR1pH1SzLXn58Ex52x4P0HypDYUkXh73Ur7zf9YJI5Ofmj z0KxXhxcP1mNK6M79w2Qr6a1XrdsdlMFxEU5MY0o9SwuE4VOShMoG7LBXmS2gBkX8a4L wWAg== 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=vTSYVuagsPVJ3arZC2dLSrcbPR3/Uq07aVivmBZDIrY=; b=Hb0QJGJdJxlWp2VZRgz0hXVRlDfOUTQWd0mYrLGaW/g0LmHcMO2z+m7H7CCh8GNw5Y gGopiBGcEqUp+Ln2aRblU3F94MdxXkTGERZsidR3JHfChvpjkb/U4xZzlx92bGnXlSnh zGzLioeOpsjGtA8e+PIOmWCN83DYLvEIUKm17IBBvfRz4GyUFPUYUNMA/q2f31vNU9Qw 7NPe3VK8q+HhFYDNO0S0b656bHgaiFCxSGndjfUZAo/eZEG2Q4pZ+fDojP2x9xffTXOS 2vpn1NJmYGZNUqaYamknxiFjMa1RjhXtD3gfxwDzGtZKlzgwEL3DpgQkqriRiWs8QZww hQug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hdYrRret; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id p27sor33134801pgd.39.2020.07.07.23.36.52 for (Google Transport Security); Tue, 07 Jul 2020 23:36:52 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a65:63ca:: with SMTP id n10mr49013562pgv.252.1594190211959; Tue, 07 Jul 2020 23:36:51 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:ade2:f5f3:8cc0:52f9]) by smtp.gmail.com with ESMTPSA id c12sm24587898pfn.162.2020.07.07.23.36.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 23:36: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 v4 2/4] dt-bindings: arm: rockchip: Add Rock Pi N8 binding Date: Wed, 8 Jul 2020 12:06:25 +0530 Message-Id: <20200708063627.8365-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200708063627.8365-1-jagan@amarulasolutions.com> References: <20200708063627.8365-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=hdYrRret; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 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 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 Wed Jul 8 06:36:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1453 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 E14733F209 for ; Wed, 8 Jul 2020 08:36:59 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id o15sf34296707pgn.15 for ; Tue, 07 Jul 2020 23:36:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594190218; cv=pass; d=google.com; s=arc-20160816; b=MwwUxkRbYIFuBQeY1C8OSmGyGPLYQ7Y7hdbpUX6wdLvwzMaQdSU4L0Hm4mVsostDPi wicBXfqEYEYarZrLujlbkfHNQ5Q8gr0GGqmVxvgmhJXZMtQiFYtO7gP8QHwpiGgy69i2 cWGfHWh5Xa60BKobIg1/fypOGJRAeXfcv3lDcEkg7DED8tCd+drojvULvkH9k20dZ7cU RWW2DtzOUWhtgdlBUNWNmgGY/W9u9/zPHj0jeHSInxUsaVOrCiSZWBZfNtbmgtQ2ZnrF 6EXIIFa5YFDAcz0V+ZFrrNcVHHJC+lyjv9gytlybor8SJfFV20EP++CGnoJgv0q3V+1w JjCA== 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=2Yg15v/SXmF4/29l6pY1ajnUJUINKPG4pIV6Xy7vTKw=; b=kTJN+68pTC47+dfBzRaLwLnxMheS2Fax7EWIX5yRV794+4q+rQVb0wo/B3QaVyL+XQ Jbx2ZTXBGoPD4aP776KgNMMFnjtMcdzGNlpZv7ovtHRQb18YglkpV6hjUKVTQzHeAVVk sd6SdOGXyacfOOghl9Ydqh0j/GR5pkq3FW2kFR9HwHO2Uj/FzLehiSRDPxRUutbwTuqb vZLe7/u82D8olUS2oMfsI085zxa4/nIQhpFUk4TuK5k0mk3H2TYjE/wh9GDFWf1fMz0D +UUbrw7RJmvJEQNPxBG0ULzHx0OLMusRnDgDGSdKgWqUPSY53ziIUGn1CYJ3Hcs7oQCa 34wA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nrhqPqHU; 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=2Yg15v/SXmF4/29l6pY1ajnUJUINKPG4pIV6Xy7vTKw=; b=q1n2JOkeOQEHgc+rUa0owGq7V0dIJr9saLSSTDhxnZYJhjDwVelUWPOMa0iqBazL7Z ChZNcHUZivOuUtuQ/8FGMljUx0FiEvqOLUCLPTl7opLln5WnfgnXv+oMLSFd4k0fr0M5 Uvaomu5e4ATY22b9+qpsD71TWZojPoBhQQEj4= 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=2Yg15v/SXmF4/29l6pY1ajnUJUINKPG4pIV6Xy7vTKw=; b=U9C5R7snXNE9lKcghRL0TwOs79YW4c80nd5zuxg+XDQOAe5a2YT13bhdTTwKsN4k8F c1cH5+cvD7u/CiF01esZF8yw1FodjufMBIAXhWgHZidVPwdSgWhozCsyAfSpS2BQp7tU FESCASGykegGh2+zxDqUMhaH9ZReXgisGpTeXfAAaB1bYT1464MO8pR6KTj2oJ9nN3cO W2+q/miCc9O/389IIV+xZxdkb+1ec1Al7P7wz4+b9EzsIO5vnkIssCT/k9s3JE6dGnCT /MejWwK0LMMa062+6HOlu5+XQE7lFKkrE3hw3Xq9xQ/FXmY7feWKU09cWRsyvITFGcox Mosw== X-Gm-Message-State: AOAM531mta16ALG+3U8ELrV150+9ySl/xix8wlQGYGqVKMZy/9BRnSkY IWzAJ5tYJTVStWNdUuTj3yF9eWi+ X-Google-Smtp-Source: ABdhPJwR0D0p2WBcNItO6nEB5lkyCbFsM1gW5y9gBo4WHdXxB5m9W/mtMQUm8ndNig9uY7iw0Fjvow== X-Received: by 2002:a63:8949:: with SMTP id v70mr47479974pgd.256.1594190218707; Tue, 07 Jul 2020 23:36:58 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:7b91:: with SMTP id w17ls561349pll.10.gmail; Tue, 07 Jul 2020 23:36:58 -0700 (PDT) X-Received: by 2002:a17:90a:d30e:: with SMTP id p14mr8449031pju.72.1594190218192; Tue, 07 Jul 2020 23:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594190218; cv=none; d=google.com; s=arc-20160816; b=0ZHkea/P9u1J36YtAH1Fxcr525dzjDc5+tHj4ePNcqofhT4g/BWtjHqev4FVuO+DeT jY5dxgV+L9z18xDQCwoKBRbFHY3ADOpBtNO7lppsnP+loGZWrQBPyUM+27R0xCmY41oG JuPQaTPJaM6KvPohtJoS+uJ801au1XhSg5CohIsCgILmUTcoV473zuaf29KTgKekNtm6 3Eg+Ix6VJVTFt58KekDzcj2rDm5KRwaViAZItvTOpEAyCB2nQlIBLUbWcOnGim+KNBOZ WN9UQMv5VwZ8+rym5HBw90bnOvBrZ41JypjG3WI/bAfJBAV88E1FN04v/4MtWAZDoX3U I/5A== 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=NqXQRBtFUvoVchZPgi3sQ7HBGlGFCLxiz0gQ606yhhc=; b=UTQerSkC/Vc03mgDv8pxy3DACLcEMv92qN3v/QghigWq8ak8FPN214ZRFj5sSFycUQ xFCQ1i4g5Awb4a7g1rNgBx+kCEe3zimknN+UOlKJpumQwbFEuJihIZF1fEtj/U5IHw+J CJWj/Wo3iG5aCWYNj18yrdTr23vu8FFXEroGvds2gogYpEL0WxzW6WXwvlkpmdV96h6j M5NNKbdH8UdgXK6n/yKQQvc9xXIdOy5Q2A5/lLHgKmTGVMehLM1gfhSa7w3yYcdSeZu3 8obSO6hsEZuKDHPXSyaucr4gnGPtlzLtdnE1juQtGbPFKCZ3IzmOL8bYfWU5i5o6xR0F eU+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nrhqPqHU; 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 mw7sor6171478pjb.35.2020.07.07.23.36.58 for (Google Transport Security); Tue, 07 Jul 2020 23:36:58 -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:eaca:: with SMTP id ev10mr7772734pjb.151.1594190217851; Tue, 07 Jul 2020 23:36:57 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:ade2:f5f3:8cc0:52f9]) by smtp.gmail.com with ESMTPSA id c12sm24587898pfn.162.2020.07.07.23.36.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 23:36:57 -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 v4 3/4] ARM: dts: rockchip: Add VMARC RK3288 SOM initial support Date: Wed, 8 Jul 2020 12:06:26 +0530 Message-Id: <20200708063627.8365-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200708063627.8365-1-jagan@amarulasolutions.com> References: <20200708063627.8365-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=nrhqPqHU; 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 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 Wed Jul 8 06:36:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1454 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 161783F209 for ; Wed, 8 Jul 2020 08:37:06 +0200 (CEST) Received: by mail-pj1-f69.google.com with SMTP id jx16sf1149479pjb.6 for ; Tue, 07 Jul 2020 23:37:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594190224; cv=pass; d=google.com; s=arc-20160816; b=CdgHuLLrSwWTbQJxrh+AJNCEvzh/CaGVOqyZ4l/4qNdwsUC481ls1p/ppzRnQLt5Mi MJ1+Ons5YvACHuFGlhO702gModUm4gtRbd+wvPTC2JFONhwZ0j3N6rae04kpJVaLx8m+ vKBAv5PAhxDdeObj0S7eOJJPjeY8PZVEoYbeiAfrdj+qrJumOAe3CRfGr8s6gb7DHVtN fNotY2Hs93ID8Nw447z3lLqmcDnCpA2Q/lA1CGbZBkWH80/egjq5GfkDwNaT0/xRtVSe LWpxyVjetkBDl/fmpmpUlpyk5BNGhhN3oGh2BHMSQgTTeZeLgDrpuEkboZ0sJEGXOmm/ EbPQ== 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=ZfuC1jn6VNYuEgbPjyPyBHBNIpt1ffD18zGIVt4SBFs=; b=hWobxNt8NRSuLB4JTkzKt5bG2VT059QXIXdkiBSAPkYVFBilelWdF304CbK5q+/Ubu jno1zCc250xUoxVJseMcK9QUIGHRHHHhIJXwbnc9xZQwtHu+h7W8R5PoP9EwpbDcEi5Q dZY/U4iutDf3FQYDI1qMbQB1brhKtygEI9vub+3IQy0oAabImQVOK3IRVyja90AkI32u WV+E9bHkFHV609LLgCoCznSiHQYOeP470yNtRxaBMRiVN9AfccTKLgMGxTloDrytGgGL XNqAb5kDs/KilTwrVJkhU+G+pDJFrM4Arov7d6zyPcztmaiQbaGQd9rGOWpDIo6nV1OX cA+w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EvVxKg8S; 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=ZfuC1jn6VNYuEgbPjyPyBHBNIpt1ffD18zGIVt4SBFs=; b=kGObnw4BZq7LftyIYPmPdgsp7hU3SYNuWKajjYmE3U0YdGimMhd5E28ItzrLNRBZOg U0dVqe0buualY4/KRSaJ0nA1mzeiwy8VSggS+SoEjXf92btuisSvFNkFr1dhjsPOwnIu D1DJ9oMzPr2HP8qx3/fUjP9ychnAr/KMWLV9E= 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=ZfuC1jn6VNYuEgbPjyPyBHBNIpt1ffD18zGIVt4SBFs=; b=rPLzig4Gstudaa3wDadCLSZPXh+IvZtfRuUwELe041J7Z3jS5KLb00yvpbaCocgPaU n2QBGZlZXxOqdGbPg3xsG0I+skooR1GY3aNEaWXcHkb3AkcX2lIILfI1TUZ4mKl54Kyp M1+bUeXsvqr78FKqAU0OC+Fxa2jWzXLmQBGGFoBVb811by6P4KS3EmE238iV2UZFZsy6 5+I8lQ9fMj4Bj9xrYSG0Lv3mGkG6ItGyYpgVaIOjXVcSOE1EHvPhyQamfDQi8qcLSQsd /l5qd1SKy11GcZelZW2TgcXG1TrUcSqEUbuopBZmJUM2czYQNIZIsYfccR00LvBhLofa otVA== X-Gm-Message-State: AOAM531QqNYrkWc2oGbz+7CojpEHrWOUgCEytLwmh2s/vDpgaQz7SIRT fVMa5YyUAPS8k4XblscdqTYT0ra+ X-Google-Smtp-Source: ABdhPJwEww2f30/Jg5fTeck4ZmfmdKa/4Y0wD5fzLkXUj7jQBBn1wxtnuHQkK+U9D50zzMeX/zeecA== X-Received: by 2002:a17:902:728c:: with SMTP id d12mr49276373pll.155.1594190224594; Tue, 07 Jul 2020 23:37:04 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90b:384c:: with SMTP id nl12ls556750pjb.2.canary-gmail; Tue, 07 Jul 2020 23:37:04 -0700 (PDT) X-Received: by 2002:a17:90a:c295:: with SMTP id f21mr8173679pjt.208.1594190224109; Tue, 07 Jul 2020 23:37:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594190224; cv=none; d=google.com; s=arc-20160816; b=bHEMUpB384GfpR6qq2sXX3KHNd/GJZZaetA5tduUA3vu2Z0LmVbTLHuW2tEmual5yW x/P4Dr97rWFHygqK1pucrCzLGaJ/ankSO1ZgQzCA28abDbKKv4nDshfIDOHULzweHFtm yDV5Ag+rBPDI0DUKsNt0fh25P101f3gRodUBJxGP2xgG5C/uc5KpfAPA9TbKoq1HbW4c aYO+hUmtr/4Zqg5lCmyQbQQ2655Jnu4bdXT54s3rX1QVdf6Z7WL14+XASGCVloDyE4iq q4NSRZxuqwSJYdpZpTGM3NvC2MiMoOY/VDAY64x85vDYEp16KvS8oQLyVTBCbWzQ9xK5 Ys5g== 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=ck5aijhNng/ZXTjfuRPiw9zt4tyG0HNHaHu36lpohaw=; b=QgDoYnJnyBOVNSZP4D/Ab24XTXtdr5CSogJCfnZdG4YdhkBlvgEXjkkfM9Olxa/Xnl 9pnqxiXPhO/F+Vr/0xzLta5DN9T9pmxZHloRP/2btwVIkenUeRKLzCGCI0eU0qLSyBoK HZx8rCDnuG3hTsasg425fo86j8sBtQN7YIN9puawL3N6Tt3DTLW2iji0j5b6vimm1nE0 u0iHeC9xZJofmn0QapogJYHqIxb5DqREry0LX8vcsULFq4RKRtue15DOHNWefGBXQFJg 49p9L67g7gF9tShWD3LuZYBqOYPcSEm0+XTaChQr9HpMfmBx/62k5ifut7U6hQA62PQa +ppw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EvVxKg8S; 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 q4sor32733849pfh.55.2020.07.07.23.37.04 for (Google Transport Security); Tue, 07 Jul 2020 23:37:04 -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:a84d:: with SMTP id i13mr46447892pgp.342.1594190223800; Tue, 07 Jul 2020 23:37:03 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:ade2:f5f3:8cc0:52f9]) by smtp.gmail.com with ESMTPSA id c12sm24587898pfn.162.2020.07.07.23.36.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 23:37:03 -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 v4 4/4] ARM: dts: rockchip: Add Radxa Rock Pi N8 initial support Date: Wed, 8 Jul 2020 12:06:27 +0530 Message-Id: <20200708063627.8365-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200708063627.8365-1-jagan@amarulasolutions.com> References: <20200708063627.8365-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=EvVxKg8S; 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 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"; +};