Thierry Reding
e3899832bb
dt-bindings: rtc: ds1307: Convert to json-schema
...
Convert the DS1307 (and compatible) RTC bindings from the free-form text
format to json-schema.
Signed-off-by: Thierry Reding <treding@nvidia.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220617114420.1398259-1-thierry.reding@gmail.com
2022-07-21 15:34:02 -06:00
Kuldeep Singh
4f46cc1b88
dt-bindings: dma: Convert Qualcomm BAM DMA binding to json format
...
Convert Qualcomm BAM DMA controller binding to DT schema format using
json schema.
Signed-off-by: Kuldeep Singh <singh.kuldeep87k@gmail.com >
[robh: add back SoC mapping to compatible strings]
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220417210436.6203-7-singh.kuldeep87k@gmail.com
2022-07-21 13:56:09 -06:00
Marek Vasut
c7c7ce5853
dt-bindings: vendor-prefixes: add Densitron
...
Densitron is a manufacturer of LCD panels.
https://www.densitron.com
Signed-off-by: Marek Vasut <marex@denx.de >
Cc: Guido Günther <agx@sigxcpu.org >
Cc: Jagan Teki <jagan@amarulasolutions.com >
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Rob Herring <robh+dt@kernel.org >
Cc: Sam Ravnborg <sam@ravnborg.org >
Cc: Thierry Reding <thierry.reding@gmail.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220721030327.210950-1-marex@denx.de
2022-07-21 13:23:43 -06:00
Slark Xiao
12e5bde18d
dt-bindings: Fix typo in comment
...
Fix typo in the comment
Signed-off-by: Slark Xiao <slark_xiao@163.com >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220721011746.19663-1-slark_xiao@163.com
2022-07-21 13:14:27 -06:00
Vincent Knecht
fce43d8f75
dt-bindings: leds: is31fl319x: Document variants specificities
...
Add si-en compatibles for all chip variants and add conditionals
depending on compatibles to document variants specs:
- possible reg addresses
- whether audio-gain-db is supported or not
- maximum number of leds
- led-max-microamp values
Reviewed-by: Rob Herring <robh@kernel.org >
Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220712100841.1538395-3-vincent.knecht@mailoo.org
2022-07-21 11:14:34 -06:00
Vincent Knecht
dbc801b472
dt-bindings: leds: Convert is31fl319x to dtschema
...
Convert leds-is31fl319x.txt to dtschema.
Set license to the one recommended by DT project
and set myself as maintainer.
Reviewed-by: Rob Herring <robh@kernel.org >
Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220712100841.1538395-2-vincent.knecht@mailoo.org
2022-07-21 11:13:41 -06:00
Marijn Suijten
3ed4b599cc
dt-bindings: leds: qcom-lpg: Add compatible for PM660L LPG block
...
Document the availability of an LPG configuration for the PM660L PMIC in
the Qualcomm Light Pulse Generator driver.
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org >
Acked-by: Rob Herring <robh@kernel.org >
Reviewed-by: Bhupesh Sharma <bhupesh.sharma@linaro.org >
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220719211848.1653920-1-marijn.suijten@somainline.org
2022-07-21 11:12:08 -06:00
Krzysztof Kozlowski
e43232c004
dt-bindings: leds: skyworks,aat1290: convert to dtschema
...
Convert the Skyworks Solutions, Inc. AAT1290 Current Regulator bindings
to DT Schema.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Rob Herring <robh@kernel.org >
Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220721160611.250274-1-krzysztof.kozlowski@linaro.org
2022-07-21 11:10:44 -06:00
Krzysztof Kozlowski
5b967e8eca
dt-bindings: leds: fix indentation in examples
...
The examples were mixing 4-space with 2- and 3-space indentations, so
correct them to use 4-space one. No functional change.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Rob Herring <robh@kernel.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220607075247.58048-2-krzysztof.kozlowski@linaro.org
2022-07-21 11:09:50 -06:00
Krzysztof Kozlowski
3eb229f203
dt-bindings: leds: lp50xx: correct reg/unit addresses in example
...
The multi-led node defined address/size cells, so it is intended to have
children with unit addresses.
The second multi-led's reg property defined three LED indexes within one
reg item, which is not correct - these are three separate items.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Rob Herring <robh@kernel.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220607075247.58048-1-krzysztof.kozlowski@linaro.org
2022-07-21 11:09:50 -06:00
Geert Uytterhoeven
e76f4a6107
of: overlay: Simplify of_overlay_fdt_apply() tail
...
It does not hurt to fill in the changeset id while the mutex is still
held. After doing so, the function tails for the success and failure
cases become identical, so they can be unified.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be >
Reviewed-by: Frank Rowand <frank.rowand@sony.com >
Tested-by: Frank Rowand <frank.rowand@sony.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/6a3357a8f7f29704350e3ffae768ee8a462b54d3.1657893306.git.geert+renesas@glider.be
2022-07-19 15:56:48 -06:00
Geert Uytterhoeven
e385b0ba6a
of: overlay: Move devicetree_corrupt() check up
...
There is no point in doing several preparatory steps in
of_overlay_fdt_apply(), only to see of_overlay_apply() return early
because of a corrupt device tree.
Move the check for a corrupt device tree from of_overlay_apply() to
of_overlay_fdt_apply(), to check for this as early as possible.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be >
Reviewed-by: Frank Rowand <frank.rowand@sony.com >
Tested-by: Frank Rowand <frank.rowand@sony.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/c91ce7112eb5167ea46a43d8a980e76b920010ba.1657893306.git.geert+renesas@glider.be
2022-07-19 15:56:48 -06:00
Krzysztof Kozlowski
2aa0d4c881
dt-bindings: bus: qcom,ssc-block-bus: rework arrays and drop redundant minItems
...
There is no need to specify "minItems" if it equals to "maxItems". On the
other hand number of items in an array can be specified via describing
items, which might bring some additional information. This simplifies a
bit the binding.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220712154602.26994-1-krzysztof.kozlowski@linaro.org
2022-07-18 14:24:55 -06:00
Liang He
d17e37c41b
of: device: Fix missing of_node_put() in of_dma_set_restricted_buffer
...
We should use of_node_put() for the reference 'node' returned by
of_parse_phandle() which will increase the refcount.
Fixes: fec9b62509 ("of: Add plumbing for restricted DMA pool")
Co-authored-by: Miaoqian Lin <linmq006@gmail.com >
Signed-off-by: Liang He <windhl@126.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220702014449.263772-1-windhl@126.com
2022-07-12 10:58:33 -06:00
Andy Shevchenko
9465a98458
of: unittest: make unittest_gpio_remove() consistent with unittest_gpio_probe()
...
On the ->remove() stage the callback uses physical device node instead of one
from GPIO chip and the variable name which is different to one used in
unittest_gpio_probe(). Make these consistent with unittest_gpio_probe().
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220708214539.7254-2-andriy.shevchenko@linux.intel.com
2022-07-11 17:08:23 -06:00
Andy Shevchenko
652081b3c6
of: unittest: Switch to use fwnode instead of of_node
...
The OF node in the GPIO library is deprecated and soon will be removed.
GPIO library now accepts fwnode as a firmware node, so switch the module
to use it instead.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Reviewed-by: Bartosz Golaszewski <brgl@bgdev.pl >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220708214539.7254-1-andriy.shevchenko@linux.intel.com
2022-07-11 17:08:15 -06:00
Rob Herring
912cbf13a5
dt-bindings: mtd/partitions: Convert arm-firmware-suite to DT schema
...
Convert the arm,arm-firmware-suite partition binding to DT schema
format. Simple conversion as there's only a compatible property.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com >
Link: https://lore.kernel.org/r/20220629185031.23826-1-robh@kernel.org
2022-07-11 14:43:22 -06:00
Chanho Park
6e44e0dc58
dt-bindings: arm: cpus: add cortex-a78ae compatible
...
Cortex A78AE's MPIDR has been added since
commit 83bea32ac7 ("arm64: Add part number for Arm Cortex-A78AE")
We also need to add the compatible.
Signed-off-by: Chanho Park <chanho61.park@samsung.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220707082753.28862-1-chanho61.park@samsung.com
2022-07-11 13:26:44 -06:00
Rob Herring
a8dd214ff5
dt-bindings: arm: nvidia,tegra20-pmc: Move fixed string property names under 'properties'
...
Fixed string property names should be under 'properties' rather than
'patternProperties'. Additionally, without beginning and end of line
anchors, any prefix or suffix is allowed on the specified property names.
As all the nvidia,tegra20-pmc powergates child node properties are fixed
strings, change 'patternProperties' to 'properties'.
Signed-off-by: Rob Herring <robh@kernel.org >
Acked-by: Thierry Reding <treding@nvidia.com >
Link: https://lore.kernel.org/r/20220706212034.568861-1-robh@kernel.org
2022-07-11 13:06:49 -06:00
Krzysztof Kozlowski
128a16b970
dt-bindings: hwinfo: samsung,s5pv210-chipid: add S5PV210 ChipID
...
Document already used S5PV210 ChipID block.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220705154613.453096-2-krzysztof.kozlowski@linaro.org
2022-07-06 09:10:35 -06:00
Krzysztof Kozlowski
560045a46a
dt-bindings: hwinfo: group Chip ID-like devices
...
Group devices like Chip ID or SoC information under "hwinfo" directory.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220705154613.453096-1-krzysztof.kozlowski@linaro.org
2022-07-06 09:10:21 -06:00
Rob Herring
e35330f879
dt-bindings: watchdog: faraday: Fix typo in example 'timeout-sec' property
...
The 'unevaluatedProperties' schema checks is not fully working and doesn't
catch some cases where there's a $ref to another schema. A fix is pending,
but results in new warnings in examples.
The correct common watchdog property is 'timeout-sec', not 'timeout-secs'.
Signed-off-by: Rob Herring <robh@kernel.org >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Reviewed-by: Guenter Roeck <linux@roeck-us.net >
Link: https://lore.kernel.org/r/20220526014127.2872254-1-robh@kernel.org
2022-07-01 16:24:27 -06:00
Jason A. Donenfeld
ad6c94de2e
dt-bindings: chosen: remove old .txt binding
...
chosen.txt has been replaced by a schema in dtschema[1] and is now out
of date as well. Remove it to avoid confusion.
[1] https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/chosen.yaml
Link: https://lore.kernel.org/lkml/c8dddfe6-6385-ed34-e789-9f845c8a32bd@linaro.org/
Link: https://lore.kernel.org/lkml/CAL_Jsq+uSdk9YNbUW35yjN3q8-3FDobrxHmBpy=4RKmCfnB0KQ@mail.gmail.com/
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
[robh: Improve commmit msg]
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220628153354.870543-1-Jason@zx2c4.com
2022-07-01 15:24:40 -06:00
Krzysztof Kozlowski
f25b0d9dd6
dt-bindings: connector: usb: align example indentation to four-space
...
One DTS example was using 8-space indentation, while others 2-space.
For complex DTS with multiple levels, 2-space is not that readable and
in DTS examples 4-space is preferred.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220624162141.25890-1-krzysztof.kozlowski@linaro.org
2022-06-30 16:29:36 -06:00
Paul Cercueil
fbd2251d3e
docs: dt: writing-bindings: Update URL to DT schemas
...
The previous URL was giving a 404 error.
Signed-off-by: Paul Cercueil <paul@crapouillou.net >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220627223950.35748-1-paul@crapouillou.net
2022-06-30 15:38:25 -06:00
Rob Herring
ef314d213d
Merge branch 'dt/linus' into dt/next
...
Pull in the binding fixes so we don't have all the warnings.
2022-06-29 15:11:43 -06:00
Rob Herring
2d5a64707a
media: dt-bindings: Convert gpio-ir-receiver to DT schema
...
Convert the gpio-ir-receiver binding to DT schema format.
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220606184944.1067068-2-robh@kernel.org
2022-06-29 15:10:07 -06:00
Rob Herring
864138ab0e
media: dt-bindings: rc: Allow 'ir-receiver' node names
...
Most existing 'gpio-ir-receiver' nodes use 'ir-receiver' for their node
name, so add it as an allowed node name.
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220606184944.1067068-1-robh@kernel.org
2022-06-29 15:09:57 -06:00
Michael Walle
4908e3ace2
dt-bindings: nfc: nxp,nci: drop Charles Gorand's mail
...
Mails to Charles get an auto reply, that he is no longer working at
Eff'Innov technologies. Remove the entry.
Signed-off-by: Michael Walle <michael@walle.cc >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220628070959.187734-1-michael@walle.cc
2022-06-28 14:15:36 -06:00
Piyush Mehta
f2fb1b50fb
dt-bindings: ata: ahci-ceva: convert to yaml
...
Convert the ahci-ceva doc to yaml.
Signed-off-by: Piyush Mehta <piyush.mehta@xilinx.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220620073717.3079-1-piyush.mehta@xilinx.com
2022-06-28 14:15:36 -06:00
Vincent Whitchurch
6991cd744f
of: reserved-memory: Print allocation/reservation failures as error
...
If the allocation/reservation of reserved-memory fails, it is normally
an error, so print it as an error so that it doesn't get hidden from the
console due to the loglevel. Also make the allocation failure include
the size just like the reservation failure.
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220628113540.2790835-1-vincent.whitchurch@axis.com
2022-06-28 14:15:36 -06:00
Deming Wang
3a5230a87c
of: Drop duplicate 'the' in of_find_last_cache_level kerneldoc
...
Delete duplicate words of "the".
Signed-off-by: Deming Wang <wangdeming@inspur.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220624011247.1735-1-wangdeming@inspur.com
2022-06-28 07:34:15 -06:00
Rob Herring
cfda05c1dd
dt-bindings: vexpress-sysreg: Allow for no child nodes
...
It is valid for arm,vexpress-sysreg to have no child nodes when either
the deprecated binding without child nodes is used or a platform
has no GPIOs. If there are no child nodes, then "#address-cells" and
"#size-cells" should not be required. However, "reg" should be present
in all cases, so let's add it now.
Cc: Andre Przywara <andre.przywara@arm.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220613171809.3928949-2-robh@kernel.org
2022-06-17 13:14:51 -06:00
Rob Herring
67fcaf2877
dt-bindings: vexpress-sysreg: Add deprecated GPIO provider properties
...
While the current binding expects a child GPIO node, the old style binding
with GPIO provider properties in the parent vexpress-sysreg node is
still in use. Add the GPIO provider properties as deprecated.
Cc: Andre Przywara <andre.przywara@arm.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220613171809.3928949-1-robh@kernel.org
2022-06-17 13:14:38 -06:00
Rob Herring
bb9a3cc77a
dt-bindings: perf: Convert Arm CCN to DT schema
...
Convert the Arm CCN performance monitors binding to DT schema format.
Signed-off-by: Rob Herring <robh@kernel.org >
Acked-by: Robin Murphy <robin.murphy@arm.com >
Link: https://lore.kernel.org/r/20220613145554.3727354-1-robh@kernel.org
2022-06-17 13:13:57 -06:00
Rob Herring
e291506242
dt-bindings: display: Add Arm virtual platforms display
...
'arm,rtsm-display' is a panel for Arm, Ltd. virtual platforms (e.g. FVP).
The binding has been in use for a long time, but was never documented.
Some users and an example have a 'panel-dpi' compatible, but that's not
needed without a 'panel-timing' node which none of the users have since
commit 928faf5e3e ("arm64: dts: fvp: Remove panel timings"). The
example does have a 'panel-timing' node, but it should not for the
same reasons the node was removed in the dts files. So update the
example in arm,pl11x.yaml to match the schema.
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Robin Murphy <robin.murphy@arm.com >
Cc: Andre Przywara <andre.przywara@arm.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Acked-by: Sam Ravnborg <sam@ravnborg.org >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Link: https://lore.kernel.org/r/20220613145709.3729053-1-robh@kernel.org
2022-06-17 13:13:38 -06:00
Wolfram Sang
ee774c40fa
dt-bindings: efm32: remove bindings for deleted platform
...
Commit cc6111375c ("ARM: drop efm32 platform") removed the platform,
so no need to still carry the bindings.
Signed-off-by: Wolfram Sang <wsa@kernel.org >
Acked-by: Mark Brown <broonie@kernel.org >
Acked-by: Stephen Boyd <sboyd@kernel.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220615210720.6363-1-wsa@kernel.org
2022-06-16 12:01:14 -06:00
Wolfram Sang
b624c4d037
dt-bindings: hwmon: move ibm,p8-occ bindings to proper folder
...
It accidently ended up in i2c, but it should be in the hwmon folder.
Signed-off-by: Wolfram Sang <wsa@kernel.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220615211619.6742-1-wsa@kernel.org
2022-06-16 12:01:14 -06:00
Stanislav Jakubek
668c01baa7
dt-bindings: interrupt-controller: Convert rda,8810pl-intc to YAML
...
Convert RDA Micro interrupt controller bindings to DT schema format.
Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220611180703.GA24988@standask-GA-A55M-S2HP
2022-06-16 12:01:14 -06:00
Andre Przywara
0b9431c822
dt-bindings: display: arm,malidp: remove bogus RQOS property
...
As Liviu pointed out, the arm,malidp-arqos-high-level property
mentioned in the original .txt binding was a mistake, and
arm,malidp-arqos-value needs to take its place.
The binding commit ce6eb0253c ("dt/bindings: display: Add optional
property node define for Mali DP500") mentions the right name in the
commit message, but has the wrong name in the diff.
Commit d298e6a27a ("drm/arm/mali-dp: Add display QoS interface
configuration for Mali DP500") uses the property in the driver, but uses
the shorter name.
Remove the wrong property from the binding, and use the proper name in
the example. The actual property was already documented properly.
Fixes: 2c8b082a3a ("dt-bindings: display: convert Arm Mali-DP to DT schema")
Link: https://lore.kernel.org/linux-arm-kernel/YnumGEilUblhBx8E@e110455-lin.cambridge.arm.com/
Signed-off-by: Andre Przywara <andre.przywara@arm.com >
Reported-by: Liviu Dudau <liviu.dudau@arm.com >
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220609162729.1441760-1-andre.przywara@arm.com
2022-06-10 12:32:05 -06:00
Rob Herring
01aa6cbf3d
dt-bindings: pinctrl: ralink: Fix 'enum' lists with duplicate entries
...
There's no reason to list the same value twice in an 'enum'. This was fixed
treewide in commit c3b0068194 ("dt-bindings: Fix 'enum' lists with
duplicate entries"), but this one got added in the merge window.
A meta-schema change will catch future cases.
Signed-off-by: Rob Herring <robh@kernel.org >
Acked-by: Sergio Paracuellos <sergio.paracuellos@gmail.com >
Link: https://lore.kernel.org/r/20220606212239.1360877-1-robh@kernel.org
2022-06-10 12:19:07 -06:00
Krzysztof Kozlowski
38a85b9d95
dt-bindings: sram: qcom,imem: add IMEM memory region
...
Add bindings for IMEM memory region (like SRAM) used on several
Qualcomm SoCs. In the downstream (vendor) tree, it comes with several
children used for debugging purposes. The upstreamed parts are much
smaller - just image loader and syscon reboot.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220607171848.535128-2-krzysztof.kozlowski@linaro.org
2022-06-09 14:40:21 -06:00
Krzysztof Kozlowski
ae5a898341
dt-bindings: sram: qcom,ocmem: cleanup example coding style
...
Fix the indentation in the OCMEM example and use generic node name -
sram - to reflect the type of the device.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220607171848.535128-1-krzysztof.kozlowski@linaro.org
2022-06-09 14:39:59 -06:00
Krzysztof Kozlowski
72ca190052
dt-bindings: vendor-prefixes: document several vendors for Aspeed BMC boards
...
Add vendor prefixes for manufacturers of Aspeed SoC based BMC boards:
ASrock, ByteDance, Ingrasys, Inventec and Quanta. Move also bticino to
proper alphabetical place.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220529104928.79636-1-krzysztof.kozlowski@linaro.org
2022-06-07 16:25:11 -06:00
Vaibhav Jain
cbf9c4b961
of: check previous kernel's ima-kexec-buffer against memory bounds
...
Presently ima_get_kexec_buffer() doesn't check if the previous kernel's
ima-kexec-buffer lies outside the addressable memory range. This can result
in a kernel panic if the new kernel is booted with 'mem=X' arg and the
ima-kexec-buffer was allocated beyond that range by the previous kernel.
The panic is usually of the form below:
$ sudo kexec --initrd initrd vmlinux --append='mem=16G'
<snip>
BUG: Unable to handle kernel data access on read at 0xc000c01fff7f0000
Faulting instruction address: 0xc000000000837974
Oops: Kernel access of bad area, sig: 11 [#1 ]
<snip>
NIP [c000000000837974] ima_restore_measurement_list+0x94/0x6c0
LR [c00000000083b55c] ima_load_kexec_buffer+0xac/0x160
Call Trace:
[c00000000371fa80] [c00000000083b55c] ima_load_kexec_buffer+0xac/0x160
[c00000000371fb00] [c0000000020512c4] ima_init+0x80/0x108
[c00000000371fb70] [c0000000020514dc] init_ima+0x4c/0x120
[c00000000371fbf0] [c000000000012240] do_one_initcall+0x60/0x2c0
[c00000000371fcc0] [c000000002004ad0] kernel_init_freeable+0x344/0x3ec
[c00000000371fda0] [c0000000000128a4] kernel_init+0x34/0x1b0
[c00000000371fe10] [c00000000000ce64] ret_from_kernel_thread+0x5c/0x64
Instruction dump:
f92100b8 f92100c0 90e10090 910100a0 4182050c 282a0017 3bc00000 40810330
7c0802a6 fb610198 7c9b2378 f80101d0 <a1240000> 2c090001 40820614 e9240010
---[ end trace 0000000000000000 ]---
Fix this issue by checking returned PFN range of previous kernel's
ima-kexec-buffer with page_is_ram() to ensure correct memory bounds.
Fixes: 467d278249 ("powerpc: ima: get the kexec buffer passed by the previous kernel")
Cc: Frank Rowand <frowand.list@gmail.com >
Cc: Prakhar Srivastava <prsriva@linux.microsoft.com >
Cc: Lakshmi Ramasubramanian <nramas@linux.microsoft.com >
Cc: Thiago Jung Bauermann <bauerman@linux.ibm.com >
Cc: Rob Herring <robh@kernel.org >
Cc: Ritesh Harjani <ritesh.list@gmail.com >
Cc: Robin Murphy <robin.murphy@arm.com >
Signed-off-by: Vaibhav Jain <vaibhav@linux.ibm.com >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220531041446.3334259-1-vaibhav@linux.ibm.com
2022-06-07 16:25:11 -06:00
Rob Herring
927c63e078
dt-bindings: Drop more redundant 'maxItems/minItems' in if/then schemas
...
Another round from new cases in 5.19-rc of removing redundant
minItems/maxItems when 'items' list is specified. This time it is in
if/then schemas as the meta-schema was failing to check this case.
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.
Signed-off-by: Rob Herring <robh@kernel.org >
Acked-by: Guenter Roeck <linux@roeck-us.net >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Acked-by: Ulf Hansson <ulf.hansson@linaro.org >
Link: https://lore.kernel.org/r/20220606225137.1536010-1-robh@kernel.org
2022-06-07 10:08:02 -06:00
Rob Herring
c3c09e393a
dt-bindings: nvme: apple,nvme-ans: Drop 'maxItems' from 'apple,sart'
...
A 'phandle' type is always a single cell, so 'maxItems: 1' is redundant.
Fixes: 82b96552f1 ("dt-bindings: nvme: Add Apple ANS NVMe")
Signed-off-by: Rob Herring <robh@kernel.org >
Reviewed-by: Sven Peter <sven@svenpeter.dev >
Link: https://lore.kernel.org/r/20220606212230.1360617-1-robh@kernel.org
2022-06-07 10:07:51 -06:00
Geert Uytterhoeven
f06e4c9ec8
dt-bindings: display: bridge: sil,sii9022: Convert to json-schema
...
Convert the Silicon Image sii902x HDMI bridge Device Tree binding
documentation to json-schema.
Add missing sil,sii9022-cpi and sil,sii9022-tpi compatible values.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be >
Reviewed-by: Rob Herring <robh@kernel.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/2f8e12b4980a82788c1dd413ceedf8d144fdca91.1652967387.git.geert+renesas@glider.be
2022-06-06 14:22:37 -05:00
Danilo Krummrich
ef17936654
dt-bindings: ps2-gpio: document bus signals open drain
...
The PS/2 bus defines data and clock line to be open drain, this should
be reflected in the gpio flags set in the binding.
Especially, this is important since the clock line sometimes is driven
by the host while being used as interrupt source.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com >
Signed-off-by: Danilo Krummrich <danilokrummrich@dk-develop.de >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220529132638.13420-2-danilokrummrich@dk-develop.de
2022-06-06 12:41:25 -05:00
Danilo Krummrich
442feb3174
dt-bindings: ps2-gpio: convert binding to json-schema
...
Convert the ps2-gpio dt-binding documentation to DT schema format using
the json-schema.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com >
Signed-off-by: Danilo Krummrich <danilokrummrich@dk-develop.de >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220529132638.13420-1-danilokrummrich@dk-develop.de
2022-06-06 12:41:25 -05:00