ARM64: dts: rk3399: support fusb302 for evb1/2/3
authorZain Wang <wzz@rock-chips.com>
Thu, 7 Apr 2016 10:05:32 +0000 (18:05 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Tue, 9 Aug 2016 06:11:56 +0000 (14:11 +0800)
Change-Id: I27d3c4848466a672b42446cc2b208fed067c4417
Signed-off-by: Zain Wang <wzz@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-evb-rev1.dtsi
arch/arm64/boot/dts/rockchip/rk3399-evb-rev2.dtsi
arch/arm64/boot/dts/rockchip/rk3399-evb-rev3.dtsi
arch/arm64/boot/dts/rockchip/rk3399-evb.dtsi

index 41b1da42fff1c66f8c0cd95807f508c4c7e7cb9a..dc8653b93070da15a10ea76d31453972b773e773 100644 (file)
 };
 
 &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>;
        };
 };
 
+&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";
 };
index f92dc485b943a030ac0cc20112ce85ebcda6e12a..8fb8df2d27dc9b084a970aa390473148c235b506 100644 (file)
 };
 
 &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>;
 &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";
+       };
+};
index 491edc0309aac73445de4bf9a310666861da74fc..89bc3d4913726e00ace6de33798449703f96535f 100644 (file)
 };
 
 &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>;
 &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";
+       };
+};
index c97260c216a5471878adec91d70eb099b7a218e4..122f28cbc040d74594ff3c9e4cda0dfa2d53e319 100644 (file)
                                <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>;
+               };
+       };
 };