Commit df805304 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski

dt-bindings: pinctrl: samsung: stop using bindings header with constants

The bindings header with pin controller register values is being
deprecated and DTS already switched to a DTS-local header.

Do not reference the bindings header in schema and replace the defines
with raw values.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220816133016.77553-2-krzysztof.kozlowski@linaro.org
parent 152a81a0
...@@ -20,7 +20,6 @@ description: | ...@@ -20,7 +20,6 @@ description: |
The values used for config properties should be derived from the hardware The values used for config properties should be derived from the hardware
manual and these values are programmed as-is into the pin pull up/down and manual and these values are programmed as-is into the pin pull up/down and
driver strength register of the pin-controller. driver strength register of the pin-controller.
See also include/dt-bindings/pinctrl/samsung.h with useful constants.
See also Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml for See also Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml for
additional information and example. additional information and example.
......
...@@ -15,9 +15,6 @@ description: | ...@@ -15,9 +15,6 @@ description: |
This is a part of device tree bindings for Samsung S3C/S5P/Exynos SoC pin This is a part of device tree bindings for Samsung S3C/S5P/Exynos SoC pin
controller. controller.
Pin group settings (like drive strength, pull up/down) are available as
macros in include/dt-bindings/pinctrl/samsung.h.
All the pin controller nodes should be represented in the aliases node using All the pin controller nodes should be represented in the aliases node using
the following format 'pinctrl{n}' where n is a unique number for the alias. the following format 'pinctrl{n}' where n is a unique number for the alias.
...@@ -138,8 +135,6 @@ additionalProperties: false ...@@ -138,8 +135,6 @@ additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/pinctrl/samsung.h>
pinctrl@7f008000 { pinctrl@7f008000 {
compatible = "samsung,s3c64xx-pinctrl"; compatible = "samsung,s3c64xx-pinctrl";
reg = <0x7f008000 0x1000>; reg = <0x7f008000 0x1000>;
...@@ -166,8 +161,8 @@ examples: ...@@ -166,8 +161,8 @@ examples:
uart0-data-pins { uart0-data-pins {
samsung,pins = "gpa-0", "gpa-1"; samsung,pins = "gpa-0", "gpa-1";
samsung,pin-function = <EXYNOS_PIN_FUNC_2>; samsung,pin-function = <2>;
samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>; samsung,pin-pud = <0>;
}; };
// ... // ...
...@@ -175,7 +170,6 @@ examples: ...@@ -175,7 +170,6 @@ examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/pinctrl/samsung.h>
pinctrl@11400000 { pinctrl@11400000 {
compatible = "samsung,exynos4210-pinctrl"; compatible = "samsung,exynos4210-pinctrl";
...@@ -197,9 +191,9 @@ examples: ...@@ -197,9 +191,9 @@ examples:
uart0-data-pins { uart0-data-pins {
samsung,pins = "gpa0-0", "gpa0-1"; samsung,pins = "gpa0-0", "gpa0-1";
samsung,pin-function = <EXYNOS_PIN_FUNC_2>; samsung,pin-function = <2>;
samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; samsung,pin-pud = <0>;
samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>; samsung,pin-drv = <0>;
}; };
// ... // ...
...@@ -207,14 +201,14 @@ examples: ...@@ -207,14 +201,14 @@ examples:
sleep0: sleep-state { sleep0: sleep-state {
gpa0-0-pin { gpa0-0-pin {
samsung,pins = "gpa0-0"; samsung,pins = "gpa0-0";
samsung,pin-con-pdn = <EXYNOS_PIN_PDN_INPUT>; samsung,pin-con-pdn = <2>;
samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_NONE>; samsung,pin-pud-pdn = <0>;
}; };
gpa0-1-pin { gpa0-1-pin {
samsung,pins = "gpa0-1"; samsung,pins = "gpa0-1";
samsung,pin-con-pdn = <EXYNOS_PIN_PDN_OUT0>; samsung,pin-con-pdn = <0>;
samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_NONE>; samsung,pin-pud-pdn = <0>;
}; };
// ... // ...
...@@ -223,7 +217,6 @@ examples: ...@@ -223,7 +217,6 @@ examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/pinctrl/samsung.h>
pinctrl@11000000 { pinctrl@11000000 {
compatible = "samsung,exynos4210-pinctrl"; compatible = "samsung,exynos4210-pinctrl";
...@@ -272,26 +265,26 @@ examples: ...@@ -272,26 +265,26 @@ examples:
sd0-clk-pins { sd0-clk-pins {
samsung,pins = "gpk0-0"; samsung,pins = "gpk0-0";
samsung,pin-function = <EXYNOS_PIN_FUNC_2>; samsung,pin-function = <2>;
samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; samsung,pin-pud = <0>;
samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>; samsung,pin-drv = <3>;
}; };
sd4-bus-width8-pins { sd4-bus-width8-pins {
part-1-pins { part-1-pins {
samsung,pins = "gpk0-3", "gpk0-4", samsung,pins = "gpk0-3", "gpk0-4",
"gpk0-5", "gpk0-6"; "gpk0-5", "gpk0-6";
samsung,pin-function = <EXYNOS_PIN_FUNC_3>; samsung,pin-function = <3>;
samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; samsung,pin-pud = <3>;
samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>; samsung,pin-drv = <3>;
}; };
part-2-pins { part-2-pins {
samsung,pins = "gpk1-3", "gpk1-4", samsung,pins = "gpk1-3", "gpk1-4",
"gpk1-5", "gpk1-6"; "gpk1-5", "gpk1-6";
samsung,pin-function = <EXYNOS_PIN_FUNC_4>; samsung,pin-function = <4>;
samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; samsung,pin-pud = <3>;
samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>; samsung,pin-drv = <3>;
}; };
}; };
...@@ -299,16 +292,15 @@ examples: ...@@ -299,16 +292,15 @@ examples:
otg-gp-pins { otg-gp-pins {
samsung,pins = "gpx3-3"; samsung,pins = "gpx3-3";
samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; samsung,pin-function = <1>;
samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; samsung,pin-pud = <0>;
samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>; samsung,pin-drv = <0>;
samsung,pin-val = <0>; samsung,pin-val = <0>;
}; };
}; };
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/pinctrl/samsung.h>
pinctrl@10580000 { pinctrl@10580000 {
compatible = "samsung,exynos5433-pinctrl"; compatible = "samsung,exynos5433-pinctrl";
...@@ -352,9 +344,9 @@ examples: ...@@ -352,9 +344,9 @@ examples:
initial_alive: initial-state { initial_alive: initial-state {
gpa0-0-pin { gpa0-0-pin {
samsung,pins = "gpa0-0"; samsung,pins = "gpa0-0";
samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; samsung,pin-function = <0>;
samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; samsung,pin-pud = <1>;
samsung,pin-drv = <EXYNOS5433_PIN_DRV_FAST_SR1>; samsung,pin-drv = <0>;
}; };
// ... // ...
...@@ -363,7 +355,6 @@ examples: ...@@ -363,7 +355,6 @@ examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/pinctrl/samsung.h>
pinctrl@114b0000 { pinctrl@114b0000 {
compatible = "samsung,exynos5433-pinctrl"; compatible = "samsung,exynos5433-pinctrl";
...@@ -384,9 +375,9 @@ examples: ...@@ -384,9 +375,9 @@ examples:
i2s0-bus-pins { i2s0-bus-pins {
samsung,pins = "gpz0-0", "gpz0-1", "gpz0-2", "gpz0-3", samsung,pins = "gpz0-0", "gpz0-1", "gpz0-2", "gpz0-3",
"gpz0-4", "gpz0-5", "gpz0-6"; "gpz0-4", "gpz0-5", "gpz0-6";
samsung,pin-function = <EXYNOS_PIN_FUNC_2>; samsung,pin-function = <2>;
samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; samsung,pin-pud = <0>;
samsung,pin-drv = <EXYNOS5433_PIN_DRV_FAST_SR1>; samsung,pin-drv = <0>;
}; };
// ... // ...
......
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