mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 04:17:58 +07:00
ed4ced0c00
Improve the DTS files by removing all the leading "0x" and zeros to fix the
following dtc warnings:
Warning (unit_address_format): Node /XXX unit name should not have leading "0x"
and
Warning (unit_address_format): Node /XXX unit name should not have leading 0s
Converted using the following command:
find . -type f \( -iname *.dts -o -iname *.dtsi \) -exec sed -i -e "s/@\([0-9a-fA-FxX\.;:#]+\)\s*{/@\L\1 {/g" -e "s/@0x\(.*\) {/@\1 {/g" -e "s/@0+\(.*\) {/@\1 {/g" {} +^C
For simplicity, two sed expressions were used to solve each warnings separately.
To make the regex expression more robust a few other issues were resolved,
namely setting unit-address to lower case, and adding a whitespace before the
the opening curly brace:
https://elinux.org/Device_Tree_Linux#Linux_conventions
This will solve as a side effect warning:
Warning (simple_bus_reg): Node /XXX@<UPPER> simple-bus unit address format error, expected "<lower>"
This is a follow up to commit 4c9847b737
("dt-bindings: Remove leading 0x from bindings notation")
Reported-by: David Daney <ddaney@caviumnetworks.com>
Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
70 lines
1.4 KiB
Plaintext
70 lines
1.4 KiB
Plaintext
/*
|
|
* at91sam9g25ek.dts - Device Tree file for AT91SAM9G25-EK board
|
|
*
|
|
* Copyright (C) 2012 Atmel,
|
|
* 2012 Nicolas Ferre <nicolas.ferre@atmel.com>
|
|
*
|
|
* Licensed under GPLv2 or later.
|
|
*/
|
|
/dts-v1/;
|
|
#include "at91sam9g25.dtsi"
|
|
#include "at91sam9x5ek.dtsi"
|
|
|
|
/ {
|
|
model = "Atmel AT91SAM9G25-EK";
|
|
compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
|
|
|
|
ahb {
|
|
apb {
|
|
spi0: spi@f0000000 {
|
|
status = "disabled";
|
|
};
|
|
|
|
mmc1: mmc@f000c000 {
|
|
status = "disabled";
|
|
};
|
|
|
|
i2c0: i2c@f8010000 {
|
|
ov2640: camera@30 {
|
|
compatible = "ovti,ov2640";
|
|
reg = <0x30>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_pck0_as_isi_mck &pinctrl_sensor_power &pinctrl_sensor_reset>;
|
|
resetb-gpios = <&pioA 7 GPIO_ACTIVE_LOW>;
|
|
pwdn-gpios = <&pioA 13 GPIO_ACTIVE_HIGH>;
|
|
clocks = <&pck0>;
|
|
clock-names = "xvclk";
|
|
assigned-clocks = <&pck0>;
|
|
assigned-clock-rates = <25000000>;
|
|
status = "okay";
|
|
|
|
port {
|
|
ov2640_0: endpoint {
|
|
remote-endpoint = <&isi_0>;
|
|
bus-width = <8>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
macb0: ethernet@f802c000 {
|
|
phy-mode = "rmii";
|
|
status = "okay";
|
|
};
|
|
|
|
isi: isi@f8048000 {
|
|
status = "okay";
|
|
port {
|
|
isi_0: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&ov2640_0>;
|
|
bus-width = <8>;
|
|
vsync-active = <1>;
|
|
hsync-active = <1>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|