-
Notifications
You must be signed in to change notification settings - Fork 897
ADSP-SC598 upstream driver changes v2 #2908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
artursartamonovsadi
wants to merge
24
commits into
adsp-6.12.38-y
Choose a base branch
from
adsp-6.12.38-y-patchset
base: adsp-6.12.38-y
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
25733e1
arm64: Add ADI ADSP-SC598 SoC
artursartamonovsadi 1a81e9f
dt-bindings: arm64: Add ADI ADSP-SC5xx pads driver
artursartamonovsadi 398e640
reset: Add driver for ADI ADSP-SC5xx reset controller
artursartamonovsadi db389de
dt-bindings: arm64: adi,sc598 bindings
artursartamonovsadi 9fe8055
dt-bindings: arm64: adi,sc598: Add ADSP-SC598 SoC bindings
artursartamonovsadi 194a02c
clock:Add driver for ADI ADSP-SC5xx PLL
artursartamonovsadi e219f29
clock: Add driver for ADI ADSP-SC5xx clock
artursartamonovsadi 3085cc4
dt-bindings: clock: adi,sc5xx-clocks: add bindings
artursartamonovsadi ebf1d07
gpio: add driver for ADI ADSP-SC5xx platform
artursartamonovsadi 7e51db0
dt-bindings: gpio: adi,adsp-port-gpio: add bindings
artursartamonovsadi 2c4e844
pinctrl: Add drivers for ADI ADSP-SC5xx platform
artursartamonovsadi 2f36224
dt-bindings: pinctrl: adi,adsp-pinctrl: add bindings
artursartamonovsadi 81765f3
i2c: Add driver for ADI ADSP-SC5xx platforms
artursartamonovsadi b24dbd6
dt-bindings: i2c: add i2c/twi driver documentation
artursartamonovsadi f47734e
serial: adi,uart: Add driver for ADI ADSP-SC5xx
artursartamonovsadi c8ca6fb
dt-bindings: serial: adi,uart4: add adi,uart4 driver documentation
artursartamonovsadi ffbbd46
arm64: dts: adi: sc598: add device tree
artursartamonovsadi 79cc01c
arm64: defconfig: sc598 add minimal changes
artursartamonovsadi 55b4443
MAINTAINERS: add adi sc5xx maintainers
artursartamonovsadi a4a4dd4
arm64: dts: adi: enabled disabled clocks
artursartamonovsadi 4f7b0ee
tty: revert extra whitespace that's not related to SC5XX
artursartamonovsadi 03d018c
reset: adi: remove trailing whitespace
artursartamonovsadi ea97238
Replace all Greg Malysa old emails to new one
artursartamonovsadi 517229d
adi: checkpatch strict fixes
artursartamonovsadi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
Documentation/devicetree/bindings/arm/analog/adi,sc5xx.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/arm/analog/adi,sc5xx.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Analog Devices SC59X 64-Bit ARM-based Processor Families | ||
|
||
maintainers: | ||
- Arturs Artamonovs <[email protected]> | ||
- Utsav Agarwal <[email protected]> | ||
|
||
properties: | ||
$nodename: | ||
const: '/' | ||
compatible: | ||
description: SC59X 64-Bit Boards | ||
items: | ||
- enum: | ||
- adi,sc598-som-ezkit # Analog Devices SC598 EZKit | ||
- adi,sc598-som-ezlite # Analog Devices SC598 EZLite | ||
- const: adi,sc59x-64 | ||
|
||
additionalProperties: true |
69 changes: 69 additions & 0 deletions
69
Documentation/devicetree/bindings/clock/adi,sc5xx-clocks.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/clock/adi,sc5xx-clocks.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Clock Tree Drivers for Analog Devices ADSP-SC5XX Processors | ||
|
||
maintainers: | ||
- Arturs Artamonovs <[email protected]> | ||
- Utsav Agarwal <[email protected]> | ||
|
||
description: | | ||
These drivers read in the processors CDU (clock distribution unit) | ||
and CGU (clock generation unit) values to determine various clock | ||
rates | ||
|
||
properties: | ||
compatible: | ||
oneOf: | ||
- items: | ||
- enum: | ||
- adi,sc598-cgu0 | ||
- adi,sc598-cgu1 | ||
- adi,sc598-cdu | ||
- adi,sc598-pll | ||
|
||
'#clock-cells': | ||
const: 1 | ||
|
||
reg: | ||
minItems: 1 | ||
maxItems: 2 | ||
|
||
clocks: | ||
description: | ||
Specifies the CLKIN0 and CLKIN1 reference clock(s) from which the | ||
output frequencies are derived via CDU+CGU | ||
minItems: 1 | ||
maxItems: 2 | ||
|
||
clock-names: | ||
description: | ||
String reference names for CLKIN0 and CLKIN1 | ||
minItems: 1 | ||
maxItems: 2 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- clocks | ||
- '#clock-cells' | ||
- clock-names | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
clk3: clocks@3108d000 { | ||
compatible = "adi,sc598-clocks"; | ||
reg = <0x3108d000 0x1000>, | ||
<0x3108e000 0x1000>, | ||
<0x3108f000 0x1000>, | ||
<0x310a9000 0x1000>; | ||
#clock-cells = <1>; | ||
clocks = <&sys_clkin0>, <&sys_clkin1>; | ||
clock-names = "sys_clkin0", "sys_clkin1"; | ||
status = "okay"; | ||
}; |
57 changes: 57 additions & 0 deletions
57
Documentation/devicetree/bindings/gpio/adi,sc5xx-gpio.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/gpio/adi,sc5xx-gpio.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Analog Devices GPIO Port Driver for SC5XX-family processors | ||
|
||
maintainers: | ||
- Arturs Artamonovs <[email protected]> | ||
- Utsav Agarwal <[email protected]> | ||
|
||
description: | | ||
Analog Devices GPIO Port Driver for SC5XX-family processors | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- adi,sc5xx-gpio | ||
|
||
gpio-controller: true | ||
|
||
"#gpio-cells": | ||
const: 2 | ||
|
||
gpio-ranges: | ||
description: Associated pinmux controller and the GPIO range values | ||
|
||
adi,pint: | ||
$ref: /schemas/types.yaml#/definitions/phandle-array | ||
description: Associated pin interrupt controller driver | ||
items: | ||
- items: | ||
- description: phandle to pin interrupt controller driver | ||
- description: interrupt value | ||
|
||
reg: | ||
description: PORT GPIO control registers | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- "#gpio-cells" | ||
- gpio-controller | ||
- gpio-ranges | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
gpa: gport@31004000 { | ||
compatible = "adi,sc5xx-gpio"; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
reg = <0x31004000 0x7f>; | ||
gpio-ranges = <&pinctrl0 0 0 16>; | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/i2c/adi,sc5xx-i2c.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Analog Devices I2C Peripheral for SC5XX Processor Family | ||
|
||
maintainers: | ||
- Arturs Artamonovs <[email protected]> | ||
- Utsav Agarwal <[email protected]> | ||
|
||
description: Analog Devices I2C Peripheral driver for SC5XX Processor Family | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- adi,sc5xx-i2c | ||
|
||
"#address-cells": | ||
const: 1 | ||
|
||
"#size-cells": | ||
const: 0 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
clock-khz: | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
clock-names: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- "#address-cells" | ||
- "#size-cells" | ||
- reg | ||
- interrupts | ||
- clock-khz | ||
- clocks | ||
- clock-names | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
#include <dt-bindings/clock/adi-sc5xx-clock.h> | ||
|
||
i2c@31001400 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
compatible = "adi,sc5xx-i2c"; | ||
reg = <0x31001400 0xff>; | ||
interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>; | ||
clock-khz = <100>; | ||
clocks = <&clk ADSP_CLK_CGU0_SCLK0>; | ||
clock-names = "sclk0"; | ||
}; | ||
|
82 changes: 82 additions & 0 deletions
82
Documentation/devicetree/bindings/pinctrl/adi,sc5xx-pinctrl.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/pinctrl/adi,sc5xx-pinctrl.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Analog Devices Pinmuxing Control for SC5XX Processor Family | ||
|
||
maintainers: | ||
- Arturs Artamonovs <[email protected]> | ||
- Utsav Agarwal <[email protected]> | ||
|
||
description: | | ||
Pinmuxing Control Driver for Configuring Processor Pins/Pads | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- adi,sc5xx-pinctrl | ||
reg: | ||
maxItems: 1 | ||
|
||
"#address-cells": | ||
const: 1 | ||
|
||
"#size-cells": | ||
const: 1 | ||
|
||
"adi,port-sizes": | ||
$ref: /schemas/types.yaml#/definitions/uint32-array | ||
maxItems: 9 | ||
description: Space delimited integer list denoting number of pins per port | ||
Ports A-I exist, so this is up to 9 items long | ||
|
||
"adi,no-drive-strength": | ||
type: boolean | ||
description: Indicate missing drive strength registers | ||
|
||
"adi,no-pull-up-down": | ||
type: boolean | ||
description: Indicate missing pull up/down enable registers | ||
|
||
patternProperties: | ||
'-pins$': | ||
type: object | ||
additionalProperties: false | ||
|
||
properties: | ||
pins: | ||
type: object | ||
description: | | ||
A pinctrl node should contain a pin property, specifying the actual | ||
pins to use. | ||
|
||
properties: | ||
pinmux: | ||
$ref: /schemas/types.yaml#/definitions/uint32-array | ||
description: | | ||
pinmux is used to specify which of the available functionalities | ||
for a given pin are actually used. | ||
|
||
additionalProperties: false | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- "#address-cells" | ||
- "#size-cells" | ||
- "adi,port-sizes" | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
pinctrl0: pinctrl@31004600 { | ||
compatible = "adi,sc5xx-pinctrl"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
reg = <0x31004600 0x400>; | ||
adi,port-sizes = <16 16 16 16 16 16 16 16 7>; | ||
}; | ||
|
41 changes: 41 additions & 0 deletions
41
Documentation/devicetree/bindings/reset/adi,sc5xx-reset.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/reset/adi,sc5xx-reset.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Analog Devices Reset Controller for SC5XX processor family | ||
|
||
description: SHARC and ARM core reset control unit for starting/stopping/resetting | ||
processors | ||
|
||
maintainers: | ||
- Arturs Artamonovs <[email protected]> | ||
- Utsav Agarwal <[email protected]> | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- adi,sc5xx-reset | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
"#reset-cells": | ||
const: 0 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- "#reset-cells" | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
rcu: rcu@3108c000 { | ||
compatible = "adi,sc5xx-reset"; | ||
reg = <0x3108c000 0x1000>; | ||
#reset-cells = <0>; | ||
}; | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But the filename is
sc5xx.yaml
. So maybesc59x.yaml
or as much as I hate it,sc59x_64.yaml
since aarch64 isn't in a separate directory here.