From nobody Sat Sep 21 19:46:17 2024 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 7D9A7ECAAD3 for ; Wed, 14 Sep 2022 08:56:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230083AbiINI4q (ORCPT ); Wed, 14 Sep 2022 04:56:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230107AbiINI4C (ORCPT ); Wed, 14 Sep 2022 04:56:02 -0400 Received: from sender4-op-o14.zoho.com (sender4-op-o14.zoho.com [136.143.188.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50DF1371AB; Wed, 14 Sep 2022 01:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663145733; cv=none; d=zohomail.com; s=zohoarc; b=AoSBTWqQ39jMdawJUMN6V+Cl0FF7bMWFRIG/oEatTajK1kuQv5lExZHNStFm2XkU+acTYJekrJWKSYKraA+UHM4mAItRFHuuGSwzIfUHmd8QL2y4CxcngLL0/fsQk12cDISrDhlZrky3R1AASXZDS8VCXBL4by+XYBWHRUlQIBo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1663145733; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=yAKjMq/uUK9WZ8CnisN9As4Pk+9tXhXvBVyYrH2ZjnQ=; b=RG+PoUpkaGGxECzyQrpf4ygLaoiqPxbkQMWDS91pZ36b32x929DxFmwNtL08kUmHtq7FXvbTKLODWN7fJXsUUnTCodomomy8IakRMthiGeUpP7xHIhMD9wdj2QXbDl4qwVafjQpbXNF2b5UEAyrlak+UuqbHBzI/+2bCM/tvGto= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1663145733; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To; bh=yAKjMq/uUK9WZ8CnisN9As4Pk+9tXhXvBVyYrH2ZjnQ=; b=jfKnSJunLzTND9Hq/5TTo8MGc0iZZZwSXwE5/eMNAIoD5pVSpJfIXEnnA05CuGxW a44/hv0XiVKmkMl6jFeBs5c1s2LHOsFrnAsDhWv8AvEBnTRA94K5KlDYCY9/ltdBrcT eW7fUQqZPxMENUirNlVCXcRRWCl/y6lmCsfK7SSs= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1663145731156740.504015969723; Wed, 14 Sep 2022 01:55:31 -0700 (PDT) From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= To: Krzysztof Kozlowski , Rob Herring , Matthias Brugger , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Thomas Bogendoerfer , Greg Kroah-Hartman , Sean Wang , Landen Chao , DENG Qingfang , Sergio Paracuellos , erkin.bozoglu@xeront.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= Subject: [PATCH 05/10] mips: dts: ralink: mt7621: fix some dtc warnings Date: Wed, 14 Sep 2022 11:54:46 +0300 Message-Id: <20220914085451.11723-6-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220914085451.11723-1-arinc.unal@arinc9.com> References: <20220914085451.11723-1-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the dtc warnings below. /cpus/cpu@0: failed to match any schema with compatible: ['mips,mips1004Kc'] /cpus/cpu@1: failed to match any schema with compatible: ['mips,mips1004Kc'] uartlite@c00: $nodename:0: 'uartlite@c00' does not match '^serial(@.*)?$' From schema: /home/arinc9/Documents/linux/Documentation/devicetree/binding= s/serial/8250.yaml uartlite@c00: Unevaluated properties are not allowed ('clock-names' was une= xpected) From schema: /home/arinc9/Documents/linux/Documentation/devicetree/binding= s/serial/8250.yaml sdhci@1e130000: $nodename:0: 'sdhci@1e130000' does not match '^mmc(@.*)?$' From schema: /home/arinc9/Documents/linux/Documentation/devicetree/binding= s/mmc/mtk-sd.yaml sdhci@1e130000: Unevaluated properties are not allowed ('bus-width', 'cap-m= mc-highspeed', 'cap-sd-highspeed', 'disable-wp', 'max-frequency', 'vmmc-sup= ply', 'vqmmc-supply' were unexpected) From schema: /home/arinc9/Documents/linux/Documentation/devicetree/binding= s/mmc/mtk-sd.yaml xhci@1e1c0000: $nodename:0: 'xhci@1e1c0000' does not match '^usb(@.*)?' From schema: /home/arinc9/Documents/linux/Documentation/devicetree/binding= s/usb/mediatek,mtk-xhci.yaml xhci@1e1c0000: compatible: ['mediatek,mt8173-xhci'] is too short From schema: /home/arinc9/Documents/linux/Documentation/devicetree/binding= s/usb/mediatek,mtk-xhci.yaml switch0@0: $nodename:0: 'switch0@0' does not match '^(ethernet-)?switch(@.*= )?$' From schema: /home/arinc9/Documents/linux/Documentation/devicetree/binding= s/net/dsa/mediatek,mt7530.yaml port@1: status:0: 'off' is not one of ['okay', 'disabled', 'reserved'] From schema: /home/arinc9/.local/lib/python3.10/site-packages/dtschema/sch= emas/dt-core.yaml port@2: status:0: 'off' is not one of ['okay', 'disabled', 'reserved'] From schema: /home/arinc9/.local/lib/python3.10/site-packages/dtschema/sch= emas/dt-core.yaml port@3: status:0: 'off' is not one of ['okay', 'disabled', 'reserved'] From schema: /home/arinc9/.local/lib/python3.10/site-packages/dtschema/sch= emas/dt-core.yaml - Remove "mips,mips1004Kc" compatible string from the cpu nodes. This doesn't exist anywhere. - Change "memc: syscon@5000" to "memc: memory-controller@5000". - Change "uartlite: uartlite@c00" to "serial0: serial@c00" and remove the aliases node. - Remove "clock-names" from the serial0 node. The property doesn't exist on the 8250.yaml schema. - Change "sdhci: sdhci@1e130000" to "mmc: mmc@1e130000". - Change "xhci: xhci@1e1c0000" to "usb: usb@1e1c0000". - Add "mediatek,mtk-xhci" as the second compatible string on the usb node. - Change "switch0: switch0@0" to "switch0: switch@0" - Change "off" to "disabled" for disabled nodes. Remaining warnings are caused by the lack of json-schema documentation. /cpuintc: failed to match any schema with compatible: ['mti,cpu-interrupt-c= ontroller'] /palmbus@1e000000/wdt@100: failed to match any schema with compatible: ['me= diatek,mt7621-wdt'] /palmbus@1e000000/i2c@900: failed to match any schema with compatible: ['me= diatek,mt7621-i2c'] /palmbus@1e000000/spi@b00: failed to match any schema with compatible: ['ra= link,mt7621-spi'] /ethernet@1e100000: failed to match any schema with compatible: ['mediatek,= mt7621-eth'] Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL --- .../boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 2 +- .../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 2 +- arch/mips/boot/dts/ralink/mt7621.dtsi | 32 +++++++------------ 3 files changed, 14 insertions(+), 22 deletions(-) diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts b/arch/mips= /boot/dts/ralink/mt7621-gnubee-gb-pc1.dts index 24eebc5a85b1..6ecb8165efe8 100644 --- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts +++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts @@ -53,7 +53,7 @@ system { }; }; =20 -&sdhci { +&mmc { status =3D "okay"; }; =20 diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts b/arch/mips= /boot/dts/ralink/mt7621-gnubee-gb-pc2.dts index 34006e667780..2e534ea5bab7 100644 --- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts +++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts @@ -37,7 +37,7 @@ key-reset { }; }; =20 -&sdhci { +&mmc { status =3D "okay"; }; =20 diff --git a/arch/mips/boot/dts/ralink/mt7621.dtsi b/arch/mips/boot/dts/ral= ink/mt7621.dtsi index ee46ace0bcc1..9302bdc04510 100644 --- a/arch/mips/boot/dts/ralink/mt7621.dtsi +++ b/arch/mips/boot/dts/ralink/mt7621.dtsi @@ -15,13 +15,11 @@ cpus { =20 cpu@0 { device_type =3D "cpu"; - compatible =3D "mips,mips1004Kc"; reg =3D <0>; }; =20 cpu@1 { device_type =3D "cpu"; - compatible =3D "mips,mips1004Kc"; reg =3D <1>; }; }; @@ -33,11 +31,6 @@ cpuintc: cpuintc { compatible =3D "mti,cpu-interrupt-controller"; }; =20 - aliases { - serial0 =3D &uartlite; - }; - - mmc_fixed_3v3: regulator-3v3 { compatible =3D "regulator-fixed"; regulator-name =3D "mmc_power"; @@ -110,17 +103,16 @@ i2c: i2c@900 { pinctrl-0 =3D <&i2c_pins>; }; =20 - memc: syscon@5000 { + memc: memory-controller@5000 { compatible =3D "mediatek,mt7621-memc", "syscon"; reg =3D <0x5000 0x1000>; }; =20 - uartlite: uartlite@c00 { + serial0: serial@c00 { compatible =3D "ns16550a"; reg =3D <0xc00 0x100>; =20 clocks =3D <&sysc MT7621_CLK_UART1>; - clock-names =3D "uart1"; =20 interrupt-parent =3D <&gic>; interrupts =3D ; @@ -236,7 +228,7 @@ pinmux { }; }; =20 - sdhci: sdhci@1e130000 { + mmc: mmc@1e130000 { status =3D "disabled"; =20 compatible =3D "mediatek,mt7620-mmc"; @@ -262,8 +254,8 @@ sdhci: sdhci@1e130000 { interrupts =3D ; }; =20 - xhci: xhci@1e1c0000 { - compatible =3D "mediatek,mt8173-xhci"; + usb: usb@1e1c0000 { + compatible =3D "mediatek,mt8173-xhci", "mediatek,mtk-xhci"; reg =3D <0x1e1c0000 0x1000 0x1e1d0700 0x0100>; reg-names =3D "mac", "ippc"; @@ -338,7 +330,7 @@ fixed-link { gmac1: mac@1 { compatible =3D "mediatek,eth-mac"; reg =3D <1>; - status =3D "off"; + status =3D "disabled"; phy-mode =3D "rgmii-rxid"; }; =20 @@ -346,7 +338,7 @@ mdio: mdio-bus { #address-cells =3D <1>; #size-cells =3D <0>; =20 - switch0: switch0@0 { + switch0: switch@0 { compatible =3D "mediatek,mt7621"; reg =3D <0>; mediatek,mcm; @@ -362,31 +354,31 @@ ports { #size-cells =3D <0>; =20 port@0 { - status =3D "off"; + status =3D "disabled"; reg =3D <0>; label =3D "lan0"; }; =20 port@1 { - status =3D "off"; + status =3D "disabled"; reg =3D <1>; label =3D "lan1"; }; =20 port@2 { - status =3D "off"; + status =3D "disabled"; reg =3D <2>; label =3D "lan2"; }; =20 port@3 { - status =3D "off"; + status =3D "disabled"; reg =3D <3>; label =3D "lan3"; }; =20 port@4 { - status =3D "off"; + status =3D "disabled"; reg =3D <4>; label =3D "lan4"; }; --=20 2.34.1