/* * 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. */ #include / { fb: fb { compatible = "rockchip,rk-fb"; rockchip,disp-mode = ; status = "disabled"; }; rk_screen: screen { compatible = "rockchip,screen"; status = "disabled"; }; vopl_rk_fb: vop-rk-fb@ff8f0000 { compatible = "rockchip,rk3399-lcdc"; rockchip,prop = ; reg = <0x0 0xff8f0000 0x0 0x3efc>; interrupts = ; clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>; clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc"; resets = <&cru SRST_A_VOP1>, <&cru SRST_H_VOP1>, <&cru SRST_D_VOP1>; reset-names = "axi", "ahb", "dclk"; rockchip,grf = <&grf>; rockchip,pwr18 = <0>; rockchip,iommu-enabled = <0>; status = "disabled"; }; vopl_mmu_rk_fb: vopl-mmu { dbgname = "vop"; compatible = "rockchip,vopl_mmu"; reg = <0x0 0xff8f3f00 0x0 0x100>; interrupts = ; interrupt-names = "vopl_mmu"; status = "disabled"; }; vopb_rk_fb: vop-rk-fb@ff900000 { status = "disabled"; compatible = "rockchip,rk3399-lcdc"; rockchip,prop = ; reg = <0x0 0xff900000 0x0 0x3efc>; interrupts = ; clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>; clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc"; resets = <&cru SRST_A_VOP0>, <&cru SRST_H_VOP0>, <&cru SRST_D_VOP0>; reset-names = "axi", "ahb", "dclk"; rockchip,grf = <&grf>; rockchip,pwr18 = <0>; rockchip,iommu-enabled = <0>; power_ctr: power_ctr { /*rockchip,debug = <0>; lcd_en: lcd-en { rockchip,power_type = ; gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;//GPIO_C6 = 22 rockchip,delay = <10>; }; */ /*lcd_cs: lcd-cs { rockchip,power_type = ; gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;//GPIO_C5 = 21 rockchip,delay = <10>; };*/ /*lcd_rst: lcd-rst { rockchip,power_type = ; gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>; rockchip,delay = <5>; };*/ }; }; vopb_mmu_rk_fb: vopb-mmu { dbgname = "vop"; compatible = "rockchip,vopb_mmu"; reg = <0x0 0xff903f00 0x0 0x100>; interrupts = ; interrupt-names = "vopb_mmu"; status = "disabled"; }; hdmi_rk_fb: hdmi-rk-fb@ff940000 { compatible = "rockchip,rk3399-hdmi"; reg = <0x0 0xff940000 0x0 0x20000>; status = "disabled"; }; mipi0_rk_fb: mipi-rk-fb@ff960000 { compatible = "rockchip,rk3399-dsi"; rockchip,prop = <0>; rockchip,grf = <&grf>; reg = <0x0 0xff960000 0x0 0x8000>; interrupts = ; clocks = <&cru SCLK_MIPIDPHY_REF>, <&cru PCLK_MIPI_DSI0>, <&cru SCLK_MIPIDPHY_CFG>; clock-names = "clk_mipi_24m", "pclk_mipi_dsi", "mipi_dphy_cfg"; status = "disabled"; }; mipi1_rk_fb: mipi-rk-fb@ff968000 { compatible = "rockchip,rk3399-dsi"; rockchip,prop = <1>; reg = <0x0 0xff968000 0x0 0x8000>; interrupts = ; clocks = <&cru SCLK_MIPIDPHY_REF>, <&cru PCLK_MIPI_DSI1>, <&cru SCLK_MIPIDPHY_CFG>; clock-names = "clk_mipi_24m", "pclk_mipi_dsi", "mipi_dphy_cfg"; status = "disabled"; }; };