From: wdc Date: Wed, 5 Mar 2014 01:40:47 +0000 (+0800) Subject: 3288: i2c & adc dts update X-Git-Tag: firefly_0821_release~6209 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a6f81f794b612ab3390eec38de4ceee1ea8a58de;p=firefly-linux-kernel-4.4.55.git 3288: i2c & adc dts update --- diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index b1c0cafa027f..218550ec313e 100755 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -94,99 +94,114 @@ - i2c0: i2c@2002d000 { + i2c0: i2c@ff650000 { compatible = "rockchip,rk30-i2c"; - reg = <0x2002d000 0x1000>; - interrupts = ; + reg = <0xff650000 0x1000>; + interrupts = ; #address-cells = <1>; #size-cells = <0>; - pinctrl-names = "default", "gpio"; - pinctrl-0 = <&i2c0_sda &i2c0_scl>; - pinctrl-1 = <&i2c0_gpio>; - gpios = <&gpio1 GPIO_D0 GPIO_ACTIVE_LOW>, <&gpio1 GPIO_D1 GPIO_ACTIVE_LOW>; - clocks = <&clk_gates8 4>; + //pinctrl-names = "default", "gpio"; + //pinctrl-0 = <&i2c0_sda &i2c0_scl>; + //pinctrl-1 = <&i2c0_gpio>; + //gpios = <&gpio0 GPIO_B7 GPIO_ACTIVE_LOW>, <&gpio0 GPIO_C0 GPIO_ACTIVE_LOW>; + //clocks = <&clk_gates8 4>; rockchip,check-idle = <1>; status = "disabled"; }; - i2c1: i2c@2002f000 { + i2c1: i2c@ff140000 { compatible = "rockchip,rk30-i2c"; - reg = <0x2002f000 0x1000>; - interrupts = ; + reg = <0xff140000 0x1000>; + interrupts = ; #address-cells = <1>; #size-cells = <0>; - pinctrl-names = "default", "gpio"; - pinctrl-0 = <&i2c1_sda &i2c1_scl>; - pinctrl-1 = <&i2c1_gpio>; - gpios = <&gpio1 GPIO_D2 GPIO_ACTIVE_LOW>, <&gpio1 GPIO_D3 GPIO_ACTIVE_LOW>; - clocks = <&clk_gates8 5>; - rockchip,check-idle = <1>; - status = "disabled"; + //pinctrl-names = "default", "gpio"; + //pinctrl-0 = <&i2c1_sda &i2c1_scl>; + //pinctrl-1 = <&i2c1_gpio>; + //gpios = <&gpio8 GPIO_A4 GPIO_ACTIVE_LOW>, <&gpio8 GPIO_A5 GPIO_ACTIVE_LOW>; + //clocks = <&clk_gates8 5>; + rockchip,check-idle = <1>; + status = "disabled"; + + }; - i2c2: i2c@20056000 { + i2c2: i2c@ff660000 { compatible = "rockchip,rk30-i2c"; - reg = <0x20056000 0x1000>; - interrupts = ; + reg = <0xff660000 0x1000>; + interrupts = ; #address-cells = <1>; #size-cells = <0>; - pinctrl-names = "default", "gpio"; - pinctrl-0 = <&i2c2_sda &i2c2_scl>; - pinctrl-1 = <&i2c2_gpio>; - gpios = <&gpio1 GPIO_D4 GPIO_ACTIVE_LOW>, <&gpio1 GPIO_D5 GPIO_ACTIVE_LOW>; - clocks = <&clk_gates8 6>; + //pinctrl-names = "default", "gpio"; + //pinctrl-0 = <&i2c2_sda &i2c2_scl>; + //pinctrl-1 = <&i2c2_gpio>; + //gpios = <&gpio6 GPIO_B1 GPIO_ACTIVE_LOW>, <&gpio6 GPIO_B2 GPIO_ACTIVE_LOW>; + //clocks = <&clk_gates8 6>; rockchip,check-idle = <1>; status = "disabled"; }; - i2c3: i2c@2005a000 { + i2c3: i2c@ff150000 { compatible = "rockchip,rk30-i2c"; - reg = <0x2005a000 0x1000>; - interrupts = ; + reg = <0xff150000 0x1000>; + interrupts = ; #address-cells = <1>; #size-cells = <0>; - pinctrl-names = "default", "gpio"; - pinctrl-0 = <&i2c3_sda &i2c3_scl>; - pinctrl-1 = <&i2c3_gpio>; - gpios = <&gpio3 GPIO_B6 GPIO_ACTIVE_LOW>, <&gpio3 GPIO_B7 GPIO_ACTIVE_LOW>; - clocks = <&clk_gates8 7>; + //pinctrl-names = "default", "gpio"; + //pinctrl-0 = <&i2c2_sda &i2c2_scl>; + //pinctrl-1 = <&i2c2_gpio>; + //gpios = <&gpio2 GPIO_C1 GPIO_ACTIVE_LOW>, <&gpio2 GPIO_C0 GPIO_ACTIVE_LOW>; + //clocks = <&clk_gates8 6>; rockchip,check-idle = <1>; status = "disabled"; }; - i2c4: i2c@2005e000 { + i2c4: i2c@ff160000 { compatible = "rockchip,rk30-i2c"; - reg = <0x2005e000 0x1000>; - interrupts = ; + reg = <0xff160000 0x1000>; + interrupts = ; #address-cells = <1>; #size-cells = <0>; - pinctrl-names = "default", "gpio"; - pinctrl-0 = <&i2c4_sda &i2c4_scl>; - pinctrl-1 = <&i2c4_gpio>; - gpios = <&gpio1 GPIO_D6 GPIO_ACTIVE_LOW>, <&gpio1 GPIO_D7 GPIO_ACTIVE_LOW>; - clocks = <&clk_gates8 8>; + //pinctrl-names = "default", "gpio"; + //pinctrl-0 = <&i2c3_sda &i2c3_scl>; + //pinctrl-1 = <&i2c3_gpio>; + //gpios = <&gpio7 GPIO_C1 GPIO_ACTIVE_LOW>, <&gpio7 GPIO_C2 GPIO_ACTIVE_LOW>; + //clocks = <&clk_gates8 7>; rockchip,check-idle = <1>; status = "disabled"; }; - adc: adc@2006c000 { - compatible = "rockchip,saradc"; - reg = <0x2006c000 0x100>; - interrupts = ; - #io-channel-cells = <1>; - io-channel-ranges; - rockchip,adc-vref = <1800>; - clock-frequency = <1000000>; - clocks = <&clk_saradc>, <&clk_gates7 14>; - clock-names = "saradc", "pclk_saradc"; - status = "disabled"; + i2c5: i2c@ff170000 { + compatible = "rockchip,rk30-i2c"; + reg = <0xff170000 0x1000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + //pinctrl-names = "default", "gpio"; + //pinctrl-0 = <&i2c4_sda &i2c4_scl>; + //pinctrl-1 = <&i2c4_gpio>; + //gpios = <&gpio7 GPIO_C3 GPIO_ACTIVE_LOW>, <&gpio7 GPIO_C4 GPIO_ACTIVE_LOW>; + //clocks = <&clk_gates8 8>; + rockchip,check-idle = <1>; + status = "disabled"; + }; + + adc: adc@ff100000 { + compatible = "rockchip,saradc"; + reg = <0xff100000 0x100>; + interrupts = ; + #io-channel-cells = <1>; + io-channel-ranges; + rockchip,adc-vref = <1800>; + clock-frequency = <1000000>; + clock-names = "saradc", "pclk_saradc"; + status = "disabled"; }; rga@ff930000 { compatible = "rockchip,rga"; reg = <0xff930000 0x1000>; interrupts = ; - clocks = <&clk_gates6 10>, <&clk_gates6 11>; clock-names = "hclk_rga", "aclk_rga"; status = "disabled"; };