From 6422df8e0732eaeb91d6847a352470612422e1e5 Mon Sep 17 00:00:00 2001 From: Zain Wang Date: Thu, 7 Apr 2016 18:05:32 +0800 Subject: [PATCH] ARM64: dts: rk3399: support fusb302 for evb1/2/3 Change-Id: I27d3c4848466a672b42446cc2b208fed067c4417 Signed-off-by: Zain Wang --- .../boot/dts/rockchip/rk3399-evb-rev1.dtsi | 21 +++++++++++++++++ .../boot/dts/rockchip/rk3399-evb-rev2.dtsi | 23 +++++++++++++++++++ .../boot/dts/rockchip/rk3399-evb-rev3.dtsi | 23 +++++++++++++++++++ arch/arm64/boot/dts/rockchip/rk3399-evb.dtsi | 10 ++++++++ 4 files changed, 77 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb-rev1.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-evb-rev1.dtsi index 41b1da42fff1..dc8653b93070 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-evb-rev1.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-evb-rev1.dtsi @@ -94,6 +94,16 @@ }; &i2c0 { + fusb0: fusb30x@22 { + compatible = "fairchild,fusb302"; + reg = <0x22>; + pinctrl-names = "default"; + pinctrl-0 = <&fusb0_int>; + vbus-5v-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; + int-n-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; + mp8865: mp8865@68 { compatible = "mps,mp8865"; reg = <0x68>; @@ -293,6 +303,17 @@ }; }; +&i2c4 { + fusb1: fusb30x@22 { + compatible = "fairchild,fusb302"; + reg = <0x22>; + pinctrl-names = "default"; + pinctrl-0 = <&fusb1_int>; + vbus-5v-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; + int-n-gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>; + }; +}; + &pwm2 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb-rev2.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-evb-rev2.dtsi index f92dc485b943..8fb8df2d27dc 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-evb-rev2.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-evb-rev2.dtsi @@ -232,6 +232,16 @@ }; &i2c0 { + fusb1: fusb30x@22 { + compatible = "fairchild,fusb302"; + reg = <0x22>; + pinctrl-names = "default"; + pinctrl-0 = <&fusb1_int>; + vbus-5v-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; + int-n-gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; + vdd_cpu_b: syr827@40 { compatible = "silergy,syr827"; reg = <0x40>; @@ -451,3 +461,16 @@ &u2phy0_otg { rockchip,utmi-avalid; }; + +&i2c6 { + status = "okay"; + fusb0: fusb30x@22 { + compatible = "fairchild,fusb302"; + reg = <0x22>; + pinctrl-names = "default"; + pinctrl-0 = <&fusb0_int>; + vbus-5v-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; + int-n-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; +}; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb-rev3.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-evb-rev3.dtsi index 491edc0309aa..89bc3d491372 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-evb-rev3.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-evb-rev3.dtsi @@ -227,6 +227,16 @@ }; &i2c0 { + fusb1: fusb30x@22 { + compatible = "fairchild,fusb302"; + reg = <0x22>; + pinctrl-names = "default"; + pinctrl-0 = <&fusb1_int>; + vbus-5v-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; + int-n-gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; + vdd_cpu_b: syr827@40 { compatible = "silergy,syr827"; reg = <0x40>; @@ -449,3 +459,16 @@ &es8316 { reg = <0x11>; }; + +&i2c6 { + status = "okay"; + fusb0: fusb30x@22 { + compatible = "fairchild,fusb302"; + reg = <0x22>; + pinctrl-names = "default"; + pinctrl-0 = <&fusb0_int>; + vbus-5v-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; + int-n-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; +}; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-evb.dtsi index c97260c216a5..122f28cbc040 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-evb.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-evb.dtsi @@ -522,4 +522,14 @@ <4 25 RK_FUNC_GPIO &pcfg_pull_none>; }; }; + + fusb30x { + fusb0_int: fusb0-int { + rockchip,pins = <1 2 RK_FUNC_GPIO &pcfg_pull_up>; + }; + + fusb1_int: fusb1-int { + rockchip,pins = <1 24 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; }; -- 2.34.1