dt-bindings: Add trivial Apple t6000/t6001 SoC bindings
Subsystems (6)
cover dt-bindings: Add trivial Apple t6000/t6001 SoC bindings
Hi Rob et al,
This series adds trivial DT binding changes (compatibles and some misc changes) to support Apple's t6000/t6001 SoCs and the devices that use them. These changes are for devices that need no driver changes to support these new SoCs. Drivers that need changes (notably AICv2) have the binding change submitted as part of that series.
The only nontrivial patch is #3 for the PCIe binding, which grew a port. I tried to set it up so it'll fail validation if you try to have too many ports on t8103.
I'll be happy to merge this through the Asahi-SoC tree once reviewed :)
Hector Martin (4):
dt-bindings: arm: apple: Add t6000/t6001 MacBook Pro 14/16"
compatibles
dt-bindings: i2c: apple,i2c: Add apple,t6000-i2c compatible
dt-bindings: pci: apple,pcie: Add t6000 support
dt-bindings: pinctrl: apple,pinctrl: Add apple,t6000-pinctrl
compatible
.../devicetree/bindings/arm/apple.yaml | 21 ++++++++++++++ .../devicetree/bindings/i2c/apple,i2c.yaml | 4 ++- .../devicetree/bindings/pci/apple,pcie.yaml | 28 ++++++++++++++----- .../bindings/pinctrl/apple,pinctrl.yaml | 4 ++- 4 files changed, 48 insertions(+), 9 deletions(-)
Signature · 1 line
2.33.0
PATCH 1/4 dt-bindings: arm: apple: Add t6000/t6001 MacBook Pro 14/16" compatibles
This adds the initial apple,t6000 platforms:
- apple,j314s - MacBook Pro (14-inch, M1 Pro, 2021)
- apple,j316s - MacBook Pro (16-inch, M1 Pro, 2021)
And the initial apple,t6001 platforms:
- apple,j314c - MacBook Pro (14-inch, M1 Max, 2021)
- apple,j316c - MacBook Pro (16-inch, M1 Max, 2021)
--- .../devicetree/bindings/arm/apple.yaml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+)
Documentation/devicetree/bindings/arm/apple.yaml +21 -0
@@ -19,6 +19,13 @@ description: | - MacBook Air (M1, 2020) - iMac (24-inch, M1, 2021) + And devices based on the "M1 Pro" and "M1 Max" SoCs: + + - MacBook Pro (14-inch, M1 Pro, 2021) + - MacBook Pro (14-inch, M1 Max, 2021) + - MacBook Pro (16-inch, M1 Pro, 2021) + - MacBook Pro (16-inch, M1 Max, 2021) + The compatible property should follow this format: compatible = "apple,<targettype>", "apple,<socid>", "apple,arm-platform";
@@ -60,6 +67,20 @@ properties: - apple,j457 # iMac (24-inch, 2x USB-C, M1, 2021) - const: apple,t8103 - const: apple,arm-platform + - description: Apple M1 Pro SoC based platforms + items: + - enum: + - apple,j314s # MacBook Pro (14-inch, M1 Pro, 2021) + - apple,j316s # MacBook Pro (16-inch, M1 Pro, 2021) + - const: apple,t6000 + - const: apple,arm-platform + - description: Apple M1 Max SoC based platforms + items: + - enum: + - apple,j314c # MacBook Pro (14-inch, M1 Max, 2021) + - apple,j316c # MacBook Pro (16-inch, M1 Max, 2021) + - const: apple,t6001 + - const: apple,arm-platform additionalProperties: true
Signature · 1 line
2.33.0
Re: [PATCH 1/4] dt-bindings: arm: apple: Add t6000/t6001 MacBook Pro 14/16" compatibles
Quoted 10 lines
From: Hector Martin <[email protected]>
Date: Thu, 9 Dec 2021 14:09:58 +0900This adds the initial apple,t6000 platforms:
- apple,j314s - MacBook Pro (14-inch, M1 Pro, 2021)
- apple,j316s - MacBook Pro (16-inch, M1 Pro, 2021)And the initial apple,t6001 platforms:
Quoted 7 lines
- apple,j314c - MacBook Pro (14-inch, M1 Max, 2021)
- apple,j316c - MacBook Pro (16-inch, M1 Max, 2021)Signed-off-by Hector Martin <[email protected]>--- .../devicetree/bindings/arm/apple.yaml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+)
Quoted 41 lines
Documentation/devicetree/bindings/arm/apple.yaml +21
-0@@ -19,6 +19,13 @@ description: | - MacBook Air (M1, 2020) - iMac (24-inch, M1, 2021) + And devices based on the "M1 Pro" and "M1 Max" SoCs: + + - MacBook Pro (14-inch, M1 Pro, 2021) + - MacBook Pro (14-inch, M1 Max, 2021) + - MacBook Pro (16-inch, M1 Pro, 2021) + - MacBook Pro (16-inch, M1 Max, 2021) + The compatible property should follow this format: compatible = "apple,<targettype>", "apple,<socid>", "apple,arm-platform";@@ -60,6 +67,20 @@ properties: - apple,j457 # iMac (24-inch, 2x USB-C, M1, 2021) - const: apple,t8103 - const: apple,arm-platform + - description: Apple M1 Pro SoC based platforms + items: + - enum: + - apple,j314s # MacBook Pro (14-inch, M1 Pro, 2021) + - apple,j316s # MacBook Pro (16-inch, M1 Pro, 2021) + - const: apple,t6000 + - const: apple,arm-platform + - description: Apple M1 Max SoC based platforms + items: + - enum: + - apple,j314c # MacBook Pro (14-inch, M1 Max, 2021) + - apple,j316c # MacBook Pro (16-inch, M1 Max, 2021) + - const: apple,t6001 + - const: apple,arm-platform additionalProperties: trueSignature · 1 line
2.33.0
Re: [PATCH 1/4] dt-bindings: arm: apple: Add t6000/t6001 MacBook Pro 14/16" compatibles
In reply to Hector MartinQuoted 7 lines · Hector Martin
This adds the initial apple,t6000 platforms:
- apple,j314s - MacBook Pro (14-inch, M1 Pro, 2021)
- apple,j316s - MacBook Pro (16-inch, M1 Pro, 2021)And the initial apple,t6001 platforms:
Quoted 8 lines
- apple,j314c - MacBook Pro (14-inch, M1 Max, 2021)
- apple,j316c - MacBook Pro (16-inch, M1 Max, 2021)Signed-off-by Hector Martin <[email protected]>--- .../devicetree/bindings/arm/apple.yaml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+)
PATCH 2/4 dt-bindings: i2c: apple,i2c: Add apple,t6000-i2c compatible
In reply to Hector MartinThis block is compatible with t8103, so just add the new per-SoC compatible under apple,i2c.
--- Documentation/devicetree/bindings/i2c/apple,i2c.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/i2c/apple,i2c.yaml +3 -1
@@ -21,7 +21,9 @@ allOf: properties: compatible: items: - - const: apple,t8103-i2c + - enum: + - apple,t8103-i2c + - apple,t6000-i2c - const: apple,i2c reg:
Signature · 1 line
2.33.0
Re: [PATCH 2/4] dt-bindings: i2c: apple, i2c: Add apple, t6000-i2c compatible
Quoted 11 lines
From: Hector Martin <[email protected]>
Date: Thu, 9 Dec 2021 14:09:59 +0900This block is compatible with t8103, so just add the new per-SoC compatible under apple,i2c.
Signed-off-by Hector Martin <[email protected]>--- Documentation/devicetree/bindings/i2c/apple,i2c.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Quoted 17 lines
Documentation/devicetree/bindings/i2c/apple,i2c.yaml +3
-1@@ -21,7 +21,9 @@ allOf: properties: compatible: items: - - const: apple,t8103-i2c + - enum: + - apple,t8103-i2c + - apple,t6000-i2c - const: apple,i2c reg:Signature · 1 line
2.33.0
Re: [PATCH 2/4] dt-bindings: i2c: apple,i2c: Add apple,t6000-i2c compatible
In reply to Hector MartinQuoted 7 lines · Hector Martin
This block is compatible with t8103, so just add the new per-SoC compatible under apple,i2c.
Signed-off-by Hector Martin <[email protected]>--- Documentation/devicetree/bindings/i2c/apple,i2c.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Re: [PATCH 2/4] dt-bindings: i2c: apple,i2c: Add apple,t6000-i2c compatible
In reply to Hector MartinQuoted 8 lines · Hector Martin
This block is compatible with t8103, so just add the new per-SoC compatible under apple,i2c.
Signed-off-by Hector Martin <[email protected]>--- Documentation/devicetree/bindings/i2c/apple,i2c.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
PATCH 3/4 dt-bindings: pci: apple,pcie: Add t6000 support
In reply to Hector MartinThis new SoC is compatible with the existing driver, but the block supports 4 downstream ports, so we need to adjust the binding to allow that.
--- .../devicetree/bindings/pci/apple,pcie.yaml | 28 ++++++++++++++----- 1 file changed, 21 insertions(+), 7 deletions(-)
Documentation/devicetree/bindings/pci/apple,pcie.yaml +21 -7
@@ -28,19 +28,17 @@ description: | distributed over the root ports as the OS sees fit by programming the PCIe controller's port registers. -allOf: - - $ref: /schemas/pci/pci-bus.yaml# - - $ref: /schemas/interrupt-controller/msi-controller.yaml# - properties: compatible: items: - - const: apple,t8103-pcie + - enum: + - apple,t8103-pcie + - apple,t6000-pcie - const: apple,pcie reg: minItems: 3 - maxItems: 5 + maxItems: 6 reg-names: minItems: 3
@@ -50,6 +48,7 @@ properties: - const: port0 - const: port1 - const: port2 + - const: port3 ranges: minItems: 2
@@ -59,7 +58,7 @@ properties: description: Interrupt specifiers, one for each root port. minItems: 1 - maxItems: 3 + maxItems: 4 msi-parent: true
@@ -81,6 +80,21 @@ required: unevaluatedProperties: false +allOf: + - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/interrupt-controller/msi-controller.yaml# + - if: + properties: + compatible: + contains: + const: apple,t8103-pcie + then: + properties: + reg: + maxItems: 5 + interrupts: + maxItems: 3 + examples: - | #include <dt-bindings/interrupt-controller/apple-aic.h>
Signature · 1 line
2.33.0
Re: [PATCH 3/4] dt-bindings: pci: apple,pcie: Add t6000 support
Quoted 11 lines
From: Hector Martin <[email protected]>
Date: Thu, 9 Dec 2021 14:10:00 +0900This new SoC is compatible with the existing driver, but the block supports 4 downstream ports, so we need to adjust the binding to allow that.
Signed-off-by Hector Martin <[email protected]>--- .../devicetree/bindings/pci/apple,pcie.yaml | 28 ++++++++++++++----- 1 file changed, 21 insertions(+), 7 deletions(-)
Not 100% certain if we really want to constrain things on a per-SoC basis this way. But it matches my understanding of the hardware.
Quoted 69 lines
Documentation/devicetree/bindings/pci/apple,pcie.yaml +21
-7@@ -28,19 +28,17 @@ description: | distributed over the root ports as the OS sees fit by programming the PCIe controller's port registers. -allOf: - - $ref: /schemas/pci/pci-bus.yaml# - - $ref: /schemas/interrupt-controller/msi-controller.yaml# - properties: compatible: items: - - const: apple,t8103-pcie + - enum: + - apple,t8103-pcie + - apple,t6000-pcie - const: apple,pcie reg: minItems: 3 - maxItems: 5 + maxItems: 6 reg-names: minItems: 3@@ -50,6 +48,7 @@ properties: - const: port0 - const: port1 - const: port2 + - const: port3 ranges: minItems: 2@@ -59,7 +58,7 @@ properties: description: Interrupt specifiers, one for each root port. minItems: 1 - maxItems: 3 + maxItems: 4 msi-parent: true@@ -81,6 +80,21 @@ required: unevaluatedProperties: false +allOf: + - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/interrupt-controller/msi-controller.yaml# + - if: + properties: + compatible: + contains: + const: apple,t8103-pcie + then: + properties: + reg: + maxItems: 5 + interrupts: + maxItems: 3 + examples: - | #include <dt-bindings/interrupt-controller/apple-aic.h>Signature · 1 line
2.33.0
Re: [PATCH 3/4] dt-bindings: pci: apple,pcie: Add t6000 support
In reply to Hector MartinQuoted 9 lines · Hector Martin
This new SoC is compatible with the existing driver, but the block supports 4 downstream ports, so we need to adjust the binding to allow that.
Signed-off-by Hector Martin <[email protected]>--- .../devicetree/bindings/pci/apple,pcie.yaml | 28 ++++++++++++++----- 1 file changed, 21 insertions(+), 7 deletions(-)
PATCH 4/4 dt-bindings: pinctrl: apple,pinctrl: Add apple,t6000-pinctrl compatible
In reply to Hector MartinThis new SoC uses the same pinctrl hardware, so just add a new per-SoC compatible.
--- Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml +3 -1
@@ -17,7 +17,9 @@ description: | properties: compatible: items: - - const: apple,t8103-pinctrl + - enum: + - apple,t8103-pinctrl + - apple,t6000-pinctrl - const: apple,pinctrl reg:
Signature · 1 line
2.33.0
Re: [PATCH 4/4] dt-bindings: pinctrl: apple, pinctrl: Add apple, t6000-pinctrl compatible
Quoted 11 lines
From: Hector Martin <[email protected]>
Date: Thu, 9 Dec 2021 14:10:01 +0900This new SoC uses the same pinctrl hardware, so just add a new per-SoC compatible.
Signed-off-by Hector Martin <[email protected]>--- Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Quoted 24 lines
Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml +3
-1@@ -17,7 +17,9 @@ description: | properties: compatible: items: - - const: apple,t8103-pinctrl + - enum: + - apple,t8103-pinctrl + - apple,t6000-pinctrl - const: apple,pinctrl reg:Signature · 7 lines
2.33.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 4/4] dt-bindings: pinctrl: apple,pinctrl: Add apple,t6000-pinctrl compatible
In reply to Hector MartinQuoted 8 lines · Hector Martin
This new SoC uses the same pinctrl hardware, so just add a new per-SoC compatible.
Signed-off-by Hector Martin <[email protected]>--- Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Quoted 22 lines · Hector Martin
Hi Rob et al,
This series adds trivial DT binding changes (compatibles and some misc changes) to support Apple's t6000/t6001 SoCs and the devices that use them. These changes are for devices that need no driver changes to support these new SoCs. Drivers that need changes (notably AICv2) have the binding change submitted as part of that series.
The only nontrivial patch is #3 for the PCIe binding, which grew a port. I tried to set it up so it'll fail validation if you try to have too many ports on t8103.
I'll be happy to merge this through the Asahi-SoC tree once reviewed :)
Hector Martin (4):
dt-bindings: arm: apple: Add t6000/t6001 MacBook Pro 14/16"
compatibles
dt-bindings: i2c: apple,i2c: Add apple,t6000-i2c compatible
dt-bindings: pci: apple,pcie: Add t6000 support
dt-bindings: pinctrl: apple,pinctrl: Add apple,t6000-pinctrl
compatible
Quoted 6 lines
.../devicetree/bindings/arm/apple.yaml | 21 ++++++++++++++ .../devicetree/bindings/i2c/apple,i2c.yaml | 4 ++- .../devicetree/bindings/pci/apple,pcie.yaml | 28 ++++++++++++++----- .../bindings/pinctrl/apple,pinctrl.yaml | 4 ++- 4 files changed, 48 insertions(+), 9 deletions(-)
Thanks for the reviews! This is now queued in asahi-soc/dt.
Signature · 2 lines
Hector Martin ([email protected]) Public Key: https://mrcn.st/pub