Skip to contentSkip to conversation

arm64: tegra: Fix DT validation issues for Tegra132

PATCH Superseded Thierry Reding 4 participants 10 messages Sep 30 – Oct 1

Subsystems (6)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Thierry Reding

author maintainer
#0 lore raw

v2 cover arm64: tegra: Fix DT validation issues for Tegra132

The following set of changes fix all remaining issues on Tegra132 Norrin as well as some collaterals. The two json-schema conversions in this series are shared with some 32-bit ARM platforms and they fix similar issues there, too, and I've verified that no new issues are introduced.

This brings down the total number of DT validation issues for Tegra to 44 and 16 of them unique.

Thierry

---
Changes in v2:
- address review comments from Rob, Mark and Sashiko
- Link to v1: https://patch.msgid.link/[email protected]

To: Lee Jones <[email protected]>
To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
To: Liam Girdwood <[email protected]>
To: Mark Brown <[email protected]>
To: Laxman Dewangan <[email protected]>
To: Thierry Reding <[email protected]>
To: Jonathan Hunter <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: Thierry Reding <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
Thierry Reding (3):
dt-bindings: mfd: as3722: Convert to json-schema
dt-bindings: sound: tegra-ahub: Convert to json-schema
arm64: tegra: Add Tegra132 specific compatible for AHUB

 .../devicetree/bindings/mfd/ams,as3722.yaml        | 293 +++++++++++++++++++++
 Documentation/devicetree/bindings/mfd/as3722.txt   | 214 ---------------
 .../bindings/regulator/as3722-regulator.txt        |  91 -------
 .../bindings/sound/nvidia,tegra30-ahub.txt         |  88 -------
 .../bindings/sound/nvidia,tegra30-ahub.yaml        | 288 ++++++++++++++++++++
 arch/arm64/boot/dts/nvidia/tegra132.dtsi           |   2 +-
 6 files changed, 582 insertions(+), 394 deletions(-)

---
base-commit: 6c2cb8b8b843d216ab549b678a0d8831c43153e0
change-id: 20260928-as3722-bindings-e2cc715b99f5

Best regards,

Signature · 1 line
Thierry Reding <[email protected]>
author maintainer
#1 lore raw

PATCH v2 1/3 dt-bindings: mfd: as3722: Convert to json-schema

From: Thierry Reding <[email protected]>

Convert the AMS AS3722 PMIC bindings from the free-form text format to json-schema.

---
Changes in v2:
- use pinmux-node.yaml, pincfg-node.yaml, gpio.yaml and regulator.yaml
- add #gpio-cells and gpio-controller to list of required properties
- remove some old and broken references from descriptions
- use consistent formatting for description property
- remove some duplicate type definitions
- add missing additionalProperties
- order properties consistently
- constrain #gpio-cells to 2

---
 .../devicetree/bindings/mfd/ams,as3722.yaml        | 293 +++++++++++++++++++++
 Documentation/devicetree/bindings/mfd/as3722.txt   | 214 ---------------
 .../bindings/regulator/as3722-regulator.txt        |  91 -------
 3 files changed, 293 insertions(+), 305 deletions(-)
Documentation/devicetree/bindings/mfd/ams,as3722.yaml new file +293 -0
new file mode 100644
index 000000000000..51910042c621
@@ -0,0 +1,293 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/ams,as3722.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: AMS AS3722 Power Management IC
+
+maintainers:
+  - Laxman Dewangan <[email protected]>
+  - Lee Jones <[email protected]>
+
+properties:
+  compatible:
+    const: ams,as3722
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  # standard properties
+  interrupt-controller:
+    description:
+      The AS3722 has an internal interrupt controller which takes the interrupt
+      request from internal sub-blocks like RTC, regulators, GPIOs as well as
+      external input.
+
+  "#interrupt-cells":
+    description:
+      The first cell is the IRQ number. IRQ numbers for different interrupt
+      source of AS3722 are defined at dt-bindings/mfd/as3722.h. The second cell
+      is the flags, as defined in dt-bindings/interrupt-controller/irq.h.
+
+    const: 2
+
+  # from gpio.yaml
+  gpio-controller: true
+
+  "#gpio-cells":
+    const: 2
+
+  # optional properties
+  ams,enable-internal-int-pullup:
+    description:
+      Enable internal pullup on interrupt pin when present. Omitting this will
+      disable internal pullup on INT pin.
+
+    $ref: /schemas/types.yaml#/definitions/flag
+
+  ams,enable-internal-i2c-pullup:
+    description:
+      Enable internal pullup on I2C SCL/SDA pins when present. Omitting this
+      will disable internal pullup on I2C SCL/SDA lines.
+
+    $ref: /schemas/types.yaml#/definitions/flag
+
+  ams,enable-ac-ok-power-on:
+    description:
+      When present, enable exit out of power off mode with AC_OK pin (pin
+      enabled in power off mode).
+
+    $ref: /schemas/types.yaml#/definitions/flag
+
+  ams,system-power-controller:
+    description:
+      The AS3722 supports the system power off by turning off all its rails.
+      The device node should contain this boolean property to enable this
+      functionality.
+
+    $ref: /schemas/types.yaml#/definitions/flag
+
+  pinmux:
+    description:
+      Device has 8 GPIO pins which can be configured as GPIO as well as the
+      special IO functions.
+
+    type: object
+    additionalProperties: false
+
+    patternProperties:
+      "^gpio[0-7_]+$":
+        description:
+          Child nodes of the pinmux node represent some desired configuration
+          for a list of pins. This configuration can include the mux function
+          to select on those pin(s), and various pin configuration parameters,
+          such as pull-up, open drain.
+
+        type: object
+        allOf:
+          - $ref: ../pinctrl/pincfg-node.yaml#
+          - $ref: ../pinctrl/pinmux-node.yaml#
+        additionalProperties: false
+
+        properties:
+          pins:
+            items:
+              enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7 ]
+
+          function:
+            enum: [ gpio, interrupt-out, gpio-in-interrupt,
+                    vsup-vbat-low-undebounce-out, vsup-vbat-low-debounce-out,
+                    voltage-in-standby, oc-pg-sd0, oc-pg-sd6, powergood-out,
+                    pwm-in, pwm-out, clk32k-out, watchdog-in, soft-reset-in ]
+
+          bias-pull-up:
+            type: boolean
+
+          bias-pull-down:
+            type: boolean
+
+          bias-disable: true
+          bias-high-impedance: true
+          drive-open-drain: true
+
+        required:
+          - pins
+
+  regulators:
+    description:
+      Device has multiple DCDC and LDOs. The node "regulators" is required if
+      regulator functionality is needed.
+
+    type: object
+    additionalProperties: false
+
+    properties:
+      vsup-sd2-supply:
+        description: input supply for SD2
+
+      vsup-sd3-supply:
+        description: input supply for SD3
+
+      vsup-sd4-supply:
+        description: input supply for SD4
+
+      vsup-sd5-supply:
+        description: input supply for SD5
+
+      vin-ldo0-supply:
+        description: input supply for LDO0
+
+      vin-ldo1-6-supply:
+        description: input supply for LDO1 and LDO6
+
+      vin-ldo2-5-7-supply:
+        description: input supply for LDO2, LDO5 and LDO7
+
+      vin-ldo3-4-supply:
+        description: input supply for LDO3 and LDO4
+
+      vin-ldo9-10-supply:
+        description: input supply for LDO9 and LDO10
+
+      vin-ldo11-supply:
+        description: input supply for LDO11
+
+    patternProperties:
+      "^(sd[0-6]|ldo[0-7]|ldo9|ldo10|ldo11)$":
+        description:
+          These sub-nodes must be named after one of the regulators found on
+          the AS3277. Each sub-node should contain the constraints and
+          initialization information for that regulator.
+
+        $ref: /schemas/regulator/regulator.yaml#
+        unevaluatedProperties: false
+        type: object
+
+        properties:
+          ams,ext-control:
+            description:
+              External control of the rail. The value of this property will
+              tell which external input is controlling this rail. Valid values
+              are 0, 1, 2 ad 3. If this property does not exist, the default
+              value is 0. The external control pin macros are defined in
+              dt-bindings/mfd/as3722.h.
+
+            $ref: /schemas/types.yaml#/definitions/uint32
+            oneOf:
+              - description: there is no external control of this rail
+                const: 0
+              - description: rail is controlled by ENABLE1 input pin
+                const: 1
+              - description: rail is controlled by ENABLE2 input pin
+                const: 2
+              - description: rail is controlled by ENABLE3 input pin
+                const: 3
+            default: 0
+
+          ams,enable-tracking:
+            description: Enable tracking with SD1, only supported by LDO3.
+
+            $ref: /schemas/types.yaml#/definitions/flag
+
+unevaluatedProperties: false
+
+required:
+  - compatible
+  - reg
+  - interrupt-controller
+  - "#interrupt-cells"
+  - gpio-controller
+  - "#gpio-cells"
+
+allOf:
+  - $ref: /schemas/gpio/gpio.yaml
+
+examples:
+  - |
+    #include <dt-bindings/mfd/as3722.h>
+
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        pmic@48 {
+            compatible = "ams,as3722";
+            reg = <0x48>;
+
+            ams,system-power-controller;
+
+            interrupt-parent = <&intc>;
+            interrupt-controller;
+            #interrupt-cells = <2>;
+
+            gpio-controller;
+            #gpio-cells = <2>;
+
+            pinctrl-names = "default";
+            pinctrl-0 = <&as3722_default>;
+
+            as3722_default: pinmux {
+                gpio0 {
+                    pins = "gpio0";
+                    function = "gpio";
+                    bias-pull-down;
+                };
+
+                gpio1_2_4_7 {
+                    pins = "gpio1", "gpio2", "gpio4", "gpio7";
+                    function = "gpio";
+                    bias-pull-up;
+                };
+
+                gpio5 {
+                    pins = "gpio5";
+                    function = "clk32k-out";
+                };
+            };
+
+            regulators {
+                vsup-sd2-supply = <&vdd_5v0_sys>;
+
+                sd0 {
+                    regulator-name = "vdd_cpu";
+                    regulator-min-microvolt = <700000>;
+                    regulator-max-microvolt = <1400000>;
+                    regulator-always-on;
+                    ams,ext-control = <2>;
+                };
+
+                sd1 {
+                    regulator-name = "vdd_core";
+                    regulator-min-microvolt = <700000>;
+                    regulator-max-microvolt = <1400000>;
+                    regulator-always-on;
+                    ams,ext-control = <1>;
+                };
+
+                sd2 {
+                    regulator-name = "vddio_ddr";
+                    regulator-min-microvolt = <1350000>;
+                    regulator-max-microvolt = <1350000>;
+                    regulator-always-on;
+                };
+
+                sd4 {
+                    regulator-name = "avdd-hdmi-pex";
+                    regulator-min-microvolt = <1050000>;
+                    regulator-max-microvolt = <1050000>;
+                    regulator-always-on;
+                };
+
+                sd5 {
+                    regulator-name = "vdd-1v8";
+                    regulator-min-microvolt = <1800000>;
+                    regulator-max-microvolt = <1800000>;
+                    regulator-always-on;
+                };
+            };
+        };
+    };
Documentation/devicetree/bindings/mfd/as3722.txt deleted +0 -214

214 lines not on this page · raw message

Documentation/devicetree/bindings/regulator/as3722-regulator.txt deleted +0 -91

91 lines not on this page · raw message

Signature · 1 line
2.55.0
#2 lore raw

Re: [PATCH v2 1/3] dt-bindings: mfd: as3722: Convert to json-schema

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Medium] dt-bindings: mfd: as3722 strict 'pinmux' property name prevents multiple pinctrl states…

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dt-bindings: mfd: as3722 strict 'pinmux' property name prevents multiple pinctrl states
- [Medium] dt-bindings: mfd: as3722 pinmux child node regex incorrectly rejects hyphens --

commit b7aefbb600a8c4a41917fc0749a39bff2e1a88d7
Author: Thierry Reding <[email protected]>

dt-bindings: mfd: as3722: Convert to json-schema

This commit converts the AMS AS3722 PMIC bindings from the free-form text format to json-schema.

Quoted 5 lines
Documentation/devicetree/bindings/mfd/ams,as3722.yaml new file +0 -0
new file mode 100644
index 0000000000000..51910042c6216

[ ... ]

Documentation/devicetree/bindings/mfd/ams,as3722.yaml line 80

Quoted 7 lines
Documentation/devicetree/bindings/mfd/ams,as3722.yaml new file +7 -0
+  pinmux:
+    description:
+      Device has 8 GPIO pins which can be configured as GPIO as well as the
+      special IO functions.
+
+    type: object
+    additionalProperties: false

[Severity: Medium]
Does strictly naming this property "pinmux" prevent device trees from declaring multiple unique pinctrl child nodes?

The original text binding supported pinctrl[0...n], but this strict naming and
additionalProperties: false will reject secondary pinctrl states like pinmux-sleep since sibling nodes must have unique names. Should this be a pattern property like "^(pinmux|pinctrl)(-[0-9a-z]+)?$" instead?

Documentation/devicetree/bindings/mfd/ams,as3722.yaml line 83

Quoted 3 lines
Documentation/devicetree/bindings/mfd/ams,as3722.yaml new file +3 -0
+
+    patternProperties:
+      "^gpio[0-7_]+$":

[Severity: Medium]
Does this regex incorrectly reject hyphens in node names?

Existing device tree configurations such as gpio0-1-3-4-5-6 in arch/arm/boot/dts/nvidia/tegra124-apalis.dtsi use hyphens to group pins. Since additionalProperties is set to false for the pinmux object, this regex will cause valid existing nodes to fail schema validation.

Quoted 5 lines
Documentation/devicetree/bindings/mfd/ams,as3722.yaml new file +5 -0
+        description:
+          Child nodes of the pinmux node represent some desired configuration
+          for a list of pins. This configuration can include the mux function
+          to select on those pin(s), and various pin configuration parameters,
+          such as pull-up, open drain.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
maintainer Reviewed-by on v2 1/3
#3 lore raw

Re: [PATCH v2 1/3] dt-bindings: mfd: as3722: Convert to json-schema

In reply to Thierry Reding
Quoted 16 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Convert the AMS AS3722 PMIC bindings from the free-form text format to json-schema.

---
Changes in v2:
- use pinmux-node.yaml, pincfg-node.yaml, gpio.yaml and regulator.yaml
- add #gpio-cells and gpio-controller to list of required properties
- remove some old and broken references from descriptions
- use consistent formatting for description property
- remove some duplicate type definitions
- add missing additionalProperties
- order properties consistently
- constrain #gpio-cells to 2

Quoted 6 lines
---
 .../devicetree/bindings/mfd/ams,as3722.yaml        | 293 +++++++++++++++++++++
 Documentation/devicetree/bindings/mfd/as3722.txt   | 214 ---------------
 .../bindings/regulator/as3722-regulator.txt        |  91 -------
 3 files changed, 293 insertions(+), 305 deletions(-)
author maintainer
#4 lore raw

PATCH v2 2/3 dt-bindings: sound: tegra-ahub: Convert to json-schema

In reply to Thierry Reding

From: Thierry Reding <[email protected]>

Convert Tegra AHUB bindings from the free-form text format to json-schema.

---
Changes in v2:
- add compatible to the list of required properties for i2s child nodes
- use consistent style for description properties
- add correct set of possible compatible strings
- add per-SoC constraints for resets and dmas
- wrap overly long lines
- fix yamllint warnings

---
 .../bindings/sound/nvidia,tegra30-ahub.txt         |  88 -------
 .../bindings/sound/nvidia,tegra30-ahub.yaml        | 288 +++++++++++++++++++++
 2 files changed, 288 insertions(+), 88 deletions(-)
Documentation/devicetree/bindings/sound/nvidia,tegra30-ahub.txt deleted +0 -88
deleted file mode 100644
index 0e9a1895d7fb..000000000000
@@ -1,88 +0,0 @@
-NVIDIA Tegra30 AHUB (Audio Hub)
-
-Required properties:
-- compatible : For Tegra30, must contain "nvidia,tegra30-ahub".  For Tegra114,
-  must contain "nvidia,tegra114-ahub".  For Tegra124, must contain
-  "nvidia,tegra124-ahub".  Otherwise, must contain "nvidia,<chip>-ahub",
-  plus at least one of the above, where <chip> is tegra132.
-- reg : Should contain the register physical address and length for each of
-  the AHUB's register blocks.
-  - Tegra30 requires 2 entries, for the APBIF and AHUB/AUDIO register blocks.
-  - Tegra114 requires an additional entry, for the APBIF2 register block.
-- interrupts : Should contain AHUB interrupt
-- clocks : Must contain an entry for each entry in clock-names.
-  See ../clocks/clock-bindings.txt for details.
-- clock-names : Must include the following entries:
-  - d_audio
-  - apbif
-- resets : Must contain an entry for each entry in reset-names.
-  See ../reset/reset.txt for details.
-- reset-names : Must include the following entries:
-  Tegra30 and later:
-  - d_audio
-  - apbif
-  - i2s0
-  - i2s1
-  - i2s2
-  - i2s3
-  - i2s4
-  - dam0
-  - dam1
-  - dam2
-  - spdif
-  Tegra114 and later additionally require:
-  - amx
-  - adx
-  Tegra124 and later additionally require:
-  - amx1
-  - adx1
-  - afc0
-  - afc1
-  - afc2
-  - afc3
-  - afc4
-  - afc5
-- ranges : The bus address mapping for the configlink register bus.
-  Can be empty since the mapping is 1:1.
-- dmas : Must contain an entry for each entry in clock-names.
-  See ../dma/dma.txt for details.
-- dma-names : Must include the following entries:
-  - rx0 .. rx<n>
-  - tx0 .. tx<n>
-  ... where n is:
-  Tegra30: 3
-  Tegra114, Tegra124: 9
-- #address-cells : For the configlink bus. Should be <1>;
-- #size-cells : For the configlink bus. Should be <1>.
-
-AHUB client modules need to specify the IDs of their CIFs (Client InterFaces).
-For RX CIFs, the numbers indicate the register number within AHUB routing
-register space (APBIF 0..3 RX, I2S 0..5 RX, DAM 0..2 RX 0..1, SPDIF RX 0..1).
-For TX CIFs, the numbers indicate the bit position within the AHUB routing
-registers (APBIF 0..3 TX, I2S 0..5 TX, DAM 0..2 TX, SPDIF TX 0..1).
-
-Example:
-
-ahub@70080000 {
-	compatible = "nvidia,tegra30-ahub";
-	reg = <0x70080000 0x200 0x70080200 0x100>;
-	interrupts = < 0 103 0x04 >;
-	nvidia,dma-request-selector = <&apbdma 1>;
-	clocks = <&tegra_car 106>, <&tegra_car 107>;
-	clock-names = "d_audio", "apbif";
-	resets = <&tegra_car 106>, <&tegra_car 107>, <&tegra_car 30>,
-		<&tegra_car 11>, <&tegra_car 18>, <&tegra_car 101>,
-		<&tegra_car 102>, <&tegra_car 108>, <&tegra_car 109>,
-		<&tegra_car 110>, <&tegra_car 10>;
-	reset-names = "d_audio", "apbif", "i2s0", "i2s1", "i2s2",
-		"i2s3", "i2s4", "dam0", "dam1", "dam2",
-		"spdif";
-	dmas = <&apbdma 1>, <&apbdma 1>;
-	       <&apbdma 2>, <&apbdma 2>;
-	       <&apbdma 3>, <&apbdma 3>;
-	       <&apbdma 4>, <&apbdma 4>;
-	dma-names = "rx0", "tx0", "rx1", "tx1", "rx2", "tx2", "rx3", "tx3";
-	ranges;
-	#address-cells = <1>;
-	#size-cells = <1>;
-};
Documentation/devicetree/bindings/sound/nvidia,tegra30-ahub.yaml new file +288 -0

288 lines not on this page · raw message

Signature · 1 line
2.55.0
#5 lore raw

Re: [PATCH v2 2/3] dt-bindings: sound: tegra-ahub: Convert to json-schema

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] dt-bindings: schema bypass for tegra132 due to const instead of contains --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: schema bypass for tegra132 due to const instead of contains --

commit cc353b75e1127a04e8bb3722f63443c9ec2f2daf
Author: Thierry Reding <[email protected]>

dt-bindings: sound: tegra-ahub: Convert to json-schema

Convert Tegra AHUB bindings from the free-form text format to json-schema.

Quoted 6 lines
Documentation/devicetree/bindings/sound/nvidia,tegra30-ahub.yaml new file +0 -0
new file mode 100644
index 0000000000000..4a7f5c74125c2
@@ -0,0 +1,288 @@

[ ... ]

Quoted 9 lines
Documentation/devicetree/bindings/sound/nvidia,tegra30-ahub.yaml new file +9 -0
+properties:
+  compatible:
+    oneOf:
+      - const: nvidia,tegra30-ahub
+      - const: nvidia,tegra114-ahub
+      - const: nvidia,tegra124-ahub
+      - items:
+          - const: nvidia,tegra132-ahub
+          - const: nvidia,tegra124-ahub

[ ... ]

Documentation/devicetree/bindings/sound/nvidia,tegra30-ahub.yaml line 196

Quoted 4 lines
Documentation/devicetree/bindings/sound/nvidia,tegra30-ahub.yaml new file +4 -0
+  - if:
+      properties:
+        compatible:
+          const: nvidia,tegra124-ahub

[Severity: Medium]
Will this exact match condition fail when evaluated against the tegra132 compatible sequence array?

Since JSON Schema const requires exact equality, this condition evaluates to false when checking the device tree array ["nvidia,tegra132-ahub", "nvidia,tegra124-ahub"].

This causes hardware constraints (such as reg, resets, and dmas properties requirements) defined for tegra124-ahub to be silently skipped for tegra132-ahub device tree nodes, allowing incomplete configurations to pass schema validation.

Should this use contains: enum: or contains: const: instead of const:
to correctly match fallback sequences?

Quoted 5 lines
Documentation/devicetree/bindings/sound/nvidia,tegra30-ahub.yaml new file +5 -0
+    then:
+      properties:
+        reg:
+          items:
+            - description: APBIF registers
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
maintainer
#6 lore raw

Re: [PATCH v2 2/3] dt-bindings: sound: tegra-ahub: Convert to json-schema

In reply to Thierry Reding
Quoted 4 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Convert Tegra AHUB bindings from the free-form text format to json-schema.

Please submit patches using subject lines reflecting the style for the subsystem, this makes it easier for people to identify relevant patches. Look at what existing commits in the area you're changing are doing and make sure your subject lines visually resemble what they're doing. There's no need to resubmit to fix this alone.

maintainer Reviewed-by on v2 2/3
#7 lore raw

Re: [PATCH v2 2/3] dt-bindings: sound: tegra-ahub: Convert to json-schema

In reply to Thierry Reding
Quoted 14 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Convert Tegra AHUB bindings from the free-form text format to json-schema.

---
Changes in v2:
- add compatible to the list of required properties for i2s child nodes
- use consistent style for description properties
- add correct set of possible compatible strings
- add per-SoC constraints for resets and dmas
- wrap overly long lines
- fix yamllint warnings

Quoted 5 lines
---
 .../bindings/sound/nvidia,tegra30-ahub.txt         |  88 -------
 .../bindings/sound/nvidia,tegra30-ahub.yaml        | 288 +++++++++++++++++++++
 2 files changed, 288 insertions(+), 88 deletions(-)
author maintainer
#8 lore raw

PATCH v2 3/3 arm64: tegra: Add Tegra132 specific compatible for AHUB

In reply to Thierry Reding

From: Thierry Reding <[email protected]>

The AHUB on Tegra132 is backwards-compatible with the one found on Tegra124, but it needs a specific compatible string anyway, so add one.

---
 arch/arm64/boot/dts/nvidia/tegra132.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/nvidia/tegra132.dtsi +1 -1
index 3463fa637b37..3e9e123eceeb 100644
@@ -889,7 +889,7 @@ throttle_heavy: heavy {
 	};
 
 	ahub@70300000 {
-		compatible = "nvidia,tegra124-ahub";
+		compatible = "nvidia,tegra132-ahub", "nvidia,tegra124-ahub";
 		reg = <0x0 0x70300000 0x0 0x200>,
 		      <0x0 0x70300800 0x0 0x800>,
 		      <0x0 0x70300200 0x0 0x600>;
Signature · 1 line
2.55.0
#9 lore raw

Re: [PATCH v2 3/3] arm64: tegra: Add Tegra132 specific compatible for AHUB

Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 7 lines

From: Thierry Reding <[email protected]>

The AHUB on Tegra132 is backwards-compatible with the one found on Tegra124, but it needs a specific compatible string anyway, so add one.

Sashiko has reviewed this patch and found no issues. It looks great!

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3