From patchwork Mon Mar 24 17:41:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Heidelberg via B4 Relay X-Patchwork-Id: 875813 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D7FDA264A61; Mon, 24 Mar 2025 17:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742838103; cv=none; b=Eda96bxhQFfnsAFz3GCQDuEl+HKlDAJk4hSr54LWJi1J2SD4KrYDEZnQf8unycY1mlb55uLzBQynS3BPqAAM1Nnr1VSjX08C0MXUZhVyDIbU0WjN4z1LbIPXX14zo7BginYo7lBmXvcecbdMveMOyG5+cIlvrKVm5s/NSoBST3I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742838103; c=relaxed/simple; bh=yl85RJVC1ufkD78EL2Cu9zi/ct2Q/eQXZYRFNpqcAyE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HyuPp7BUovOwlsa9mbTZN7C+aaUiTIKGDnnluW0C1385B/YAuFWtxEfFByKm6kkdYWh8rbpzHDv5CxMPWzxy0Cvdj6QLOHWBJQgwAemsL73cQp+p75O/wsSLIp9fIfE8Djk4/uHkAfyhQDGpJqIjqnxsxbZFL4dPT2fZ97h5zLw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=byj7/y8J; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="byj7/y8J" Received: by smtp.kernel.org (Postfix) with ESMTPS id 73F38C4CEEA; Mon, 24 Mar 2025 17:41:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742838102; bh=yl85RJVC1ufkD78EL2Cu9zi/ct2Q/eQXZYRFNpqcAyE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=byj7/y8JvOHtmyYY1PLwqCQF+w/lCMC1bbOmLEdbdO9tbpwQUEeYBnZIvxrt6vh25 7mufGysGRJIAQ//9tvzWJT2GOQoo8AdZfR4AqqHTRjsNoDt4ytlNHkMfMRdQn7hqEY vdJFObjjhKoGTnDHqraDl/dYMKYJKWKjcDknNncLFXc4qMXeAX8oLrdHiccvcmFOOi mbuYTMdLIa+D+a1gexiQPryTsogmhxZyZxIJxDV0pJuEhhHrWGSn1fh9yoHVEYcVyM h/eIGXOIqvIZcq5PUuUh8YtAfobhlqQYZdvAb/INpmyN98kO9ULYfAxowxTKtBG17I nZEf6SThpp2aA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 616ECC3600C; Mon, 24 Mar 2025 17:41:42 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Mon, 24 Mar 2025 18:41:38 +0100 Subject: [PATCH v5 1/5] dt-bindings: net: Add network-class schema for mac-address properties Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250324-dt-bindings-network-class-v5-1-f5c3fe00e8f0@ixit.cz> References: <20250324-dt-bindings-network-class-v5-0-f5c3fe00e8f0@ixit.cz> In-Reply-To: <20250324-dt-bindings-network-class-v5-0-f5c3fe00e8f0@ixit.cz> To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mailing List , Johannes Berg , Lorenzo Bianconi , van Spriel , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= , Bjorn Andersson , Konrad Dybcio , Andy Gross , Mailing List Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, linux-arm-msm@vger.kernel.org, Janne Grunau , David Heidelberg X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=4573; i=david@ixit.cz; h=from:subject:message-id; bh=V386ZXz4Pz6PLuOWcjq3RT0zmANmJc+rqbdyU0TJU1U=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBn4ZlTwoSCsbScF+KycWcny0ivxTVp6Egzb4wg7 bYY6nhykaSJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCZ+GZUwAKCRBgAj/E00kg cgR8D/9QLJYcwGDZGiOAdOlcdhhqd5wyMmokorCUDR0Q1BIcge/5RIkZsVkB0Qy2fTOaRYPICaw eeHv6II7gXA3bs5pacKIC6p2M9Ap/BPur+XszKGj9+XAbomIJIaAPFrs2/r7iaLzEtPfs16dveF MVgzcOTCYYFjaW3QfQiygHoqCKccT44bgybylNZfwB9+tWA5BCQDIw71yCSrf3YXZWNU3M83uGI iekkoy8+8NICTWLC2krD0VoRdh73eApXQ5ppJMZZejyAAWfDrXQNsc2Q72n/idS0nfLj66XsVzd lxdHA+ZBUJCdptYvus1NM3ZIOTHMfL4SZLNN0vo0ADOqQygf6aPddRF5N9uOH2J+gPaEesHtFQe L0IVvq1LKYwkC5LeEPYRYoMFgltu/cry0rk9KekxmbdSEG9PgdquxcMdRiTN8QXTHrBxqD8xce2 1kACGAQigM3mzd5xdfvXgf8IcXFvPsDGlhzvjYX0psgZ5DSjExxMze2Vr7jj04jEyFQzzyb2byr pXFsvzeB0DW4d1Tv8Z7ANWRlXikHbc1TndMUrY6qINf5/9evPZEmvbn+hC53Ww6MliU8rDfeY7z Si0Ob8UsKfJ4OULsx9wjIFFzmn+YA2+yEmj0/JNYja+7XpMy4lxzVoUndIASBJSSqfGpILKYWQl H5XiQ4H8c1jC9+A== X-Developer-Key: i=david@ixit.cz; a=openpgp; fpr=D77A09CFEEDC2BBD53A7047460023FC4D3492072 X-Endpoint-Received: by B4 Relay for david@ixit.cz/default with auth_id=355 X-Original-From: David Heidelberg Reply-To: david@ixit.cz From: Janne Grunau The ethernet-controller schema specifies "mac-address" and "local-mac-address" but other network devices such as wireless network adapters use mac addresses as well. The Devicetree Specification, Release v0.3 specifies in section 4.3.1 a generic "Network Class Binding" with "address-bits", "mac-address", "local-mac-address" and "max-frame-size". This schema specifies the "address-bits" property and moves the remaining properties over from the ethernet-controller.yaml schema. The "max-frame-size" property is used to describe the maximal payload size despite its name. Keep the description from ethernet-controller specifying this property as MTU. The contradictory description in the Devicetree Specification is ignored. Signed-off-by: Janne Grunau Signed-off-by: David Heidelberg Reviewed-by: Rob Herring (Arm) --- .../bindings/net/ethernet-controller.yaml | 25 +----------- .../devicetree/bindings/net/network-class.yaml | 46 ++++++++++++++++++++++ 2 files changed, 47 insertions(+), 24 deletions(-) diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml index 45819b2358002bc75e876eddb4b2ca18017c04bd..c91b41b83d1dc1294e99ec72c7cdcc16550cb33e 100644 --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml @@ -16,30 +16,6 @@ properties: label: description: Human readable label on a port of a box. - local-mac-address: - description: - Specifies the MAC address that was assigned to the network device. - $ref: /schemas/types.yaml#/definitions/uint8-array - minItems: 6 - maxItems: 6 - - mac-address: - description: - Specifies the MAC address that was last used by the boot - program; should be used in cases where the MAC address assigned - to the device by the boot program is different from the - local-mac-address property. - $ref: /schemas/types.yaml#/definitions/uint8-array - minItems: 6 - maxItems: 6 - - max-frame-size: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Maximum transfer unit (IEEE defined MTU), rather than the - maximum frame size (there\'s contradiction in the Devicetree - Specification). - max-speed: $ref: /schemas/types.yaml#/definitions/uint32 description: @@ -262,6 +238,7 @@ dependencies: pcs-handle-names: [pcs-handle] allOf: + - $ref: /schemas/net/network-class.yaml# - if: properties: phy-mode: diff --git a/Documentation/devicetree/bindings/net/network-class.yaml b/Documentation/devicetree/bindings/net/network-class.yaml new file mode 100644 index 0000000000000000000000000000000000000000..06461fb92eb8452cea685160b7a29ee9c0493f7e --- /dev/null +++ b/Documentation/devicetree/bindings/net/network-class.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/network-class.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Network Class Common Properties + +maintainers: + - Devicetree Specification Mailing List + +properties: + address-bits: + description: + Specifies number of address bits required to address the device + described by this node, e.g. size of the MAC address. + default: 48 + const: 48 + + local-mac-address: + description: + Specifies MAC address that was assigned to the network device described by + the node containing this property. + $ref: /schemas/types.yaml#/definitions/uint8-array + minItems: 6 + maxItems: 6 + + mac-address: + description: + Specifies the MAC address that was last used by the boot program. This + property should be used in cases where the MAC address assigned to the + device by the boot program is different from the + local-mac-address property. This property shall be used only if the value + differs from local-mac-address property value. + $ref: /schemas/types.yaml#/definitions/uint8-array + minItems: 6 + maxItems: 6 + + max-frame-size: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Maximum transfer unit (IEEE defined MTU), rather than the + maximum frame size (there\'s contradiction in the Devicetree + Specification). + +additionalProperties: true From patchwork Mon Mar 24 17:41:39 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Heidelberg via B4 Relay X-Patchwork-Id: 875814 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 AEF09264617; Mon, 24 Mar 2025 17:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742838102; cv=none; b=eI2YUOpfAokuZ+Vg2O0RkknKnaXi35pqAnHfVP/d0eCul4AvUV9NwWMTPN1GQbKxxfRewVzm82KoIkyrjQCCpadsAW1X92dUwOp2hF9LnjR90aK5vuQOEw3CQPguVpKlTmgx2fDc2q57Z7/WcXGMw5owr0SyPnf7AbWeqLSjZKs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742838102; c=relaxed/simple; bh=8PFrtxpnJpLFkdaeNeF+Kojf2rI5Gt9WPBc0gGLSfzc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=u2P701ezt0xcNFd2tSmAkabfEp7A/MzEnq0x1jo36juuNjEVtRPLbxbVL6XqhOwMp6b+dJgQG9JarKcvUDladu4HT4gQpfhsw06uhqgRk7JO88NcCLJC8jLLzhwIGOXyOGZ5u3jFXmoqAXdizGClYBrAaS9MBWJ/60ItTI+bVuY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ig2n0jQp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ig2n0jQp" Received: by smtp.kernel.org (Postfix) with ESMTPS id 85334C4CEEF; Mon, 24 Mar 2025 17:41:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742838102; bh=8PFrtxpnJpLFkdaeNeF+Kojf2rI5Gt9WPBc0gGLSfzc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ig2n0jQp/tRrUP/isobTD5FA47J2zoG/kTryfUGI1GGxLH64kBHF8vlGQedfZVK8w y+rtw0NPTMF08NCUn8yoth5YfDYXQMM1H3QeQuo50mdDQVH+C2jXZpOhFe0yB4EOtk 3MeKDsa5gkFo0iN2wmG0Nmn6hG1xw0oAC6zEr0f14yXDBnsxpmopxVIJRQ1A+Ze8Yg sQ6HCc/r8Ha9Ciius+Vjje+6nTdu23qgsxadiSUBRpAckHKHvVM6S77LouYukB62s/ Ydr4APVyW2G2f2AzbMzFqwLaDuyngV7jYoJSac/7LgLcVh0u1bEyKbiU77ruuge/rO n/7yCrCfGoTlw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B721C36008; Mon, 24 Mar 2025 17:41:42 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Mon, 24 Mar 2025 18:41:39 +0100 Subject: [PATCH v5 2/5] dt-bindings: net: Add generic wireless controller Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250324-dt-bindings-network-class-v5-2-f5c3fe00e8f0@ixit.cz> References: <20250324-dt-bindings-network-class-v5-0-f5c3fe00e8f0@ixit.cz> In-Reply-To: <20250324-dt-bindings-network-class-v5-0-f5c3fe00e8f0@ixit.cz> To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mailing List , Johannes Berg , Lorenzo Bianconi , van Spriel , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= , Bjorn Andersson , Konrad Dybcio , Andy Gross , Mailing List Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, linux-arm-msm@vger.kernel.org, Janne Grunau , David Heidelberg X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1188; i=david@ixit.cz; h=from:subject:message-id; bh=s4h8B9gNJQ6JIaRS+FZDFjTYjzD5y6gNzE0ffwMuDco=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBn4ZlUkO2OTp2AzhwK0TqhMqWIaIvFxzYIv7hU4 sC1q5W8JXGJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCZ+GZVAAKCRBgAj/E00kg ctX+EACIls3D2cw/sYf6yNpFF7jMddNcznl3sRLq0U1Gq9Qpqn/AgYTzBJXrYWOyGxwhoO3hegV XZIj25cuIt6LQglWdRSdQ+sF0s1ta/419YsW2ACTqCWRfh8YZvXVLeiCGB3JcsgDW9usnOSR1Rq AGAYg0uegeuRC9Sx2XL+ydP3Y8BhmVdRTvy3Axxl0E4WjS++hCsAnukU0Ju3RJo9Q4Qc5iQAu2I hKvmzxRxF22/do9WKRea5LFe8/5P+nc23dvqF253VsOELmU/6v93iE7dYDluB2oyQnxvxWeNWLA s8He4wM7PDJOeysx19z6LJ5WqFfu1XVq66U1KHOsxoJed7Lm2humQSmQdVXccwjoHfy/vpZR0Zg qLCqTJPrsOrfTnzeXzpCp9HCJjQnZQpbJkOdLVuE0cjaSpS6dejVpWDdGZS6GueJAy3wV61jvBQ VYMX3QHRMJCVVN/z3N1NxMLjFzlhzu/+iX9jTlctE6gvB1TUD/0ILv+ainKo6XrHQahwh9hQzoB lQa+apHVJhkaaILysbh3KHnsqjvojDCOqT4UTyJJRJ3JEYXrFlZ+IO9Yieyi45/ZPjnCKALZUUe QSU12CiBMB+QJdBXtETwNFowKfPLsuRti24UbsIjbhFPKd7ljtNqgpdcDATIJJUTGfk6EwwIxye EJtNFGT07HwaRFg== X-Developer-Key: i=david@ixit.cz; a=openpgp; fpr=D77A09CFEEDC2BBD53A7047460023FC4D3492072 X-Endpoint-Received: by B4 Relay for david@ixit.cz/default with auth_id=355 X-Original-From: David Heidelberg Reply-To: david@ixit.cz From: David Heidelberg Wireless controllers share the common properties. Reviewed-by: Rob Herring (Arm) Signed-off-by: David Heidelberg --- .../bindings/net/wireless/wireless-controller.yaml | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Documentation/devicetree/bindings/net/wireless/wireless-controller.yaml b/Documentation/devicetree/bindings/net/wireless/wireless-controller.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7379f6c1aa05c15a5bc7b34df6502cc174af9a90 --- /dev/null +++ b/Documentation/devicetree/bindings/net/wireless/wireless-controller.yaml @@ -0,0 +1,23 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/wireless/wireless-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Wireless Controller Common Properties + +maintainers: + - Lorenzo Bianconi + +properties: + $nodename: + pattern: "^wifi(@.*)?$" + +allOf: + - $ref: ieee80211.yaml# + - $ref: /schemas/net/network-class.yaml# + +additionalProperties: true + +... + From patchwork Mon Mar 24 17:41:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Heidelberg via B4 Relay X-Patchwork-Id: 876072 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 05CCA2676E7; Mon, 24 Mar 2025 17:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742838103; cv=none; b=jzobyr9OCMDcpUdIPzl1ihp9XdhUqKTS80gNoWA/xlqmGnnzPPkBw9gLOr+OdoOVBIxKu1qz1Y0CrcusESyx4deq0RCmSQckty9mzYZiWS10arY5+EytU8slIc9eCutHhICT1fCtcBSBa2R1RC1uKSsZAOm24ZA6gBbitq7Se48= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742838103; c=relaxed/simple; bh=vYIKKPXq6VroZXSOm/cT0IeJepkgj9rT/Kp8jmsHN7c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=L2xHRzak0xTalwStCS6rGHYvKriPrP6A7IFOa0jgqE8eWmLfu5LEvudcf1G9ALW/zGCRtc3BkdJPcftA6DLWOvBLCL8AiekEqPugOeO0WRq8ud5HlN+vLhrG5c8yFQlNdeFgUfweeuI1vGF743v8o+Z32ZpjThLdRGl/DFKOme8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HVr/9BAh; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HVr/9BAh" Received: by smtp.kernel.org (Postfix) with ESMTPS id 998C9C4CEF0; Mon, 24 Mar 2025 17:41:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742838102; bh=vYIKKPXq6VroZXSOm/cT0IeJepkgj9rT/Kp8jmsHN7c=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=HVr/9BAh7grFkFQOv/YZDdYhHFf12zMuiSA5r3KphrAxsWX4wiVAzpj7joU0vwDrr TRBIGlhV/LW+LiuVVeaY34V+V57RfJvMo8cwPdh+dh1qW4D8jN9l/8Nq701z0uEAOT 8VFitPrgwGz4HtSF6tvzIy+7yGpn5xgHlk5Rrig1FZEQ7w6d8GTEi6i6OHnS2IrJto pnlpVYAKvUxJt1m9/ou6OrJtksbMlCsHO/XSGLY+kyowZourjy+QfrnZlxyJpV6Lv2 tdjXo8eIrv3OIMwTfCobJ7F6kyDQ+aJyInTR0AozoBx24bLWKG1A5GYUH0M8o9nMLn aFCFFm4XUAJvQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 906BCC3600D; Mon, 24 Mar 2025 17:41:42 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Mon, 24 Mar 2025 18:41:40 +0100 Subject: [PATCH v5 3/5] dt-bindings: wireless: bcm4329-fmac: Use wireless-controller.yaml schema Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250324-dt-bindings-network-class-v5-3-f5c3fe00e8f0@ixit.cz> References: <20250324-dt-bindings-network-class-v5-0-f5c3fe00e8f0@ixit.cz> In-Reply-To: <20250324-dt-bindings-network-class-v5-0-f5c3fe00e8f0@ixit.cz> To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mailing List , Johannes Berg , Lorenzo Bianconi , van Spriel , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= , Bjorn Andersson , Konrad Dybcio , Andy Gross , Mailing List Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, linux-arm-msm@vger.kernel.org, Janne Grunau , David Heidelberg X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1082; i=david@ixit.cz; h=from:subject:message-id; bh=/39eFZ6ducpCjGUyDE9DMGHcDra7AKtjh9uaQngpN54=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBn4ZlUt699Tlcv8r6WJO24J/HN3KZtO6w86vhOh rcHlVCjHG+JAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCZ+GZVAAKCRBgAj/E00kg cmG9D/oCykoLT9XrEn6xb1Q47UpvM0WJw8+ER5SJHyw1AQ3bzSnBRHBhPZ8VDJ3TlyhVGbkWQx9 noV3zps0Zfjl+n0BqTH3IPBPsVmXi+woMrih0R0wPjNc39dV0WlBq64G6dXCrc5SVWBB649glBu gx8rYGmdyDVEmBNZv4XUyez4iiL4cmGkNwRf/atqNbmzROapeQDuGRYabDPQA6q8sNf/8hk39S7 tdZ6HYA3Xa4z+xc2DADeuoesKl7tfgtQNjxETQpOwPmYTHPhVlDTklYylklSF59YhDRSBq9KWfD eppNfUdMcSa6VdBSctjJkAaKqnJOpOc7wYEOO0XEWN4iQI2Ab8l0T/r0TkV1IAncai3cmPEjqdv ayQ45Pc2f0r/gTtGnlvWxsC7vxKcPx3qrt0iof5nuiDwYdj9XM759iCKMzXIFX9HrACDuauPZSD 4neH2iIg3QsED31jB6f+3cx5KhMB5Z6CH6d7OSUJ9E8RPMMsNslwEcAEY8irjtblxG4zxx2PeTu mPL7w5j7JeXOcQ4bEbusJuAtyoSmo5Wr9yTm2PHYUlpo+pTwbIxI2lGac+zL4bGqCmR+TiFNpyn Tz4Av7pbr8u87LDnP5jsNZDsMCxKupIAa51N2CyEhK9nych/nWQFMuX86GbuoNma1pQXurxD93z eGVScAgNGtNlrBQ== X-Developer-Key: i=david@ixit.cz; a=openpgp; fpr=D77A09CFEEDC2BBD53A7047460023FC4D3492072 X-Endpoint-Received: by B4 Relay for david@ixit.cz/default with auth_id=355 X-Original-From: David Heidelberg Reply-To: david@ixit.cz From: Janne Grunau The wireless-controller schema specifies local-mac-address as used in the bcm4329-fmac device nodes of Apple silicon devices (arch/arm64/boot/dts/apple). Fixes `make dtbs_check` for those devices. Reviewed-by: Rob Herring (Arm) Signed-off-by: Janne Grunau Signed-off-by: David Heidelberg --- Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml index a3607d55ef3671514cdf2c884cf5bd0ccaadb162..7c8100e59a6cd045837a2f602e367f3f79ced5ba 100644 --- a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml @@ -16,7 +16,7 @@ description: binding. allOf: - - $ref: ieee80211.yaml# + - $ref: /schemas/net/wireless/wireless-controller.yaml# properties: compatible: From patchwork Mon Mar 24 17:41:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: David Heidelberg via B4 Relay X-Patchwork-Id: 875812 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 43B3926770C; Mon, 24 Mar 2025 17:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742838103; cv=none; b=B7/f/ItPtcUPKjv0liM/BN19h+98sAWA9vRE5HmL30f7E3Bk4omw3MbgkEHHnt1QorOmFkuckI0MEcANg3J/mrd4c4peMSkEt8p4xCUNY51JyXg+602IADMk01RflY6LGMc4V4s7/cC5kV6m7yAYvm7H4ramQjwIjCwrLLWLjQg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742838103; c=relaxed/simple; bh=5OytaDh6zsIvmiqUM0rUqzV78/Ku7Yax3ssKpgevVbI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JT54HQaLKOSsK1rADsfckG2eKB0NfsUZpMOrk3SJMwAxZ/019B1l/D+fKzC/KPjp+6go8Bqlix7vgfuYlKbQZTyR3a+XlGoYBi0L1jOgFbNYtgqnT5eJauU0KeZ5qQTZRAXPnV/qwfy6Se4kn60IidHLugy//b5VsObbsTJ+1I8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=R0tldqZf; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="R0tldqZf" Received: by smtp.kernel.org (Postfix) with ESMTPS id AFFC5C4CEED; Mon, 24 Mar 2025 17:41:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742838102; bh=5OytaDh6zsIvmiqUM0rUqzV78/Ku7Yax3ssKpgevVbI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=R0tldqZf9f7arnaw3etozhGtv7b2aVT+KKkrvC8jjL0BIDgNl6evR1bYUQ90IpMa1 D7eVsvoempw15TGLlRArLj+49BVJ7qAU3GODnD0mF834ZkIgb50WMZY8Td6DLoKgqs ta5LSHbYxlEkDtaXHoxTDKJnAyhGFQTukANGzyg359mIvtJJdEmQrJ7R+bj8hj2YQ7 66Nmp+sA+Nnfaxbxs4mDzJd0LsmJXY2FWk8RQsMVXrEp8fbuH4BwziyOsAED947XRY 41Yd4pSbhImrrmZESmHSW+9f82/AjKJmwZto/pwCQiUqOF4NzHXj41f+LkavxkKDxs XoBSkph+a1BvA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7548C36002; Mon, 24 Mar 2025 17:41:42 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Mon, 24 Mar 2025 18:41:41 +0100 Subject: [PATCH v5 4/5] dt-bindings: wireless: silabs,wfx: Use wireless-controller.yaml Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250324-dt-bindings-network-class-v5-4-f5c3fe00e8f0@ixit.cz> References: <20250324-dt-bindings-network-class-v5-0-f5c3fe00e8f0@ixit.cz> In-Reply-To: <20250324-dt-bindings-network-class-v5-0-f5c3fe00e8f0@ixit.cz> To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mailing List , Johannes Berg , Lorenzo Bianconi , van Spriel , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= , Bjorn Andersson , Konrad Dybcio , Andy Gross , Mailing List Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, linux-arm-msm@vger.kernel.org, Janne Grunau , David Heidelberg X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1355; i=david@ixit.cz; h=from:subject:message-id; bh=1+Q97VlsmTPyLRAWooczMv5yLKsXFA3Pd6AXggMFbak=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBn4ZlUF/zgQhHhLaKXCphlup97trhKf8Or6du6C ZNMKVUlw6WJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCZ+GZVAAKCRBgAj/E00kg cmJgD/9j/3y+cVi7+Qtvbk//nZ7RVgZDDN0GAGbjJrZ+UEjhd/6vdeBvEr3JWAyGNuhtvLMxTbr GUoqEG2rpmlf7KgZTmFa+v3Eon8FcTNrQLP1IqMRG49r/zx2L9tmh0VF6iNa2FjjXCGdwzJjXb3 72ngNCiIkcBrJ4AI6IoY2f7BZ4fD2ou2E8Lv5JXo0p80OJTff5XkSrGhFDZiqMck2Ip2GHVVepZ l25HdjQoeqciRJF2FtmEnrtwIQotAUaSJre6AEM8gUXJz5ehWZBwpKQaBDKl5dzzZUbbNecPLRJ MDuljAtFfSLzdgzdTzFhrIu2z3onhjnULad06GyRCTn5JPxJrtgki7MixamRWtoteMILrSpH31T Xpnfijb1cyMQNhhpKliDnckjHJ18oagCOqHv4wpb9zzm5aB6VxmZ9gFwFinxecQ4uXZXE64iY7H RR2vxZNg+AdyI4hp3B1xOupk+75jyqSpEGbNwwOis0VhefAuAlkRh82pBEuGdayW8jO8gRKlYxq 0HDe0Dqz6ak/TRJaFIywDIBGDw8Lro5/DOQ+g5dkGAJB1ak6UK4qO4SFEcYPgYUA4s11C8DQ1z2 Xi91+LtieCa+/pWl/sSSC43yaHahkgcLOEb8lb3qtID1bM5/eObrx0hqj90mglvU1k6qzceNH52 syrqHitgj1VP83g== X-Developer-Key: i=david@ixit.cz; a=openpgp; fpr=D77A09CFEEDC2BBD53A7047460023FC4D3492072 X-Endpoint-Received: by B4 Relay for david@ixit.cz/default with auth_id=355 X-Original-From: David Heidelberg Reply-To: david@ixit.cz From: Janne Grunau Instead listing local-mac-address and mac-address properties, reference wireless-controller.yaml schema. The schema brings in constraints for the property checked during `make dtbs_check`. Reviewed-by: Rob Herring (Arm) Reviewed-by: Jérôme Pouiller Signed-off-by: Janne Grunau Signed-off-by: David Heidelberg --- Documentation/devicetree/bindings/net/wireless/silabs,wfx.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/net/wireless/silabs,wfx.yaml b/Documentation/devicetree/bindings/net/wireless/silabs,wfx.yaml index 84e5659e50ef3125b5063fbebcaf1d2b2bdb7398..6c0888ae4c4e172edf2a5f6249cb8aed5ed11681 100644 --- a/Documentation/devicetree/bindings/net/wireless/silabs,wfx.yaml +++ b/Documentation/devicetree/bindings/net/wireless/silabs,wfx.yaml @@ -71,15 +71,12 @@ properties: "Platform Data Set" in Silabs jargon). Default depends of "compatible" string. For "silabs,wf200", the default is 'wf200.pds'. - local-mac-address: true - - mac-address: true - required: - compatible - reg allOf: + - $ref: /schemas/net/wireless/wireless-controller.yaml# - $ref: /schemas/spi/spi-peripheral-props.yaml# unevaluatedProperties: false From patchwork Mon Mar 24 17:41:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Heidelberg via B4 Relay X-Patchwork-Id: 876071 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5BF06267718; Mon, 24 Mar 2025 17:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742838103; cv=none; b=tIuVuGmgqk6/P4prhX/XP9sL5q4eLLsJlRQ2OJUloKy3hmP5TZ9xVCgtD7TKDuoaJ+M9UA9Obx39aLCOqlRIddb0dhnQvKeB0caW7idHy9gQm2NSCsNMPpvaWN28inxxT3nnk14FRmGxaU1f5Rnispm8+xvT16YrYgzsReRTcvY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742838103; c=relaxed/simple; bh=eUFaq+yugIuksyG03BYSR72DIzc5mCrpziXwrV7Qk88=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nNDElK9KBf9QVqY1XhvSwDEgNAxkvHoDfXxiQDqgUT222Dr8ILt/bnIOlfrbSdSc0yUxs9XuKwa7hrHByjqc1PP+vOREge3NPY6bJVfeoJ+mQ0TPRQOO8ZhfVgVz1K5LU5Y1VD3gNnALtL7NFXtC964HSyuDJcfcvsJTREBYxr8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UM1CUWpv; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UM1CUWpv" Received: by smtp.kernel.org (Postfix) with ESMTPS id C5DD4C4CEF3; Mon, 24 Mar 2025 17:41:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742838102; bh=eUFaq+yugIuksyG03BYSR72DIzc5mCrpziXwrV7Qk88=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=UM1CUWpvVSEW6wS3JIFbX8YAbP+JaY4SD5GiSG4Zz6CB1zgKOyAhCB3AgB/HH+FN8 44d2lmFCoAPEtkLYdURCEYv5a1foMznp81ItNJATSwLPsb74qsLhujdwfurwixlTKL 5VlN7nmxRc6ZWe40mmTWRhkCcUKIBiepjDEFJebQxigxi/2ocLJXwVXZLIR0L9Ctjr wOzjglyhSFNojAC0Czd8m+ynxmC7U1fhAi7NqHSeRp4zsWa5JMN6uF7va0YcLUZq2X MLYjG5o5/pV0l/msILpbJZo7BC89SMb7By6AflujkGTHe7lY+EGmkERn32cGQdG2pw R/lv99dP0yFCw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id BBF18C36008; Mon, 24 Mar 2025 17:41:42 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Mon, 24 Mar 2025 18:41:42 +0100 Subject: [PATCH v5 5/5] dt-bindings: wireless: qcom,wcnss: Use wireless-controller.yaml Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250324-dt-bindings-network-class-v5-5-f5c3fe00e8f0@ixit.cz> References: <20250324-dt-bindings-network-class-v5-0-f5c3fe00e8f0@ixit.cz> In-Reply-To: <20250324-dt-bindings-network-class-v5-0-f5c3fe00e8f0@ixit.cz> To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mailing List , Johannes Berg , Lorenzo Bianconi , van Spriel , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= , Bjorn Andersson , Konrad Dybcio , Andy Gross , Mailing List Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, linux-arm-msm@vger.kernel.org, Janne Grunau , David Heidelberg X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1122; i=david@ixit.cz; h=from:subject:message-id; bh=8m+TP7dhDaz8he9N9bMiZ3ZhzlbMMMqDKwJGp281Vxg=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBn4ZlU7W6DvkU/GtU/5mgv1mJEVjM4fMdd4lFLB YEnkBz9O4aJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCZ+GZVAAKCRBgAj/E00kg cjZWD/9gYT52tWM4Pj6Xa1C9vE5/lk54/lUY/gSgvswdtF7p8i7iEfWQ1TAp6bESqwxYpp3QaZ/ hDpevbVV/KiBcnkL9XCOImWcaGNBM+KgPmZHmgj/dChDYuhxtBhSCGTAJlPA+fsBnwuP/le9X67 wYDmWqJAvJOdRRvDosljxZoMoCMde9D0xEQ58b8wkKvEJIALE4hDmkMTrkNAcQ9kbQs0V8WqnHu FakuiaHdvBiRxln3b1Jb62vC9QdJFZvut36ORsLRJNj8bkeQOyFuybIodr6Pd1URNMBulafo76t /knBV1EuMz2KjnvNF7kC0r2sd8K3ZK6E81Kbpb+7zci+JShAdz6vm1VUbX83FTJKTled2L3ronh S1QR7GJKiJ2DLaqHiaBr+S5H9Bfwa+1Y6nGZgo0GAzRBFP5+ecG++alMEjCFaqPI0g0veZ5nN8a iduChlEKGZSwqVVXbQofOQ9f5IRZb/zqYbEydRIb25SeOei0XaF+kbl12j5ykx6Mu9MrTFPxXby RpL1Jp10Zox9eYFqfnYgiz+FN9D0a8sEyYS/BAUb/6z3hPxpnBIf+NMuNh0ulyQe81F7UOq1qdK WYWHmwXAOpdxaBuugB3TAwIt33DuRlAmS+8X9IMWwnjOd3RrsWW+P2mxZiXHFmBed4PbPg9Swvc 1gEwu7ZdbzaosRg== X-Developer-Key: i=david@ixit.cz; a=openpgp; fpr=D77A09CFEEDC2BBD53A7047460023FC4D3492072 X-Endpoint-Received: by B4 Relay for david@ixit.cz/default with auth_id=355 X-Original-From: David Heidelberg Reply-To: david@ixit.cz From: David Heidelberg Reference wireless-controller.yaml schema, so we can use properties as local-mac-address or mac-address. Reviewed-by: Rob Herring (Arm) Signed-off-by: David Heidelberg --- Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.yaml index fd6db0ca98eb7e56d7399f55c408844d5e782805..4fcae6bedfffa845ad61c776ee0b70768e9a38a5 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.yaml @@ -54,7 +54,7 @@ properties: - compatible wifi: - additionalProperties: false + unevaluatedProperties: false type: object properties: compatible: @@ -88,6 +88,9 @@ properties: - qcom,smem-states - qcom,smem-state-names + allOf: + - $ref: /schemas/net/wireless/wireless-controller.yaml# + required: - compatible - qcom,mmio