dts: spicc: change txl dts to use upstream driver
authorSunny Luo <sunny.luo@amlogic.com>
Mon, 23 Jul 2018 08:12:22 +0000 (16:12 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Mon, 23 Jul 2018 08:51:15 +0000 (01:51 -0700)
PD#164751: dts: spicc: change txl dts to use upstream driver

Change-Id: Ibf51059122d31316bb644d6431466e36afe44cb6
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
Documentation/devicetree/bindings/spi/spi-meson.txt
arch/arm64/boot/dts/amlogic/mesontxl.dtsi
arch/arm64/boot/dts/amlogic/txl_t962_p321.dts

index 7aeaa45..dfadaf3 100644 (file)
@@ -30,6 +30,8 @@ Required properties:
  - compatible: should be:
        "amlogic,meson-gx-spicc" on Amlogic GX and compatible SoCs.
        "amlogic,meson-txlx-spicc" on Amlogic TXLX and compatible SoCs
+       "amlogic,meson-txl-spicc", "amlogic,meson-txlx-spicc"
+                                  on Amlogic TXL and compatible SoCs
        "amlogic,meson-axg-spicc" on Amlogic AXG and compatible SoCs
        "amlogic,meson-g12a-spicc" on Amlogic G12A and compatible SoCs
        "amlogic,meson-g12b-spicc", "amlogic,meson-g12a-spicc"
index 5dfe500..df6fcb5 100644 (file)
                                status = "disabled";
                        };
 
-                       spicc: spicc@8d80 {
-                               compatible = "amlogic, spicc";
+                       spicc: spi@8d80 {
+                               compatible = "amlogic,meson-txl-spicc",
+                                            "amlogic,meson-txlx-spicc";
+                               reg = <0x0 0x8d80 0x0 0x3c>;
+                               interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
+                               clocks = <&clkc CLKID_SPICC0>;
+                               clock-names = "core";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
                                status = "disabled";
-                               reg = <0x0 0x8d80 0x0 0x28>;
-                               //clocks = <&clkc CLKID_SPICC>;
-                               clock-names = "spicc_clk";
-                               interrupts = <0 81 1>;
-                               device_id = <0>;
                        };
 
                        uart_A: serial@84c0 {
                        function = "dtv";
                };
        };
+
+       spicc_pins: spicc {
+               mux {
+                       groups = "spi_miso_a",
+                               "spi_mosi_a",
+                               "spi_clk_a";
+                       function = "spi_a";
+               };
+       };
 };
index 743eef8..d48e90f 100644 (file)
        mem_alloc = <0>;
        pxp_mode = <0>; /** 0:normal mode 1:pxp mode */
 };
+
+&spicc {
+       status = "disabled";
+       pinctrl-names = "default";
+       pinctrl-0 = <&spicc_pins>;
+       cs-gpios = <&gpio GPIOZ_3 0>;
+};