All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/7] Enable i2c for rk3399
Date: Mon, 3 Apr 2017 06:16:39 +0200	[thread overview]
Message-ID: <58E1CCA7.1080505@denx.de> (raw)
In-Reply-To: <1491057777-1640-3-git-send-email-eric.gao@rock-chips.com>

Hello Eric,

Am 01.04.2017 um 16:42 schrieb eric.gao at rock-chips.com:
> From: "eric.gao" <eric.gao@rock-chips.com>
>
> Signed-off-by: eric.gao <eric.gao@rock-chips.com>
> ---
>
>   arch/arm/dts/rk3399.dtsi     | 16 ++++++++++++++++
>   configs/evb-rk3399_defconfig |  1 +
>   drivers/i2c/rk_i2c.c         |  1 +
>   3 files changed, 18 insertions(+)

Reviewed-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
>
> diff --git a/arch/arm/dts/rk3399.dtsi b/arch/arm/dts/rk3399.dtsi
> index 456fdb6..93e3bf4 100644
> --- a/arch/arm/dts/rk3399.dtsi
> +++ b/arch/arm/dts/rk3399.dtsi
> @@ -26,6 +26,7 @@
>   		serial4 = &uart4;
>   		mmc0 = &sdhci;
>   		mmc1 = &sdmmc;
> +		i2c0 = &i2c0;
>   	};
>
>   	cpus {
> @@ -651,6 +652,21 @@
>   		status = "disabled";
>   	};
>
> +	i2c0: i2c at ff3c0000 {
> +		compatible = "rockchip,rk3399-i2c";
> +		reg = <0x0 0xff3c0000 0x0 0x1000>;
> +		assigned-clocks = <&pmucru SCLK_I2C0_PMU>;
> +		assigned-clock-rates = <200000000>;
> +		clocks = <&pmucru SCLK_I2C0_PMU>, <&pmucru PCLK_I2C0_PMU>;
> +		clock-names = "i2c", "pclk";
> +		interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH 0>;
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&i2c0_xfer>;
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		status = "disabled";
> +	};
> +
>   	pinctrl: pinctrl {
>   		u-boot,dm-pre-reloc;
>   		compatible = "rockchip,rk3399-pinctrl";
> diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig
> index bedc1fd..2e2f9a8 100644
> --- a/configs/evb-rk3399_defconfig
> +++ b/configs/evb-rk3399_defconfig
> @@ -58,3 +58,4 @@ CONFIG_USB_EHCI_GENERIC=y
>   CONFIG_USB_STORAGE=y
>   CONFIG_USE_TINY_PRINTF=y
>   CONFIG_ERRNO_STR=y
> +CONFIG_SYS_I2C_ROCKCHIP=y
> diff --git a/drivers/i2c/rk_i2c.c b/drivers/i2c/rk_i2c.c
> index 7c701cb..a4c8c2ba 100644
> --- a/drivers/i2c/rk_i2c.c
> +++ b/drivers/i2c/rk_i2c.c
> @@ -381,6 +381,7 @@ static const struct dm_i2c_ops rockchip_i2c_ops = {
>
>   static const struct udevice_id rockchip_i2c_ids[] = {
>   	{ .compatible = "rockchip,rk3288-i2c" },
> +	{ .compatible = "rockchip,rk3399-i2c" },
>   	{ }
>   };
>
>

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

  reply	other threads:[~2017-04-03  4:16 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-01 14:42 [U-Boot] [PATCH 0/7] Enable MIPI dsi display for rk3399 eric.gao at rock-chips.com
2017-04-01 14:42 ` [U-Boot] [PATCH 1/7] system halt when we enable bucks of PMIC rk808 eric.gao at rock-chips.com
2017-04-06  3:44   ` Simon Glass
2017-04-01 14:42 ` [U-Boot] [PATCH 2/7] Enable i2c for rk3399 eric.gao at rock-chips.com
2017-04-03  4:16   ` Heiko Schocher [this message]
2017-04-01 14:42 ` [U-Boot] [PATCH 3/7] Enable RK808 for rk3399 evb eric.gao at rock-chips.com
2017-04-06  3:44   ` Simon Glass
2017-04-01 14:42 ` [U-Boot] [PATCH 4/7] Enable rkclk init function eric.gao at rock-chips.com
2017-04-02 11:52   ` Heiko Stuebner
2017-04-06  8:45     ` Eric
2017-04-01 14:42 ` [U-Boot] [PATCH 5/7] Add mipi display support for rk3399 && rk3288 eric.gao at rock-chips.com
2017-04-05  3:52   ` Jacob Chen
2017-04-06  3:44   ` Simon Glass
2017-04-01 14:42 ` [U-Boot] [PATCH 6/7] Enable print log file to lcd eric.gao at rock-chips.com
2017-04-06  3:44   ` Simon Glass
2017-04-06  8:48     ` Eric
2017-04-01 14:42 ` [U-Boot] [PATCH 7/7] crash when scroll screen eric.gao at rock-chips.com
2017-04-06  3:44   ` Simon Glass
2017-04-05  8:47 ` [U-Boot] [PATCH 0/7] Enable MIPI dsi display for rk3399 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=58E1CCA7.1080505@denx.de \
    --to=hs@denx.de \
    --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.