From: Amit Singh Tomar Date: Sat, 25 Jan 2020 17:52:53 +0530 Subject: [PATCH v3 11/21] arm: add Cubieboard7 board support In-Reply-To: <1579954983-11329-1-git-send-email-amittomer25@gmail.com> References: <1579954983-11329-1-git-send-email-amittomer25@gmail.com> Message-ID: <1579954983-11329-12-git-send-email-amittomer25@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de The Cubieboard is a single board computer containing a Actions S700 SoC(with 4 ARMv8 Cortex-A53 cores). This patch adds respective defconfig alongwith device tree(sync with Linux v5.5-rc6). Signed-off-by: Amit Singh Tomar --- Changes since v2: * Synced with Linux tag v5.5-rc6. Changes since v1: * No changes. --- arch/arm/dts/s700-cubieboard7.dts | 92 +++++++++++++++++++++++++++++++++++= ++++ configs/cubieboard7_defconfig | 16 +++++++ 2 files changed, 108 insertions(+) create mode 100644 arch/arm/dts/s700-cubieboard7.dts create mode 100644 configs/cubieboard7_defconfig diff --git a/arch/arm/dts/s700-cubieboard7.dts b/arch/arm/dts/s700-cubieboa= rd7.dts new file mode 100644 index 0000000..63e375c --- /dev/null +++ b/arch/arm/dts/s700-cubieboard7.dts @@ -0,0 +1,92 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2017 Andreas F=C3=A4rber + */ + +/dts-v1/; + +#include "s700.dtsi" + +/ { + compatible =3D "cubietech,cubieboard7", "actions,s700"; + model =3D "CubieBoard7"; + + aliases { + serial3 =3D &uart3; + }; + + chosen { + stdout-path =3D "serial3:115200n8"; + }; + + memory at 0 { + device_type =3D "memory"; + reg =3D <0x0 0x0 0x0 0x80000000>; + }; + + memory at 1,e0000000 { + device_type =3D "memory"; + reg =3D <0x1 0xe0000000 0x0 0x0>; + }; +}; + +&i2c0 { + status =3D "okay"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2c0_default>; +}; + +&i2c1 { + status =3D "okay"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2c1_default>; +}; + +&i2c2 { + status =3D "disabled"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2c2_default>; +}; + +&pinctrl { + i2c0_default: i2c0_default { + pinmux { + groups =3D "i2c0_mfp"; + function =3D "i2c0"; + }; + pinconf { + pins =3D "i2c0_sclk", "i2c0_sdata"; + bias-pull-up; + }; + }; + + i2c1_default: i2c1_default { + pinmux { + groups =3D "i2c1_dummy"; + function =3D "i2c1"; + }; + pinconf { + pins =3D "i2c1_sclk", "i2c1_sdata"; + bias-pull-up; + }; + }; + + i2c2_default: i2c2_default { + pinmux { + groups =3D "i2c2_dummy"; + function =3D "i2c2"; + }; + pinconf { + pins =3D "i2c2_sclk", "i2c2_sdata"; + bias-pull-up; + }; + }; +}; + +&timer { + clocks =3D <&hosc>; +}; + +&uart3 { + status =3D "okay"; +}; diff --git a/configs/cubieboard7_defconfig b/configs/cubieboard7_defconfig new file mode 100644 index 0000000..0459997 --- /dev/null +++ b/configs/cubieboard7_defconfig @@ -0,0 +1,16 @@ +CONFIG_ARM=3Dy +CONFIG_ARCH_OWL=3Dy +CONFIG_MACH_S700=3Dy +CONFIG_IDENT_STRING=3D"\ncubieboard7" +CONFIG_DISTRO_DEFAULTS=3Dy +CONFIG_NR_DRAM_BANKS=3D1 +CONFIG_BOOTDELAY=3D5 +CONFIG_USE_BOOTARGS=3Dy +CONFIG_BOOTARGS=3D"console=3DttyOWL3,115200n8" +# CONFIG_DISPLAY_CPUINFO is not set +# CONFIG_DISPLAY_BOARDINFO is not set +CONFIG_SYS_PROMPT=3D"U-Boot =3D> " +CONFIG_CMD_MD5SUM=3Dy +CONFIG_CMD_MEMINFO=3Dy +CONFIG_CMD_TIMER=3Dy +CONFIG_DEFAULT_DEVICE_TREE=3D"s700-cubieboard7" --=20 2.7.4