Commit 03183782 authored by Amjad Ouled-Ameur's avatar Amjad Ouled-Ameur Committed by Mark Brown

spi: dt-bindings: amlogic, meson-gx-spicc: Add pinctrl names for SPI signal states

SPI pins of the SPICC Controller in Meson-GX needs to be controlled by
pin biais when idle. Therefore define three pinctrl names:
- default: SPI pins are controlled by spi function.
- idle-high: SCLK pin is pulled-up, but MOSI/MISO are still controlled
by spi function.
- idle-low: SCLK pin is pulled-down, but MOSI/MISO are still controlled
by spi function.
Reported-by: default avatarDa Xue <da@libre.computer>
Signed-off-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Signed-off-by: default avatarAmjad Ouled-Ameur <aouledameur@baylibre.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221004-up-aml-fix-spi-v4-1-0342d8e10c49@baylibre.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent aea672d0
...@@ -10,9 +10,6 @@ title: Amlogic Meson SPI Communication Controller ...@@ -10,9 +10,6 @@ title: Amlogic Meson SPI Communication Controller
maintainers: maintainers:
- Neil Armstrong <neil.armstrong@linaro.org> - Neil Armstrong <neil.armstrong@linaro.org>
allOf:
- $ref: "spi-controller.yaml#"
description: | description: |
The Meson SPICC is a generic SPI controller for general purpose Full-Duplex The Meson SPICC is a generic SPI controller for general purpose Full-Duplex
communications with dedicated 16 words RX/TX PIO FIFOs. communications with dedicated 16 words RX/TX PIO FIFOs.
...@@ -43,14 +40,16 @@ properties: ...@@ -43,14 +40,16 @@ properties:
minItems: 1 minItems: 1
maxItems: 2 maxItems: 2
if: allOf:
- $ref: "spi-controller.yaml#"
- if:
properties: properties:
compatible: compatible:
contains: contains:
enum: enum:
- amlogic,meson-g12a-spicc - amlogic,meson-g12a-spicc
then: then:
properties: properties:
clocks: clocks:
minItems: 2 minItems: 2
...@@ -60,7 +59,7 @@ then: ...@@ -60,7 +59,7 @@ then:
- const: core - const: core
- const: pclk - const: pclk
else: else:
properties: properties:
clocks: clocks:
maxItems: 1 maxItems: 1
...@@ -69,6 +68,26 @@ else: ...@@ -69,6 +68,26 @@ else:
items: items:
- const: core - const: core
- if:
properties:
compatible:
contains:
enum:
- amlogic,meson-gx-spicc
then:
properties:
pinctrl-0: true
pinctrl-1: true
pinctrl-2: true
pinctrl-names:
minItems: 1
items:
- const: default
- const: idle-high
- const: idle-low
required: required:
- compatible - compatible
- reg - reg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment