Rob Herring
bae4cbe192
dt-bindings: display: renesas,du: Fix 'ports' reference
...
Fix the renesas,du binding 'ports' schema which is referencing the 'port'
schema instead of the 'ports' schema.
Fixes: 99d66127fa ("dt-bindings: display: renesas,du: Convert binding to YAML")
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Cc: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com >
Cc: dri-devel@lists.freedesktop.org
Cc: linux-renesas-soc@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com >
Link: https://lore.kernel.org/r/20210623164308.2570164-1-robh@kernel.org
2021-07-01 08:07:07 -06:00
Rob Herring
0118915b44
dt-bindings: media: adv7180: Add missing video-interfaces.yaml reference
...
The adv7180 binding is using 'bus-width' property, but doesn't document it.
Add a reference to the video-interfaces.yaml schema to properly document it.
Fixes: 066a94e28a ("media: dt-bindings: media: Use graph and video-interfaces schemas")
Cc: Lars-Peter Clausen <lars@metafoo.de >
Cc: Mauro Carvalho Chehab <mchehab@kernel.org >
Cc: linux-media@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210623164256.2569839-1-robh@kernel.org
2021-07-01 08:06:57 -06:00
Geert Uytterhoeven
180208cedf
dt-bindings: crypto: ccree: Convert to json-schema
...
Convert the Arm TrustZone CryptoCell cryptographic engine Device Tree
binding documentation to json-schema.
Document missing properties.
Update the example to match reality.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/ab361a862755e281f5fef67b3f678d66ae201781.1623413974.git.geert+renesas@glider.be
2021-06-24 15:39:38 -06:00
Nobuhiro Iwamatsu
1e32084cb5
dt-bindings: fpga: zynq: convert bindings to YAML
...
Convert FPGA for Xilinx Zynq SoC bindings documentation to YAML.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org >
Link: https://lore.kernel.org/r/20210613212856.296153-1-iwamatsu@nigauri.org
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-24 15:39:38 -06:00
Nobuhiro Iwamatsu
b14e889c31
dt-bindings: rtc: zynqmp: convert bindings to YAML
...
Convert Real Time Clock for Xilinx Zynq MPSoC SoC bindings documentation
to YAML schemas.
And this renamed the file to compatible string of DT.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org >
Link: https://lore.kernel.org/r/20210613205022.292575-1-iwamatsu@nigauri.org
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-24 15:39:38 -06:00
Sudeep Holla
b7705ba6d0
dt-bindings: interrupt-controller: Convert ARM VIC to json-schema
...
Convert the ARM VIC binding document to DT schema format using
json-schema.
Cc: Rob Herring <robh@kernel.org >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com >
Link: https://lore.kernel.org/r/20210617205317.3060163-1-sudeep.holla@arm.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-24 13:47:26 -06:00
Dong Aisheng
7b25995f53
of: of_reserved_mem: mark nomap memory instead of removing
...
Since commit 86588296ac ("fdt: Properly handle "no-map" field in the memory region"),
nomap memory is changed to call memblock_mark_nomap() instead of
memblock_remove(). But it only changed the reserved memory with fixed
addr and size case in early_init_dt_reserve_memory_arch(), not
including the dynamical allocation by size case in
early_init_dt_alloc_reserved_memory_arch().
Cc: Rob Herring <robh+dt@kernel.org >
Cc: devicetree@vger.kernel.org
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com >
Reviewed-by: Quentin Perret <qperret@google.com >
Link: https://lore.kernel.org/r/20210611131153.3731147-2-aisheng.dong@nxp.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-24 13:47:26 -06:00
Dong Aisheng
3c6867a12a
of: of_reserved_mem: only call memblock_free for normal reserved memory
...
For nomap case, the memory block will be removed by memblock_remove()
in early_init_dt_alloc_reserved_memory_arch(). So it's meaningless to
call memblock_free() on error path.
Cc: Rob Herring <robh+dt@kernel.org >
Cc: devicetree@vger.kernel.org
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com >
Link: https://lore.kernel.org/r/20210611131153.3731147-1-aisheng.dong@nxp.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-24 13:47:26 -06:00
Rob Herring
972d6a7dce
dt-bindings: Drop redundant minItems/maxItems
...
If a property has an 'items' list, then a 'minItems' or 'maxItems' with the
same size as the list is redundant and can be dropped. Note that is DT
schema specific behavior and not standard json-schema behavior. The tooling
will fixup the final schema adding any unspecified minItems/maxItems.
This condition is partially checked with the meta-schema already, but
only if both 'minItems' and 'maxItems' are equal to the 'items' length.
An improved meta-schema is pending.
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Stephen Boyd <sboyd@kernel.org >
Cc: Herbert Xu <herbert@gondor.apana.org.au >
Cc: "David S. Miller" <davem@davemloft.net >
Cc: David Airlie <airlied@linux.ie >
Cc: Daniel Vetter <daniel@ffwll.ch >
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com >
Cc: Kamal Dasu <kdasu.kdev@gmail.com >
Cc: Lars-Peter Clausen <lars@metafoo.de >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Marc Zyngier <maz@kernel.org >
Cc: Joerg Roedel <joro@8bytes.org >
Cc: Mauro Carvalho Chehab <mchehab@kernel.org >
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com >
Cc: Jakub Kicinski <kuba@kernel.org >
Cc: Wolfgang Grandegger <wg@grandegger.com >
Cc: Andrew Lunn <andrew@lunn.ch >
Cc: Vivien Didelot <vivien.didelot@gmail.com >
Cc: Vladimir Oltean <olteanv@gmail.com >
Cc: Bjorn Helgaas <bhelgaas@google.com >
Cc: Kishon Vijay Abraham I <kishon@ti.com >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de >
Cc: Lee Jones <lee.jones@linaro.org >
Cc: Ohad Ben-Cohen <ohad@wizery.com >
Cc: Mathieu Poirier <mathieu.poirier@linaro.org >
Cc: Paul Walmsley <paul.walmsley@sifive.com >
Cc: Palmer Dabbelt <palmer@dabbelt.com >
Cc: Albert Ou <aou@eecs.berkeley.edu >
Cc: Alessandro Zummo <a.zummo@towertech.it >
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com >
Cc: Zhang Rui <rui.zhang@intel.com >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Wim Van Sebroeck <wim@linux-watchdog.org >
Cc: Guenter Roeck <linux@roeck-us.net >
Signed-off-by: Rob Herring <robh@kernel.org >
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de >
Acked-by: Ulf Hansson <ulf.hansson@linaro.org > # for MMC
Acked-by: Jassi Brar <jassisinghbrar@gmail.com >
Acked-By: Vinod Koul <vkoul@kernel.org >
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Reviewed-by: Arnaud Pouliquen <arnaud.pouliquen@st.com >
Acked-by: Mark Brown <broonie@kernel.org >
Acked-by: Philipp Zabel <p.zabel@pengutronix.de >
Acked-by: Wolfram Sang <wsa@kernel.org > # for I2C
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Link: https://lore.kernel.org/r/20210615191543.1043414-1-robh@kernel.org
2021-06-21 13:56:46 -06:00
Rob Herring
dc4014752e
dt-bindings: spmi: Correct 'reg' schema
...
'reg' is defined to be N address entries of M cells each. For SPMI, N is 1
and M is 1 or 2. The schema fails to define the number of entries as it
only specifies the inner cell(s). To fix, add an outer items list with 1
entry.
Cc: Stephen Boyd <sboyd@kernel.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210615172024.856360-1-robh@kernel.org
2021-06-21 13:56:46 -06:00
Dmitry Osipenko
67a066b357
of: reserved-memory: Add stub for RESERVEDMEM_OF_DECLARE()
...
The reserved-memory Kconfig could be disabled when drivers are
compile-tested. In this case RESERVEDMEM_OF_DECLARE() produces a
noisy warning about the orphaned __reservedmem_of_table section.
Add the missing stub that fixes the warning. In particular this is
needed for compile-testing of NVIDIA Tegra210 memory driver which
uses reserved-memory.
Reported-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com >
Signed-off-by: Dmitry Osipenko <digetx@gmail.com >
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com >
Link: https://lore.kernel.org/r/20210610162313.20942-1-digetx@gmail.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-21 13:56:46 -06:00
Sean Anderson
89f8a707d0
dt-bindings: clk: vc5: Fix example
...
The example properties do not match the binding. Fix them, and prohibit
undocumented properties in clock nodes to prevent this from happening in
the future.
Fixes: 45c940184b ("dt-bindings: clk: versaclock5: convert to yaml")
Signed-off-by: Sean Anderson <sean.anderson@seco.com >
Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net >
Link: https://lore.kernel.org/r/20210607190546.2616259-1-sean.anderson@seco.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-21 13:56:01 -06:00
Wolfram Sang
cdbbe6ce26
dt-bindings: timer: renesas,tmu: add r8a779a0 TMU support
...
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com >
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se >
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be >
Link: https://lore.kernel.org/r/20210607124828.1984-1-wsa+renesas@sang-engineering.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-18 20:12:17 -06:00
Ricardo Cañuelo
cfe34bb7a7
dt-bindings: drm: bridge: adi,adv7511.txt: convert to yaml
...
Convert the ADV7511/11w/13/33/35 DT bindings to json-schema. The
original binding has been split into two files: adi,adv7511.yaml for
ADV7511/11W/13 and adi,adv7533.yaml for ADV7533/35.
Signed-off-by: Ricardo Cañuelo <ricardo.canuelo@collabora.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210615131333.2272473-4-ricardo.canuelo@collabora.com
2021-06-17 08:47:12 -06:00
Kishon Vijay Abraham I
1fc4f5238d
dt-bindings: PCI: ti,am65: Convert PCIe host/endpoint mode dt-bindings to YAML
...
Convert PCIe host/endpoint mode dt-bindings for TI's AM65/Keystone SoC
to YAML binding.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com >
Link: https://lore.kernel.org/r/20210603133450.24710-1-kishon@ti.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-17 08:47:11 -06:00
Geert Uytterhoeven
0e407a9a29
of: Remove superfluous casts when printing u64 values
...
"u64" is "unsigned long long" on all architectures now. Hence there is
no longer a need to use casts when formatting using the "ll" length
modifier.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be >
Link: https://lore.kernel.org/r/ef3f4f78385b43230695ba0855d078290c958192.1623835273.git.geert+renesas@glider.be
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-16 13:55:05 -06:00
Geert Uytterhoeven
2892d8a00d
of: Fix truncation of memory sizes on 32-bit platforms
...
Variable "size" has type "phys_addr_t", which can be either 32-bit or
64-bit on 32-bit systems, while "unsigned long" is always 32-bit on
32-bit systems. Hence the cast in
(unsigned long)size / SZ_1M
may truncate a 64-bit size to 32-bit, as casts have a higher operator
precedence than divisions.
Fix this by inverting the order of the cast and division, which should
be safe for memory blocks smaller than 4 PiB. Note that the division is
actually a shift, as SZ_1M is a power-of-two constant, hence there is no
need to use div_u64().
While at it, use "%lu" to format "unsigned long".
Fixes: e8d9d1f548 ("drivers: of: add initialization code for static reserved memory")
Fixes: 3f0c820664 ("drivers: of: add initialization code for dynamic reserved memory")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be >
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com >
Link: https://lore.kernel.org/r/4a1117e72d13d26126f57be034c20dac02f1e915.1623835273.git.geert+renesas@glider.be
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-16 13:55:05 -06:00
Geert Uytterhoeven
90b8cadfe4
dt-bindings: rtc: nxp,pcf8563: Absorb pcf85263/pcf85363 bindings
...
The NXP PCF85263/PCF85363 Real Time Clock is very similar to the NXP
PCF8563.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be >
Link: https://lore.kernel.org/r/e4f48d97f0e16d78a796f02b77ea3a0018904185.1623416431.git.geert+renesas@glider.be
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-16 13:55:04 -06:00
Sudeep Holla
ca622ed60a
dt-bindings: pwm: Use examples with documented/matching schema
...
'nvidia,tegra20-pwm' is not yet documented in the YAML schema. Use
'allwinner,sun7i-a20-pwm' instead to get rid of the following warning
with 'make DT_CHECKER_FLAGS=-m dt_binding_check':
pwm/pwm.example.dt.yaml:0:0: /example-0/pwm@7000a000: failed to match
any schema with compatible: ['nvidia,tegra20-pwm']
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com >
Link: https://lore.kernel.org/r/20210608215834.2236920-1-sudeep.holla@arm.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-16 13:55:04 -06:00
Sudeep Holla
8676e8e71c
dt-bindings: interrupt-controller: Fix compatible used in ti,pruss-intc
...
As per soc/ti/ti,pruss.yaml schema, only ti,am4376-pruss0 and
ti,am4376-pruss1 are valid compatibles. Replace ti,am4376-pruss with
ti,am4376-pruss1 based on example in soc/ti/ti,pruss.yaml
This fixes the below warning with 'make DT_CHECKER_FLAGS=-m dt_binding_check':
interrupt-controller/ti,pruss-intc.example.dt.yaml:0:0: /example-1/pruss@0:
failed to match any schema with compatible: ['ti,am4376-pruss']
Cc: Rob Herring <robh+dt@kernel.org >
Cc: Suman Anna <s-anna@ti.com >
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com >
Acked-by: Suman Anna <s-anna@ti.com >
Link: https://lore.kernel.org/r/20210607184257.2010276-1-sudeep.holla@arm.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-16 13:55:04 -06:00
Jamin Lin
810e444194
dt-bindings: aspeed-i2c: Convert txt to yaml format
...
Convert aspeed i2c to yaml.
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com >
Link: https://lore.kernel.org/r/20210603024839.27976-2-jamin_lin@aspeedtech.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-10 16:49:27 -05:00
Rob Herring
000fe96707
dt-bindings: watchdog: Convert arm,sbsa-gwdt to DT schema
...
Convert the arm,sbsa-gwdt binding to DT schema format.
Cc: Wim Van Sebroeck <wim@linux-watchdog.org >
Cc: Guenter Roeck <linux@roeck-us.net >
Cc: Fu Wei <fu.wei@linaro.org >
Cc: linux-watchdog@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
Acked-by: Guenter Roeck <linux@roeck-us.net >
Link: https://lore.kernel.org/r/20210607194022.3095736-1-robh@kernel.org
2021-06-09 14:44:05 -05:00
Rob Herring
63f8e9e0ac
dt-bindings: mtd: Convert mtd-physmap to DT schema
...
Convert the mtd-physmap binding to DT schema format. The arm-versatile,
cypress,hyperflash and intel,ixp4xx-flash are all just an additional
compatible string, so they are all merged into the main schema.
There doesn't appear to be any users nor support for 'vendor-id' and
'device-id', so these have been dropped.
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Miquel Raynal <miquel.raynal@bootlin.com >
Cc: Richard Weinberger <richard@nod.at >
Cc: Vignesh Raghavendra <vigneshr@ti.com >
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Rob Herring <robh@kernel.org >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com >
Link: https://lore.kernel.org/r/20210607193500.3085920-1-robh@kernel.org
2021-06-09 14:42:45 -05:00
Rob Herring
13542a69b9
dt-bindings: virtio: Convert virtio-mmio to DT schema
...
Convert the virtio-mmio binding to DT schema format.
Cc: "Michael S. Tsirkin" <mst@redhat.com >
Cc: Jason Wang <jasowang@redhat.com >
Cc: Jean-Philippe Brucker <jean-philippe@linaro.org >
Cc: virtualization@lists.linux-foundation.org
Acked-by: Jean-Philippe Brucker <jean-philippe@linaro.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210607193928.3092186-1-robh@kernel.org/
2021-06-08 20:02:45 -05:00
Rob Herring
bb718cad0a
dt-bindings: rtc: Add Arm PL031 schema
...
The PL031 RTC binding has been in use for a long time, but never got
documented. Fortunately, it's simple and existing users are consistent.
Cc: Alessandro Zummo <a.zummo@towertech.it >
Cc: linux-rtc@vger.kernel.org
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210607193718.3090202-1-robh@kernel.org/
2021-06-08 20:01:38 -05:00
Zhen Lei
67c54655b6
of: unittest: Use DEFINE_RES_MEM() to simplify code
...
No functional change.
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com >
Link: https://lore.kernel.org/r/20210601062223.9724-1-thunder.leizhen@huawei.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-04 17:29:18 -05:00
Geert Uytterhoeven
7cb32edb05
dt-bindings: usb: cdns,usb3: Fix interrupts order
...
Correct the order of the descriptions for the "interrupts" property to
match the order of the "interrupt-names" property.
Fixes: 68989fe1c3 ("dt-bindings: usb: Convert cdns-usb3.txt to YAML schema")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org >
Acked-by: Peter Chen <peter.chen@kernel.org >
Acked-by: Peter Chen <peter.chen@nxp.com >
Link: https://lore.kernel.org/r/20210527193952.1705127-1-geert@linux-m68k.org
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-04 17:29:18 -05:00
Hao Fang
8acd12dadc
dt-bindings: hisilicon: use the correct HiSilicon copyright
...
s/Hisilicon/HiSilicon/.
It should use capital S, according to the official website
https://www.hisilicon.com/en .
Signed-off-by: Hao Fang <fanghao11@huawei.com >
Link: https://lore.kernel.org/r/1621678997-15240-1-git-send-email-fanghao11@huawei.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-04 17:29:18 -05:00
Sudeep Holla
0daa605647
dt-bindings: mailbox : arm,mhuv2: Use example with matching schema
...
Currently the example provided in arm,mhuv2 schema complains as below:
Documentation/devicetree/bindings/mailbox/arm,mhuv2.example.dt.yaml :0:0:
/example-0/soc/scb@2e000000: failed to match any schema with compatible:
['fujitsu,mb86s70-scb-1.0']
Fix it by using an example with a matching schema that makes use of 4
mailboxes that is well suited to demonstrate Rx and Tx channels with both
doorbell and data transfer protocols.
Cc: Rob Herring <robh+dt@kernel.org >
Cc: Viresh Kumar <viresh.kumar@linaro.org >
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com >
Link: https://lore.kernel.org/r/20210604205710.1944363-7-sudeep.holla@arm.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-04 17:29:18 -05:00
Sudeep Holla
3a32f22cc2
dt-bindings: mailbox : arm,mhu: Use examples with matching schema
...
Currently the example provided in arm,mhu schema complains as below:
Documentation/devicetree/bindings/mailbox/arm,mhu.example.dt.yaml :0:0:
/example-0/soc/scb@2e000000: failed to match any schema with compatible:
['fujitsu,mb86s70-scb-1.0']
Fix the same using examples based on Juno platform. The old SCPI firmware
used MHU with standard 32-bit data transfer protocol while the new SCMI
firmware uses MHU and expects to be used in doorbell mode. Update example
with SCPI and SCMI firmware nodes to demonstrate both 32-bit data transfer
and doorbell mode of MHU operations
Cc: Rob Herring <robh+dt@kernel.org >
Cc: Viresh Kumar <viresh.kumar@linaro.org >
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com >
Link: https://lore.kernel.org/r/20210604205710.1944363-6-sudeep.holla@arm.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-04 17:29:18 -05:00
Sudeep Holla
61b8ac9bf8
dt-bindings: firmware: arm,scmi: Convert to json schema
...
Convert the old text format binding for System Control and Management Interface
(SCMI) Message Protocol into the new and shiny YAML format.
Cc: Cristian Marussi <cristian.marussi@arm.com >
Cc: Florian Fainelli <f.fainelli@gmail.com >
Cc: Jim Quinlan <jim2101024@gmail.com >
Cc: Etienne Carriere <etienne.carriere@linaro.org >
Cc: Peter Hilber <peter.hilber@opensynergy.com >
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com >
Link: https://lore.kernel.org/r/20210604205710.1944363-5-sudeep.holla@arm.com
[robh: Rework interrupts schema and if/then]
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-04 17:29:18 -05:00
Sudeep Holla
01c70dfaa5
dt-bindings: firmware: amlogic,scpi: Convert to json schema
...
Convert/merge the existing text format SCPI binding additions for
amlogic,scpi into the common arm,scpi json scheme.
Couple of things to note:
"amlogic,meson-gxbb-scpi" is always used with "arm,scpi-pre-1.0" and
"amlogic,meson-gxbb-scpi-sensors" is used always with "arm,scpi-sensors"
Cc: Rob Herring <robh+dt@kernel.org >
Cc: Kevin Hilman <khilman@baylibre.com >
Cc: Neil Armstrong <narmstrong@baylibre.com >
Cc: Jerome Brunet <jbrunet@baylibre.com >
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com >
Link: https://lore.kernel.org/r/20210604205710.1944363-4-sudeep.holla@arm.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-04 17:27:06 -05:00
Sudeep Holla
1496be7194
dt-bindings: firmware: arm,scpi: Convert to json schema
...
Convert the old text format binding for System Control and Power Interface
(SCPI) Message Protocol into the new and shiny YAML format.
Cc: Rob Herring <robh+dt@kernel.org >
Cc: Kevin Hilman <khilman@baylibre.com >
Cc: Neil Armstrong <narmstrong@baylibre.com >
Cc: Jerome Brunet <jbrunet@baylibre.com >
Cc: Viresh Kumar <viresh.kumar@linaro.org >
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com >
Link: https://lore.kernel.org/r/20210604205710.1944363-3-sudeep.holla@arm.com
[robh: Move fixed strings to 'properties', drop some literal block notations]
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-04 17:27:06 -05:00
Sudeep Holla
e837220a27
dt-bindings: mailbox : arm,mhu: Fix arm,scpi example used here
...
Once the arm,scpi binding is converted to YAML format, the following
errors will be seen when doing `make DT_CHECKER_FLAGS=-m dt_binding_check`
From schema: Documentation/devicetree/bindings/firmware/arm,scpi.yaml
Documentation/devicetree/bindings/mailbox/arm,mhu.example.dt.yaml:
scpi@2f000000: $nodename:0: 'scpi' was expected
Documentation/devicetree/bindings/mailbox/arm,mhu.example.dt.yaml:
scpi@2f000000: reg: [[0, 788529152, 0, 512]] is not of type 'object'
Documentation/devicetree/bindings/mailbox/arm,mhu.example.dt.yaml:
scpi@2f000000: 'shmem' is a required property
Fix those error following the SCPI bindings.
Cc: Rob Herring <robh+dt@kernel.org >
Cc: Viresh Kumar <viresh.kumar@linaro.org >
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com >
Link: https://lore.kernel.org/r/20210604205710.1944363-2-sudeep.holla@arm.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-04 17:27:06 -05:00
Rob Herring
67a3156453
of: Merge of_address_to_resource() and of_pci_address_to_resource() implementations
...
of_address_to_resource() and of_pci_address_to_resource() are almost the
same except the former takes an index and the latter takes a BAR number.
Now that __of_get_address() can take either one, refactor the functions
to use a common implementation.
Cc: Frank Rowand <frowand.list@gmail.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210527194547.1287934-5-robh@kernel.org
2021-06-02 20:59:29 -05:00
Rob Herring
c3c0dc7577
of: address: Use IS_ENABLED() for !CONFIG_PCI
...
Convert address.c to use IS_ENABLED() instead of ifdefs for the
public PCI functions. This simplifies the ifdefs in of_address.h.
Cc: Frank Rowand <frowand.list@gmail.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210527194547.1287934-4-robh@kernel.org
2021-06-02 20:59:29 -05:00
Rob Herring
050a2c62df
of: Merge of_get_address() and of_get_pci_address() implementations
...
of_get_address() and of_get_pci_address() are the same implementation
except of_get_pci_address() takes the PCI BAR number rather than an
index. Modify the of_get_address() implementation to work on either
index or BAR and provide wrapper functions for the existing functions.
Cc: Frank Rowand <frowand.list@gmail.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210527194547.1287934-3-robh@kernel.org
2021-06-02 20:59:28 -05:00
Rob Herring
00dcc7cf1a
PCI: Add empty stub for pci_register_io_range()
...
Add an empty stub for pci_register_io_range() when !CONFIG_PCI. It's needed
to convert of_pci_range_to_resource() to use IS_ENABLED(CONFIG_PCI).
Cc: Bjorn Helgaas <bhelgaas@google.com >
Cc: linux-pci@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
Acked-by: Bjorn Helgaas <bhelgaas@google.com >
Link: https://lore.kernel.org/r/20210527194547.1287934-2-robh@kernel.org
2021-06-02 20:59:28 -05:00
Rob Herring
12d55d3b53
of: Move reserved memory private function declarations
...
fdt_init_reserved_mem() and fdt_reserved_mem_save_node() are private to
the DT code, so move there declarations to of_private.h. There's no need
for the dummy functions as CONFIG_OF_RESERVED_MEM is always enabled for
CONFIG_OF_EARLY_FLATTREE.
Cc: Frank Rowand <frowand.list@gmail.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210527193841.1284169-1-robh@kernel.org
2021-06-02 20:59:28 -05:00
Rob Herring
1ee292a66e
of: Drop reserved mem dependency on DMA_DECLARE_COHERENT and DMA_CMA
...
Reserved memory regions can be used for more than just DMA regions, so
only enabling on DMA_DECLARE_COHERENT (via HAS_DMA) or DMA_CMA is wrong.
This effectively doesn't matter except for the few cases arches select
NO_DMA.
At least, these users of RESERVEDMEM_OF_DECLARE depend on reserved memory
support:
arch/riscv/mm/init.c:RESERVEDMEM_OF_DECLARE(elfcorehdr, "linux,elfcorehdr", elfcore_hdr_setup);
drivers/memory/tegra/tegra210-emc-table.c:RESERVEDMEM_OF_DECLARE(tegra210_emc_table, "nvidia,tegra210-emc-table",
drivers/soc/fsl/qbman/bman_ccsr.c:RESERVEDMEM_OF_DECLARE(bman_fbpr, "fsl,bman-fbpr", bman_fbpr);
drivers/soc/fsl/qbman/qman_ccsr.c:RESERVEDMEM_OF_DECLARE(qman_fqd, "fsl,qman-fqd", qman_fqd);
drivers/soc/fsl/qbman/qman_ccsr.c:RESERVEDMEM_OF_DECLARE(qman_pfdr, "fsl,qman-pfdr", qman_pfdr);
Let's simplify things and enable OF_RESERVED_MEM when OF_EARLY_FLATTREE is
enabled.
Cc: Christoph Hellwig <hch@lst.de >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210527223217.1572631-1-robh@kernel.org
2021-06-02 20:59:28 -05:00
Mauro Carvalho Chehab
e84881785e
dt-bindings: reset: update ti,sci-reset.yaml references
...
Changeset 9a81b8cbc2 ("dt-bindings: reset: Convert ti,sci-reset to json schema")
renamed: Documentation/devicetree/bindings/reset/ti,sci-reset.txt
to: Documentation/devicetree/bindings/reset/ti,sci-reset.yaml.
Update the cross-references accordingly.
Fixes: 9a81b8cbc2 ("dt-bindings: reset: Convert ti,sci-reset to json schema")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org >
Link: https://lore.kernel.org/r/e9b505d900d898c0d030deb168ab291206c203ee.1622648507.git.mchehab+huawei@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-02 20:59:28 -05:00
Mauro Carvalho Chehab
c601eef1e2
dt-bindings: clock: update ti,sci-clk.yaml references
...
Changeset a7dbfa6f38 ("dt-bindings: clock: Convert ti,sci-clk to json schema")
renamed: Documentation/devicetree/bindings/clock/ti,sci-clk.txt
to: Documentation/devicetree/bindings/clock/ti,sci-clk.yaml.
Update the cross-references accordingly.
Fixes: a7dbfa6f38 ("dt-bindings: clock: Convert ti,sci-clk to json schema")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org >
Link: https://lore.kernel.org/r/0fae687366c09dfb510425b3c88316a727b27d6d.1622648507.git.mchehab+huawei@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-02 20:59:28 -05:00
Mauro Carvalho Chehab
f22145f153
dt-bindings: soc: ti: update sci-pm-domain.yaml references
...
Changeset fda55c7256 ("dt-bindings: soc: ti: Convert ti,sci-pm-domain to json schema")
renamed: Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt
to: Documentation/devicetree/bindings/soc/ti/sci-pm-domain.yaml.
Update the cross-references accordingly.
Fixes: fda55c7256 ("dt-bindings: soc: ti: Convert ti,sci-pm-domain to json schema")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org >
Link: https://lore.kernel.org/r/c03020ff281054c3bd2527c510659e05fec6f181.1622648507.git.mchehab+huawei@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-02 20:59:28 -05:00
Mauro Carvalho Chehab
b5205bb4de
dt-bindings: power: supply: cpcap-charger: update cpcap-charger.yaml reference
...
Changeset ce49e42822 ("dt-bindings: power: supply: cpcap-charger: Convert to DT schema format")
renamed: Documentation/devicetree/bindings/power/supply/cpcap-charger.txt
to: Documentation/devicetree/bindings/power/supply/cpcap-charger.yaml.
Update its cross-reference accordingly.
Fixes: ce49e42822 ("dt-bindings: power: supply: cpcap-charger: Convert to DT schema format")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org >
Link: https://lore.kernel.org/r/e9ce216362b7b9dcf84d707a3854247123440bf7.1622648507.git.mchehab+huawei@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-02 20:59:28 -05:00
Mauro Carvalho Chehab
94dac76d43
dt-bindings: power: supply: cpcap-battery: update cpcap-battery.yaml reference
...
Changeset 3c5be04549 ("dt-bindings: power: supply: cpcap-battery: Convert to DT schema format")
renamed: Documentation/devicetree/bindings/power/supply/cpcap-battery.txt
to: Documentation/devicetree/bindings/power/supply/cpcap-battery.yaml.
Update its cross-reference accordingly.
Fixes: 3c5be04549 ("dt-bindings: power: supply: cpcap-battery: Convert to DT schema format")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org >
Link: https://lore.kernel.org/r/1d0c8d50db22d9e5540a42be874fcd39fb7fc2a7.1622648507.git.mchehab+huawei@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-02 20:59:28 -05:00
Sudeep Holla
d617837099
dt-bindings: firmware: amlogic,scpi: Move arm,scpi-shmem to json schema
...
"amlogic,meson-gxbb-scp-shmem" is already in the Generic on-chip SRAM
binding though "amlogic,meson-gxbb-scpi" is missing which is now added.
Also remove the whole old text format binding for the same.
Cc: Rob Herring <robh+dt@kernel.org >
Cc: Kevin Hilman <khilman@baylibre.com >
Cc: Neil Armstrong <narmstrong@baylibre.com >
Cc: Jerome Brunet <jbrunet@baylibre.com >
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com >
Link: https://lore.kernel.org/r/20210601224904.917990-5-sudeep.holla@arm.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-02 20:59:28 -05:00
Sudeep Holla
cba0c95b3b
dt-bindings: firmware: juno,scpi: Move to sram.yaml json schema
...
Commit a90b15e0ad ("Documentation: bindings: decouple juno specific
details from generic binding") moved the juno specific bindings into
separate file. Though there was no need for juno specific binding, it
has been used unfortunately for whatever stupid reason I added it for.
Let us move the same to the generic sram.yaml schema and remove the
old text format binding.
Cc: Rob Herring <robh+dt@kernel.org >
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com >
Link: https://lore.kernel.org/r/20210601224904.917990-4-sudeep.holla@arm.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-02 20:59:28 -05:00
Sudeep Holla
4041e842e2
dt-bindings: firmware: arm,scmi: Move arm,scmi-shmem to json schema
...
Move the SRAM and shared memory binding for SCMI into the existing
Generic on-chip SRAM. We just need to update the compatible list and
there-by remove the whole old text format binding for the same.
Cc: Rob Herring <robh+dt@kernel.org >
Cc: Cristian Marussi <cristian.marussi@arm.com >
Cc: Florian Fainelli <f.fainelli@gmail.com >
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com >
Link: https://lore.kernel.org/r/20210601224904.917990-3-sudeep.holla@arm.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-02 20:59:27 -05:00
Sudeep Holla
7bf063a1ce
dt-bindings: firmware: arm,scpi: Move arm,scp-shmem to json schema
...
Move the SRAM and shared memory binding for SCPI into the existing
Generic on-chip SRAM. We just need to update the compatible list and
there-by remove the whole old text format binding for the same.
Cc: Rob Herring <robh+dt@kernel.org >
Cc: Kevin Hilman <khilman@baylibre.com >
Cc: Neil Armstrong <narmstrong@baylibre.com >
Cc: Jerome Brunet <jbrunet@baylibre.com >
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com >
Link: https://lore.kernel.org/r/20210601224904.917990-2-sudeep.holla@arm.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-02 20:59:27 -05:00
Suman Anna
ed21e4cd29
dt-bindings: mailbox: Convert omap-mailbox.txt binding to YAML
...
Convert the current OMAP Mailbox binding from text format to YAML
format/DT schema, and delete the legacy text binding file.
The new YAML binding conversion is an updated version compared to
the original. The descriptions for certain properties have been
improved to provide more clarity. Constraints are added to the
properties 'ti,mbox-num-users', 'ti,mbox-num-fifos' and 'interrupts'.
The 'ti,hwmods' is a legacy property and is retained only to reflect
the existing usage on some older OMAP2 and OMAP3 platforms.
All the existing examples have also been updated to reflect the
latest dts nodes (ti,hwmods removed from OMAP4 and AM33xx examples,
and interrupts value updated for AM65x SoCs).
Signed-off-by: Suman Anna <s-anna@ti.com >
[robh: Update ref in ti,omap-remoteproc.yaml]
Link: https://lore.kernel.org/r/20210520234348.4479-1-s-anna@ti.com
Signed-off-by: Rob Herring <robh@kernel.org >
2021-06-02 20:59:27 -05:00