From patchwork Wed Jul 1 06:17:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1428 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7336B3F082 for ; Wed, 1 Jul 2020 08:17:49 +0200 (CEST) Received: by mail-pj1-f69.google.com with SMTP id h93sf17698016pjb.2 for ; Tue, 30 Jun 2020 23:17:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593584268; cv=pass; d=google.com; s=arc-20160816; b=hHwg+nkABulbDNR5305FzGq/5f02o3pS+wYsb9fb58szNHnbwLDhc6G5wT5vFILNXK dJE7VhuCSuiBkeR2wBDmOIHmFayKKbvgTMta35S0OqJx8H+cYNiFemhgf59ZYL30BAHa H2QAwS3AxW6+q113t4VnN9w0VM05SKIXkmDMQhHiad4r01y6deAUPFlkueVGoKUWMZbd /C3S1iMZikDVbW3NIqcKTUhMAKxLvcddPRne797TcbCqU2UsDpQQ1k3JVHbLKHjjlXOd tPHVZlU8lRMIyXHG9Gch0eVm+t5ODizNuInuUk0XjqgTZi/QcEvdjAes79KdNYUkmT1C nWGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Cv0YOgxtzINmsUuG4KQYI58TJMrI4OisFvKAzmEwCJA=; b=NFDM0b6HSUP38lTQu4WHinl+l9qwJd/cpYsKSCKxfeUEiNPtGI5pZWTg6imd+MRECD defSq+wl6wCi6duASGTJpGup8MnK+Q/qG3+UbuYJ1df+lWTJy+xkGHSFaCCdSUmm0chA 7gG/My+NFn9auXN1sPeRwvJeDozuU7/HeUGzorV1pII93dLyQSJjQ4G9Dj7uRBw/ONtz N3AtLI6R4Fm1YS/kHVCHMP8RqEJjbNOC/FnsJk73reL8wNkPvBo2V1x3rro/228RLc8u SR54LhGDifTGoP5QqY9vpRbjarDVDSetnZtIWSK2v1TWC7tNfstKZQb9IqdY4K6bFByl N4rg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="HFlkQF/7"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=Cv0YOgxtzINmsUuG4KQYI58TJMrI4OisFvKAzmEwCJA=; b=CLDz4pGK1HqEV5Zv7XVzBArrweTjitGGQKJuLA9R7YQd0mCOXYXlNGzTfldL/wIDP+ BBSPjSnbpLFZB9lJjQWPTb7YJWKTLPpL8/clgjvfaNPgQbr8j4WwWWjsmRkYekj/T6JO sT/H9mN//1HVy7m0w/zLfIcO7iTmeJ9raXnyw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=Cv0YOgxtzINmsUuG4KQYI58TJMrI4OisFvKAzmEwCJA=; b=lEMf2wY6C11aC271sQKViu6mIGTU5CcxBNlW23ldKLY5VmWjqiliEwQqRafxGFbooc vwZHD9ymBLyv2XjK2scnkhs7zicfT0ZVXT/NtarQAxPwV1d4QrohfLKo/vRqdxchwes1 euCxeE148cIqmAUeNr0b0Vw0XAHFDhDxng+o2brGtKyN9BlOqcGb6ZgmcxYnOd7yPomx 7oFSlAse5NawBP/uAKGRuEv+YFPPenZZcOeB19+RVvW/8ugCVN7XdNgedmKQpDehja8F T1oYlvTBFPVfKXvBdtWhKvHYjnz2W/ZUq5gISkq6T1TJXp+5dhrB6Bi47CylwscmoEyI jRuA== X-Gm-Message-State: AOAM533SU7WtWO9XJrCjGWvzx4QvxKs2DdsY8tFMBkFumYNe4jRki6pW biDozXM65Ea/K9R/SAmNIHxssHbb X-Google-Smtp-Source: ABdhPJxpv2l5r5ewL8IofQr7/28Ld9HzqCszaigYkdMffvZW9CTikD5gt7/gThVzs9bHQjHI+d/R+g== X-Received: by 2002:a63:3c41:: with SMTP id i1mr18938756pgn.349.1593584268238; Tue, 30 Jun 2020 23:17:48 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90b:384c:: with SMTP id nl12ls564943pjb.2.canary-gmail; Tue, 30 Jun 2020 23:17:47 -0700 (PDT) X-Received: by 2002:a17:90a:11:: with SMTP id 17mr25756984pja.15.1593584267683; Tue, 30 Jun 2020 23:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593584267; cv=none; d=google.com; s=arc-20160816; b=z+XYYSFGoE+iiLunNvkDnPt9bgGG8FUYxt4grbDooLDpVwF3zqnl2e0Sa7VQdkvwHO mslMRJmno3NmCa4pTkivExGnIc5Iew1yCqjNojj9lxJhg7Xl3lIhj1K59a1heb7eeTrA 1RZn67B7HhBtayOjpzfLggjyHG1SB7/n+OMFo2bjxCa9/+/cS66kLwXyLHwJ/FyjUPIx pZDXvIzdlEEobqtpi/x5qiZMWCU1CyC0YXyfQd5bNi8voK9UY6onaaKXIElBfLzVLuod hM6s831dsF4CbKrppAtMHGAvpmTZ9aAd4ECzyHP+1JvpgHKErAJ05d6gIy2OECI4m/gm yRGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=hSYqSpg1Fv/tx60jXpe2B3Kc18W4ccZ8cFrXVSCLQD0=; b=lj5fFxbRjgRFwdc2P/9YP3SUDDmdKhBOCAe5qbq1sHI8Jj+dpgMvRjzcfIVTHTCXyN OEOKh28g3xO8XXb/7M5OS9mOhNnHMe8lTbFkLafAMDBwx3fO1Xxfmw/DmQ56q8+QH+fM GqClLRL46HhHnRjrMXWh1b1rbhQ5jtYsGDu4oe4pv5Ufk5cZBuwiFcHRiXN0B4TR6vYj pDacybUy0z/ovoZX6LqYQVexuRdPICPemT4rqHjilgUWoZ+0fChimTr7JY+sWOHkyYe9 ESaanHXT03i7Xm9cS1isKDp9WyfyS3HfIBt5o+q4nJPveuUr6JY4slQG+23FOROgu2X3 nViw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="HFlkQF/7"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id k1sor6837034pld.51.2020.06.30.23.17.47 for (Google Transport Security); Tue, 30 Jun 2020 23:17:47 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:ae14:: with SMTP id t20mr24716914pjq.184.1593584267221; Tue, 30 Jun 2020 23:17:47 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:356d:fc3d:92ff:192e]) by smtp.gmail.com with ESMTPSA id n189sm4555744pfn.108.2020.06.30.23.17.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 23:17:46 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: Tom Cubie , Suniel Mahesh , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula , Jagan Teki Subject: [PATCH v2 3/4] ARM: dts: rockchip: Add VMARC RK3288 SOM initial support Date: Wed, 1 Jul 2020 11:47:16 +0530 Message-Id: <20200701061717.143753-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200701061717.143753-1-jagan@amarulasolutions.com> References: <20200701061717.143753-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="HFlkQF/7"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , VMARC RK3288 SOM is a standard SMARC SOM design with Rockchip RK3288 SoC, which is designed by Vamrs. Specification: - Rockchip RK3288 - PMIC: RK808 - eMMC: 16GB/32GB/64GB - SD slot - 2xUSB-2.0, 1xUSB3.0 - USB-C for power supply - Ethernet - HDMI, MIPI-DSI/CSI, eDP Add initial support for VMARC RK3288 SOM, this would use with associated carrier board. Signed-off-by: Jagan Teki --- Changes for v2: - drop pwm include - adjust dtsi based on trivial changes in 1/4 arch/arm/boot/dts/rk3288-vmarc-som.dtsi | 270 ++++++++++++++++++++++++ 1 file changed, 270 insertions(+) create mode 100644 arch/arm/boot/dts/rk3288-vmarc-som.dtsi diff --git a/arch/arm/boot/dts/rk3288-vmarc-som.dtsi b/arch/arm/boot/dts/rk3288-vmarc-som.dtsi new file mode 100644 index 000000000000..0bcb9f067d66 --- /dev/null +++ b/arch/arm/boot/dts/rk3288-vmarc-som.dtsi @@ -0,0 +1,270 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd + * Copyright (c) 2019 Vamrs Limited + * Copyright (c) 2019 Amarula Solutions(India) + */ + +#include +#include + +/ { + compatible = "vamrs,rk3288-vmarc-som", "rockchip,rk3288"; + + vccio_flash: vccio-flash-regulator { + compatible = "regulator-fixed"; + regulator-name = "vccio_flash"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_io>; + }; +}; + +&emmc { + bus-width = <8>; + cap-mmc-highspeed; + disable-wp; + non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>; + vmmc-supply = <&vcc_io>; + vqmmc-supply = <&vccio_flash>; + status = "okay"; +}; + +&gmac { + assigned-clocks = <&cru SCLK_MAC>; + phy-supply = <&vcc_io>; + snps,reset-gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; +}; + +&i2c0 { + clock-frequency = <400000>; + status = "okay"; + + rk808: pmic@1b { + compatible = "rockchip,rk808"; + reg = <0x1b>; + interrupt-parent = <&gpio0>; + interrupts = ; + pinctrl-names = "default"; + pinctrl-0 = <&pmic_int &global_pwroff>; + rockchip,system-power-controller; + wakeup-source; + #clock-cells = <1>; + clock-output-names = "rk808-clkout1", "rk808-clkout2"; + + vcc1-supply = <&vcc5v0_sys>; + vcc2-supply = <&vcc5v0_sys>; + vcc3-supply = <&vcc5v0_sys>; + vcc4-supply = <&vcc5v0_sys>; + vcc6-supply = <&vcc5v0_sys>; + vcc7-supply = <&vcc5v0_sys>; + vcc8-supply = <&vcc_io>; + vcc9-supply = <&vcc_io>; + vcc10-supply = <&vcc5v0_sys>; + vcc11-supply = <&vcc5v0_sys>; + vcc12-supply = <&vcc_io>; + vddio-supply = <&vcc_io>; + + regulators { + vdd_cpu: DCDC_REG1 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <1400000>; + regulator-name = "vdd_arm"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_gpu: DCDC_REG2 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1250000>; + regulator-name = "vdd_gpu"; + regulator-ramp-delay = <6000>; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_ddr: DCDC_REG3 { + regulator-always-on; + regulator-boot-on; + regulator-name = "vcc_ddr"; + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + vcc_io: DCDC_REG4 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc_io"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vcc_tp: LDO_REG1 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc_tp"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcca_codec: LDO_REG2 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcca_codec"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vdd_10: LDO_REG3 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-name = "vdd_10"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1000000>; + }; + }; + + vcc_wl: LDO_REG4 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc_wl"; + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + vccio_sd: LDO_REG5 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vccio_sd"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vdd10_lcd: LDO_REG6 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-name = "vdd10_lcd"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_18: LDO_REG7 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc_18"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + vcc18_lcd: LDO_REG8 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc18_lcd"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_sd: SWITCH_REG1 { + regulator-always-on; + regulator-boot-on; + regulator-name = "vcc_sd"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_lcd: SWITCH_REG2 { + regulator-always-on; + regulator-boot-on; + regulator-name = "vcc_lcd"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + }; + }; +}; + +&io_domains { + bb-supply = <&vcc_io>; + flash0-supply = <&vccio_flash>; + gpio1830-supply = <&vcc_18>; + gpio30-supply = <&vcc_io>; + sdcard-supply = <&vccio_sd>; + status = "okay"; +}; + +&pinctrl { + pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma { + drive-strength = <8>; + }; + + pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma { + bias-pull-up; + drive-strength = <8>; + }; + + pmic { + pmic_int: pmic-int { + rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + + sdmmc { + sdmmc_bus4: sdmmc-bus4 { + rockchip,pins = + <6 RK_PC0 1 &pcfg_pull_up_drv_8ma>, + <6 RK_PC1 1 &pcfg_pull_up_drv_8ma>, + <6 RK_PC2 1 &pcfg_pull_up_drv_8ma>, + <6 RK_PC3 1 &pcfg_pull_up_drv_8ma>; + }; + + sdmmc_clk: sdmmc-clk { + rockchip,pins = <6 RK_PC4 1 &pcfg_pull_none_drv_8ma>; + }; + + sdmmc_cmd: sdmmc-cmd { + rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up_drv_8ma>; + }; + }; +};