All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kever Yang <kever.yang@rock-chips.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 7/9] rockchip: rk3308: Add dts for ROC-RK3308-CC
Date: Thu, 14 Nov 2019 17:32:56 +0800	[thread overview]
Message-ID: <389c4f55-aa64-dbfb-3203-618ac54ee04f@rock-chips.com> (raw)
In-Reply-To: <20191114032247.6756-1-andy.yan@rock-chips.com>


On 2019/11/14 上午11:22, Andy Yan wrote:
> Add dts file for ROC-RK3308-CC from firefly.
>
> Sync form linux rockchip for v5.5-armsoc/dts64:
> "arm64: dts: rockchip: Add devicetree for board roc-rk3308-cc"
> (sha1: 4403e1237be3af0977aa23ef399e3496316317a0)
>
> Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever
>
> ---
>
> Changes in v3:
> - Add commit message.
>
>   arch/arm/dts/Makefile                  |   3 +-
>   arch/arm/dts/rk3308-roc-cc-u-boot.dtsi |  17 +++
>   arch/arm/dts/rk3308-roc-cc.dts         | 190 +++++++++++++++++++++++++
>   3 files changed, 209 insertions(+), 1 deletion(-)
>   create mode 100644 arch/arm/dts/rk3308-roc-cc-u-boot.dtsi
>   create mode 100644 arch/arm/dts/rk3308-roc-cc.dts
>
> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
> index f2ea546831..be5c8d0ff6 100644
> --- a/arch/arm/dts/Makefile
> +++ b/arch/arm/dts/Makefile
> @@ -94,7 +94,8 @@ dtb-$(CONFIG_ROCKCHIP_RK3288) += \
>   	rk3288-vyasa.dtb
>   
>   dtb-$(CONFIG_ROCKCHIP_RK3308) += \
> -	rk3308-evb.dtb
> +	rk3308-evb.dtb \
> +	rk3308-roc-cc.dtb
>   
>   dtb-$(CONFIG_ROCKCHIP_RK3328) += \
>   	rk3328-evb.dtb \
> diff --git a/arch/arm/dts/rk3308-roc-cc-u-boot.dtsi b/arch/arm/dts/rk3308-roc-cc-u-boot.dtsi
> new file mode 100644
> index 0000000000..ffbe742053
> --- /dev/null
> +++ b/arch/arm/dts/rk3308-roc-cc-u-boot.dtsi
> @@ -0,0 +1,17 @@
> +// SPDX-License-Identifier: GPL-2.0+
> +/*
> + * (C) Copyright 2018-2019 Rockchip Electronics Co., Ltd
> + */
> +#include "rk3308-u-boot.dtsi"
> +
> +/ {
> +	chosen {
> +		u-boot,spl-boot-order = "same-as-spl", &emmc;
> +	};
> +};
> +
> +&uart2 {
> +	u-boot,dm-pre-reloc;
> +	clock-frequency = <24000000>;
> +	status = "okay";
> +};
> diff --git a/arch/arm/dts/rk3308-roc-cc.dts b/arch/arm/dts/rk3308-roc-cc.dts
> new file mode 100644
> index 0000000000..e10aa638a3
> --- /dev/null
> +++ b/arch/arm/dts/rk3308-roc-cc.dts
> @@ -0,0 +1,190 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
> + */
> +
> +/dts-v1/;
> +#include "rk3308.dtsi"
> +
> +/ {
> +	model = "Firefly ROC-RK3308-CC board";
> +	compatible = "firefly,roc-rk3308-cc", "rockchip,rk3308";
> +	chosen {
> +		stdout-path = "serial2:1500000n8";
> +	};
> +
> +	ir_rx {
> +		compatible = "gpio-ir-receiver";
> +		gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&ir_recv_pin>;
> +	};
> +
> +	ir_tx {
> +		compatible = "pwm-ir-tx";
> +		pwms = <&pwm5 0 25000 0>;
> +	};
> +
> +	leds {
> +		compatible = "gpio-leds";
> +		power {
> +			label = "firefly:red:power";
> +			linux,default-trigger = "ir-power-click";
> +			default-state = "on";
> +			gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
> +		};
> +
> +		user {
> +			label = "firefly:blue:user";
> +			linux,default-trigger = "ir-user-click";
> +			default-state = "off";
> +			gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>;
> +		};
> +	};
> +
> +	typec_vcc5v: typec-vcc5v {
> +		compatible = "regulator-fixed";
> +		regulator-name = "typec_vcc5v";
> +		regulator-always-on;
> +		regulator-boot-on;
> +		regulator-min-microvolt = <5000000>;
> +		regulator-max-microvolt = <5000000>;
> +	};
> +
> +	vcc5v0_sys: vcc5v0-sys {
> +		compatible = "regulator-fixed";
> +		regulator-name = "vcc5v0_sys";
> +		regulator-min-microvolt = <5000000>;
> +		regulator-max-microvolt = <5000000>;
> +		regulator-always-on;
> +		regulator-boot-on;
> +		vin-supply = <&typec_vcc5v>;
> +	};
> +
> +	vdd_core: vdd-core {
> +		compatible = "pwm-regulator";
> +		pwms = <&pwm0 0 5000 1>;
> +		regulator-name = "vdd_core";
> +		regulator-min-microvolt = <827000>;
> +		regulator-max-microvolt = <1340000>;
> +		regulator-init-microvolt = <1015000>;
> +		regulator-always-on;
> +		regulator-boot-on;
> +		regulator-settling-time-up-us = <250>;
> +		pwm-supply = <&vcc5v0_sys>;
> +	};
> +
> +	vdd_log: vdd-log {
> +		compatible = "regulator-fixed";
> +		regulator-name = "vdd_log";
> +		regulator-always-on;
> +		regulator-boot-on;
> +		regulator-min-microvolt = <1050000>;
> +		regulator-max-microvolt = <1050000>;
> +		vin-supply = <&vcc5v0_sys>;
> +	};
> +
> +	vcc_io: vcc-io {
> +		compatible = "regulator-fixed";
> +		regulator-name = "vcc_io";
> +		regulator-min-microvolt = <3300000>;
> +		regulator-max-microvolt = <3300000>;
> +		regulator-always-on;
> +		regulator-boot-on;
> +		vin-supply = <&vcc5v0_sys>;
> +	};
> +
> +	vcc_sdmmc: vcc-sdmmc {
> +		compatible = "regulator-gpio";
> +		regulator-name = "vcc_sdmmc";
> +		regulator-min-microvolt = <1800000>;
> +		regulator-max-microvolt = <3300000>;
> +		gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_HIGH>;
> +		states = <1800000 0x0
> +			  3300000 0x1>;
> +		vin-supply = <&vcc5v0_sys>;
> +	};
> +
> +	vcc_sd: vcc-sd {
> +		compatible = "regulator-fixed";
> +		gpio = <&gpio4 RK_PD6 GPIO_ACTIVE_LOW>;
> +		regulator-name = "vcc_sd";
> +		regulator-min-microvolt = <3300000>;
> +		regulator-max-microvolt = <3300000>;
> +		regulator-always-on;
> +		regulator-boot-on;
> +		vim-supply = <&vcc_io>;
> +	};
> +
> +};
> +
> +&cpu0 {
> +	cpu-supply = <&vdd_core>;
> +};
> +
> +&emmc {
> +	bus-width = <8>;
> +	cap-mmc-highspeed;
> +	supports-emmc;
> +	disable-wp;
> +	non-removable;
> +	num-slots = <1>;
> +	status = "okay";
> +};
> +
> +&i2c1 {
> +	clock-frequency = <400000>;
> +	status = "okay";
> +
> +	rtc: rtc at 51 {
> +		compatible = "nxp,pcf8563";
> +		reg = <0x51>;
> +		#clock-cells = <0>;
> +	};
> +};
> +
> +&pwm5 {
> +	status = "okay";
> +	pinctrl-names = "active";
> +	pinctrl-0 = <&pwm5_pin_pull_down>;
> +};
> +
> +&pinctrl {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&rtc_32k>;
> +
> +	ir-receiver {
> +		ir_recv_pin: ir-recv-pin  {
> +			rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
> +		};
> +	};
> +
> +	buttons {
> +		pwr_key: pwr-key {
> +			rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
> +		};
> +	};
> +};
> +
> +&pwm0 {
> +	status = "okay";
> +	pinctrl-0 = <&pwm0_pin_pull_down>;
> +};
> +
> +&sdmmc {
> +	bus-width = <4>;
> +	cap-mmc-highspeed;
> +	cap-sd-highspeed;
> +	supports-sd;
> +	card-detect-delay = <300>;
> +	sd-uhs-sdr25;
> +	sd-uhs-sdr50;
> +	sd-uhs-sdr104;
> +	vmmc-supply = <&vcc_sd>;
> +	vqmmc-supply = <&vcc_sdmmc>;
> +	status = "okay";
> +};
> +
> +&uart2 {
> +	status = "okay";
> +};

  reply	other threads:[~2019-11-14  9:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-14  3:21 [U-Boot] [PATCH v3 0/9] Add support for RK3308 SOC Andy Yan
2019-11-14  3:21 ` [U-Boot] [PATCH v3 1/9] arm: rockchip: Add RK3308 SOC support Andy Yan
2019-11-14  3:21 ` [U-Boot] [PATCH v3 2/9] rockchip: clk: Add clk driver for rk3308 Andy Yan
2019-11-14  3:21 ` [U-Boot] [PATCH v3 3/9] arm: dts: rockchip: Add dts for rk3308 evb Andy Yan
2019-11-14  3:21 ` [U-Boot] [PATCH v3 4/9] board: rockchip: Add rk3308 evb support Andy Yan
2019-11-14  3:22 ` [U-Boot] [PATCH v3 5/9] rockchip: rk3308: Add sdram driver Andy Yan
2019-11-14  3:22 ` [U-Boot] [PATCH v3 6/9] rockchip: mkimage: add support for RK3308 Andy Yan
2019-11-14  3:22 ` [U-Boot] [PATCH v3 7/9] rockchip: rk3308: Add dts for ROC-RK3308-CC Andy Yan
2019-11-14  9:32   ` Kever Yang [this message]
2019-11-14  3:23 ` [U-Boot] [PATCH v3 8/9] rockchip: rk3308: Add support for ROC-RK3308-CC board Andy Yan
2019-11-14  9:33   ` Kever Yang
2019-11-14  3:23 ` [U-Boot] [PATCH v3 9/9] doc: rockchip: Add documentation for rk3308 based boards Andy Yan
2019-11-14  9:33   ` Kever Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=389c4f55-aa64-dbfb-3203-618ac54ee04f@rock-chips.com \
    --to=kever.yang@rock-chips.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.