From: 郭毅 Date: Thu, 27 Mar 2014 11:19:13 +0000 (+0800) Subject: p977: dts: support RK808 shutdown,gpioctl,spi X-Git-Tag: firefly_0821_release~5770 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=38c8246600e56ef7ddeb1a4d94e27ab507402c22;p=firefly-linux-kernel-4.4.55.git p977: dts: support RK808 shutdown,gpioctl,spi --- diff --git a/arch/arm/boot/dts/rk3288-p977.dts b/arch/arm/boot/dts/rk3288-p977.dts index ac11071bd30c..8b7d8639c11c 100755 --- a/arch/arm/boot/dts/rk3288-p977.dts +++ b/arch/arm/boot/dts/rk3288-p977.dts @@ -134,7 +134,27 @@ }; }; }; - +}; +&pinctrl { + gpio0_gpio { + gpio0_c2: gpio0-c2 { + rockchip,pins = ; + rockchip,pull = ; + }; + + //to add + }; + + gpio7_gpio { + gpio7_b7: gpio7-b7 { + rockchip,pins = ; + rockchip,pull = ; + }; + + //to add + }; + //could add other pinctrl definition such as gpio + }; &emmc { @@ -175,14 +195,77 @@ &spi0 { status = "okay"; + max-freq = <48000000>; + /* + spi_test@00 { + compatible = "rockchip,spi_test_bus0_cs0"; + reg = <0>; + spi-max-frequency = <24000000>; + //spi-cpha; + //spi-cpol; + poll_mode = <0>; + type = <0>; + enable_dma = <0>; + + }; + + spi_test@01 { + compatible = "rockchip,spi_test_bus0_cs1"; + reg = <1>; + spi-max-frequency = <24000000>; + spi-cpha; + spi-cpol; + poll_mode = <0>; + type = <0>; + enable_dma = <0>; + }; + */ }; &spi1 { status = "okay"; + max-freq = <48000000>; + /* + spi_test@10 { + compatible = "rockchip,spi_test_bus1_cs0"; + reg = <0>; + spi-max-frequency = <24000000>; + //spi-cpha; + //spi-cpol; + poll_mode = <0>; + type = <0>; + enable_dma = <0>; + }; + + */ }; &spi2 { status = "okay"; + max-freq = <48000000>; + /* + spi_test@20 { + compatible = "rockchip,spi_test_bus2_cs0"; + reg = <0>; + spi-max-frequency = <24000000>; + //spi-cpha; + //spi-cpol; + poll_mode = <0>; + type = <0>; + enable_dma = <0>; + }; + + spi_test@21 { + compatible = "rockchip,spi_test_bus2_cs1"; + reg = <1>; + spi-max-frequency = <24000000>; + //spi-cpha; + //spi-cpol; + poll_mode = <0>; + type = <0>; + enable_dma = <0>; + }; + */ }; &uart_bt { status = "okay"; @@ -231,7 +314,7 @@ layout = <8>; }; sensor@0d { - compatible = "ak8963"; + compatible = "ak8975"; reg = <0x0d>; type = ; irq-gpio = <&gpio8 GPIO_A2 IRQ_TYPE_EDGE_RISING>; @@ -332,6 +415,18 @@ &adc { status = "okay"; + rockchip_headset { + compatible = "rockchip_headset"; + headset_gpio = <&gpio0 GPIO_C2 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&gpio0_c2>; + io-channels = <&adc 2>; + /* + hook_gpio = ; + hook_down_type = ; //interrupt hook key down status + */ + }; + key { compatible = "rockchip,key"; io-channels = <&adc 1>; @@ -354,7 +449,7 @@ label = "power"; gpio-key,wakeup; }; - +/* menu-key { linux,code = <139>; label = "menu"; @@ -366,7 +461,7 @@ label = "home"; rockchip,adc_value = <746>; }; - +*/ back-key { linux,code = <158>; label = "back"; @@ -430,6 +525,7 @@ /include/ "rk808.dtsi" &rk808 { gpios =<&gpio0 GPIO_A4 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_B3 GPIO_ACTIVE_LOW>; + rk808,system-power-controller; regulators {