PD#164751: dts: change all txlx/axg/g12a/g12b dts to use spicc upstream driver.
1. change to use the unified name "spicc0/1".
2. change axg compatible from "amlogic, spicc" to "amlogic,meson-axg-spicc"
to use upstream driver.
3. change txlx compatible from "amlogic, spicc" to "amlogic,meson-txlx-spicc"
to use upstream driver.
3. change g12a compatible from "amlogic, spicc" to "amlogic,meson-g12a-spicc"
to use upstream driver.
4. add node of "amlogic,meson-g12b-spicc" for g12b to use upstream driver.
Change-Id: I587127361fa2ada48332cc01857f2200709d597e
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
}; /* end of pinctrl_periphs */
/* Audio Related End */
-&spicc_a{
+&spicc0 {
status = "okay";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi0_pins>;
+ cs-gpios = <&gpio GPIOZ_3 0>;
};
-&spicc_b{
+&spicc1 {
status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi1_x_pins>;
+ cs-gpios = <&gpio GPIOX_16 0>;
};
&aobus{
}; /* end of pinctrl_periphs */
/* Audio Related End */
-
-&spicc_a{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
-&spicc_b{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
&aobus{
uart_AO: serial@3000 {
compatible = "amlogic, meson-uart";
}; /* end of pinctrl_periphs */
/* Audio Related End */
-
-&spicc_a{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
-&spicc_b{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
&aobus{
uart_AO: serial@3000 {
compatible = "amlogic, meson-uart";
}; /* end of pinctrl_periphs */
/* Audio Related End */
-
-&spicc_a{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
-&spicc_b{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
&aobus{
uart_AO: serial@3000 {
compatible = "amlogic, meson-uart";
}; /* end of pinctrl_periphs */
/* Audio Related End */
-&spicc_a{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
-&spicc_b{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
&aobus{
uart_AO: serial@3000 {
compatible = "amlogic, meson-uart";
}; /* end of pinctrl_periphs */
/* Audio Related End */
-&spicc_a{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
-&spicc_b{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
&aobus{
uart_AO: serial@3000 {
compatible = "amlogic, meson-uart";
}; /* end of pinctrl_periphs */
/* Audio Related End */
-&spicc_a{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
-&spicc_b{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
&aobus{
uart_AO: serial@3000 {
compatible = "amlogic, meson-uart";
}; /* end of pinctrl_periphs */
/* Audio Related End */
-&spicc_a{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
-&spicc_b{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
&aobus{
uart_AO: serial@3000 {
compatible = "amlogic, meson-uart";
}; /* end of pinctrl_periphs */
/* Audio Related End */
-
-&spicc_a{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
-&spicc_b{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
&aobus{
uart_AO: serial@3000 {
compatible = "amlogic, meson-uart";
}; /* end of pinctrl_periphs */
/* Audio Related End */
-
-&spicc_a{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
-&spicc_b{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
&aobus{
uart_AO: serial@3000 {
compatible = "amlogic, meson-uart";
}; /* end of pinctrl_periphs */
/* Audio Related End */
-
-&spicc_a{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
-&spicc_b{
- status = "disabled";
- num_chipselect = <1>;
- dma_en = <0>;
- delay_control = <0x15>;
- cs_delay = <10>;
- enhance_dlyctl = <0>;
-};
-
&aobus{
uart_AO: serial@3000 {
compatible = "amlogic, meson-uart";
pinctrl-names = "default";
pinctrl-0 = <&spicc0_pins_x>;
cs-gpios = <&gpio GPIOX_10 0>;
- num_chipselect = <1>;
};
&spicc1 {
pinctrl-names = "default";
pinctrl-0 = <&spicc1_pins>;
cs-gpios = <&gpio GPIOH_6 0>;
- num_chipselect = <1>;
};
&pwm_ef {
pinctrl-names = "default";
pinctrl-0 = <&spicc0_pins_x>;
cs-gpios = <&gpio GPIOX_10 0>;
- num_chipselect = <1>;
};
&spicc1 {
- status = "okay";
+ status = "disabled";
pinctrl-names = "default";
pinctrl-0 = <&spicc1_pins>;
cs-gpios = <&gpio GPIOH_6 0>;
- num_chipselect = <1>;
};
&pwm_ef {
status = "okay";
};
+&spicc1 {
+ status = "disabled";
+ pinctrl-names = "default";
+ pinctrl-0 = <&spicc1_pins>;
+ cs-gpios = <&gpio GPIOH_6 0>;
+};
clock-names = "clk_i2c";
clock-frequency = <100000>;
};
+
+ spicc0: spi@13000 {
+ compatible = "amlogic,meson-axg-spicc";
+ reg = <0x0 0x13000 0x0 0x40>;
+ interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clkc CLKID_SPICC0>,
+ <&clkc CLKID_SPICC_COMP>;
+ clock-names = "core", "comp";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
+ spicc1: spi@15000 {
+ compatible = "amlogic,meson-axg-spicc";
+ reg = <0x0 0x15000 0x0 0x40>;
+ interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clkc CLKID_SPICC1>,
+ <&clkc CLKID_SPICC_COMP>;
+ clock-names = "core", "comp";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
}; /* end of cbus */
aobus: aobus@ff800000 {
status = "disabled";
};
- spicc_a:spicc_a {
- compatible = "amlogic, spicc";
- status = "disabled";
- reg = <0x0 0xffd13000 0x0 0x3c>;
- clocks = <&clkc CLKID_SPICC0>,
- <&clkc CLKID_SPICC_COMP>;
- clock-names = "spicc_clk",
- "cts_spicc_hclk";
- interrupts = <0 81 1>;
- device_id = <0>;
- enhance = <1>;
- pinctrl-names= "default";
- pinctrl-0=<&spicc_a_pins>;
- dma_tx_threshold = <3>;
- dma_rx_threshold = <3>;
- dma_num_per_read_burst = <3>;
- dma_num_per_write_burst = <3>;
- ssctl = <0>;
- };
-
- spicc_b:spicc_b {
- compatible = "amlogic, spicc";
- status = "disabled";
- reg = <0x0 0xffd15000 0x0 0x3c>;
- clocks = <&clkc CLKID_SPICC1>,
- <&clkc CLKID_SPICC_COMP>;
- clock-names = "spicc_clk",
- "cts_spicc_hclk";
- interrupts = <0 82 1>;
- device_id = <1>;
- enhance = <1>;
- pinctrl-names= "default";
- pinctrl-0=<&spicc_b_pins_X>;
- dma_tx_threshold = <3>;
- dma_rx_threshold = <3>;
- dma_num_per_read_burst = <3>;
- dma_num_per_write_burst = <3>;
- ssctl = <0>;
- };
-
remote:rc@0xff808040 {
compatible = "amlogic, aml_remote";
dev_name = "meson-remote";
};
};
- spicc_a_pins: spicc_a_pins{
+ spi0_pins: spi0 {
mux {
groups = "spi0_clk",
"spi0_mosi",
- "spi0_miso",
- "spi0_ss0";
+ "spi0_miso";
function = "spi0";
};
};
- spicc_b_pins_A: spicc_b_pins_A{
+ spi1_a_pins: spi1_a {
mux {
- groups ="spi1_mosi_a",
- "spi1_miso_a",
- "spi1_clk_a",
- "spi1_ss0_a";
+ groups = "spi1_clk_a",
+ "spi1_mosi_a",
+ "spi1_miso_a";
function = "spi1";
};
};
- spicc_b_pins_X: spicc_b_pins_X{
+ spi1_x_pins: spi1_x {
mux {
- groups = "spi1_mosi_x",
- "spi1_miso_x",
- "spi1_clk_x",
- "spi1_ss0_x";
+ groups = "spi1_clk_x",
+ "spi1_mosi_x",
+ "spi1_miso_x";
function = "spi1";
};
};
};
spicc0: spi@13000 {
- compatible = "amlogic, spicc";
- reg = <0x0 0x13000 0x0 0x40>;
+ compatible = "amlogic,meson-g12a-spicc";
+ reg = <0x0 0x13000 0x0 0x44>;
interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
- clock-names = "spicc_clk";
- clocks = <&clkc CLKID_SPICC0_COMP>;
- clk_rate = <666666666>;
- device_id = <0>;
- enhance = <1>;
- ssctl = <0>;
- dma_tx_threshold = <3>;
- dma_num_per_read_burst = <13>;
- dma_auto_param = <1>;
- delay_control = <0x15>;
+ clocks = <&clkc CLKID_SPICC0>,
+ <&clkc CLKID_SPICC0_COMP>;
+ clock-names = "core", "comp";
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
spicc1: spi@15000 {
- compatible = "amlogic, spicc";
- reg = <0x0 0x15000 0x0 0x40>;
+ compatible = "amlogic,meson-g12a-spicc";
+ reg = <0x0 0x15000 0x0 0x44>;
interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
- clock-names = "spicc_clk";
- clocks = <&clkc CLKID_SPICC1_COMP>;
- clk_rate = <666666666>;
- device_id = <1>;
- enhance = <1>;
- ssctl = <0>;
- dma_tx_threshold = <3>;
- dma_num_per_read_burst = <13>;
- dma_auto_param = <1>;
- delay_control = <0x15>;
+ clocks = <&clkc CLKID_SPICC1>,
+ <&clkc CLKID_SPICC1_COMP>;
+ clock-names = "core", "comp";
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
//"spi0_ss0_x",
"spi0_clk_x";
function = "spi0";
+ drive-strength = <1>;
};
};
"spi0_ss0_c",
"spi0_clk_c";
function = "spi0";
+ drive-strength = <1>;
};
};
//"spi1_ss0",
"spi1_clk";
function = "spi1";
+ drive-strength = <1>;
};
};
};
spicc0: spi@13000 {
- compatible = "amlogic, spicc";
- reg = <0x0 0x13000 0x0 0x40>;
+ compatible = "amlogic,meson-g12b-spicc",
+ "amlogic,meson-g12a-spicc";
+ reg = <0x0 0x13000 0x0 0x44>;
interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
- clock-names = "spicc_clk";
- clocks = <&clkc CLKID_SPICC0_COMP>;
- clk_rate = <666666666>;
- device_id = <0>;
- enhance = <1>;
- ssctl = <0>;
- dma_tx_threshold = <3>;
- dma_num_per_read_burst = <13>;
- dma_auto_param = <1>;
- delay_control = <0x15>;
+ clocks = <&clkc CLKID_SPICC0>,
+ <&clkc CLKID_SPICC0_COMP>;
+ clock-names = "core", "comp";
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
spicc1: spi@15000 {
- compatible = "amlogic, spicc";
- reg = <0x0 0x15000 0x0 0x40>;
+ compatible = "amlogic,meson-g12b-spicc",
+ "amlogic,meson-g12a-spicc";
+ reg = <0x0 0x15000 0x0 0x44>;
interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
- clock-names = "spicc_clk";
- clocks = <&clkc CLKID_SPICC1_COMP>;
- clk_rate = <666666666>;
- device_id = <1>;
- enhance = <1>;
- ssctl = <0>;
- dma_tx_threshold = <3>;
- dma_num_per_read_burst = <13>;
- dma_auto_param = <1>;
- delay_control = <0x15>;
+ clocks = <&clkc CLKID_SPICC1>,
+ <&clkc CLKID_SPICC1_COMP>;
+ clock-names = "core", "comp";
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
//"spi0_ss0_x",
"spi0_clk_x";
function = "spi0";
+ drive-strength = <1>;
};
};
//"spi1_ss0",
"spi1_clk";
function = "spi1";
+ drive-strength = <1>;
};
};
status = "disabled";
};
- spicc0: spicc0 {
- compatible = "amlogic, spicc";
- reg = <0x0 0x13000 0x0 0x40>;
- clock-names = "spicc_clk";
- clocks = <&clkc CLKID_SPICC0>;
- device_id = <0>;
- enhance = <1>;
- ssctl = <0>;
- dma_tx_threshold = <3>;
- dma_num_per_read_burst = <13>;
- dma_auto_param = <1>;
- delay_control = <0x15>;
- #address-cells = <1>;
- #size-cells = <0>;
- status = "disabled";
- };
-
- spicc_a: spi@13000 {
+ spicc0: spi@13000 {
compatible = "amlogic,meson-txlx-spicc";
reg = <0x0 0x13000 0x0 0x3c>;
interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};
- spicc_b: spi@15000 {
+ spicc1: spi@15000 {
compatible = "amlogic,meson-txlx-spicc";
reg = <0x0 0x15000 0x0 0x3c>;
- interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
+ interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clkc CLKID_SPICC1>;
clock-names = "core";
#address-cells = <1>;
status = "okay";
};
-
-&spicc_a {
+&spicc0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi_a_pins>;
};
-&spicc_a {
+&spicc0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi_a_pins>;
status = "okay";
};
-
-&spicc_a {
- status = "disabled";
- pinctrl-names = "default";
- pinctrl-0 = <&spi_a_pins>;
- cs-gpios = <&gpio GPIOZ_3 0>;
-};
-
&spicc0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi_a_pins>;
cs-gpios = <&gpio GPIOZ_3 0>;
- num_chipselect = <1>;
};
status = "okay";
};
-
-&spicc_a {
- status = "disabled";
- pinctrl-names = "default";
- pinctrl-0 = <&spi_a_pins>;
- cs-gpios = <&gpio GPIOZ_3 0>;
-};
-
&spicc0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi_a_pins>;
cs-gpios = <&gpio GPIOZ_3 0>;
- num_chipselect = <1>;
};
status = "okay";
};
-
-&spicc_a {
- status = "disabled";
- pinctrl-names = "default";
- pinctrl-0 = <&spi_a_pins>;
- cs-gpios = <&gpio GPIOZ_3 0>;
-};
-
&spicc0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi_a_pins>;
cs-gpios = <&gpio GPIOZ_3 0>;
- num_chipselect = <1>;
};