From: Adrian Schmutzler Date: Sat, 28 Dec 2019 15:04:48 +0000 (+0100) Subject: samsung: use soc_vendor_model scheme for DTS file name X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6e70e4a071b233da83486414e65d15756ede63d2;p=openwrt%2Fstaging%2Fblocktrron.git samsung: use soc_vendor_model scheme for DTS file name This patch changes the samsung target to calculate the DTS file name from vendor and device name and the SOC (i.e. subtarget) following the common scheme: soc_vendor_model.dts This also updates the device definition name to make compatible, image name, menuconfig name and DTS name consistent. Signed-off-by: Adrian Schmutzler --- diff --git a/target/linux/samsung/dts/TQ210.dts b/target/linux/samsung/dts/TQ210.dts deleted file mode 100644 index d32e3400f9..0000000000 --- a/target/linux/samsung/dts/TQ210.dts +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Samsung's S5PV210 SoC device tree source - * Copyright (C) 2018 Jianhui Zhao - * - * Board device tree source for TQ210 board. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -/dts-v1/; -#include -#include -#include "s5pv210.dtsi" - -/ { - model = "Embedsky TQ210 based on S5PV210"; - compatible = "embedsky,tq210", "samsung,s5pv210"; - - chosen { - bootargs = "console=ttySAC0,115200n8"; - }; - - memory@20000000 { - device_type = "memory"; - reg = <0x20000000 0x40000000>; - }; - - ethernet@88000000 { - compatible = "davicom,dm9000"; - reg = <0x88000000 0x2 0x88000004 0x2>; - interrupt-parent = <&gph1>; - interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; - local-mac-address = [00 00 de ad be ef]; - davicom,no-eeprom; - clocks = <&clocks CLK_SROMC>; - clock-names = "sromc"; - }; -}; - -&xxti { - clock-frequency = <24000000>; -}; - -&uart0 { - status = "okay"; -}; - -&nand { - status = "okay"; - nand-ecc-mode = "soft"; - - partition@0 { - label = "boot"; - reg = <0x0 0x40000>; /* 246KB */ - read-only; - }; - - partition@40000 { - label = "kernel"; - reg = <0x40000 0x300000>; /* 3MB */ - }; - - partition@340000 { - label = "rootfs"; - reg = <0x340000 0x3fcc0000>; /* 1020MB */ - }; -}; diff --git a/target/linux/samsung/dts/s5pv210_embedsky_tq210.dts b/target/linux/samsung/dts/s5pv210_embedsky_tq210.dts new file mode 100644 index 0000000000..d32e3400f9 --- /dev/null +++ b/target/linux/samsung/dts/s5pv210_embedsky_tq210.dts @@ -0,0 +1,69 @@ +/* + * Samsung's S5PV210 SoC device tree source + * Copyright (C) 2018 Jianhui Zhao + * + * Board device tree source for TQ210 board. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +/dts-v1/; +#include +#include +#include "s5pv210.dtsi" + +/ { + model = "Embedsky TQ210 based on S5PV210"; + compatible = "embedsky,tq210", "samsung,s5pv210"; + + chosen { + bootargs = "console=ttySAC0,115200n8"; + }; + + memory@20000000 { + device_type = "memory"; + reg = <0x20000000 0x40000000>; + }; + + ethernet@88000000 { + compatible = "davicom,dm9000"; + reg = <0x88000000 0x2 0x88000004 0x2>; + interrupt-parent = <&gph1>; + interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; + local-mac-address = [00 00 de ad be ef]; + davicom,no-eeprom; + clocks = <&clocks CLK_SROMC>; + clock-names = "sromc"; + }; +}; + +&xxti { + clock-frequency = <24000000>; +}; + +&uart0 { + status = "okay"; +}; + +&nand { + status = "okay"; + nand-ecc-mode = "soft"; + + partition@0 { + label = "boot"; + reg = <0x0 0x40000>; /* 246KB */ + read-only; + }; + + partition@40000 { + label = "kernel"; + reg = <0x40000 0x300000>; /* 3MB */ + }; + + partition@340000 { + label = "rootfs"; + reg = <0x340000 0x3fcc0000>; /* 1020MB */ + }; +}; diff --git a/target/linux/samsung/image/Makefile b/target/linux/samsung/image/Makefile index 697d317c9f..53509ef137 100644 --- a/target/linux/samsung/image/Makefile +++ b/target/linux/samsung/image/Makefile @@ -13,14 +13,15 @@ define Device/Default PROFILES = Default KERNEL_NAME := zImage KERNEL := kernel-bin | append-dtb | uImage none + DEVICE_DTS_DIR := ../dts + DEVICE_DTS = $$(SOC)_$(1) endef -define Device/tq210 - DEVICE_VENDOR := Samsung +define Device/embedsky_tq210 + DEVICE_VENDOR := EmbedSky DEVICE_MODEL := TQ210 - DEVICE_DTS_DIR := ../dts - DEVICE_DTS := TQ210 + SOC := s5pv210 endef -TARGET_DEVICES += tq210 +TARGET_DEVICES += embedsky_tq210 $(eval $(call BuildImage))