Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions boards/arc/em_starterkit/em_starterkit_r23.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
compatible = "snps,creg-gpio";
reg = <0xf0000014 0x4>;
ngpios = <6>;
bit_per_gpio = <1>;
off_val = <0>;
on_val = <1>;
bit-per-gpio = <1>;
off-val = <0>;
on-val = <1>;

gpio-controller;
#gpio-cells = <2>;
Expand Down
20 changes: 10 additions & 10 deletions boards/arm/efm32gg_slwstk6121a/efm32gg_slwstk6121a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -120,19 +120,19 @@

/* PHY management pins */
location-mdio = <GECKO_LOCATION(3)>;
location-phy_mdc = <GECKO_LOCATION(3) GECKO_PORT_A GECKO_PIN(6)>;
location-phy_mdio = <GECKO_LOCATION(3) GECKO_PORT_A GECKO_PIN(15)>;
location-phy-mdc = <GECKO_LOCATION(3) GECKO_PORT_A GECKO_PIN(6)>;
location-phy-mdio = <GECKO_LOCATION(3) GECKO_PORT_A GECKO_PIN(15)>;

/* RMII interface pins */
location-rmii = <GECKO_LOCATION(0)>;
location-rmii_refclk = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(3)>;
location-rmii_crs_dv = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(4)>;
location-rmii_txd0 = <GECKO_LOCATION(0) GECKO_PORT_E GECKO_PIN(15)>;
location-rmii_txd1 = <GECKO_LOCATION(0) GECKO_PORT_E GECKO_PIN(14)>;
location-rmii_tx_en = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(0)>;
location-rmii_rxd0 = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(2)>;
location-rmii_rxd1 = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(1)>;
location-rmii_rx_er = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(5)>;
location-rmii-refclk = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(3)>;
location-rmii-crs-dv = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(4)>;
location-rmii-txd0 = <GECKO_LOCATION(0) GECKO_PORT_E GECKO_PIN(15)>;
location-rmii-txd1 = <GECKO_LOCATION(0) GECKO_PORT_E GECKO_PIN(14)>;
location-rmii-tx-en = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(0)>;
location-rmii-rxd0 = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(2)>;
location-rmii-rxd1 = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(1)>;
location-rmii-rx-er = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(5)>;

status = "okay";
};
Expand Down
20 changes: 10 additions & 10 deletions boards/arm/efm32gg_stk3701a/efm32gg_stk3701a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,19 @@

/* PHY management pins */
location-mdio = <GECKO_LOCATION(1)>;
location-phy_mdc = <GECKO_LOCATION(1) GECKO_PORT_D GECKO_PIN(14)>;
location-phy_mdio = <GECKO_LOCATION(1) GECKO_PORT_D GECKO_PIN(13)>;
location-phy-mdc = <GECKO_LOCATION(1) GECKO_PORT_D GECKO_PIN(14)>;
location-phy-mdio = <GECKO_LOCATION(1) GECKO_PORT_D GECKO_PIN(13)>;

/* RMII interface pins */
location-rmii = <GECKO_LOCATION(1)>;
location-rmii_refclk = <GECKO_LOCATION(5) GECKO_PORT_D GECKO_PIN(10)>;
location-rmii_crs_dv = <GECKO_LOCATION(1) GECKO_PORT_D GECKO_PIN(11)>;
location-rmii_txd0 = <GECKO_LOCATION(1) GECKO_PORT_F GECKO_PIN(7)>;
location-rmii_txd1 = <GECKO_LOCATION(1) GECKO_PORT_F GECKO_PIN(6)>;
location-rmii_tx_en = <GECKO_LOCATION(1) GECKO_PORT_F GECKO_PIN(8)>;
location-rmii_rxd0 = <GECKO_LOCATION(1) GECKO_PORT_D GECKO_PIN(9)>;
location-rmii_rxd1 = <GECKO_LOCATION(1) GECKO_PORT_F GECKO_PIN(9)>;
location-rmii_rx_er = <GECKO_LOCATION(1) GECKO_PORT_D GECKO_PIN(12)>;
location-rmii-refclk = <GECKO_LOCATION(5) GECKO_PORT_D GECKO_PIN(10)>;
location-rmii-crs-dv = <GECKO_LOCATION(1) GECKO_PORT_D GECKO_PIN(11)>;
location-rmii-txd0 = <GECKO_LOCATION(1) GECKO_PORT_F GECKO_PIN(7)>;
location-rmii-txd1 = <GECKO_LOCATION(1) GECKO_PORT_F GECKO_PIN(6)>;
location-rmii-tx-en = <GECKO_LOCATION(1) GECKO_PORT_F GECKO_PIN(8)>;
location-rmii-rxd0 = <GECKO_LOCATION(1) GECKO_PORT_D GECKO_PIN(9)>;
location-rmii-rxd1 = <GECKO_LOCATION(1) GECKO_PORT_F GECKO_PIN(9)>;
location-rmii-rx-er = <GECKO_LOCATION(1) GECKO_PORT_D GECKO_PIN(12)>;

status = "okay";
};
Expand Down
10 changes: 5 additions & 5 deletions boards/arm/mec1501modular_assy6885/mec1501modular_assy6885.dts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

&i2c_smb_0 {
status = "okay";
port_sel = <0>;
port-sel = <0>;
sda-gpios = <&gpio_000_036 3 0>;
scl-gpios = <&gpio_000_036 4 0>;
pinctrl-0 = < &i2c00_scl_gpio004 &i2c00_sda_gpio003 >;
Expand All @@ -79,7 +79,7 @@

&i2c_smb_1 {
status = "okay";
port_sel = <1>;
port-sel = <1>;
sda-gpios = <&gpio_100_136 24 0>;
scl-gpios = <&gpio_100_136 25 0>;
pinctrl-0 = < &i2c01_scl_gpio131 &i2c01_sda_gpio130 >;
Expand All @@ -88,9 +88,9 @@

&espi0 {
status = "okay";
io_girq = <19>;
vw_girqs = <24 25>;
pc_girq = <15>;
io-girq = <19>;
vw-girqs = <24 25>;
pc-girq = <15>;
pinctrl-0 = < &espi_reset_n_gpio061 &espi_cs_n_gpio066
&espi_alert_n_gpio063 &espi_clk_gpio065
&espi_io0_gpio070 &espi_io1_gpio071
Expand Down
16 changes: 8 additions & 8 deletions boards/arm/mec15xxevb_assy6853/mec15xxevb_assy6853.dts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@

&i2c_smb_0 {
status = "okay";
port_sel = <0>;
port-sel = <0>;
sda-gpios = <&gpio_000_036 3 0>;
scl-gpios = <&gpio_000_036 4 0>;
pinctrl-0 = < &i2c00_scl_gpio004 &i2c00_sda_gpio003 >;
Expand All @@ -107,7 +107,7 @@

&i2c_smb_1 {
status = "okay";
port_sel = <1>;
port-sel = <1>;
sda-gpios = <&gpio_100_136 24 0>;
scl-gpios = <&gpio_100_136 25 0>;
pinctrl-0 = < &i2c01_scl_gpio131 &i2c01_sda_gpio130 >;
Expand All @@ -132,7 +132,7 @@

&i2c_smb_2 {
status = "okay";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here?

port_sel = <7>;
port-sel = <7>;
sda-gpios = <&gpio_000_036 10 0>;
scl-gpios = <&gpio_000_036 11 0>;
pinctrl-0 = < &i2c07_scl_gpio013 &i2c07_sda_gpio012 >;
Expand All @@ -141,9 +141,9 @@

&espi0 {
status = "okay";
io_girq = <19>;
vw_girqs = <24 25>;
pc_girq = <15>;
io-girq = <19>;
vw-girqs = <24 25>;
pc-girq = <15>;
pinctrl-0 = < &espi_reset_n_gpio061 &espi_cs_n_gpio066
&espi_alert_n_gpio063 &espi_clk_gpio065
&espi_io0_gpio070 &espi_io1_gpio071
Expand Down Expand Up @@ -211,8 +211,8 @@

&spi0 {
status = "okay";
port_sel = <0>;
chip_select = <0>;
port-sel = <0>;
chip-select = <0>;
lines = <1>;
pinctrl-0 = < &shd_cs0_n_gpio055
&shd_clk_gpio056
Expand Down
6 changes: 3 additions & 3 deletions boards/arm/mec172xevb_assy6906/mec172xevb_assy6906.dts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
/* I2C */
&i2c_smb_0 {
status = "okay";
port_sel = <0>;
port-sel = <0>;

pinctrl-0 = < &i2c00_scl_gpio004 &i2c00_sda_gpio003 >;
pinctrl-names = "default";
Expand All @@ -156,7 +156,7 @@

&i2c_smb_1 {
status = "okay";
port_sel = <1>;
port-sel = <1>;
pinctrl-0 = <&i2c01_scl_gpio131 &i2c01_sda_gpio130>;
pinctrl-names = "default";

Expand Down Expand Up @@ -189,7 +189,7 @@

&i2c_smb_2 {
status = "okay";
port_sel = <7>;
port-sel = <7>;
pinctrl-0 = <&i2c07_scl_gpio013 &i2c07_sda_gpio012>;
pinctrl-names = "default";
};
Expand Down
10 changes: 5 additions & 5 deletions boards/arm/mec172xmodular_assy6930/mec172xmodular_assy6930.dts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
/* I2C */
&i2c_smb_0 {
status = "okay";
port_sel = <0>;
port-sel = <0>;

pinctrl-0 = < &i2c00_scl_gpio004 &i2c00_sda_gpio003 >;
pinctrl-names = "default";
Expand Down Expand Up @@ -168,7 +168,7 @@

&i2c_smb_1 {
status = "okay";
port_sel = <1>;
port-sel = <1>;
pinctrl-0 = <&i2c01_scl_gpio131 &i2c01_sda_gpio130>;
pinctrl-names = "default";
};
Expand All @@ -185,7 +185,7 @@

&i2c_smb_2 {
status = "okay";
port_sel = <7>;
port-sel = <7>;
pinctrl-0 = <&i2c07_scl_gpio013 &i2c07_sda_gpio012>;
pinctrl-names = "default";
};
Expand All @@ -204,8 +204,8 @@
status = "okay";
clock-frequency = <4000000>;
lines = <4>;
chip_select = <0>;
port_sel = <0>; /* Shared SPI */
chip-select = <0>;
port-sel = <0>; /* Shared SPI */

pinctrl-0 = < &shd_cs0_n_gpio055
&shd_clk_gpio056
Expand Down
2 changes: 1 addition & 1 deletion boards/shields/ftdi_vm800c/ftdi_vm800c.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
irq-gpios = <&arduino_header 8 GPIO_ACTIVE_LOW>;

pclk = <5>;
pclk_pol = <1>;
pclk-pol = <1>;
cspread = <1>;
swizzle = <0>;
vsize = <272>;
Expand Down
2 changes: 1 addition & 1 deletion boards/shields/ssd1306/ssd1306_128x64_spi.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
segment-remap;
com-invdir;
prechargep = <0x22>;
data_cmd-gpios = <&arduino_header 15 0>;
data-cmd-gpios = <&arduino_header 15 0>;
/* reset-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; */
};
};
24 changes: 8 additions & 16 deletions doc/_scripts/gen_devicetree_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import argparse
from collections import defaultdict
import glob
import io
import logging
import os
Expand Down Expand Up @@ -162,8 +161,11 @@ def init_vnd2ref_target(self):

def main():
args = parse_args()
if not args.dts_roots:
sys.exit('no DTS roots; use --dts-root to specify at least one')
setup_logging(args.verbose)
bindings = load_bindings(args.dts_roots)

bindings = load_relevant_bindings(args.dts_roots)
base_binding = load_base_binding()
vnd_lookup = VndLookup(args.vendor_prefixes, bindings)
dump_content(bindings, base_binding, vnd_lookup, args.out_dir,
Expand Down Expand Up @@ -196,21 +198,11 @@ def setup_logging(verbose):
logging.basicConfig(format='%(filename)s:%(levelname)s: %(message)s',
level=log_level)

def load_bindings(dts_roots):
# Get a list of edtlib.Binding objects from searching 'dts_roots'.

if not dts_roots:
sys.exit('no DTS roots; use --dts-root to specify at least one')

binding_files = []
for dts_root in dts_roots:
binding_files.extend(glob.glob(f'{dts_root}/dts/bindings/**/*.yml',
recursive=True))
binding_files.extend(glob.glob(f'{dts_root}/dts/bindings/**/*.yaml',
recursive=True))

bindings = edtlib.bindings_from_paths(binding_files, ignore_errors=True)
def load_relevant_bindings(dts_roots):
# Load just the bindings we care about from dts_roots.

bindings = edtlib.bindings_from_dirs(f'{root}/dts/bindings' for root in
dts_roots)
num_total = len(bindings)

# Remove bindings from the 'vnd' vendor, which is not a real vendor,
Expand Down
6 changes: 3 additions & 3 deletions dts/arc/synopsys/arc_hsdk.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@
compatible = "snps,creg-gpio";
reg = <0xf00014b0 0x4>;
ngpios = <12>;
bit_per_gpio = <2>;
off_val = <0>;
on_val = <2>;
bit-per-gpio = <2>;
off-val = <0>;
on-val = <2>;

gpio-controller;
#gpio-cells = <2>;
Expand Down
2 changes: 1 addition & 1 deletion dts/arm/microchip/mec1501hsz.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@
rxdma = <11>;
txdma = <10>;
lines = <1>;
chip_select = <0>;
chip-select = <0>;
dcsckon = <6>;
dckcsoff = <4>;
dldh = <6>;
Expand Down
2 changes: 1 addition & 1 deletion dts/arm/nxp/nxp_rt10xx.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@
dma-channels = <32>;
dma-requests = <128>;
nxp,mem2mem;
nxp,a_on;
nxp,a-on;
reg = <0x400E8000 0x4000>,
<0x400EC000 0x4000>;
interrupts = <0 0>, <1 0>, <2 0>, <3 0>,
Expand Down
4 changes: 2 additions & 2 deletions dts/arm/nxp/nxp_rt11xx.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@
dma-channels = <32>;
dma-requests = <208>;
nxp,mem2mem;
nxp,a_on;
nxp,a-on;
reg = <0x40070000 0x4000>,
<0x40074000 0x4000>;
clocks = <&ccm IMX_CCM_EDMA_CLK 0x7C 0x000000C0>;
Expand All @@ -953,7 +953,7 @@
dma-channels = <32>;
dma-requests = <208>;
nxp,mem2mem;
nxp,a_on;
nxp,a-on;
reg = <0x40c14000 0x4000>,
<0x40c18000 0x4000>;
clocks = <&ccm IMX_CCM_EDMA_LPSR_CLK 0x7C 0x000000C0>;
Expand Down
8 changes: 4 additions & 4 deletions dts/bindings/counter/nxp,imx-tmr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ properties:
- "kQTMR_SecSrcTrigPriCnt"
- "kQTMR_CascadeCount"

primary_source:
primary-source:
type: string
required: true
description: Primary source of the timer, see qtmr_primary_count_source_t enumerator type
Expand All @@ -56,7 +56,7 @@ properties:
- "kQTMR_ClockDivide_64"
- "kQTMR_ClockDivide_128"

secondary_source:
secondary-source:
type: string
description: Secondary source of the timer, see qtmr_input_source_t enumerator type
of the MCUXpresso SDK
Expand All @@ -66,11 +66,11 @@ properties:
- "kQTMR_Counter2InputPin"
- "kQTMR_Counter3InputPin"

filter_count:
filter-count:
type: int
description: Fault filter count (0-255).

filter_period:
filter-period:
type: int
description: Fault filter period (0-255).

Expand Down
4 changes: 2 additions & 2 deletions dts/bindings/dac/microchip,mcp4728.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ properties:
"#io-channel-cells":
const: 1

voltage_reference:
voltage-reference:
type: array
required: true
description: |
Expand All @@ -17,7 +17,7 @@ properties:
1 - Internal voltage reference (2.048V)
Note: array entries correspond to the successive channels

power_down_mode:
power-down-mode:
type: array
required: true
description: |
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/display/ftdi,ft800.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ properties:
typical main clock was 48MHz and this value is 5, the PCLK
will be 9.6 MHz. Must be positive value to enable the screen

pclk_pol:
pclk-pol:
type: int
required: true
description: |
Expand Down
Loading