From e396b3a38aaa6688077a6ebfff714dfda5e9c6a5 Mon Sep 17 00:00:00 2001 From: Xu Jianqun Date: Tue, 16 Feb 2016 15:27:30 +0800 Subject: [PATCH] ARM64: dts: rockchip: add dts file for rk3399 chromebook Change-Id: I17589cef588958601448ff7e3615b84ef95dd506 Signed-off-by: Xu Jianqun --- arch/arm64/boot/dts/rockchip/Makefile | 5 +- .../arm64/boot/dts/rockchip/rk3399-chrome.dts | 66 +++++++++++++++++++ 2 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-chrome.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index 71ceda0a7bd0..3a15b471e282 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -1,8 +1,9 @@ +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3366-fpga.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3366-tb.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-r88.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-tb-sheep.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-chrome.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-fpga.dtb -dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3366-fpga.dtb -dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3366-tb.dtb always := $(dtb-y) subdir-y := $(dts-dirs) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-chrome.dts b/arch/arm64/boot/dts/rockchip/rk3399-chrome.dts new file mode 100644 index 000000000000..62f009f62a5f --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-chrome.dts @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; +#include "rk3399.dtsi" + +/ { + model = "Rockchip Chrome"; + compatible = "rockchip,chrome", "rockchip,rk3399"; + + chosen { + bootargs = "rootwait cros_debug cros_secure ro root=/dev/mmcblk0p3 init=/sbin/init console=uart,mmio32,0xff1a0000"; + }; + + memory@00000000 { + device_type = "memory"; + reg = <0x0 0x00000000 0x0 0x20000000>; + }; +}; + +&i2s0 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; -- 2.34.1