From patchwork Wed Jul 8 10:05: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: 1461 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 06A703F062 for ; Wed, 8 Jul 2020 12:06:02 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id m4sf24798449pll.11 for ; Wed, 08 Jul 2020 03:06:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594202760; cv=pass; d=google.com; s=arc-20160816; b=o6BDb343ueO/mC8qOgqGWLv7BazKVkA80WQIH/KfRO3s3Tnxx7I8jRzrYzoWOYUK6r tf6dKW4LYeYhyctiJn8fUUEeZpvR3mo3uFx5yEIMrkz7IULYWJ7j8slQmTTEYqcM3gLX e4q0eoyj/yxklA6oQ9qSfGrBDM8Cs5Lm+U9EQPNwHnrXTWZNulouR51pFzW7/LfRaybv FslodcptFmXmlEegNWFMLFK38jQFbxJyln0JetQS6Qu1qlyExAC/boP6EPnZaJz6+T9w 8ty4seaDO70OcJKp9Wdlhw7qDLipfNSDZF4zWG9ou27Gfvuw1zIcMUCP2Gly8s7PGnpb 693g== 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=T1yw6GqrplAsKqJ+XEdFUNcXGzTNrhSe/zZVH0uVjBM=; b=HbvF9Ya9YMyWIhmTN18WhKp0JO6RaCWnFgWuAsNjiSSyXFFqa/jEkhjUpyRGdXFEBI lwI+biFn3QyDNnLcTCptzxgRwRTpbbC2EpMZV4/uBtsNa1cpqJyjVBL8Mz2CBvxaWJBP Dd8gKmxt00umRIlJ2V7nYEvPCXgJ6A7gN0igOihmjNS4g2JMOn3s7K4LZuKUAmO0sAM/ tKu134E2tsM2tsMTV5Zxjr+vcwV2NumlQG7oelvQnb81FOQ1NJpuKW210yfrDKIa0qUP 3oaaRppB/7gGVjY4vJM7G8wvuUZnsQPBe8IesWfC6C26igUJUSTRWy0bMwfe8MfP3FXY IdPg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QrmGVdKO; 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=T1yw6GqrplAsKqJ+XEdFUNcXGzTNrhSe/zZVH0uVjBM=; b=c3KXqUYHUYa98zLJucbkw5DUMQ3dsPCow1pFhaOrhawrlPtPfjp7JvyTlcvgEVZz4L P6l8vWuMhojXLSjj8NyJEDRWWfvfUFmP2rnkWTAkSYJLkFxp3vCgpurUy7slgB8BtFem IOdAg3JnJfvN6TMS/BkA2Wb+bVsVIBvTgTAd4= 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=T1yw6GqrplAsKqJ+XEdFUNcXGzTNrhSe/zZVH0uVjBM=; b=DqVB5+9nXRFkl0Az1TVm8SPJvdqanOr2VMJGZHvMkdUzbtxX1ogeWRcjbS06xKcVws EDFmbJHNQ29LYbVVKtlaahdLUXztq69qwdFlZcJbZKlr9nvxrUL56vl8yngS7zZ2fWdd 1shzsFEznMrd7z5D3BJ5S5Qx0TmpO+V4PVMKaqqW6Lfp1jiJPbJz4+DKhntxYUf3+Vnz wfzOrZxErdZZtdYVteeSRj6k7j+jHWnB8BvlWTNqAiLgDY1ymabS1/9THsXZ2WPS7AVR N+CD4+GpPMDGozsSZFX0MbTm69tHRe/MjCb0kTE0mkdbY9ID6JJVdECUYJ5Xm3GWM1PI O+FA== X-Gm-Message-State: AOAM530utH3SjxoynmbYoPdO368ybyzHyhL9E5ggl747wMWzkMig8RuX WQ4QL8VfN03YTxeHB1UFgXDBIdF5 X-Google-Smtp-Source: ABdhPJxZpzElHrNUq2+LgRYjb8nJsHf7MqSf6X/qS0BAbef01+3Bco8up/QHgZJUxTy85c5sdMTXXA== X-Received: by 2002:a05:6a00:84e:: with SMTP id q14mr53245021pfk.309.1594202760069; Wed, 08 Jul 2020 03:06:00 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:bb8f:: with SMTP id m15ls802914pls.5.gmail; Wed, 08 Jul 2020 03:05:59 -0700 (PDT) X-Received: by 2002:a17:90a:8a8b:: with SMTP id x11mr9057189pjn.127.1594202759524; Wed, 08 Jul 2020 03:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594202759; cv=none; d=google.com; s=arc-20160816; b=iW2duuR6GCNcmj5ajHlQxjlBJH+9iqDERBS2u7IdjdwC7VFqm3vSVf8UYo33dq2LR9 jqdwF4pXvQzNSR01RuNxSVH5tR9daBDdT1yy5rWlOHBj4JhqEo7Uxmw9e2/KQbnBjddP 8yzQ28+EnWLsclNOmkmjJbJvbPHKpgb/q9PzVzl3uby5/OlAoYiAG5tAscLP9zqs2Sp8 t0+goB+TjJ1hxw+k7opVpZfejFSHEZ97Pm+nTDd1XAnWptM+qiA6V83nspkzLMuaqBSa uqITdti2fRtODeM9bVNJr0oeFbNK2qBvx5FzLfpn4FK3c/yC3+NquoIpXsMMEMYFlupg 35ZQ== 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=ZvymIFpzpqT6dA5muRoxEQNXuSgzsFU0Jw8JbJLPKfI=; b=tDt6q7sGlIHbCNAHG4ALyyzjEvPujE3BnL/Qvt+KZYQPEJbAif88kvgl6SuyhOtHRB DKQ7eOsUW3BPbBagswOyqhxruqoMjGkBuiSxved9uousO6wFsin9Y+/TuBpUe3tjqjYx EXT3k5nXxunVYcWupoRw0w33LCi4GmoyVaSWJGyCwK4bpDYeqQsDviMssxjzM7QH3yia ewyR5hfRKCznxHeSb+8A9xLPNGyU5G76KczdZaQjzpM9GsqfIlMoIPhKRMQTW3Ea5l7m IdH5FzoCeMWwg2DFGIkT+glHXkovyrjDuZ62dnW2kGDJTT8YbTYWkFW7lM503WFfCg2T NhNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QrmGVdKO; 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 y8sor26208227pfq.18.2020.07.08.03.05.59 for (Google Transport Security); Wed, 08 Jul 2020 03:05:59 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:aa7:934a:: with SMTP id 10mr16052774pfn.302.1594202759197; Wed, 08 Jul 2020 03:05:59 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:ade2:f5f3:8cc0:52f9]) by smtp.gmail.com with ESMTPSA id n18sm25726647pfd.99.2020.07.08.03.05.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2020 03:05:58 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Cc: Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki , Tom Cubie Subject: [PATCH v2 6/7] ARM: dts: rockchip: Add VMARC RK3288 SOM initial support Date: Wed, 8 Jul 2020 15:35:27 +0530 Message-Id: <20200708100528.419035-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200708100528.419035-1-jagan@amarulasolutions.com> References: <20200708100528.419035-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=QrmGVdKO; 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 --- arch/arm/dts/rk3288-vmarc-som.dtsi | 270 +++++++++++++++++++++++++++++ 1 file changed, 270 insertions(+) create mode 100644 arch/arm/dts/rk3288-vmarc-som.dtsi diff --git a/arch/arm/dts/rk3288-vmarc-som.dtsi b/arch/arm/dts/rk3288-vmarc-som.dtsi new file mode 100644 index 0000000000..0bcb9f067d --- /dev/null +++ b/arch/arm/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>; + }; + }; +};