From patchwork Thu Oct 31 16:53:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 178211 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3110111ill; Thu, 31 Oct 2019 09:53:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzg98bWeIYg77yX/WC8AB9h/oMvGZ+VU2XsG647a97lIVT/FI/SWsfnhmR+K1H1E4z3xqzW X-Received: by 2002:a17:906:6bc3:: with SMTP id t3mr4951915ejs.147.1572540796242; Thu, 31 Oct 2019 09:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572540796; cv=none; d=google.com; s=arc-20160816; b=bBnPDvc1ZV+k+bMINfDvsse5xDV3awtC5IQ7CifOtK6VR6+ZHASeIlk01Rm3KDspDE B4GHuNai21XF0DJc16mibSwo5C0mISvXfDbT5qQ9Lb3frZkM8VgwWiTXRzbdruUvMZyk Ouh31OzEmnPv5VaC3ZpbChXBoKT2zj+j3jZ8FHC9qLHLPRFkf//C/q9UtR9ITzMHihwk /3kOF+u5VQ5qMhOJo1A07jMxqZOPYW7hZU+iWaSjFE5tsZiXDH9rOweUg+8X0oPeYCEb 19rdZFDXmkYEc+ge/wL7/RXLow3Msdke4uk9wXFWd7siGuVMgGyVhooRQUxwvbv0ASSj OQKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ty0bBInMVJl4EIq3rCBNQUCuBzdZyG1ljhBuARpl49s=; b=w2PvDML/ZzO7EPC9QGef9HRYdv32f87+IG/WakQ0rN1/c3xf6Fn1EbWOg/nL52C4Li 0Bj+X/xuhoa0458oj+WfsCoPIfVtAI72OzZWElQh4MSssPEzOyznvMdNI8QfhxAjIuo3 N1VRnmNEVgNAZy9U2BZHDzXexUko5faIbaM80iETdWwJph+2IoAxH3woeqIZcxp8l0su vJj0lKTlRtdr461k+7Hf5bXXlLbLhO5BufWlHt585bTk5glKcVMib+NZs059N+07ahMm qRyZXRvr6JL8waGuT9n3QICWPMg+3ltwTf0C7bl4CXcKMp8xbNR3K1qfhvPs5428xvew w49Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6si29458ejw.412.2019.10.31.09.53.16; Thu, 31 Oct 2019 09:53:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728755AbfJaQxN (ORCPT + 8 others); Thu, 31 Oct 2019 12:53:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:34772 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728561AbfJaQxM (ORCPT ); Thu, 31 Oct 2019 12:53:12 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E88A8B2FB; Thu, 31 Oct 2019 16:53:10 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH v2 1/4] dt-bindings: arm: realtek: Add RTD1195 and MeLE X1000 Date: Thu, 31 Oct 2019 17:53:04 +0100 Message-Id: <20191031165308.14102-2-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191031165308.14102-1-afaerber@suse.de> References: <20191031165308.14102-1-afaerber@suse.de> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add bindings for Realtek RTD1195 SoC and MeLE X1000 TV box. Reviewed-by: Rob Herring Signed-off-by: Andreas Färber --- v1 -> v2: Unchanged * Added Reviewed-by Documentation/devicetree/bindings/arm/realtek.yaml | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.16.4 diff --git a/Documentation/devicetree/bindings/arm/realtek.yaml b/Documentation/devicetree/bindings/arm/realtek.yaml index ab59de17152d..091616880d25 100644 --- a/Documentation/devicetree/bindings/arm/realtek.yaml +++ b/Documentation/devicetree/bindings/arm/realtek.yaml @@ -14,6 +14,12 @@ properties: const: '/' compatible: oneOf: + # RTD1195 SoC based boards + - items: + - enum: + - mele,x1000 # MeLE X1000 + - const: realtek,rtd1195 + # RTD1293 SoC based boards - items: - enum: From patchwork Thu Oct 31 16:53:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 178213 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3110273ill; Thu, 31 Oct 2019 09:53:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTCILRCsSRQFEQkrkollObq0sCQGIVaHdmQ4n6IDFMaSoTEPMRIPpQu5uDV/rmBWZPGCCn X-Received: by 2002:aa7:d3c4:: with SMTP id o4mr7485436edr.194.1572540802869; Thu, 31 Oct 2019 09:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572540802; cv=none; d=google.com; s=arc-20160816; b=AKSbw52Omo6k66EYMdyhk81jjtqSSvTILa3Dx8uzyBxI99O9nBwS22Ni87iqvz1v3E Dk6RHmeWEu+oYJH527Ow2sc2IB9l0P0v6cywMd3aWJgeY82aE6VZqDp57C+hQWhB7tIl 2vClM03ulA7/gSa/I9aUWt2zAPBz9Yh3Fhr/vaM15d8yWs4MOhThRd3Q/B4d8QZ551Sy 6AM8lxmuwPEPhd0y38pfSv9mJMUgOT36FpuwVg6yLMmeX7UrwLt+9cvnXGMvLd3aCboA XP+aUwuOaefYm52BzHnG5FkNGvdbx8uHpoYWpbkA/Or0AQVQ/Dm62cjiPHWwEhgTGxMr LmWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=A6/ZFjXwCDzWbpa2UbPrmz2ib58wjI19bZbln4FK/h4=; b=yqF194Ny6ZTYNjRf1JaYT6nYbZbtonoUFDWT8YNz6bozYxW9/5cDcz6RLU+uJgpgyr LFOmg76TU9bBa4WEBpWAMgh2q/qdfDOddAMnIpl/PENLMQZbqWTUnhh63wEGwgZZs0dg z6T7AR92qQzty7aapeCkKOxnX913Dm5NPDSWp+bjgr/O2CO+ntUOfoJj3dDt6NLZ+R2P 5ln3LdsQiZVQpc7YnSnA3/Ja08pVGT379cKocw96dqGLph/9d7UhlxTo6oMMe5jLpRTQ UWi6FNTKA7cakD7gbRO6vhWIZ1vS7TcyJX0ety3mTe5t4plPgNcz8gEJQjzli2IioKnx gSLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si4693143edl.371.2019.10.31.09.53.22; Thu, 31 Oct 2019 09:53:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728705AbfJaQxW (ORCPT + 8 others); Thu, 31 Oct 2019 12:53:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:34794 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727715AbfJaQxO (ORCPT ); Thu, 31 Oct 2019 12:53:14 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 66270B307; Thu, 31 Oct 2019 16:53:12 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH v2 3/4] ARM: dts: Prepare Realtek RTD1195 and MeLE X1000 Date: Thu, 31 Oct 2019 17:53:06 +0100 Message-Id: <20191031165308.14102-4-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191031165308.14102-1-afaerber@suse.de> References: <20191031165308.14102-1-afaerber@suse.de> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add Device Trees for Realtek RTD1195 SoC and MeLE X1000 TV box. Reuse the existing RTD1295 watchdog compatible for now. Signed-off-by: Andreas Färber --- v1 -> v2: * Dropped /memreserve/ and reserved-memory nodes for peripherals and NOR (Rob) * Carved them out from memory reg instead (Rob) * Converted some /memreserve/s to reserved-memory nodes arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/rtd1195-mele-x1000.dts | 31 ++++++++ arch/arm/boot/dts/rtd1195.dtsi | 127 +++++++++++++++++++++++++++++++ 3 files changed, 160 insertions(+) create mode 100644 arch/arm/boot/dts/rtd1195-mele-x1000.dts create mode 100644 arch/arm/boot/dts/rtd1195.dtsi -- 2.16.4 Reviewed-by: Rob Herring diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index e352598c05ae..cb710bf98a80 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -864,6 +864,8 @@ dtb-$(CONFIG_ARCH_QCOM) += \ dtb-$(CONFIG_ARCH_RDA) += \ rda8810pl-orangepi-2g-iot.dtb \ rda8810pl-orangepi-i96.dtb +dtb-$(CONFIG_ARCH_REALTEK) += \ + rtd1195-mele-x1000.dtb dtb-$(CONFIG_ARCH_REALVIEW) += \ arm-realview-pb1176.dtb \ arm-realview-pb11mp.dtb \ diff --git a/arch/arm/boot/dts/rtd1195-mele-x1000.dts b/arch/arm/boot/dts/rtd1195-mele-x1000.dts new file mode 100644 index 000000000000..834b430e6250 --- /dev/null +++ b/arch/arm/boot/dts/rtd1195-mele-x1000.dts @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +/* + * Copyright (c) 2017-2019 Andreas Färber + */ + +/dts-v1/; + +#include "rtd1195.dtsi" + +/ { + compatible = "mele,x1000", "realtek,rtd1195"; + model = "MeLE X1000"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x18000000>, + <0x19100000 0x26f00000>; + }; +}; + +&uart0 { + status = "okay"; +}; diff --git a/arch/arm/boot/dts/rtd1195.dtsi b/arch/arm/boot/dts/rtd1195.dtsi new file mode 100644 index 000000000000..582f169644b5 --- /dev/null +++ b/arch/arm/boot/dts/rtd1195.dtsi @@ -0,0 +1,127 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +/* + * Copyright (c) 2017-2019 Andreas Färber + */ + +/memreserve/ 0x00000000 0x0000a800; /* boot code */ +/memreserve/ 0x0000c000 0x000f4000; +/memreserve/ 0x17fff000 0x00001000; + +#include + +/ { + compatible = "realtek,rtd1195"; + interrupt-parent = <&gic>; + #address-cells = <1>; + #size-cells = <1>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + reg = <0x0>; + clock-frequency = <1000000000>; + }; + + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + reg = <0x1>; + clock-frequency = <1000000000>; + }; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + rpc_comm: rpc@b000 { + reg = <0x0000b000 0x1000>; + }; + + audio@1b00000 { + reg = <0x01b00000 0x400000>; + }; + + rpc_ringbuf: rpc@1ffe000 { + reg = <0x01ffe000 0x4000>; + }; + + secure@10000000 { + reg = <0x10000000 0x100000>; + no-map; + }; + }; + + arm-pmu { + compatible = "arm,cortex-a7-pmu"; + interrupts = , + ; + interrupt-affinity = <&cpu0>, <&cpu1>; + }; + + timer { + compatible = "arm,armv7-timer"; + interrupts = , + , + , + ; + clock-frequency = <27000000>; + }; + + osc27M: osc { + compatible = "fixed-clock"; + clock-frequency = <27000000>; + #clock-cells = <0>; + clock-output-names = "osc27M"; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x18000000 0x18000000 0x00100000>, + <0x18100000 0x18100000 0x01000000>, + <0x40000000 0x40000000 0xc0000000>; + + wdt: watchdog@18007680 { + compatible = "realtek,rtd1295-watchdog"; + reg = <0x18007680 0x100>; + clocks = <&osc27M>; + }; + + uart0: serial@18007800 { + compatible = "snps,dw-apb-uart"; + reg = <0x18007800 0x400>; + reg-shift = <2>; + reg-io-width = <4>; + clock-frequency = <27000000>; + status = "disabled"; + }; + + uart1: serial@1801b200 { + compatible = "snps,dw-apb-uart"; + reg = <0x1801b200 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + clock-frequency = <27000000>; + status = "disabled"; + }; + + gic: interrupt-controller@ff011000 { + compatible = "arm,cortex-a7-gic"; + reg = <0xff011000 0x1000>, + <0xff012000 0x2000>; + interrupt-controller; + #interrupt-cells = <3>; + }; + }; +};