From patchwork Mon Jun 26 14:18:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dinh Nguyen X-Patchwork-Id: 697532 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C124FEB64DC for ; Mon, 26 Jun 2023 14:24:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231240AbjFZOYj (ORCPT ); Mon, 26 Jun 2023 10:24:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbjFZOYU (ORCPT ); Mon, 26 Jun 2023 10:24:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 282AE10FA for ; Mon, 26 Jun 2023 07:23:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 77FE060EAB for ; Mon, 26 Jun 2023 14:18:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F050FC433C8; Mon, 26 Jun 2023 14:18:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687789120; bh=ndiYDbtOCK6BF7vBXWo/UzfWqJQEmf/9rTYycHtkgLQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SceMcukoHGe5Avkn62GcN9Hhoj7dys0j1wG6ut8V0K45zSsN4GmkYimVr7kDmwT8X LBDpsJPG7k6DgdWwjoLiwiyDXHS6WwIY7pGz521guMQ8o89RlYisCa4tk56qqYPUuf hgvI8OhSfQWU6c5dzgt9ZDjnqSgcJivD7qL5eE9JJKH5RVrx3JDmK55DBHg7lxw1cJ eOVS4n22kViM68D5piUqHJKlkUF7j98yZVl6q7LAG6vd+H3qTBivM9UvmcuMGZBqIi Z+FTbkNNYawLZMX1M2zNVVf1oVgJrz69eOe1gm6WII59i7WHfT/+FbghYIYtNIRB8P cTZdXygtJFG7g== From: Dinh Nguyen To: devicetree@vger.kernel.org Cc: dinguyen@kernel.org, robh+dt@kernel.org, krzysztof.kozlowskii+dt@linaro.org, conor+dt@kernel.org Subject: [PATCH 1/5] arm64: dts: socfpga: agilex/n5x/stratix10: fix dtbs_check warning for partitions Date: Mon, 26 Jun 2023 09:18:22 -0500 Message-Id: <20230626141826.414777-2-dinguyen@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230626141826.414777-1-dinguyen@kernel.org> References: <20230626141826.414777-1-dinguyen@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org flash@0: partitions: Unevaluated properties are not allowed ('partition@3FE0000' was unexpected) Signed-off-by: Dinh Nguyen --- arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | 2 +- arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_nand.dts | 4 ++-- arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts | 2 +- arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts index 38ae674f2f02..c66da5a94691 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts @@ -205,7 +205,7 @@ qspi_boot: partition@0 { reg = <0x0 0x03FE0000>; }; - qspi_rootfs: partition@3FE0000 { + qspi_rootfs: partition@3fe0000 { label = "Root Filesystem - JFFS2"; reg = <0x03FE0000 0x0C020000>; }; diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_nand.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_nand.dts index ede99dcc0558..a9ea9e6ec6b3 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_nand.dts +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_nand.dts @@ -103,9 +103,9 @@ &nand { status = "okay"; flash@0 { + reg = <0>; #address-cells = <1>; #size-cells = <1>; - reg = <0>; nand-bus-width = <16>; partition@0 { @@ -194,7 +194,7 @@ qspi_boot: partition@0 { reg = <0x0 0x03FE0000>; }; - qspi_rootfs: partition@3FE0000 { + qspi_rootfs: partition@3fe0000 { label = "Root Filesystem - JFFS2"; reg = <0x03FE0000 0x0C020000>; }; diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts index 07c3f8876613..b6e5e69fd8e5 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts +++ b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts @@ -131,7 +131,7 @@ qspi_boot: partition@0 { reg = <0x0 0x03FE0000>; }; - qspi_rootfs: partition@3FE0000 { + qspi_rootfs: partition@3fe0000 { label = "Root Filesystem - JFFS2"; reg = <0x03FE0000 0x0C020000>; }; diff --git a/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts b/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts index 08c088571270..7b1ced8e1d12 100644 --- a/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts +++ b/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts @@ -109,7 +109,7 @@ qspi_boot: partition@0 { reg = <0x0 0x03FE0000>; }; - qspi_rootfs: partition@3FE0000 { + qspi_rootfs: partition@03fe0000 { label = "Root Filesystem - JFFS2"; reg = <0x03FE0000 0x0C020000>; }; From patchwork Mon Jun 26 14:18:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dinh Nguyen X-Patchwork-Id: 696610 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DF6BEB64D7 for ; Mon, 26 Jun 2023 14:21:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231520AbjFZOVV (ORCPT ); Mon, 26 Jun 2023 10:21:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231526AbjFZOUx (ORCPT ); Mon, 26 Jun 2023 10:20:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EE3219A5 for ; Mon, 26 Jun 2023 07:19:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6819960EB0 for ; Mon, 26 Jun 2023 14:18:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BBB0C433C0; Mon, 26 Jun 2023 14:18:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687789122; bh=lyjyF7Gnd/nd3YyFcaxlXzGxWRvkkszv2U2m25obmSI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m+nK4e/L5tN8ejGtG3Oa3IJNkfRGOcdkICxmFconBeqaYfDLeFEsD4SW5LCRMQELN 2q/wqtJyd1AOn18zNXnSqtv/V1iGK/h/D1UuvDdrgXqxBS0vRVNmt61ssO3UQ12/nT pm4d2vaxxTHE2Nm/S8oU7pULArPsEBi0/w/kPrw2INhIwnif9han7j5GblCuLE+EvD WtVTJu02EqisZdcErAzWtA4bgPHuwgBYY3Du+rWEk4yC7OwsE6jlwzimtftVo4IBEL O9eBrnRy6coxGO6q8B29s4SjNgQ7Ic77HWIwU16OJLz5ho+Wif6fuYR5LK92FJMl51 TE0nebK0ez8QA== From: Dinh Nguyen To: devicetree@vger.kernel.org Cc: dinguyen@kernel.org, robh+dt@kernel.org, krzysztof.kozlowskii+dt@linaro.org, conor+dt@kernel.org Subject: [PATCH 3/5] arm64: dts: socfpga: stratix10: fix dtbs_check warning for usbphy Date: Mon, 26 Jun 2023 09:18:24 -0500 Message-Id: <20230626141826.414777-4-dinguyen@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230626141826.414777-1-dinguyen@kernel.org> References: <20230626141826.414777-1-dinguyen@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org soc: usbphy@0: 'anyOf' conditional failed, one must be fixed: Signed-off-by: Dinh Nguyen --- arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi index 55abc578e0ec..1c846f13539c 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi @@ -487,12 +487,6 @@ uart1: serial@ffc02100 { status = "disabled"; }; - usbphy0: usbphy@0 { - #phy-cells = <0>; - compatible = "usb-nop-xceiv"; - status = "okay"; - }; - usb0: usb@ffb00000 { compatible = "snps,dwc2"; reg = <0xffb00000 0x40000>; @@ -639,4 +633,9 @@ fpga_mgr: fpga-mgr { }; }; }; + + usbphy0: usbphy0 { + compatible = "usb-nop-xceiv"; + #phy-cells = <0>; + }; }; From patchwork Mon Jun 26 14:18:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dinh Nguyen X-Patchwork-Id: 696611 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22E02EB64DA for ; Mon, 26 Jun 2023 14:21:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231494AbjFZOVU (ORCPT ); Mon, 26 Jun 2023 10:21:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231487AbjFZOUx (ORCPT ); Mon, 26 Jun 2023 10:20:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9EAB19F for ; Mon, 26 Jun 2023 07:19:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 400B960E17 for ; Mon, 26 Jun 2023 14:18:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18274C433C8; Mon, 26 Jun 2023 14:18:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687789123; bh=vDF3ZAqT+o2uNsTkPnE3P96PmaEh7IxF0FyUMi6tv5k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=crwJGS2ROdtq238jrz+3429K1JjLo79FVYXejEvBbMnN2yz772zwZsrFLd4M40AbK ACXEj1FH2YSa1dp5kIt0lzQGppiB0COgnmpJlBBbjToEz+yJ8BWnPyDy4+kuTn06wC q1BcDUjO2Ktz0Cw1OquRUVyUjpvDlov9GeJtOkbZx2q6C2r5/PyV2elVk82D6AWII7 DSbBLd8FQO57LQ0VMkk2mAo32TW25D5sdcuyreaj4LxgPw+EoQe1WJHmkiXhg0s5za jbRIPm20j56F8HMfZ37Ep/eFEpsGi2WKfi3V4KoYUdjvAjLURULaNMGIneVfNtkx2A 8lSqAEaNPbi1Q== From: Dinh Nguyen To: devicetree@vger.kernel.org Cc: dinguyen@kernel.org, robh+dt@kernel.org, krzysztof.kozlowskii+dt@linaro.org, conor+dt@kernel.org Subject: [PATCH 4/5] arm64: dts: stratix10/agilex/n5x: fix dtbs_check warning for memory node Date: Mon, 26 Jun 2023 09:18:25 -0500 Message-Id: <20230626141826.414777-5-dinguyen@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230626141826.414777-1-dinguyen@kernel.org> References: <20230626141826.414777-1-dinguyen@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Although, we expect the bootloader to full memory details but passing empty values can give warning, so add a default value. memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 0, 0, 0]]} Signed-off-by: Dinh Nguyen --- arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | 4 ++-- arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_nand.dts | 4 ++-- arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts | 2 +- arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts | 4 ++-- arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts | 4 ++-- arch/arm64/boot/dts/intel/socfpga_agilex_socdk_nand.dts | 4 ++-- arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts | 4 ++-- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts index c66da5a94691..92cd968cb798 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts @@ -38,10 +38,10 @@ led-hps2 { }; }; - memory { + memory@80000000 { device_type = "memory"; /* We expect the bootloader to fill in the reg */ - reg = <0 0 0 0>; + reg = <0 0x80000000 0 0>; }; ref_033v: regulator-v-ref { diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_nand.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_nand.dts index a9ea9e6ec6b3..bd6f78e0fe2f 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_nand.dts +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_nand.dts @@ -38,10 +38,10 @@ led-hps2 { }; }; - memory { + memory@80000000 { device_type = "memory"; /* We expect the bootloader to fill in the reg */ - reg = <0 0 0 0>; + reg = <0 0x80000000 0 0>; }; ref_033v: regulator-v-ref { diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts index a8db58573954..ff413f8e3b07 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts @@ -29,7 +29,7 @@ chosen { linux,initrd-end = <0x125c8324>; }; - memory { + memory@80000000 { device_type = "memory"; reg = <0x0 0x0 0x0 0x80000000>; }; diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts b/arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts index 6231a69204b1..1a32840c74e0 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts +++ b/arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts @@ -20,10 +20,10 @@ chosen { stdout-path = "serial0:115200n8"; }; - memory@0 { + memory@80000000 { device_type = "memory"; /* We expect the bootloader to fill in the reg */ - reg = <0 0 0 0>; + reg = <0 0x80000000 0 0>; }; soc { diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts index b6e5e69fd8e5..4e50d3d10806 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts +++ b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts @@ -37,10 +37,10 @@ led2 { }; }; - memory { + memory@80000000 { device_type = "memory"; /* We expect the bootloader to fill in the reg */ - reg = <0 0 0 0>; + reg = <0 0x80000000 0 0>; }; }; diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk_nand.dts b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk_nand.dts index 51f83f96ec65..0f9020bd0c52 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk_nand.dts +++ b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk_nand.dts @@ -37,10 +37,10 @@ led2 { }; }; - memory { + memory@80000000 { device_type = "memory"; /* We expect the bootloader to fill in the reg */ - reg = <0 0 0 0>; + reg = <0 0x80000000 0 0>; }; }; diff --git a/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts b/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts index 7b1ced8e1d12..755129e5b546 100644 --- a/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts +++ b/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts @@ -19,10 +19,10 @@ chosen { stdout-path = "serial0:115200n8"; }; - memory { + memory@80000000 { device_type = "memory"; /* We expect the bootloader to fill in the reg */ - reg = <0 0 0 0>; + reg = <0 0x80000000 0 0>; }; soc {