From nobody Thu Aug 27 01:43:12 2026 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A206478868 for ; Wed, 8 Jul 2026 14:41:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783521663; cv=none; b=NRAw7+e8CPyXqKyqQlKnvAVrz9zUOGxlmjJDiOtfy9SeGxBCkNd1aUqvmeer2Ib/Q8boCO5rvC02tJygPH3QwRoxSAaPa/BCBemKtDSevU5iSoRSwGqNjSq5ZPgmqNPIhVLL1B57FDNCAuHVliHLfLUeGMzQOnASTCEuryl2BMo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783521663; c=relaxed/simple; bh=mvLf2VO5gkvRQA+OlmI770eNxRUlkZPnEmWKeYHyiQw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GuQHNhxxd7OX44fcD8wpwM8SOpHynkjZR2hIv6ZgIRTLTwv4vTIUFWzMSIj2+GvfwYYxo7OG7M/dkkzEO4ZsW21gNK1N4bnYIhvZDvrTTJDF6d3XW1SZcOa02ge/gwWJDsBbMqbPTF7daSBno+jez5r4MgyM7VKrO3uA8/h1wiY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=JJRRQOm0; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=F73f0U0G; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="JJRRQOm0"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="F73f0U0G" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 668C3Crf2751118 for ; Wed, 8 Jul 2026 14:41:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= f1TnfJqS1AipREtUbwrb2yRIUV0zrh4oiQZqHC1Av7A=; b=JJRRQOm0ZCA+QvpU 6uAsaanw8mh3uZtMlVyJn1GtBsZgfGAQaf2WnF52L5Y7c5fw8rlEgRmxdmfFDqfm 7XrOn7BwMerNhFIUEEkRDBYQjbKEhkghr4YAXyrUyPvoo8fe5HxwCOKKbplss4dv oAIVzVFEInzx0JvIjVn6lYekHPeauks8mFP6Jwd2xv0Fjdu+w/ddc2dXg8nUpMd3 92GkPZWe2R4SIBKrkxGV1GCx+MFsOyZ+hk2EyMSqBl39am1vXer9tc/98PRaQDU3 4gFtjqEDqbFjF9VHVOjtnXFN1EM3Ps7Wv1h69Pi5vwrDrQpp/i2BY3KU4pNMFMRx CQT0Yw== Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f9g7hj77k-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 08 Jul 2026 14:41:01 +0000 (GMT) Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-51c21c01cf3so15917641cf.2 for ; Wed, 08 Jul 2026 07:41:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783521660; x=1784126460; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=f1TnfJqS1AipREtUbwrb2yRIUV0zrh4oiQZqHC1Av7A=; b=F73f0U0G2O1o4AieR043VXN+3qLnQJzK53XtWbmNQJIuVqj6wEnBC9Jwj2MXM7y+jY h9eron6vnQRy8SqaVWdNBl6QZ6Fhm+rhoS6xcyrOWCyfxCCoJfBJdbDEyRacxOXkEMg8 u3Z3ct9k4iIiecErfg+ehdXc4vB6Ub5UfEEZGNtM82EiXzjTmoJy5GEf2tcEg4xF1W3y /bI3IctFSwNpbhQWguZxfV4znaVgnNp+8NY4mRnFPtVjEMB6eRpc+0KyXXl+wAxsweUR 2Nebzk5/TNRu/+MVB/XbB/8nyVXwiEIZqDDoSGz9oDYJT4jSVVYT0rTYx+I4uzZo3gFh MnXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783521660; x=1784126460; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=f1TnfJqS1AipREtUbwrb2yRIUV0zrh4oiQZqHC1Av7A=; b=s5rniwHbeMKO06bRJHFohR6vyoOCL49zrgxwx25U/0yZ3GXo9dFY+smX0Lr97KNVKJ 40Voup+A6YlzQ4ZpNHS0fKxIhoQQpUbhj2B7IjuMbZRPQOToFNat5bpyJq3YdFIe1NGC 3nT9SSWXySPV62ffIYMs01aUENjMNVLV+PaU0Ur8c7HeA8v2EIrQQZOXRQTNn/zfsvrW zJ3uBRICl3MRsyvE0WS0aMBO6dexGrwcKSytlee1rTuNIhzs3oLEN6k8LqgBnrf8RBqg esQz6dyXda9dN0NidNWN3fhiNEHTLbR8xGog7R2cDa2T0uGqXckXuSte6EyqbegeTxYD E1DQ== X-Forwarded-Encrypted: i=1; AHgh+Rp3TDIlaJIyaBA0kfGo0kIvNbXovm3uP2SA0RvcQyt1EBFpPY3C8iAbARYg6jLizLszHhcudgO1LQSh+JU=@vger.kernel.org X-Gm-Message-State: AOJu0YxdBwU1Ty+PztYsvowIxvjoP4m30FMKqyoDE9PTvTjR4MAEazDE hPF/bqpfjj7OZiWWI6xU87A8YWAQj/WixQcU/WmFj/5QehB4+Xr8ai3p8XBVgcmiCC9x7QiM0DS YgiLiTP25x7RtuMFcF0qOch/RVWkJ9QTi9uxyi2iUf8no5GNP3S7pBTn5LZjAz8DIqxA= X-Gm-Gg: AfdE7cl+Sp6yRRbDSw9WRq5JDc9Nw+ZrnFpCLSGhq86NkOY8nw5AdY/RcVjzRMOuaYa jvx31H84CqaUJQTYhq6Xey/5qTkHCOi051+7pp/Q8V3i5/4czjPYuYRh1MQ9DU8Vbrm+d19oMN4 EwtnPDBf2JTT9A/CFwCcoiCWbdrCRztMlssiVpd9BDcZFg/QqE2eHzu83wdK3kBDPb3hRF2yC5R gfZewygdXSmhQN5yL0DfXum00OahhoLeh8Cn1eVn1yx2mV6RqMG2qjAd1LxB5IquNavN9K6Yvjz bFNE941Po1mxADCh70Jl7q4+5bZ7H6qG1X8T4ZeZwoCvC2Xhbrzu/ULKM2GbiiS7/P1HnIfFe8h wZFXpaL5IqUn0Ru+lec8hy4FkvJXoeYccCpg= X-Received: by 2002:ac8:59cd:0:b0:51c:257c:8166 with SMTP id d75a77b69052e-51c8b3d7022mr29593241cf.33.1783521660266; Wed, 08 Jul 2026 07:41:00 -0700 (PDT) X-Received: by 2002:ac8:59cd:0:b0:51c:257c:8166 with SMTP id d75a77b69052e-51c8b3d7022mr29592891cf.33.1783521659732; Wed, 08 Jul 2026 07:40:59 -0700 (PDT) Received: from [127.0.1.1] ([178.197.223.174]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c15da821c58sm52543766b.48.2026.07.08.07.40.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2026 07:40:58 -0700 (PDT) From: Krzysztof Kozlowski Date: Wed, 08 Jul 2026 16:40:34 +0200 Subject: [PATCH v4 4/7] dtc: dt-check-style: Expect first device_type Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260708-dts-style-checker-v4-4-c175e6401150@oss.qualcomm.com> References: <20260708-dts-style-checker-v4-0-c175e6401150@oss.qualcomm.com> In-Reply-To: <20260708-dts-style-checker-v4-0-c175e6401150@oss.qualcomm.com> To: Rob Herring , Saravana Kannan , Krzysztof Kozlowski , Conor Dooley , Test User Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Golle , Krzysztof Kozlowski X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=8217; i=krzysztof.kozlowski@oss.qualcomm.com; h=from:subject:message-id; bh=mvLf2VO5gkvRQA+OlmI770eNxRUlkZPnEmWKeYHyiQw=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBqTmFqB+G46NBSeWVLZw7j1bMqMC791WUIUmPGg GS4LBZfvvWJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCak5hagAKCRDBN2bmhouD 13kZEACXtZJlcAqILS2uVZna8+JQ+h7JPfaEMzbQ2lqIHdO5C70J1ITOdmM+owYfONbTZ4oaRrp 3CTiqhgaQ4hhRAVBhFJBG1cIbWV+jWkNeP/bpKefcZf2C4fnsYFFyXCxj8bktMqNnbSUmf899Hb lACYD8Un3ZY70N8dQXBgvk+PUQsCEkIAP9geoKakEiM6qOVZ8adMixPUEddOYgIb1MSf5EXckzc uB77EgmzrVmTCCTUMjszjaL9GIntiEduiugL92fNuj05FKGNLj/j4jZGAr43JyOvrQmXMcGWRbZ 25YRMq/fiNq7iA/rdzR/o98q3MXSA6XUgrBbOtlqPewrAXvnqo7FGzmw7b9UQybDc3JVBCoBgR5 mUlmlAYlIhEq3BLwZqwUNr3Qw27syfnGak24pmAiFb5e/a4VGL1/a6pVOzzLMcoDcJRsPW6puV0 m1watz5E6RjwVFSK4x7b3plFKrlyLdrVvTClfm1UOMlPq8W4q6yXYc81rKmAaI3u/saGtVkY7v9 Ffavxae5I+XD6rZHdGMjf3gMea2Xafr6SdiOVSei5I4PKrDNf583ywzNEcfazpyfNzftnPMopTk izcdG83jUK0Lk7i8LMqXTm8ULkJZoeUawEVT8SVxdP003BIiY+a98hngZdj3sozaWCsW4DSLrWk NH6cIkjk5tjgmsA== X-Developer-Key: i=krzysztof.kozlowski@oss.qualcomm.com; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzA4MDE0NCBTYWx0ZWRfX4QFjqvg+yA9S YOKp0b69qi1Y2GrQ0ECAPLK7C+Vlpx/1WfMeCaaMSQN5a0OWR1cG8VDxZzrrkFqdxWDSijuN+Tj OuI7M258LAXyqhlMbLqeUjvogpOIxSWqeb3uRiQ3Q6FbiyF7raZgNWjXhtxkRMHHZXM5DlJ8fLv 49XgaDKV0cmgKLX6cNhDvAkuvYmvCyCOvm2Yduy8hQMjzS7fUWxilkE+vhRthdqEO0QgYR2aeOu aXLQfa68DDOCLf1eEwu8RIo7rEL9GhVumeVBILmrgL8IeFTTv6S2lKzJwiHaHrHbD8X+5cF8NhY f3l7ZwUJ6dXlxqMLSlwZgYMOrkYlkt3/2fdFMp2U5knpu72tjT3EX2lIG14DZkFiWP2dCitF2Pk kHSO/QIRZeKLEOCSQBKYrkGHacC/qza4Ky562qjHMptHNlostIBlvyZNb+E9Wh9ZU47BxzdpdDh DrTXWY9vEEq4h2+NHWg== X-Proofpoint-GUID: 1N2IKQkQk5EmL3yow0-2C6gkCzh2rvsB X-Authority-Analysis: v=2.4 cv=TMp1jVla c=1 sm=1 tr=0 ts=6a4e617d cx=c_pps a=JbAStetqSzwMeJznSMzCyw==:117 a=N6niishs+lR9UBL1FN3Qrw==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=A1X0JdhQAAAA:8 a=UikGyXCc1Zc6WlGwHegA:9 a=QEXdDO2ut3YA:10 a=uxP6HrT_eTzRwkO_Te1X:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzA4MDE0NCBTYWx0ZWRfX/L0DzZHiI65K FfTV6o76mHhqXgN1BSeogD/Cl/pabOse5a1Ki3zquGx0ezw+1NP9SQpDSH5yIYHIgQX+lPdd+tY steEE8YWxCpkx19XwQufESROFgn3NUA= X-Proofpoint-ORIG-GUID: 1N2IKQkQk5EmL3yow0-2C6gkCzh2rvsB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-08_02,2026-07-08_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 priorityscore=1501 suspectscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 malwarescore=0 phishscore=0 spamscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607080144 A few nodes do have "device_type" property which is mostly, but not always, the first property in a device node, when applicable. Adjust the DTS coding style rules to actually expect the device_type first and improve the dt-check-style to handle this correctly. Signed-off-by: Krzysztof Kozlowski --- Changes in v3: New patch --- .../devicetree/bindings/dts-coding-style.rst | 15 ++++---- scripts/dtc/dt-check-style | 29 ++++++++------- .../dt-style-selftest/bad/dts-property-order.dts | 43 ++++++++++++++++++= ++++ .../bad/yaml-prop-order-device-type.yaml | 31 ++++++++++++++++ .../expected/dts-property-order.dts.txt | 6 +++ .../expected/yaml-prop-order-device-type.yaml.txt | 2 + .../dt-style-selftest/good/dts-property-order.dts | 41 ++++++++++++++++++= +++ 7 files changed, 147 insertions(+), 20 deletions(-) diff --git a/Documentation/devicetree/bindings/dts-coding-style.rst b/Docum= entation/devicetree/bindings/dts-coding-style.rst index 4a02ea60cbbe..63648db377e1 100644 --- a/Documentation/devicetree/bindings/dts-coding-style.rst +++ b/Documentation/devicetree/bindings/dts-coding-style.rst @@ -114,15 +114,16 @@ Order of Properties in Device Node =20 The following order of properties in device nodes is preferred: =20 -1. "compatible" -2. "reg" -3. "ranges" -4. Standard/common properties (defined by common bindings, e.g. without +1. "device_type" (if applicable) +2. "compatible" +3. "reg" +4. "ranges" +5. Standard/common properties (defined by common bindings, e.g. without vendor-prefixes) -5. Vendor-specific properties -6. "status" (if applicable), preceded by a blank line if there is content +6. Vendor-specific properties +7. "status" (if applicable), preceded by a blank line if there is content before the property -7. Child nodes, where each node is preceded with a blank line +8. Child nodes, where each node is preceded with a blank line =20 The "status" property is by default "okay", thus it can be omitted. =20 diff --git a/scripts/dtc/dt-check-style b/scripts/dtc/dt-check-style index bb9ec5b82319..23cdfe78b189 100755 --- a/scripts/dtc/dt-check-style +++ b/scripts/dtc/dt-check-style @@ -558,28 +558,31 @@ def check_child_name_order(ctx): =20 def _property_bucket(name): """Return the canonical bucket index for a property: - 0 compatible - 1 reg / reg-names - 2 ranges - 3 standard properties (no vendor comma in #-stripped name) - 4 vendor-specific properties - 5 status + 0 device_type + 1 compatible + 2 reg / reg-names + 3 ranges + 4 standard properties (no vendor comma in #-stripped name) + 5 vendor-specific properties + 6 status Plus a sub-key inside the bucket for fixed slots (compatible, reg, reg-names, ranges, status). 'standard' and 'vendor' return None for the sub-key, signalling that the within-bucket key is computed by the pairing rules.""" stripped =3D name.lstrip('#') - if name =3D=3D 'compatible': + if name =3D=3D 'device_type': return (0, 0) - if name =3D=3D 'reg': + if name =3D=3D 'compatible': return (1, 0) - if name =3D=3D 'reg-names': - return (1, 1) - if name =3D=3D 'ranges': + if name =3D=3D 'reg': return (2, 0) + if name =3D=3D 'reg-names': + return (2, 1) + if name =3D=3D 'ranges': + return (3, 0) if name =3D=3D 'status': - return (5, 0) - return (4 if ',' in stripped else 3, None) + return (6, 0) + return (5 if ',' in stripped else 4, None) =20 =20 # Declarative pairing rules: each is a callable diff --git a/scripts/dtc/dt-style-selftest/bad/dts-property-order.dts b/scr= ipts/dtc/dt-style-selftest/bad/dts-property-order.dts new file mode 100644 index 000000000000..f31abb6ceae4 --- /dev/null +++ b/scripts/dtc/dt-style-selftest/bad/dts-property-order.dts @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +/* + * Test fixture: Incorrect property order + */ + +/dts-v1/; + +/ { + cpus { + #address-cells =3D <1>; + #size-cells =3D <0>; + + cpu@0 { + reg =3D <0x0 0x0>; + compatible =3D "arm,cortex-a57"; + device_type =3D "cpu"; + enable-method =3D "psci"; + }; + }; + + pmu { + compatible =3D "example,pmu"; + + status =3D "disabled"; + dma-coherent; + }; + + soc@0 { + ranges =3D <0 0 0 0xc0000000>; + compatible =3D "simple-bus"; + + #address-cells =3D <1>; + #size-cells =3D <1>; + + interrupt-controller@10000 { + reg =3D <0x10000 0x1000>; + interrupts =3D <1 2 3>, + <4 5 6>, + <7 8 9>; + compatible =3D "example,intc"; + }; + }; +}; diff --git a/scripts/dtc/dt-style-selftest/bad/yaml-prop-order-device-type.= yaml b/scripts/dtc/dt-style-selftest/bad/yaml-prop-order-device-type.yaml new file mode 100644 index 000000000000..433afb731dde --- /dev/null +++ b/scripts/dtc/dt-style-selftest/bad/yaml-prop-order-device-type.yaml @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/test-bad-prop-order.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Test fixture with device_type + +maintainers: + - Test User + +properties: + compatible: + const: example,test-prop-order-device-type + reg: + maxItems: 1 + device_type: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + device@1000 { + compatible =3D "example,test-prop-order"; + device_type =3D "cpu"; + reg =3D <0x1000 0x100>; + }; diff --git a/scripts/dtc/dt-style-selftest/expected/dts-property-order.dts.= txt b/scripts/dtc/dt-style-selftest/expected/dts-property-order.dts.txt new file mode 100644 index 000000000000..4bc21328625f --- /dev/null +++ b/scripts/dtc/dt-style-selftest/expected/dts-property-order.dts.txt @@ -0,0 +1,6 @@ +# mode=3Dstrict +bad/dts-property-order.dts:15: [property-order] property 'compatible' out = of canonical order (should sort before 'reg') +bad/dts-property-order.dts:16: [property-order] property 'device_type' out= of canonical order (should sort before 'compatible') +bad/dts-property-order.dts:25: [property-order] property 'dma-coherent' ou= t of canonical order (should sort before 'status') +bad/dts-property-order.dts:30: [property-order] property 'compatible' out = of canonical order (should sort before 'ranges') +bad/dts-property-order.dts:40: [property-order] property 'compatible' out = of canonical order (should sort before 'interrupts') diff --git a/scripts/dtc/dt-style-selftest/expected/yaml-prop-order-device-= type.yaml.txt b/scripts/dtc/dt-style-selftest/expected/yaml-prop-order-devi= ce-type.yaml.txt new file mode 100644 index 000000000000..9350e2b80f75 --- /dev/null +++ b/scripts/dtc/dt-style-selftest/expected/yaml-prop-order-device-type.ya= ml.txt @@ -0,0 +1,2 @@ +# mode=3Dstrict +bad/yaml-prop-order-device-type.yaml:29: example 0 [property-order] proper= ty 'device_type' out of canonical order (should sort before 'compatible') diff --git a/scripts/dtc/dt-style-selftest/good/dts-property-order.dts b/sc= ripts/dtc/dt-style-selftest/good/dts-property-order.dts new file mode 100644 index 000000000000..0e183e3459cd --- /dev/null +++ b/scripts/dtc/dt-style-selftest/good/dts-property-order.dts @@ -0,0 +1,41 @@ +// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +/* + * Test fixture: Incorrect property order + */ + +/dts-v1/; + +/ { + cpus { + #address-cells =3D <1>; + #size-cells =3D <0>; + + cpu@0 { + device_type =3D "cpu"; + compatible =3D "arm,cortex-a57"; + reg =3D <0x0 0x0>; + enable-method =3D "psci"; + }; + }; + + pmu { + compatible =3D "example,pmu"; + dma-coherent; + + status =3D "disabled"; + }; + + soc@0 { + compatible =3D "simple-bus"; + ranges =3D <0 0 0 0xc0000000>; + + #address-cells =3D <1>; + #size-cells =3D <1>; + + interrupt-controller@10000 { + compatible =3D "example,intc"; + reg =3D <0x10000 0x1000>; + interrupts =3D <1 2 3>; + }; + }; +}; --=20 2.53.0