From patchwork Sun Jun 24 18:28:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10484739 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8700F6019D for ; Sun, 24 Jun 2018 18:30:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 731772886B for ; Sun, 24 Jun 2018 18:30:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 677CB2883D; Sun, 24 Jun 2018 18:30:14 +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=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI 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 D0E072883D for ; Sun, 24 Jun 2018 18:30:13 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=M1ncEqE92MKjLldrw6FDcSio7SgXhrloZIfiaZosA/c=; b=JoPItKFDPa+aY3ZZWOsoq81QOt o2L4kZS3Tg6FhAjj4uKQxB1tWazqbwHX/FjXP4CWgWAL2dBV1sh94cWdXdpdNkYGrwmMUlM/cK4SS 8qI51AVaNfiiVxBA3p149CBv4+S6jJCW5mZED8cxqxYaastqlTWhFLqKKDL0mKlwpBK1r+s86oi6V x/g13MUX+VAJ4s0cLfw57X8lDJufTGmtEaA6A+j6w/Y8P4I/sAbjH5COuwy3Ny9YpdUG8VQLlg28Y Of+2Y3bmLU2GfzxMzYm1Hggk5CA4cZfFkKTSC4713FeeLlUSRHPwusEWfMUs5L4M4LoKaWE6Xwni7 ASEM4y9A==; 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 1fX9ly-0002Jh-Jv; Sun, 24 Jun 2018 18:30:02 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fX9kq-0001mi-Sr; Sun, 24 Jun 2018 18:28:54 +0000 Received: by mail-wm0-x242.google.com with SMTP id z13-v6so1396295wma.5; Sun, 24 Jun 2018 11:28:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jic40CohUpF8DurU+jnGxZ1J/PIh0YeLp5IvZzF5TjM=; b=Mq7YQTp/+jtbHPmXjX4rDraUH+Vnz93ZZOegQeSnmvPx+Afi/TP4fOLiEQNicDUGqb b3Z+p7sMqO7IgUfZJyQPufKEUXfm6KdpQEHMEr5OTIXyDToEqWwxA9WXLBSgrI/plsmB 01Wv+z5fwICEejsxK3l18OUBNDAhvGAlmMhYO7AT8rTg2CUImMVxqGz5w1q/bnCl1aMO 107w8nNrHYjL7zpRXO1a1Edfp9pdC0YnCupwQcRDN621cmQ3ZfVf2R3qT8Tj1CfCnaVI abLoSJsmK2WS/2G74n95YTy4yz9uML/0dCDIeMLaBNNaTZ3YgHJA0nQjYL1JQXviOddL nysw== 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:in-reply-to :references; bh=jic40CohUpF8DurU+jnGxZ1J/PIh0YeLp5IvZzF5TjM=; b=ZXx0mchfN2CeIV9pePpkjVcMn/fRD2FgzLGOmAmfwBMlINYQ0JpIIGSIV+mGIhmU+T bezowTVhK3SS0xLwuFFaZAcMNEpvD2F1UvUDpny9TaYN8Gy+HW2Np736B15f+5DCVqJ3 EJbu4iEY25Fc8RUyagNaTIkiwNICF5T95MFCGpMOoD9kCXZBYUEbzDm5aIAhr+QcCVgd iaaOpL1a9QjWNyU1bEVkuUDHsNzI7oi5lJ3EeEvz+qzjctfYB4r+WJT032oITnFQFLdF OOji8F8LkZaW6UnXMzDOZY/Z/ZJvLIJeEj+VgnsuyuwPmsEMEVfGlIR03vdoFquLzeaG yLHQ== X-Gm-Message-State: APt69E28Wpe6JkJzxuUlmj7g2r5XHIuQbTPZFu5yEfgpdFqsc0jbEgGz 4l8XofXJnM+xg6Y4X5SS+SeVjrOK X-Google-Smtp-Source: ADUXVKJ4wZEhNK15cVY16MQvcscluV7P4ukM08wyV5/uM6OtHDbQP21rOCKowCLbx2YEGvVD7zhZlg== X-Received: by 2002:a1c:87c8:: with SMTP id j191-v6mr2684167wmd.97.1529864923082; Sun, 24 Jun 2018 11:28:43 -0700 (PDT) Received: from blackbox.darklights.net (p5DE38BB3.dip0.t-ipconnect.de. [93.227.139.179]) by smtp.googlemail.com with ESMTPSA id u15-v6sm11416419wma.37.2018.06.24.11.28.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Jun 2018 11:28:42 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, carlo@caione.org, khilman@baylibre.com Subject: [RfC v1 4/5] ARM64: dts: meson-gxl: add support for the S905W SoC and the P281 board - WiP Date: Sun, 24 Jun 2018 20:28:13 +0200 Message-Id: <20180624182814.31691-5-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180624182814.31691-1-martin.blumenstingl@googlemail.com> References: <20180624182814.31691-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180624_112852_935754_CF35BA2D X-CRM114-Status: GOOD ( 14.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , jbrunet@baylibre.com, yixun.lan@amlogic.com, linux-arm-kernel@lists.infradead.org, narmstrong@baylibre.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP S905W is a new SoC from the GXL series. It is a cost-reduced version of the S905X. The P281 development board from Amlogic uses the same layout as the P231 (S905D development board). Thus the new P281 board inherits meson-gx-p23x-q20x.dtsi to avoid code-duplication. Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../boot/dts/amlogic/meson-gxl-s905w-p281.dts | 22 +++++++++++++++++++ .../boot/dts/amlogic/meson-gxl-s905w.dtsi | 20 +++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s905w-p281.dts create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s905w.dtsi diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index 34dd0e9b5cbb..6de2e7f5a9cc 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -17,6 +17,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-nexbox-a95x.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-p212.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-p230.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-p231.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-p281.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxm-khadas-vim2.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxm-nexbox-a1.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxm-q200.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-p281.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-p281.dts new file mode 100644 index 000000000000..d4faed54c223 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-p281.dts @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2018 Martin Blumenstingl . + * Based on meson-gxl-s905d-p231.dts: + * - Copyright (c) 2016 Endless Computers, Inc. + * Author: Carlo Caione + */ + +/dts-v1/; + +#include "meson-gxl-s905w.dtsi" +#include "meson-gx-p23x-q20x.dtsi" + +/ { + compatible = "amlogic,p281", "amlogic,s905w", "amlogic,meson-gxl"; + model = "Amlogic Meson GXL (S905W) P281 Development Board"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x40000000>; + }; +}; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905w.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl-s905w.dtsi new file mode 100644 index 000000000000..a4ed586d328b --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905w.dtsi @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2018 Martin Blumenstingl . + * Based on meson-gxl-s905x.dtsi: + * - Copyright (c) 2016 Endless Computers, Inc. + * Author: Carlo Caione + */ + +#include "meson-gxl.dtsi" +#include "meson-gxl-mali.dtsi" + +/ { + compatible = "amlogic,s905w", "amlogic,meson-gxl"; +}; + +/* S905W only has access to it's internal PHY */ +ðmac { + phy-mode = "rmii"; + phy-handle = <&internal_phy>; +};