From patchwork Sun Oct 20 04:08:11 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: 176982 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp1692847ill; Sat, 19 Oct 2019 21:08:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwD6LMSemGUUOh0THFoSJ/Fc4Ba20ei+Kfr9oPmP/M+kF9nDJg1KVXJxhRax/UTI1isLblF X-Received: by 2002:a50:ace1:: with SMTP id x88mr18050708edc.132.1571544513708; Sat, 19 Oct 2019 21:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571544513; cv=none; d=google.com; s=arc-20160816; b=rTsZ7KT6Ng+oEvRhUyuFeR/bWrnEQ9bjGe3v50Ua8JhadkfubTbi3hs3uuqdVn3gvB 7odCZhSh7vkyDuvulh7Ih+RBP6nYofO6uapXV/4n1jE9U58iwICSRn35rIlKQ3NToAZW wXFjs0vWxfCqna5N4W1BruVgpqsNHrOk4pPDV9Ye1/VU7olbniWgABFugdktnQNGfo6E mfHsAe22jq4QbPff3ac9p/s5m7bF7a+el45O35w6mcr1N0kNZcjDJ5Xn36TF323GZ1Pm Vy8B7ER3/SPXN19asQuec3MEeGpimhGUieoXrwH3nHCkLVpXBavXzRz3WHfGCPmRa6NP YiUg== 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=SpwxBxnLvCpgCSAXsiY7uLl4KYgiP8Bm13Z4knLI0mE=; b=ufWoB+stO4HkUcLU2o0iv2qGl0+tD3XoD3KC2qm6k7iJNgWzRmYlDh0ie316tUQFXJ weud736RBerBFzHQ8lymMSpFpwAQ6jUCQwJPm4/dOsn+EMaquwSD5kIyO9ThJl6Y0BXj j0Bc8k9DSPUAcmDK6Zz7F5jDBb3E239HY7/AraJ9CqMgT4JahS+BT/xyn99zTjNgJXia nw5j1xTMgr7QTG0h6QJJA/IHOhgRtrskgiARQhpb2zlxAF0TQi7H/i9HyLAa1DSNrSY7 J+3UPBu5cCGkJWJ1yyLF2JDeTt5nArdUYubvGDxuh7lJ0wcIQdNZ9HshLv0Kfg7QTT/L nWfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 ok21si6221776ejb.95.2019.10.19.21.08.33; Sat, 19 Oct 2019 21:08:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726313AbfJTEI3 (ORCPT + 26 others); Sun, 20 Oct 2019 00:08:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:37122 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725851AbfJTEI2 (ORCPT ); Sun, 20 Oct 2019 00:08:28 -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 605AAACCA; Sun, 20 Oct 2019 04:08:26 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Alessandro Zummo , Alexandre Belloni , Rob Herring , Mark Rutland , linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/8] dt-bindings: rtc: realtek: Convert RTD119x to schema Date: Sun, 20 Oct 2019 06:08:11 +0200 Message-Id: <20191020040817.16882-3-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191020040817.16882-1-afaerber@suse.de> References: <20191020040817.16882-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the RTD119x binding to a YAML schema. Signed-off-by: Andreas Färber --- v2: New .../devicetree/bindings/rtc/realtek,rtd119x.txt | 16 --------- .../devicetree/bindings/rtc/realtek,rtd119x.yaml | 38 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/realtek,rtd119x.txt create mode 100644 Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml -- 2.16.4 diff --git a/Documentation/devicetree/bindings/rtc/realtek,rtd119x.txt b/Documentation/devicetree/bindings/rtc/realtek,rtd119x.txt deleted file mode 100644 index bbf1ccb5df31..000000000000 --- a/Documentation/devicetree/bindings/rtc/realtek,rtd119x.txt +++ /dev/null @@ -1,16 +0,0 @@ -Realtek RTD129x Real-Time Clock -=============================== - -Required properties: -- compatible : Should be "realtek,rtd1295-rtc" -- reg : Specifies the physical base address and size -- clocks : Specifies the clock gate - - -Example: - - rtc@9801b600 { - compatible = "realtek,rtd1295-clk"; - reg = <0x9801b600 0x100>; - clocks = <&clkc RTD1295_CLK_EN_MISC_RTC>; - }; diff --git a/Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml b/Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml new file mode 100644 index 000000000000..71b7396bd469 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/realtek,rtd119x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek RTD129x Real-Time Clock + +allOf: + - $ref: "rtc.yaml#" + +maintainers: + - Andreas Färber + +properties: + compatible: + const: realtek,rtd1295-rtc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + description: Specifies the clock gate + +required: + - compatible + - reg + - clocks + +examples: + - | + rtc@9801b600 { + compatible = "realtek,rtd1295-clk"; + reg = <0x9801b600 0x100>; + clocks = <&clkc RTD1295_CLK_EN_MISC_RTC>; + }; +... From patchwork Sun Oct 20 04:08:12 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: 176987 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp1693082ill; Sat, 19 Oct 2019 21:08:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqz19A0Z0VfIuMkxoL8WQdHyyad05CHHTbQXGVj+TeavNnuXVSg/u4K8lCHK8SLfpUr8tkzD X-Received: by 2002:aa7:d90d:: with SMTP id a13mr17929475edr.2.1571544531578; Sat, 19 Oct 2019 21:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571544531; cv=none; d=google.com; s=arc-20160816; b=YXv2dMyWmMs2L7pWPdygiKz8kDgkIfJZ2txi8AAzt6lrrXr8r+anviNSMWD5eTsfNU p+XqPML15wSqrYOjoBykE2f/VbZ2M1GtHwat1RaXHI4OEHSEn4O6Gk4U00Uus75kjCz9 4kzXJ2RvqC2Ju+a9oXn28CYQJ9jkNFWig0c+3hYoHPzwU4GtSMdvgd8i6G7omdJHmlRB fH+Rlsv1I5NJI/W9/UprzLBnv/j8LHbZQjCOHvz4knNUXH0ak+wzCdDl73HB99Jy95RA VQG42wRSfYiHwr3V4ZN3WrCsd/hOkI7lNvBpNje1tBMwtGKwyTZEztlPoXMcZsKsMK8g a6ww== 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=pz0ODod9BRIJpbTQB0VUGlmO09veL729XqPF3Tc/WiY=; b=EjQLStr/SFiUtGYbU5zPcMQTRKK6QD02CDr+ronlSwBu4UmcTZ+cO20VDkrGISidch Bh59EGqU3QWaqGntd0EtcQja9F+xGfVWTpzgTFgJVnai5XaNRb64Xm9VEjxtJ79kzI9m b1N1okOr/EzlU0utsr4o5SEN+3ffPEul5r40axI5MNJPygRtlrN6jngjKis+W02Oy0o6 /XawrngYbhLfz3huChwHORYX9Kd74D7KRG/4dxyEyevFc0pym2JXmHGS+YVH/AZ8/mRm aQl1QRUwR7ZeuRfRjU4j23OQmHGdlcw5cxlCicEcyrIPIvdeYTBqqtzq+kdT8cl1gygu RHAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 np3si6208788ejb.384.2019.10.19.21.08.51; Sat, 19 Oct 2019 21:08:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726291AbfJTEI2 (ORCPT + 26 others); Sun, 20 Oct 2019 00:08:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:37136 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725875AbfJTEI2 (ORCPT ); Sun, 20 Oct 2019 00:08:28 -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 A90FCAC2C; Sun, 20 Oct 2019 04:08:26 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/8] dt-bindings: arm: realtek: Tidy up conversion to json-schema Date: Sun, 20 Oct 2019 06:08:12 +0200 Message-Id: <20191020040817.16882-4-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191020040817.16882-1-afaerber@suse.de> References: <20191020040817.16882-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Restore the device names for compatible strings as comments. Prepare for adding more SoCs by inserting oneOf. Fixes: 693af5f3eeaa ("dt-bindings: arm: Convert Realtek board/soc bindings to json-schema") Signed-off-by: Andreas Färber --- v2: New Documentation/devicetree/bindings/arm/realtek.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) -- 2.16.4 diff --git a/Documentation/devicetree/bindings/arm/realtek.yaml b/Documentation/devicetree/bindings/arm/realtek.yaml index 3528b61963b4..66458a3f422d 100644 --- a/Documentation/devicetree/bindings/arm/realtek.yaml +++ b/Documentation/devicetree/bindings/arm/realtek.yaml @@ -13,11 +13,12 @@ properties: $nodename: const: '/' compatible: - # RTD1295 SoC based boards - items: - - enum: - - mele,v9 - - probox2,ava - - zidoo,x9s - - const: realtek,rtd1295 + oneOf: + # RTD1295 SoC based boards + - items: + - enum: + - mele,v9 # MeLE V9 + - probox2,ava # ProBox2 AVA + - zidoo,x9s # Zidoo X9S + - const: realtek,rtd1295 ... From patchwork Sun Oct 20 04:08:14 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: 176983 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp1692857ill; Sat, 19 Oct 2019 21:08:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqztVQbdV2/fRSnCvQQfDCQd3UoKaiYSgEq0gIBRqEZSwxkddxWOrgFM59voRH4BlWSKmkUD X-Received: by 2002:a50:ee8f:: with SMTP id f15mr17943501edr.127.1571544514175; Sat, 19 Oct 2019 21:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571544514; cv=none; d=google.com; s=arc-20160816; b=DPMpKJNaEwI243h0RljeYD7ymOo3sVhIV/XFRynge2ez6qejH7MHqEvyS0uU9OO2Zd nvzkV2nOtyp6f3OnPq0SUFOZy3w4PSpfvbF2DvqOw/WwhqRfBM+6z7IcYwqPNqMSZ6q4 yDsAli0YO+tFl5VUXuWpg0NfziLlINn6QfYIc58KAhyDR7Bnkg2t8BFKofq4zbfwpgrJ gRqKIR8OcFawPniGfSBETOEOyjulDRmReOv/Q9nrxpkQzSyDIk7mAQHNlEyS4nAecz6Q n0m/5RfIvxa5dtsQoECvKhLOrZEB188QJrTOgVN979037Vb2zLjlVIypheZGRT9tfxbB AFhg== 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=rOYVijUhLtnT3GdCYpslZMPln49qZzUZSKK6LB/f/lU=; b=flhHJ3Fuxwwx085RI9myJN9k2i64K4FfrtwURJ+wZeKZzl4N12PmRQqeFcCRwOjHGF XTnAoSvDK+dzsGtYr0eiZEELTNT9MOZgLBNQp52m6rInFWdS94xAXpU+DU6kqiQPcAjF J69b+UYMr+d+pXHkUF1LviSLx2QpaapY4wjQHJ7xNbGkPDlzIugd8dainQ2ENNq5dOpo oUkjNyRL7MsyxWEOK15ewtiLLxcg0hz+2xKhb96vLHvmTIupE7uSfyYhlqSPvR0NHtXa TQECByP0OpJWA55x1Hq6UIE67EQjDoXnCIM7BFf+FVCeiHGmO6Kg/LXidkHXZXHPJobV KBcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 ok21si6221776ejb.95.2019.10.19.21.08.33; Sat, 19 Oct 2019 21:08:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726347AbfJTEIa (ORCPT + 26 others); Sun, 20 Oct 2019 00:08:30 -0400 Received: from mx2.suse.de ([195.135.220.15]:37166 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726125AbfJTEI3 (ORCPT ); Sun, 20 Oct 2019 00:08:29 -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 ACD5CAF87; Sun, 20 Oct 2019 04:08:27 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Rob Herring , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/8] arm64: dts: realtek: Change dual-license from MIT to BSD Date: Sun, 20 Oct 2019 06:08:14 +0200 Message-Id: <20191020040817.16882-6-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191020040817.16882-1-afaerber@suse.de> References: <20191020040817.16882-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move the SPDX-License-Identifier to the top line and update to SPDX 2.0. While at it, switch from GPLv2+/MIT to GPLv2+/BSD2c before adding more. Suggested-by: Rob Herring Cc: Rob Herring Signed-off-by: Andreas Färber --- v2: New arch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts | 3 +-- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 3 +-- arch/arm64/boot/dts/realtek/rtd129x.dtsi | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) -- 2.16.4 Acked-by: Rob Herring diff --git a/arch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts b/arch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts index da19faab29d5..e98e508b9514 100644 --- a/arch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts +++ b/arch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts @@ -1,7 +1,6 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * Copyright (c) 2016-2017 Andreas Färber - * - * SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ /dts-v1/; diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi index 41d7858da826..93f0e1d97721 100644 --- a/arch/arm64/boot/dts/realtek/rtd1295.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd1295.dtsi @@ -1,9 +1,8 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * Realtek RTD1295 SoC * * Copyright (c) 2016-2017 Andreas Färber - * - * SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ #include "rtd129x.dtsi" diff --git a/arch/arm64/boot/dts/realtek/rtd129x.dtsi b/arch/arm64/boot/dts/realtek/rtd129x.dtsi index b9cb92466fc7..a26c375ee1bb 100644 --- a/arch/arm64/boot/dts/realtek/rtd129x.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd129x.dtsi @@ -1,9 +1,8 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * Realtek RTD1293/RTD1295/RTD1296 SoC * * Copyright (c) 2016-2017 Andreas Färber - * - * SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ /memreserve/ 0x0000000000000000 0x0000000000030000; From patchwork Sun Oct 20 04:08:15 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: 176985 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp1692865ill; Sat, 19 Oct 2019 21:08:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3PJCCRYK3f7TM85oCveqGQP19dMptk2CpbSnH0AprY6QN0umkqtVwo1y8ScrushJ3ejOa X-Received: by 2002:a05:6402:1804:: with SMTP id g4mr17977303edy.266.1571544514581; Sat, 19 Oct 2019 21:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571544514; cv=none; d=google.com; s=arc-20160816; b=HY3V1y9aGw0utK6rA0Z8kVrtjLsE0QOJ4GEaCkfKZHdvQWMmfzpJxHKV14k4fWUo4y erEQ41ZhcVtyMzbBfjythS/UvLLFeSamObq7jTV4F+JtK1S2f5+Gv2YVd93qGWBE9YuO aEFdrKInGd2Vkl8tCqVn6nVI4TNRGP2dNm54ruup3KWIMcnm12dASiIaktcRO7a1X5vr eh5yiwA4Fz57/r6YBCqCI7KowXVD0Aopm8hLQk59cEP4+/Yfs8KjOL4o/bev9lwprz0s jBJLedAUoupDQpzRHUMYJgU3ZqIRn9CXBzsRCa9gr6mw9ok6lOLqPs3z4zjNRfT6arTx uWug== 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=WrQFfgCRxb8JnvWAxbakadf3sCBfZZuEE+G1HikNWo8=; b=dvoFfa/mepKXnaQehe/vBUBgwh2mO9RgOgiKZE3JG8lN2woOovmw5lmYrosNvpu4nO rQwDXoLGldvFZJu/8BONO5TmnaQEhT/Qo2D9y74Y8AmA5/m9uLYca8sJSMzvuRTdviBy MBKBPB0N/KJaSdLVgYHBIlltaODZC9sZu/wMWC4ar1ZwnRnbszGQLgkbezzTQMYdZ/8L G4ajKvM5RjpAjgwrUHY68ejEVmuvxyxzNB3wvHmmF+jw+8TBnjndNX1tBS6JFcCFwAoc 1oXlSTSQe20Ond4d88iVxF6ncqf0bPJIH3kddFqOsNq/7rEVfckviP5MHHuBasDjd2dV vs5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 ok21si6221776ejb.95.2019.10.19.21.08.34; Sat, 19 Oct 2019 21:08:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726372AbfJTEIb (ORCPT + 26 others); Sun, 20 Oct 2019 00:08:31 -0400 Received: from mx2.suse.de ([195.135.220.15]:37180 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726294AbfJTEIa (ORCPT ); Sun, 20 Oct 2019 00:08:30 -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 6B383B012; Sun, 20 Oct 2019 04:08:28 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andreas_F=C3=A4rber?= , info@synology.com, Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/8] arm64: dts: realtek: Add RTD1293 and Synology DS418j Date: Sun, 20 Oct 2019 06:08:15 +0200 Message-Id: <20191020040817.16882-7-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191020040817.16882-1-afaerber@suse.de> References: <20191020040817.16882-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Device Trees for RTD1293 SoC and Synology DiskStation DS418j NAS. Cc: info@synology.com Signed-off-by: Andreas Färber --- v1 -> v2: * Moved SPDX-License-Identifier to top * Dropped "arm,armv8" (Rob) * Changed from MIT to BSD-2-Clause (Rob) * Dropped accidental enable-method and cpu-release-addr arch/arm64/boot/dts/realtek/Makefile | 3 ++ arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts | 30 +++++++++++++++ arch/arm64/boot/dts/realtek/rtd1293.dtsi | 51 ++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts create mode 100644 arch/arm64/boot/dts/realtek/rtd1293.dtsi -- 2.16.4 diff --git a/arch/arm64/boot/dts/realtek/Makefile b/arch/arm64/boot/dts/realtek/Makefile index 90c897ac3f7a..e7ff40461ddc 100644 --- a/arch/arm64/boot/dts/realtek/Makefile +++ b/arch/arm64/boot/dts/realtek/Makefile @@ -1,4 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only + +dtb-$(CONFIG_ARCH_REALTEK) += rtd1293-ds418j.dtb + dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-mele-v9.dtb dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-probox2-ava.dtb dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-zidoo-x9s.dtb diff --git a/arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts b/arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts new file mode 100644 index 000000000000..b2dd583146b4 --- /dev/null +++ b/arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +/* + * Copyright (c) 2017 Andreas Färber + */ + +/dts-v1/; + +#include "rtd1293.dtsi" + +/ { + compatible = "synology,ds418j", "realtek,rtd1293"; + model = "Synology DiskStation DS418j"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x40000000>; + }; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&uart0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/realtek/rtd1293.dtsi b/arch/arm64/boot/dts/realtek/rtd1293.dtsi new file mode 100644 index 000000000000..bd4e22723f7b --- /dev/null +++ b/arch/arm64/boot/dts/realtek/rtd1293.dtsi @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +/* + * Realtek RTD1293 SoC + * + * Copyright (c) 2017-2019 Andreas Färber + */ + +#include "rtd129x.dtsi" + +/ { + compatible = "realtek,rtd1293"; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x0 0x0>; + next-level-cache = <&l2>; + }; + + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x0 0x1>; + next-level-cache = <&l2>; + }; + + l2: l2-cache { + compatible = "cache"; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; +}; + +&arm_pmu { + interrupt-affinity = <&cpu0>, <&cpu1>; +}; From patchwork Sun Oct 20 04:08:17 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: 176984 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp1692869ill; Sat, 19 Oct 2019 21:08:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCXaRNQoFlXJ8poCGNwqMpOH/7bsRiDJCS6wms25h/9sGofYq1T85xpSUzpowPC5hy2cN8 X-Received: by 2002:a17:906:90d8:: with SMTP id v24mr16244765ejw.60.1571544515001; Sat, 19 Oct 2019 21:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571544514; cv=none; d=google.com; s=arc-20160816; b=mmWwjMjhUhi4J541DH8aS1vffSA5cnkO1uQAbvvbjTcGjguRgj/tWAsD2EdM26d9mH JQqv3xxfPMB7qMZerVHmIEXjx7lBVFxI6ihnGme91yhY/3LlF/yPQdNcVZTCFbW08KT1 i+u0xer0tVyAS9lehHmHIftbXWs1jc+Qby2wv9pX6x8mnFbSh9ioDsZfCnJA722n904D qzJPORCSxWsAsLliUnu33Aj1A6DrC9x1v0F3+jKnbGB7nwaXRAO+9wkLS2EnTRN/h7D5 rvmi06StMqrqMqKYPTz9f7/R2E3axJp3gQRnCwy++TnKoWhOo17ThXP8DdI54HX/QRhw 4i/g== 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=ZY+ly5S+tw5cAkBaYYY/b09lWyZxenINjPelfFj/Zm0=; b=ERh+nce9HspIWAgx259YKCZiA6tRnQDJVsRGDwgMDJ0FEzlqLGS/3tPc6Scju7LIna hD/ZXKawgWiWxJRq9AI9rIXyI21JxeixENFozg93Qm35yK2pA2OW4Vd4aztpydnPch0I WgpaCpe7KOCJFgJovp0dfkzaRyxmYZpwd1zEUPKmrdPtpf4HtZJCWGpGdupx6GK1xEh/ +TopckMEc6JDPPFLswkHAnKEfoV+vcy8JcwlK+5zCSA8bgFnK6X82PEZFh+KwjZFqWhn 4s0uq/U7mooCPN8xtTrRkynM2W8wVRFmI6YVA5+D7wTDmI6zOMbjoFOIcXYBQwPJWZOo Od0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 ok21si6221776ejb.95.2019.10.19.21.08.34; Sat, 19 Oct 2019 21:08:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726390AbfJTEIc (ORCPT + 26 others); Sun, 20 Oct 2019 00:08:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:37166 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725851AbfJTEIb (ORCPT ); Sun, 20 Oct 2019 00:08:31 -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 839B3B3E5; Sun, 20 Oct 2019 04:08:29 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andreas_F=C3=A4rber?= , info@synology.com, Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 8/8] arm64: dts: realtek: Add RTD1296 and Synology DS418 Date: Sun, 20 Oct 2019 06:08:17 +0200 Message-Id: <20191020040817.16882-9-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191020040817.16882-1-afaerber@suse.de> References: <20191020040817.16882-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Device Trees for RTD1296 SoC and Synology DiskStation DS418. Cc: info@synology.com Signed-off-by: Andreas Färber --- v1 -> v2: * Moved SPDX-License-Identifier to top * Dropped "arm,armv8" (Rob) * Changed from MIT to BSD-2-Clause (Rob) * Dropped accidental enable-method and cpu-release-addr * Fixed DS418 to use rtd1296.dtsi arch/arm64/boot/dts/realtek/Makefile | 2 + arch/arm64/boot/dts/realtek/rtd1296-ds418.dts | 30 +++++++++++++ arch/arm64/boot/dts/realtek/rtd1296.dtsi | 65 +++++++++++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 arch/arm64/boot/dts/realtek/rtd1296-ds418.dts create mode 100644 arch/arm64/boot/dts/realtek/rtd1296.dtsi -- 2.16.4 diff --git a/arch/arm64/boot/dts/realtek/Makefile b/arch/arm64/boot/dts/realtek/Makefile index e7ff40461ddc..555638ada721 100644 --- a/arch/arm64/boot/dts/realtek/Makefile +++ b/arch/arm64/boot/dts/realtek/Makefile @@ -5,3 +5,5 @@ dtb-$(CONFIG_ARCH_REALTEK) += rtd1293-ds418j.dtb dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-mele-v9.dtb dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-probox2-ava.dtb dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-zidoo-x9s.dtb + +dtb-$(CONFIG_ARCH_REALTEK) += rtd1296-ds418.dtb diff --git a/arch/arm64/boot/dts/realtek/rtd1296-ds418.dts b/arch/arm64/boot/dts/realtek/rtd1296-ds418.dts new file mode 100644 index 000000000000..5a051a52bf88 --- /dev/null +++ b/arch/arm64/boot/dts/realtek/rtd1296-ds418.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +/* + * Copyright (c) 2017-2019 Andreas Färber + */ + +/dts-v1/; + +#include "rtd1296.dtsi" + +/ { + compatible = "synology,ds418", "realtek,rtd1296"; + model = "Synology DiskStation DS418"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x80000000>; + }; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&uart0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/realtek/rtd1296.dtsi b/arch/arm64/boot/dts/realtek/rtd1296.dtsi new file mode 100644 index 000000000000..0f9e59cac086 --- /dev/null +++ b/arch/arm64/boot/dts/realtek/rtd1296.dtsi @@ -0,0 +1,65 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +/* + * Realtek RTD1296 SoC + * + * Copyright (c) 2017-2019 Andreas Färber + */ + +#include "rtd129x.dtsi" + +/ { + compatible = "realtek,rtd1296"; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x0 0x0>; + next-level-cache = <&l2>; + }; + + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x0 0x1>; + next-level-cache = <&l2>; + }; + + cpu2: cpu@2 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x0 0x2>; + next-level-cache = <&l2>; + }; + + cpu3: cpu@3 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x0 0x3>; + next-level-cache = <&l2>; + }; + + l2: l2-cache { + compatible = "cache"; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; +}; + +&arm_pmu { + interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; +};