mirror of
https://github.com/torvalds/linux.git
synced 2026-04-28 11:32:28 -04:00
Pull pin control updates from Linus Walleij:
"An especially linear and sparse improvement and new drivers release.
Nothing exciting. The biggest change in Bartosz changes to make
gpiochip set/get calls return error codes (something we should have
fixed ages ago but is now finally getting fixed.)
Core changes:
- Add the devres devm_pinctrl_register_mappings() call that can
register some pin control machine mappings and have them go away
with the associated device
New drivers:
- Support for the Mediatek MT6893 and MT8196 SoCs
- Support for the Renesas RZ/V2N SoC
- Support for the NXP Freescale i.MX943 SoC
Improvements:
- Per-SoC suspend/resume callbacks in the Samsung drivers
- Set all pins as input (High-Z) at probe in the MCP23S08 driver
- Switch most GPIO chips to use the setters/getters with a return
value
- EGPIO support in the Qualcomm QCM2290 driver
- Fix up the number of available GPIO lines in Qualcomm QCS8300 and
QCS615"
* tag 'pinctrl-v6.16-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: (82 commits)
pinctrl: freescale: Add support for imx943 pinctrl
pinctrl: core: add devm_pinctrl_register_mappings()
pinctrl: remove extern specifier for functions in machine.h
pinctrl: mediatek: eint: Fix invalid pointer dereference for v1 platforms
pinctrl: freescale: Enable driver if platform is enabled.
pinctrl: freescale: Depend imx-scu driver on OF
pinctrl: armada-37xx: propagate error from armada_37xx_pmx_set_by_name()
pinctrl: armada-37xx: propagate error from armada_37xx_gpio_get_direction()
pinctrl: armada-37xx: propagate error from armada_37xx_pmx_gpio_set_direction()
pinctrl: armada-37xx: propagate error from armada_37xx_gpio_get()
pinctrl: armada-37xx: propagate error from armada_37xx_gpio_direction_output()
pinctrl: armada-37xx: set GPIO output value before setting direction
pinctrl: armada-37xx: use correct OUTPUT_VAL register for GPIOs > 31
pinctrl: meson: Drop unused aml_pctl_find_group_by_name()
pinctrl: at91: Fix possible out-of-boundary access
pinctrl: add stubs for OF-specific pinconf functions
pinctrl: qcom: correct the ngpios entry for QCS8300
pinctrl: qcom: correct the ngpios entry for QCS615
dt-bindings: pinctrl: qcom: correct gpio-ranges in examples for qcs8300
dt-bindings: pinctrl: qcom: correct gpio-ranges in examples for qcs615
...
133 lines
2.8 KiB
YAML
133 lines
2.8 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/pinctrl/amlogic,pinctrl-a4.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Amlogic pinmux controller
|
|
|
|
maintainers:
|
|
- Xianwei Zhao <xianwei.zhao@amlogic.com>
|
|
|
|
allOf:
|
|
- $ref: pinctrl.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- const: amlogic,pinctrl-a4
|
|
- items:
|
|
- enum:
|
|
- amlogic,pinctrl-a5
|
|
- const: amlogic,pinctrl-a4
|
|
|
|
"#address-cells":
|
|
const: 2
|
|
|
|
"#size-cells":
|
|
const: 2
|
|
|
|
ranges: true
|
|
|
|
patternProperties:
|
|
"^gpio@[0-9a-f]+$":
|
|
type: object
|
|
|
|
additionalProperties: false
|
|
properties:
|
|
reg:
|
|
minItems: 1
|
|
items:
|
|
- description: pin config register
|
|
- description: pin mux setting register (some special pin fixed function)
|
|
- description: pin drive strength register (optional)
|
|
|
|
reg-names:
|
|
minItems: 1
|
|
items:
|
|
- const: gpio
|
|
- const: mux
|
|
- const: ds
|
|
|
|
gpio-controller: true
|
|
|
|
"#gpio-cells":
|
|
const: 2
|
|
|
|
gpio-ranges:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- reg
|
|
- reg-names
|
|
- gpio-controller
|
|
- "#gpio-cells"
|
|
- gpio-ranges
|
|
|
|
"^func-[0-9a-z-]+$":
|
|
type: object
|
|
additionalProperties: false
|
|
patternProperties:
|
|
"^group-[0-9a-z-]+$":
|
|
type: object
|
|
unevaluatedProperties: false
|
|
allOf:
|
|
- $ref: /schemas/pinctrl/pincfg-node.yaml
|
|
- $ref: /schemas/pinctrl/pinmux-node.yaml
|
|
|
|
required:
|
|
- pinmux
|
|
|
|
required:
|
|
- compatible
|
|
- "#address-cells"
|
|
- "#size-cells"
|
|
- ranges
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/pinctrl/amlogic,pinctrl.h>
|
|
apb {
|
|
#address-cells = <2>;
|
|
#size-cells = <2>;
|
|
periphs_pinctrl: pinctrl {
|
|
compatible = "amlogic,pinctrl-a4";
|
|
#address-cells = <2>;
|
|
#size-cells = <2>;
|
|
ranges;
|
|
|
|
gpio@4240 {
|
|
reg = <0 0x4240 0 0x40>, <0 0x4000 0 0x8>;
|
|
reg-names = "gpio", "mux";
|
|
gpio-controller;
|
|
#gpio-cells = <2>;
|
|
gpio-ranges = <&periphs_pinctrl 0 8 10>;
|
|
};
|
|
|
|
func-uart-b {
|
|
group-default {
|
|
pinmux = <AML_PINMUX(AMLOGIC_GPIO_B, 1, 4)>;
|
|
bias-pull-up;
|
|
drive-strength-microamp = <4000>;
|
|
};
|
|
|
|
group-pins1 {
|
|
pinmux = <AML_PINMUX(AMLOGIC_GPIO_B, 5, 2)>;
|
|
bias-pull-up;
|
|
drive-strength-microamp = <4000>;
|
|
};
|
|
};
|
|
|
|
func-uart-c {
|
|
group-default {
|
|
pinmux = <AML_PINMUX(AMLOGIC_GPIO_B, 3, 1)>,
|
|
<AML_PINMUX(AMLOGIC_GPIO_B, 2, 1)>;
|
|
bias-pull-up;
|
|
drive-strength-microamp = <4000>;
|
|
};
|
|
};
|
|
};
|
|
};
|