};
};
+ /* to use "dirspi" of amlogic-driver for T312 */
+ spicc_b:spicc_b {
+ compatible = "amlogic, spicc";
+ status = "disabled";
+ device_id = <1>;
+ reg = <0xffd15000 0x3c>;
+ clocks = <&clkc CLKID_SPICC1>,
+ <&clkc CLKID_SPICC1_COMP>;
+ clock-names = "cts_spicc_hclk", "spicc_clk";
+ clk_rate = <166666666>;
+ //interrupts = <0 90 1>;
+ enhance = <1>;
+ dma_tx_threshold = <3>;
+ dma_rx_threshold = <3>;
+ dma_num_per_read_burst = <3>;
+ dma_num_per_write_burst = <3>;
+ ssctl = <0>;
+ dma_en = <0>;
+ delay_control = <0x15>;
+ cs_delay = <10>;
+ enhance_dlyctl = <0>;
+ };
spifc: spifc@ffd14000 {
compatible = "amlogic,aml-spi-nor";
};
};
+ spicc1_pins_h: spicc1_pins_h {
+ mux {
+ groups = "spi1_mosi_h",
+ "spi1_miso_h",
+ "spi1_clk_h";
+ function = "spi1";
+ drive-strength = <1>;
+ };
+ };
+
internal_eth_pins: internal_eth_pins {
mux {
groups = "eth_link_led",
cs-gpios = <&gpio GPIOH_20 0>;
};
+&spicc_b {
+ status = "disabled";
+ pinctrl-names= "default";
+ pinctrl-0=<&spicc1_pins_h>;
+ num_chipselect = <1>;
+ cs-gpios = <&gpio GPIOH_0 GPIO_ACTIVE_HIGH>;
+};
+
&meson_fb {
status = "okay";
display_size_default = <1920 1080 1920 2160 32>;
};
};
+ /* to use "dirspi" of amlogic-driver for T312 */
+ spicc_b:spicc_b {
+ compatible = "amlogic, spicc";
+ status = "disabled";
+ device_id = <1>;
+ reg = <0x0 0xffd15000 0x0 0x3c>;
+ clocks = <&clkc CLKID_SPICC1>,
+ <&clkc CLKID_SPICC1_COMP>;
+ clock-names = "cts_spicc_hclk", "spicc_clk";
+ clk_rate = <166666666>;
+ //interrupts = <0 90 1>;
+ enhance = <1>;
+ dma_tx_threshold = <3>;
+ dma_rx_threshold = <3>;
+ dma_num_per_read_burst = <3>;
+ dma_num_per_write_burst = <3>;
+ ssctl = <0>;
+ dma_en = <0>;
+ delay_control = <0x15>;
+ cs_delay = <10>;
+ enhance_dlyctl = <0>;
+ };
spifc: spifc@ffd14000 {
compatible = "amlogic,aml-spi-nor";
};
};
+ spicc1_pins_h: spicc1_pins_h {
+ mux {
+ groups = "spi1_mosi_h",
+ "spi1_miso_h",
+ "spi1_clk_h";
+ function = "spi1";
+ drive-strength = <1>;
+ };
+ };
+
internal_eth_pins: internal_eth_pins {
mux {
groups = "eth_link_led",
cs-gpios = <&gpio GPIOH_20 0>;
};
+&spicc_b {
+ status = "disabled";
+ pinctrl-names= "default";
+ pinctrl-0=<&spicc1_pins_h>;
+ num_chipselect = <1>;
+ cs-gpios = <&gpio GPIOH_0 GPIO_ACTIVE_HIGH>;
+};
+
&meson_fb {
status = "okay";
display_size_default = <1920 1080 1920 2160 32>;
if (spicc->clk_rate) {
clk_set_rate(spicc->clk, spicc->clk_rate);
clk_prepare_enable(spicc->clk);
+ clk_prepare_enable(spicc->hclk);
}
if (spicc_get_flag(spicc, FLAG_ENHANCE)) {