diff mbox series

[v2] arm64: dts: meson-s4: include meson-s4-gpio.h

Message ID 20220826122338.2452433-1-huqiang.qin@amlogic.com (mailing list archive)
State New, archived
Headers show
Series [v2] arm64: dts: meson-s4: include meson-s4-gpio.h | expand

Commit Message

Huqiang Qin Aug. 26, 2022, 12:23 p.m. UTC
In the future, meson-s4.dtsi will have some nodes that need
to use the meson-s4-gpio.h file.

e.g.
  * Bluetooth enable pin:
    bt_en-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
  * Audio mute pin:
    spk_mute-gpios = <&gpio GPIOH_8 GPIO_ACTIVE_LOW>;
  * ...

Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
---
 arch/arm64/boot/dts/amlogic/meson-s4.dtsi | 1 +
 1 file changed, 1 insertion(+)

Comments

Krzysztof Kozlowski Aug. 26, 2022, 5:40 p.m. UTC | #1
On 26/08/2022 15:23, Huqiang Qin wrote:
> In the future, meson-s4.dtsi will have some nodes that need
> to use the meson-s4-gpio.h file.
> 
> e.g.
>   * Bluetooth enable pin:
>     bt_en-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
>   * Audio mute pin:
>     spk_mute-gpios = <&gpio GPIOH_8 GPIO_ACTIVE_LOW>;
>   * ...

Then the header should be added when the need is implemented. Do not add
unused headers to files.

Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/amlogic/meson-s4.dtsi b/arch/arm64/boot/dts/amlogic/meson-s4.dtsi
index ad50cba42d19..44cce8b0fcef 100644
--- a/arch/arm64/boot/dts/amlogic/meson-s4.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-s4.dtsi
@@ -6,6 +6,7 @@ 
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/meson-s4-gpio.h>
 
 / {
 	cpus {