blob: ef1a3c954bfb95653f91088a0b54da683830b0ed [file] [log] [blame]
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
/dts-v1/;
#include "meson-c1.dtsi"
/ {
compatible = "amlogic,c1";
model = "Amlogic Meson c1 Development Board";
aliases {
serial0 = &uart_A;
i2c0 = &i2c0;
i2c1 = &i2c1;
i2c2 = &i2c2;
i2c3 = &i2c3;
i2c4 = &i2c4;
};
chosen {
stdout-path = "serial0:115200n8";
};
memory@0 {
device_type = "memory";
linux,usable-memory = <0x0 0x0 0x0 0x20000000>;
};
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
secmon_reserved:linux,secmon {
compatible = "shared-dma-pool";
reusable;
size = <0x0 0x400000>;
alignment = <0x0 0x400000>;
alloc-ranges = <0x0 0x05000000 0x0 0x400000>;
};
dsp_fw_reserved:linux,dsp_fw {
compatible = "amlogic, aml_dsp_memory";
reusable;
size = <0x0 0x800000>;
alignment = <0x0 0x400000>;
alloc-ranges = <0x0 0x3400000 0x0 0x800000>;
};
fb_reserved:linux,meson-fb {
compatible = "shared-dma-pool";
reusable;
size = <0x0 0x800000>;
alignment = <0x0 0x400000>;
};
ion_cma_reserved:linux,ion-dev {
compatible = "shared-dma-pool";
reusable;
size = <0x0 0x8000000>;
alignment = <0x0 0x400000>;
};
gdc_cma_reserved:linux,gdc_cma {
compatible = "shared-dma-pool";
reusable;
status = "okay";
size = <0x0 0x04000000>;
alignment = <0x0 0x400000>;
};
jpegenc_cma_reserved:linux,jpegenc_cma {
compatible = "shared-dma-pool";
reusable;
size = <0x0 0x2400000>;
alignment = <0x0 0x400000>;
};
};
};
&gdc {
status = "okay";
memory-region = <&gdc_cma_reserved>;
};
&sd_emmc_c {
status = "okay";
pinctrl-0 = <&emmc_pins>;
pinctrl-1 = <&emmc_clk_gate_pins>;
pinctrl-names = "default", "clk-gate";
bus-width = <8>;
cap-sd-highspeed;
cap-mmc-highspeed;
max-frequency = <200000000>;
non-removable;
disable-wp;
//mmc-ddr-1_8v;
mmc-hs200-1_8v;
card_type = <1>;/*emmc:1,sdcard:2,sdio:3*/
// vmmc-supply = <&vcc_3v3>;
// vqmmc-supply = <&vddio_boot>;
};
/* SD card */
&sd_emmc_b {
status = "okay";
pinctrl-0 = <&sdcard_pins>;
pinctrl-1 = <&sdcard_clk_gate_pins>;
pinctrl-names = "default", "clk-gate";
bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
disable-wp;
cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_HIGH>;
cd-inverted;
card_type = <5>;
// vmmc-supply = <&vddao_3v3>;
// vqmmc-supply = <&vddio_boot>;
};
/*sdio*/
&sd_emmc_a {
status = "okay";
pinctrl-0 = <&sdio_pins>;
pinctrl-1 = <&sdio_clk_gate_pins>;
pinctrl-names = "default", "clk-gate";
bus-width = <4>;
cap-sd-highspeed;
sd-uhs-sdr12;
sd-uhs-sdr25;
sd-uhs-sdr50;
sd-uhs-sdr104;
non-removable;
max-frequency = <200000000>;
disable-wp;
cap-sdio-irq;
keep-power-in-suspend;
card_type = <3>;
// vmmc-supply = <&vddao_3v3>;
// vqmmc-supply = <&vddio_boot>;
};
&nand {
status = "disabled";
pinctrl-names = "nand_norb_mod", "nand_cs_only";
pinctrl-0 = <&all_nand_pins>;
pinctrl-1 = <&nand_cs_pins>;
/* bl_mode: 0 compact mode; 1 descrete mode */
bl_mode = <1>;
fip_copies = <4>;
fip_size = <0x200000>;
nand_clk_ctrl = <0xFE000920>;
};
&uart_A {
status = "okay";
};
&meson_fb {
status = "okay";
display_size_default = <1920 1080 1920 1080 32>;
mem_size = <0x00800000>;
};