From patchwork Fri Mar 8 18:12:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10845275 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3BF5214E1 for ; Fri, 8 Mar 2019 18:12:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 250442F9DF for ; Fri, 8 Mar 2019 18:12:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 157DD2F9E9; Fri, 8 Mar 2019 18:12:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 18C0F2F9DF for ; Fri, 8 Mar 2019 18:12:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2R4b1kHua9xAqnfBGrWJkzuWCAoiI5xS9Tg7q5aaF6g=; b=Fu3zJCvkEmYhk7 IsdZAev2I//OFp6Vwj4hWnpN/eaIFwAng+l9ooTAmqS+Bs2Tz6npfrK09SisIU+svs5QRbCJWWQZ9 O3ySxK2JYfgeCPOvHVqZKr6sCGF8PA2qUcTSe03ySSh33VjvVZlwBTKhUlxDRiqM19/0+MGRHfwps 43Kki31i6rrd2DtmGffc6k9MboALVWNoMUmmisjYArhp0za87iQMZghN2aJjYqfq1edlqN3KlhDg9 zz6H1ZiT8/83NuLXPVxGrs2vH6+7GwjdIoKbOefnrhU9Usy1BGNXkkdsmvgdXD7zrzg0gkuL6CrvY 9Xz/+7DuDxsNNCsMZ60A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2Jys-0001GJ-DM; Fri, 08 Mar 2019 18:12:26 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2Jyp-0001FY-0B for linux-rockchip@lists.infradead.org; Fri, 08 Mar 2019 18:12:25 +0000 Received: by mail-pg1-x544.google.com with SMTP id u9so14739149pgo.7 for ; Fri, 08 Mar 2019 10:12:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FUKQaODABn/oZOf+onZ5rneyapc1XbYqiZDDzJ++KSE=; b=QWdThOdHurz8h6fibdN4+5+ShZDElRmH2KDA2naXuuPSpiev29/DefNwsT7WoyJocJ uGg0YXcgoRmAbWGN2Jc3n+BCu2/4f5VOS05vaweuRttfOndgJUpwApXqREvBONTOWdX2 48BVZDtjpubpaoG6qUeHvR+t9Tknrn+lz4klQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FUKQaODABn/oZOf+onZ5rneyapc1XbYqiZDDzJ++KSE=; b=cXYsz8xNR6EMpM9fDT30SwvIOqWnV0J5w4cTdBcA2ziCPOjYHW2+dZJuse0ylIORYK KwR9GZbQKNMLsSzVAsVsK58T7UPq5zKTqWlfEm4nXwts90KdunQ9BKaqInHbbYmCiSXk D6EWD6I7e2CzrKf731S+kErVqXscvMGCRPyh5WpiKCDdejvxEOMMNhGCpF3x9AgNJHJY cCtaNhQe4g0/cYy2WYGUOy9OzqxrcQX+Rj8gnN8BiGyaUFX/OTJIMY6HkUFsEaB+ngqj ikNYHLWUMEyDLzDgaWTOgVivMrAI0i4WUIqbueQKFlVeGI3goPpBUOw5Ku+oP1AyfrOy OEyQ== X-Gm-Message-State: APjAAAVOV+eOFycyysn9g8n8cLs1NpGLzrmNTbdMPP/JkjU7buLIKaQe 4MTDXM3Z9nvAo4ZrGgpBZYuAjQ== X-Google-Smtp-Source: APXvYqzE6vKZU1Mk2eZz4romYtdZwDHJLpXP9EmDjgloa3Jss3s5xLvTW0k92lwU4+RtmvilcEzImg== X-Received: by 2002:a63:d5f:: with SMTP id 31mr17841845pgn.274.1552068741679; Fri, 08 Mar 2019 10:12:21 -0800 (PST) Received: from localhost.localdomain ([183.82.225.164]) by smtp.gmail.com with ESMTPSA id h13sm13783465pfn.114.2019.03.08.10.12.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Mar 2019 10:12:20 -0800 (PST) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Mark Rutland , Tomeu Vizoso Subject: [PATCH] arm64: dts: rockchip: Add Nanopi NEO4 initial support Date: Fri, 8 Mar 2019 23:42:02 +0530 Message-Id: <20190308181202.11607-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190308_101223_514286_63BEA332 X-CRM114-Status: GOOD ( 13.64 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jagan Teki , linux-arm-kernel@lists.infradead.org, Akash Gajjar Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP FriendlyElec NanoPi NEO4 is known to be a revision 4 based NanoPi4 series of boards. Most of know peripherals are shared between Nanopi M4 vs NEO4, except - 1GB DDR3 - USB Host ports - Missing DSI port - USB 2.0 Host with USB2PHY0 (no USB2PH1) Add support for it, by reusing existing rk3399-nanopi4.dtsi Signed-off-by: Jagan Teki Signed-off-by: Akash Gajjar Reviewed-by: Rob Herring --- .../devicetree/bindings/arm/rockchip.yaml | 1 + arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3399-nanopi-neo4.dts | 50 +++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-nanopi-neo4.dts diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml index 061a03edf9c8..543237b7b297 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -97,6 +97,7 @@ properties: - enum: - friendlyarm,nanopc-t4 - friendlyarm,nanopi-m4 + - friendlyarm,nanopi-neo4 - const: rockchip,rk3399 - description: GeekBuying GeekBox diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index 1b28fa72ea0b..186281fb70dd 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -18,6 +18,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-scarlet-inx.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-scarlet-kd.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-nanopc-t4.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-nanopi-m4.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-nanopi-neo4.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-haikou.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-neo4.dts b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-neo4.dts new file mode 100644 index 000000000000..195410b089b9 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-neo4.dts @@ -0,0 +1,50 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2019 Amarula Solutions B.V. + * Author: Jagan Teki + */ + +/dts-v1/; + +#include "rk3399-nanopi4.dtsi" + +/ { + model = "FriendlyARM NanoPi NEO4"; + compatible = "friendlyarm,nanopi-neo4", "rockchip,rk3399"; + + vdd_5v: vdd-5v { + compatible = "regulator-fixed"; + regulator-name = "vdd_5v"; + regulator-always-on; + regulator-boot-on; + }; + + vcc5v0_core: vcc5v0-core { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_core"; + regulator-always-on; + regulator-boot-on; + vin-supply = <&vdd_5v>; + }; + + vcc5v0_usb1: vcc5v0-usb1 { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_usb1"; + regulator-always-on; + regulator-boot-on; + vin-supply = <&vcc5v0_sys>; + }; +}; + +&vcc3v3_sys { + vin-supply = <&vcc5v0_core>; +}; + +&u2phy0_host { + phy-supply = <&vcc5v0_usb1>; +}; + +&vbus_typec { + regulator-always-on; + vin-supply = <&vdd_5v>; +};