Andy Shevchenko
6c857ccf4e
mmc: mmc_spi: Set up polling even if voltage-ranges is not present
...
When voltage-ranges property is not present the driver assumes that
it is 3.3v (3.2v..3.4v). But at the same time it disallows polling.
Fix that by dropping the comparison to 0 when no property is provided.
While at it, mark voltage-ranges property optional as it was initially.
Fixes: 9c43df5791 ("mmc_spi: Add support for OpenFirmware bindings")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20210419112459.25241-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-04-23 09:29:49 +02:00
Nicolas Saenz Julienne
5e2ea2db04
dt-bindings: mmc: iproc-sdhci: Convert to json-schema
...
Convert the brcm,iproc-sdhci binding to DT schema format using json-schema
Signed-off-by: Nicolas Saenz Julienne <nsaenz@kernel.org >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210406104802.20898-2-nsaenz@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-04-12 09:00:13 +02:00
Seiya Wang
eb9cb7227e
dt-bindings: mmc: Add compatible for Mediatek MT8195
...
This commit adds dt-binding documentation of mmc for Mediatek MT8195 SoC
Platform.
Signed-off-by: Seiya Wang <seiya.wang@mediatek.com >
Link: https://lore.kernel.org/r/20210319023427.16711-6-seiya.wang@mediatek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-03-30 11:42:06 +02:00
Shawn Lin
dd12261e7f
dt-bindings: mmc: sdhci-of-dwcmhsc: Add rockchip support
...
This patch adds rockchip support in sdhci-of-dwcmhsc.yaml
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
Link: https://lore.kernel.org/r/1615879102-45919-2-git-send-email-shawn.lin@rock-chips.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-03-30 11:42:05 +02:00
Shawn Lin
169162ca47
dt-bindings: mmc: sdhci-of-dwcmhsc: Convert to yaml file
...
This patch converts sdhci-of-dwcmshc.txt to sdhci-of-dwcmshc.yaml
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/1615879102-45919-1-git-send-email-shawn.lin@rock-chips.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-03-30 11:42:04 +02:00
Peng Fan
d1840f28e1
dt-bindings: mmc: fsl-imx-esdhc: add clock bindings
...
Add clock bindings for fsl-imx-esdhc yaml
Signed-off-by: Peng Fan <peng.fan@nxp.com >
Link: https://lore.kernel.org/r/1614222604-27066-5-git-send-email-peng.fan@oss.nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-03-30 11:42:00 +02:00
Peng Fan
f2bdda2ac5
dt-bindings: mmc: fsl-imx-esdhc: add pinctrl bindings
...
Add pinctrl bindings for fsl-imx-esdhc yaml
Signed-off-by: Peng Fan <peng.fan@nxp.com >
Link: https://lore.kernel.org/r/1614222604-27066-2-git-send-email-peng.fan@oss.nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-03-30 11:41:59 +02:00
Linus Torvalds
a99163e9e7
Merge tag 'devicetree-for-5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
...
Pull devicetree updates from Rob Herring:
- Sync dtc to upstream version v1.6.0-51-g183df9e9c2b9 and build host
fdtoverlay
- Add kbuild support to build DT overlays (%.dtbo)
- Drop NULLifying match table in of_match_device().
In preparation for this, there are several driver cleanups to use
(of_)?device_get_match_data().
- Drop pointless wrappers from DT struct device API
- Convert USB binding schemas to use graph schema and remove old plain
text graph binding doc
- Convert spi-nor and v3d GPU bindings to DT schema
- Tree wide schema fixes for if/then schemas, array size constraints,
and undocumented compatible strings in examples
- Handle 'no-map' correctly for already reserved memblock regions
* tag 'devicetree-for-5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (35 commits)
driver core: platform: Drop of_device_node_put() wrapper
of: Remove of_dev_{get,put}()
dt-bindings: usb: Change descibe to describe in usbmisc-imx.txt
dt-bindings: can: rcar_canfd: Group tuples in pin control properties
dt-bindings: power: renesas,apmu: Group tuples in cpus properties
dt-bindings: mtd: spi-nor: Convert to DT schema format
dt-bindings: Use portable sort for version cmp
dt-bindings: ethernet-controller: fix fixed-link specification
dt-bindings: irqchip: Add node name to PRUSS INTC
dt-bindings: interconnect: Fix the expected number of cells
dt-bindings: Fix errors in 'if' schemas
dt-bindings: iommu: renesas,ipmmu-vmsa: Make 'power-domains' conditionally required
dt-bindings: Fix undocumented compatible strings in examples
kbuild: Add support to build overlays (%.dtbo)
scripts: dtc: Remove the unused fdtdump.c file
scripts: dtc: Build fdtoverlay tool
scripts/dtc: Update to upstream version v1.6.0-51-g183df9e9c2b9
scripts: dtc: Fetch fdtoverlay.c from external DTC project
dt-bindings: thermal: sun8i: Fix misplaced schema keyword in compatible strings
dt-bindings: iio: dac: Fix AD5686 references
...
2021-02-22 10:05:12 -08:00
Rob Herring
9183908e70
dt-bindings: Fix errors in 'if' schemas
...
Properties in if/then schemas weren't getting checked by the meta-schemas.
Enabling meta-schema checks finds several errors.
The use of an 'items' schema (as opposed to the list form) is wrong in
some cases as it applies to all entries. 'contains' is the correct schema
to use in the case of multiple entries.
Cc: Herbert Xu <herbert@gondor.apana.org.au >
Cc: "David S. Miller" <davem@davemloft.net >
Cc: Chen-Yu Tsai <wens@csie.org >
Cc: Eric Anholt <eric@anholt.net >
Cc: Florian Fainelli <f.fainelli@gmail.com >
Cc: Ray Jui <rjui@broadcom.com >
Cc: Scott Branden <sbranden@broadcom.com >
Cc: Pavel Machek <pavel@ucw.cz >
Cc: Ulf Hansson <ulf.hansson@linaro.org >
Cc: Kishon Vijay Abraham I <kishon@ti.com >
Cc: Geert Uytterhoeven <geert+renesas@glider.be >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: linux-crypto@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: linux-leds@vger.kernel.org
Cc: linux-mmc@vger.kernel.org
Cc: linux-gpio@vger.kernel.org
Acked-by: Maxime Ripard <mripard@kernel.org >
Acked-By: Vinod Koul <vkoul@kernel.org >
Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de >
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210202205544.24812-3-robh@kernel.org
2021-02-04 09:08:20 -06:00
Marek Vasut
bbaa298f57
mmc: mmci: Add bindings to operate CMD, CK, CKIN pins as GPIO
...
Add DT bindings to describe GPIO line associated with CMD, CK, CKIN pins.
Signed-off-by: Marek Vasut <marex@denx.de >
Cc: Alexandre Torgue <alexandre.torgue@st.com >
Cc: Ludovic Barre <ludovic.barre@st.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Link: https://lore.kernel.org/r/20210124170258.32862-1-marex@denx.de
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-02-01 12:02:34 +01:00
Eric Biggers
5cc046eb13
dt-bindings: mmc: sdhci-msm: add ICE registers and clock
...
Document the bindings for the registers and clock for the MMC instance
of the Inline Crypto Engine (ICE) on Snapdragon SoCs. These bindings
are needed in order for sdhci-msm to support inline encryption.
Reviewed-by: Satya Tangirala <satyat@google.com >
Acked-by: Rob Herring <robh@kernel.org >
Signed-off-by: Eric Biggers <ebiggers@google.com >
Link: https://lore.kernel.org/r/20210126001456.382989-8-ebiggers@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-02-01 12:02:33 +01:00
Arnd Bergmann
c7b9f01fd1
mmc: remove sirf prima/atlas driver
...
The CSR SiRF prima2/atlas platforms are getting removed, so this driver
is no longer needed.
Cc: Barry Song <baohua@kernel.org >
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Barry Song <baohua@kernel.org >
Link: https://lore.kernel.org/r/20210120142801.334550-3-arnd@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-02-01 11:54:49 +01:00
Arnd Bergmann
e55f2cf512
mmc: remove dw_mmc-zx driver
...
The zte zx platform is getting removed, so this driver is no
longer needed.
Cc: Jun Nie <jun.nie@linaro.org >
Cc: Shawn Guo <shawnguo@kernel.org >
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Link: https://lore.kernel.org/r/20210120142801.334550-2-arnd@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-02-01 11:54:48 +01:00
Linus Walleij
1a9705936a
mmc: mmci: Convert bindings to DT schema
...
This converts the MMCI bindings from simple text to a proper
schema.
Cc: devicetree@vger.kernel.org
Cc: Marek Vasut <marex@denx.de >
Signed-off-by: Linus Walleij <linus.walleij@linaro.org >
Tested-by: Marek Vasut <marex@denx.de >
Link: https://lore.kernel.org/r/20210119100655.2755164-1-linus.walleij@linaro.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-02-01 11:54:48 +01:00
Grygorii Strashko
7c7905df68
dt-bindings: mmc: sdhci-am654: fix compatible for j7200
...
On TI J7200 SoC the SDHCI controller compatible defined as
"ti,j7200-sdhci-8bit", "ti,j721e-sdhci-8bit"
or
"ti,j7200-sdhci-4bit", "ti,j721e-sdhci-4bit"
which causes dtbs_check warnings:
mmc@4f80000: compatible: ['ti,j7200-sdhci-8bit', 'ti,j721e-sdhci-8bit'] is too long
mmc@4f80000: compatible: Additional items are not allowed ('ti,j721e-sdhci-8bit' was unexpected)
mmc@4fb0000: compatible:0: 'ti,j7200-sdhci-4bit' is not one of ['ti,am654-sdhci-5.1', 'ti,j721e-sdhci-8bit',
'ti,j721e-sdhci-4bit', 'ti,j7200-sdhci-8bit', 'ti,j721e-sdhci-4bit', 'ti,am64-sdhci-8bit', 'ti,am64-sdhci-4bit']
mmc@4fb0000: compatible: ['ti,j7200-sdhci-4bit', 'ti,j721e-sdhci-4bit'] is too long
mmc@4fb0000: compatible: Additional items are not allowed ('ti,j721e-sdhci-4bit' was unexpected)
Fix it by adding missing compatible strings and their combinations.
Fixes: 407d0c2cdd ("dt-bindings: mmc: sdhci-am654: Convert sdhci-am654 controller documentation to json schema")
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com >
Link: https://lore.kernel.org/r/20210115193218.5809-1-grygorii.strashko@ti.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-02-01 11:54:47 +01:00
Aswath Govindraju
81aa9876f9
dt-bindings: mmc: sdhci-am654: Add compatible string for AM64 SoC
...
Add compatible string for AM64 SoC in device tree binding of AM654 SDHCI module
as the same IP is used.
Signed-off-by: Aswath Govindraju <a-govindraju@ti.com >
Acked-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210113115908.3882-2-a-govindraju@ti.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-02-01 11:54:45 +01:00
Marcin Wojtas
783be176eb
dt-bindings: mmc: xenon: add AP807 compatible string
...
This patch adds DT binding description for the Xenon
SD/MMC controller included in AP807 north bridge.
Signed-off-by: Marcin Wojtas <mw@semihalf.com >
Signed-off-by: Konstantin Porotchkin <kostap@marvell.com >
Link: https://lore.kernel.org/r/20210112094655.12274-2-kostap@marvell.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-02-01 11:54:45 +01:00
Manivannan Sadhasivam
9476e27bb5
dt-bindings: mmc: sdhci-msm: Document the SDX55 compatible
...
The SDHCI controller on SDX55 is based on MSM SDHCI v5 IP. Hence,
document the compatible with "qcom,sdhci-msm-v5" as the fallback.
While at it, let's also sort the compatibles in ascending order.
Cc: Ulf Hansson <ulf.hansson@linaro.org >
Cc: linux-mmc@vger.kernel.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org >
Reviewed-by: Vinod Koul <vkoul@kernel.org >
Acked-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210107143118.2386-1-manivannan.sadhasivam@linaro.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-02-01 11:54:44 +01:00
Wolfram Sang
a5ca4c3212
dt-bindings: mmc: renesas,sdhi: Add r8a779a0 support
...
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com >
Acked-by: Rob Herring <robh@kernel.org >
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be >
Link: https://lore.kernel.org/r/20201227174202.40834-2-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-02-01 11:54:44 +01:00
Yangtao Li
b79ee3852c
dt-bindings: mmc: sunxi: Add Allwinner A100 and H616 compatibles
...
Add binding for A100's and H616's mmc and emmc controller.
Signed-off-by: Yangtao Li <frank@allwinnertech.com >
Signed-off-by: Andre Przywara <andre.przywara@arm.com >
Link: https://lore.kernel.org/r/20201211011934.6171-9-andre.przywara@arm.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2021-02-01 11:54:42 +01:00
Rob Herring
32ada6b098
dt-bindings: Cleanup standard unit properties
...
Properties with standard unit suffixes already have a type and don't need
type definitions. They also default to a single entry, so 'maxItems: 1'
can be dropped.
adi,ad5758 is an oddball which defined an enum of arrays. While a valid
schema, it is simpler as a whole to only define scalar constraints.
Cc: Jean Delvare <jdelvare@suse.com >
Cc: Lars-Peter Clausen <lars@metafoo.de >
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Cc: Ulf Hansson <ulf.hansson@linaro.org >
Cc: "David S. Miller" <davem@davemloft.net >
Cc: Jakub Kicinski <kuba@kernel.org >
Cc: Serge Semin <fancer.lancer@gmail.com >
Cc: linux-hwmon@vger.kernel.org
Cc: linux-i2c@vger.kernel.org
Cc: linux-iio@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-input@vger.kernel.org
Cc: linux-mmc@vger.kernel.org
Cc: netdev@vger.kernel.org
Cc: linux-pm@vger.kernel.org
Cc: linux-rtc@vger.kernel.org
Cc: linux-serial@vger.kernel.org
Cc: alsa-devel@alsa-project.org
Cc: linux-watchdog@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
Acked-by: Guenter Roeck <linux@roeck-us.net >
Acked-by: Mark Brown <broonie@kernel.org >
Acked-by: Wolfram Sang <wsa@kernel.org > # for I2C
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com >
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Acked-by: Sebastian Reichel <sre@kernel.org > # for power-supply
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com > #for-iio
Acked-by: Alexandre TORGUE <alexandre.torgue@foss.st.com >
Link: https://lore.kernel.org/r/20210128194515.743252-1-robh@kernel.org
2021-01-29 16:36:06 -06:00
Rob Herring
0499220d6d
dt-bindings: Add missing array size constraints
...
DT properties which can have multiple entries need to specify what the
entries are and define how many entries there can be. In the case of
only a single entry, just 'maxItems: 1' is sufficient.
Add the missing entry constraints. These were found with a modified
meta-schema. Unfortunately, there are a few cases where the size
constraints are not defined such as common bindings, so the meta-schema
can't be part of the normal checks.
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Stephen Boyd <sboyd@kernel.org >
Cc: Thierry Reding <thierry.reding@gmail.com >
Cc: MyungJoo Ham <myungjoo.ham@samsung.com >
Cc: Chanwoo Choi <cw00.choi@samsung.com >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com >
Cc: Jonathan Cameron <jic23@kernel.org >
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Marc Zyngier <maz@kernel.org >
Cc: Mauro Carvalho Chehab <mchehab@kernel.org >
Cc: Chen-Yu Tsai <wens@csie.org >
Cc: Ulf Hansson <ulf.hansson@linaro.org >
Cc: "David S. Miller" <davem@davemloft.net >
Cc: Jakub Kicinski <kuba@kernel.org >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Ohad Ben-Cohen <ohad@wizery.com >
Cc: Bjorn Andersson <bjorn.andersson@linaro.org >
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Acked-by: Sebastian Reichel <sre@kernel.org >
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com > #for-iio
Acked-by: Chanwoo Choi <cw00.choi@samsung.com >
Reviewed-by: Suman Anna <s-anna@ti.com >
Acked-by: Paul Cercueil <paul@crapouillou.net >
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Link: https://lore.kernel.org/r/20210104230253.2805217-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
2021-01-11 17:42:25 -06:00
Zhen Lei
72b248cfbf
dt-bindings: mmc: eliminate yamllint warnings
...
Eliminate the following yamllint warnings:
./Documentation/devicetree/bindings/mmc/mtk-sd.yaml
:20:9: [warning] wrong indentation: expected 10 but found 8 (indentation)
:30:9: [warning] wrong indentation: expected 10 but found 8 (indentation)
:33:9: [warning] wrong indentation: expected 10 but found 8 (indentation)
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20201207032626.1445-2-thunder.leizhen@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-12-11 10:08:58 +01:00
Michal Simek
2a39480858
dt-bindings: mmc: Fix xlnx,mio-bank property values for arasan driver
...
Xilinx ZynqMP has 3 mio banks and all of them are valid. That's why also
list the first one which is missing. Property is enumeration not range.
Signed-off-by: Michal Simek <michal.simek@xilinx.com >
Link: https://lore.kernel.org/r/5fa17dfe4b42abefd84b4cbb7b8bcd4d31398f40.1606914986.git.michal.simek@xilinx.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-12-04 14:20:25 +01:00
Dong Aisheng
9d348477dd
dt-bindings: mmc: imx: fix the wrongly dropped imx8qm compatible string
...
The compatible string "fsl,imx8qm-usdhc" was wrongly dropped in commit
80fd350b95 ("dt-bindings: mmc: fsl-imx-esdhc: Fix i.MX 8 compatible
matching"), let's add it back.
Cc: Haibo Chen <haibo.chen@nxp.com >
Cc: Krzysztof Kozlowski <krzk@kernel.org >
Cc: Ulf Hansson <ulf.hansson@linaro.org >
Fixes: 80fd350b95 ("dt-bindings: mmc: fsl-imx-esdhc: Fix i.MX 8 compatible matching")
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com >
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org >
Acked-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20201126105900.26658-2-aisheng.dong@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-12-04 13:20:22 +01:00
Cristian Ciocaltea
2fd8a07886
dt-bindings: mmc: owl: Add compatible string for Actions Semi S500 SoC
...
Add a new compatible string corresponding to the MMC controller found
in the S500 variant of the Actions Semi Owl SoCs family.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com >
Link: https://lore.kernel.org/r/713f57f4a66fff9a50a8d93643a7987d6560becb.1605823502.git.cristian.ciocaltea@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-11-24 12:08:54 +01:00
Wenbin Mei
59a23395d8
dt-bindings: mmc: Add support for MT8192 SoC
...
MT8192 mmc host IP is compatible with MT8183, let's add support for this.
Signed-off-by: Wenbin Mei <wenbin.mei@mediatek.com >
Link: https://lore.kernel.org/r/20201014030846.12428-3-wenbin.mei@mediatek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-11-16 11:59:27 +01:00
Wenbin Mei
c626695ecd
dt-bindings: mmc: Convert mtk-sd to json-schema
...
Convert the mtk-sd binding to DT schema format using json-schema.
Signed-off-by: Wenbin Mei <wenbin.mei@mediatek.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20201014030846.12428-2-wenbin.mei@mediatek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-11-16 11:59:27 +01:00
Rob Herring
f84e2c5c52
dt-bindings: Another round of adding missing 'additionalProperties/unevalutatedProperties'
...
Another round of wack-a-mole. The json-schema default is additional
unknown properties are allowed, but for DT all properties should be
defined.
Signed-off-by: Rob Herring <robh@kernel.org >
2020-10-26 16:13:56 -05:00
Rob Herring
6ad8838de4
dt-bindings: More whitespace clean-ups in schema files
...
Clean-up incorrect indentation, extra spaces, and missing EOF newline in
schema files. Most of the clean-ups are for list indentation which
should always be 2 spaces more than the preceding keyword.
Found with yamllint (now integrated into the checks).
Cc: linux-arm-kernel@lists.infradead.org
Cc: dri-devel@lists.freedesktop.org
Cc: linux-gpio@vger.kernel.org
Cc: linux-i2c@vger.kernel.org
Cc: linux-iio@vger.kernel.org
Cc: linux-pm@vger.kernel.org
Cc: alsa-devel@alsa-project.org
Cc: linux-mmc@vger.kernel.org
Cc: linux-mtd@lists.infradead.org
Cc: linux-serial@vger.kernel.org
Cc: linux-usb@vger.kernel.org
Acked-by: Wolfram Sang <wsa@kernel.org > # for I2C
Acked-by: Sam Ravnborg <sam@ravnborg.org > # for display
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com > #for-iio
Signed-off-by: Rob Herring <robh@kernel.org >
2020-10-26 16:13:56 -05:00
Linus Torvalds
f888bdf982
Merge tag 'devicetree-for-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
...
Pull devicetree updates from Rob Herring:
- Update dtc to upstream version v1.6.0-31-gcbca977ea121
- dtx_diff help text reformatting
- Speed-up validation time for binding and dtb checks using json for
intermediate files
- Add support for running yamllint on DT schema files
- Remove old booting-without-of.rst
- Extend the example schema to address common issues
- Cleanup handling of additionalProperties/unevaluatedProperties
- Ensure all DSI controller schemas reference dsi-controller.yaml
- Vendor prefixes for Zealz, Wandbord/Technexion, Embest RIoT, Rex,
DFI, and Cisco Meraki
- Convert at25, SPMI bus, TI hwlock, HiSilicon Hi3660 USB3 PHY, Arm
SP805 watchdog, Arm SP804, and Samsung 11-pin USB connector to DT
schema
- Convert HiSilicon SoC and syscon bindings to DT schema
- Convert SiFive Risc-V L2 cache, PLIC, PRCI, and PWM to DT schema
- Convert i.MX bindings for w1, crypto, rng, SIM, PM, DDR, SATA, vf610
GPIO, and UART to DT schema
- Add i.MX 8M compatible strings
- Add LM81 and DS1780 as trivial devices
- Various missing properties added to fix dtb validation warnings
* tag 'devicetree-for-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (111 commits)
dt-bindings: misc: explicitly add #address-cells for slave mode
spi: dt-bindings: spi-controller: explicitly require #address-cells=<0> for slave mode
dt: Remove booting-without-of.rst
dt-bindings: update usb-c-connector example
dt-bindings: arm: hisilicon: add missing properties into cpuctrl.yaml
dt-bindings: arm: hisilicon: add missing properties into sysctrl.yaml
dt-bindings: pwm: imx: document i.MX compatibles
scripts/dtc: Update to upstream version v1.6.0-31-gcbca977ea121
dt-bindings: Add running yamllint to dt_binding_check
dt-bindings: powerpc: Add a schema for the 'sleep' property
dt-bindings: pinctrl: sirf: Fix typo abitrary
dt-bindings: pinctrl: qcom: Fix typo abitrary
dt-bindings: Explicitly allow additional properties in common schemas
dt-bindings: Use 'additionalProperties' instead of 'unevaluatedProperties'
dt-bindings: Add missing 'unevaluatedProperties'
Docs: Fixing spelling errors in Documentation/devicetree/bindings/
dt-bindings: arm: hisilicon: convert Hi6220 domain controller bindings to json-schema
dt-bindings: riscv: convert pwm bindings to json-schema
dt-bindings: riscv: convert plic bindings to json-schema
dt-bindings: fu540: prci: convert PRCI bindings to json-schema
...
2020-10-14 15:31:58 -07:00
Rob Herring
6a0e321ea7
dt-bindings: Explicitly allow additional properties in common schemas
...
In order to add meta-schema checks for additional/unevaluatedProperties
being present, all schema need to make this explicit. As common/shared
schema are included by other schemas, they should always allow for
additionalProperties.
Acked-by: Mark Brown <broonie@kernel.org >
Acked-by: Krzysztof Kozlowski <krzk@kernel.org >
Acked-by: Sebastian Reichel <sre@kernel.org >
Acked-by: Chanwoo Choi <cw00.choi@samsung.com >
Acked-By: Vinod Koul <vkoul@kernel.org >
Acked-by: Lee Jones <lee.jones@linaro.org >
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be >
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org >
Acked-by: Ulf Hansson <ulf.hansson@linaro.org >
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Acked-by: Guenter Roeck <linux@roeck-us.net >
Link: https://lore.kernel.org/r/20201005183830.486085-5-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
2020-10-07 11:30:06 -05:00
Rob Herring
6fdc6e23a7
dt-bindings: Add missing 'unevaluatedProperties'
...
This doesn't yet do anything in the tools, but make it explicit so we can
check either 'unevaluatedProperties' or 'additionalProperties' is present
in schemas.
'unevaluatedProperties' is appropriate when including another schema (via
'$ref') and all possible properties and/or child nodes are not
explicitly listed in the schema with the '$ref'.
This is in preparation to add a meta-schema to check for missing
'unevaluatedProperties' or 'additionalProperties'. This has been a
constant source of review issues.
Acked-by: Mark Brown <broonie@kernel.org >
Acked-by: Wolfram Sang <wsa@kernel.org >
Acked-by: Krzysztof Kozlowski <krzk@kernel.org >
Acked-By: Vinod Koul <vkoul@kernel.org >
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be >
Acked-by: Ulf Hansson <ulf.hansson@linaro.org >
Acked-by: Guenter Roeck <linux@roeck-us.net >
Acked-by: Mathieu Poirier <mathieu.poirier@linaro.org >
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Link: https://lore.kernel.org/r/20201005183830.486085-2-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
2020-10-07 11:26:41 -05:00
Rob Herring
5be478f9c2
dt-bindings: Another round of adding missing 'additionalProperties'
...
Another round of wack-a-mole. The json-schema default is additional
unknown properties are allowed, but for DT all properties should be
defined.
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Stephen Boyd <sboyd@kernel.org >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Bjorn Andersson <bjorn.andersson@linaro.org >
Cc: Baolin Wang <baolin.wang7@gmail.com >
Cc: Mauro Carvalho Chehab <mchehab@kernel.org >
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com >
Cc: "David S. Miller" <davem@davemloft.net >
Cc: Bjorn Helgaas <bhelgaas@google.com >
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Reviewed-by: Guenter Roeck <linux@roeck-us.net >
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Acked-By: Vinod Koul <vkoul@kernel.org >
Acked-by: Lee Jones <lee.jones@linaro.org >
Acked-by: Ulf Hansson <ulf.hansson@linaro.org >
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com > # for iio
Acked-by: Thierry Reding <treding@nvidia.com >
Acked-by: Mark Brown <broonie@kernel.org >
Reviewd-by: Corey Minyard <cminyard@mvista.com >
Acked-by: Pavel Machek <pavel@ucw.cz >
Acked-by: Sebastian Reichel <sre@kernel.org >
Link: https://lore.kernel.org/r/20201002234143.3570746-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
2020-10-06 10:55:25 -05:00
Faiz Abbas
b140954c5f
dt-bindings: mmc: sdhci-am654: Add documentation for input tap delay
...
Add documentation for input tap delay bindings.
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com >
Link: https://lore.kernel.org/r/20200923105206.7988-3-faiz_abbas@ti.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-09-28 12:31:06 +02:00
Faiz Abbas
407d0c2cdd
dt-bindings: mmc: sdhci-am654: Convert sdhci-am654 controller documentation to json schema
...
Convert sdhci-am654 documentation to yaml format. The new file
sdhci-am654.yaml will inherit from mmc-controller.yaml.
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com >
Link: https://lore.kernel.org/r/20200923105206.7988-2-faiz_abbas@ti.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-09-28 12:31:06 +02:00
Amit Singh Tomar
7931b2d56e
dt-bindings: mmc: owl: add compatible string actions,s700-mmc
...
The commit adds a new SoC specific compatible string "actions,s700-mmc"
in combination with more generic string "actions,owl-mmc".
Placement order of these strings should abide by the principle of
"from most specific to most general".
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org >
Reviewed-by: Rob Herring <robh@kernel.org >
Signed-off-by: Amit Singh Tomar <amittomer25@gmail.com >
Link: https://lore.kernel.org/r/1599801849-6071-1-git-send-email-amittomer25@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-09-24 14:20:51 +02:00
Matthias Schiffer
1796164fac
dt-bindings: mmc: document alias support
...
As for I2C and SPI, it now is possible to reserve a fixed index for
mmc/mmcblk devices.
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com >
Link: https://lore.kernel.org/r/20200901085004.2512-1-matthias.schiffer@ew.tq-group.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-09-07 09:11:32 +02:00
Krzysztof Kozlowski
9381118fcf
dt-bindings: mmc: mmc-pwreq-simple: Accept more than one reset GPIO
...
There might be multiple reset GPIOs but dtschema has trouble parsing it
if there are no maxItems:
arch/arm/boot/dts/exynos5250-snow.dt.yaml: mmc3_pwrseq: reset-gpios: [[20, 2, 1], [20, 1, 1]] is too long
From schema: Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.yaml
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org >
Link: https://lore.kernel.org/r/20200831161147.13515-2-krzk@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-09-07 09:11:32 +02:00
Krzysztof Kozlowski
80fd350b95
dt-bindings: mmc: fsl-imx-esdhc: Fix i.MX 8 compatible matching
...
The i.MX 8 DTSes use two compatibles so update the binding to fix
dtbs_check warnings like:
arch/arm64/boot/dts/freescale/imx8mn-evk.dt.yaml: mmc@30b40000:
compatible: ['fsl,imx8mn-usdhc', 'fsl,imx7d-usdhc'] is too long
From schema: Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml
arch/arm64/boot/dts/freescale/imx8mn-evk.dt.yaml: mmc@30b40000:
compatible: Additional items are not allowed ('fsl,imx7d-usdhc' was unexpected)
arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dt.yaml: mmc@30b40000:
compatible: ['fsl,imx8mn-usdhc', 'fsl,imx7d-usdhc'] is too long
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org >
Link: https://lore.kernel.org/r/20200829062505.4642-1-krzk@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-09-07 09:11:32 +02:00
Lars Povlsen
061e4fbf6a
dt-bindings: mmc: Add Sparx5 SDHCI controller bindings
...
The Sparx5 SDHCI controller is based on the Designware controller IP.
Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com >
Link: https://lore.kernel.org/r/20200825081357.32354-2-lars.povlsen@microchip.com
Link: https://lore.kernel.org/r/20200826130106.22889-1-lars.povlsen@microchip.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-09-07 09:11:29 +02:00
Lad Prabhakar
9e1adca201
dt-bindings: mmc: renesas,sdhi: Add r8a774e1 support
...
Document SDHI controller for RZ/G2H (R8A774E1) SoC, which is compatible
with R-Car Gen3 SoC family.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com >
Reviewed-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com >
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be >
Acked-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20200809192001.19156-1-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-09-07 09:11:28 +02:00
Faiz Abbas
d99654f623
dt-bindings: mmc: sdhci-am654: Document bindings for the host controllers on TI's J7200 devices
...
Add binding documentation for mmc host controllers present on
TI's J7200 SOC
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com >
Acked-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20200802070114.9624-1-faiz_abbas@ti.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-09-07 09:11:27 +02:00
Linus Torvalds
59815d6d1c
Merge tag 'mmc-v5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
...
Pull MMC fixes from Ulf Hansson:
- Fix HS400 tuning for ACPI ID AMDI0040
- Fix reset of CQHCI for Intel GLK-based controllers
- Use correct timeout clock for Tegra186/194/210
- Fix eMMC mounting on mt7622/Bpi-64
* tag 'mmc-v5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
sdhci: tegra: Add missing TMCLK for data timeout
arm64: tegra: Add missing timeout clock to Tegra194 SDMMC nodes
arm64: tegra: Add missing timeout clock to Tegra186 SDMMC nodes
arm64: tegra: Add missing timeout clock to Tegra210 SDMMC
dt-bindings: mmc: tegra: Add tmclk for Tegra210 and later
sdhci: tegra: Remove SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK for Tegra186
sdhci: tegra: Remove SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK for Tegra210
arm64: dts: mt7622: add reset node for mmc device
dt-bindings: mmc: Add missing description for clk_in/out_sd1
mmc: mediatek: add optional module reset property
mmc: dt-bindings: Add resets/reset-names for Mediatek MMC bindings
mmc: sdhci-pci: Fix SDHCI_RESET_ALL for CQHCI for Intel GLK-based controllers
mmc: sdhci-acpi: Fix HS400 tuning for AMDI0040
2020-08-31 11:22:57 -07:00
Sowjanya Komatineni
f7f86e8ac0
dt-bindings: mmc: tegra: Add tmclk for Tegra210 and later
...
commit b5a84ecf02 ("mmc: tegra: Add Tegra210 support")
Tegra210 and later uses separate SDMMC_LEGACY_TM clock for data
timeout.
So, this patch adds "tmclk" to Tegra sdhci clock property in the
device tree binding.
Fixes: b5a84ecf02 ("mmc: tegra: Add Tegra210 support")
Cc: stable <stable@vger.kernel.org > # 5.4
Reviewed-by: Jon Hunter <jonathanh@nvidia.com >
Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com >
Link: https://lore.kernel.org/r/1598548861-32373-4-git-send-email-skomatineni@nvidia.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-08-28 10:31:39 +02:00
Michal Simek
710d4d916e
dt-bindings: mmc: Add missing description for clk_in/out_sd1
...
The commit a8fdb80f4d ("arm64: zynqmp: Add ZynqMP SDHCI compatible
string") added clock-output-names for both SDHCIs before DT binding yaml
conversion. But only clk_in/out_sd0 clock names have been covered by
DT binding which ends up with dt yaml checking warnings as:
From schema: .../Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml
... mmc@ff170000: clock-output-names:0: 'clk_out_sd0' was expected
... mmc@ff170000: clock-output-names:1: 'clk_in_sd0' was expected
Fixes: 16ecd8f33c ("dt-bindings: mmc: convert arasan sdhci bindings to yaml")
Signed-off-by: Michal Simek <michal.simek@xilinx.com >
Reviewed-by: Manish Narani <manish.narani@xilinx.com >
Link: https://lore.kernel.org/r/aef586778921c93377ec2f31c86e151b6e93f6c7.1598257520.git.michal.simek@xilinx.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-08-25 11:28:07 +02:00
Wenbin Mei
6555738319
mmc: dt-bindings: Add resets/reset-names for Mediatek MMC bindings
...
Add description for resets/reset-names.
Cc: <stable@vger.kernel.org > # v5.4+
Fixes: 966580ad23 ("mmc: mediatek: add support for MT7622 SoC")
Signed-off-by: Wenbin Mei <wenbin.mei@mediatek.com >
Tested-by: Frank Wunderlich <frank-w@public-files.de >
Link: https://lore.kernel.org/r/20200814014346.6496-2-wenbin.mei@mediatek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-08-24 09:35:38 +02:00
Fabio Estevam
e65b85dd0c
dt-bindings: Use Shawn Guo's preferred e-mail for i.MX bindings
...
Use Shawn Guo's kernel.org address for the i.MX related bindings
as per the MAINTAINERS entries.
Signed-off-by: Fabio Estevam <festevam@gmail.com >
Link: https://lore.kernel.org/r/20200818111245.17047-1-festevam@gmail.com
Signed-off-by: Rob Herring <robh@kernel.org >
2020-08-18 10:31:43 -06:00
Rob Herring
f516fb704d
dt-bindings: Whitespace clean-ups in schema files
...
Clean-up incorrect indentation, extra spaces, long lines, and missing
EOF newline in schema files. Most of the clean-ups are for list
indentation which should always be 2 spaces more than the preceding
keyword.
Found with yamllint (which I plan to integrate into the checks).
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-clk@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: linux-spi@vger.kernel.org
Cc: linux-gpio@vger.kernel.org
Cc: linux-remoteproc@vger.kernel.org
Cc: linux-hwmon@vger.kernel.org
Cc: linux-i2c@vger.kernel.org
Cc: linux-fbdev@vger.kernel.org
Cc: linux-iio@vger.kernel.org
Cc: linux-input@vger.kernel.org
Cc: linux-pm@vger.kernel.org
Cc: linux-media@vger.kernel.org
Cc: alsa-devel@alsa-project.org
Cc: linux-mmc@vger.kernel.org
Cc: linux-mtd@lists.infradead.org
Cc: netdev@vger.kernel.org
Cc: linux-rtc@vger.kernel.org
Cc: linux-serial@vger.kernel.org
Cc: linux-usb@vger.kernel.org
Acked-by: Sam Ravnborg <sam@ravnborg.org >
Signed-off-by: Rob Herring <robh@kernel.org >
2020-08-14 08:55:58 -06:00
Linus Torvalds
8f7be62915
Merge tag 'mmc-v5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
...
Pull MMC updates from Ulf Hansson:
"MMC core:
- Add a new host cap bit and a corresponding DT property, to support
power cycling of the card by FW at system suspend/resume.
- Fix clock rate setting for SDIO in SDR12/SDR25 speed-mode
- Fix switch to 1/4-bit mode at system suspend/resume for SD-combo
cards
- Convert the mmc-pwrseq DT bindings to the json-schema
- Always allow the card detect uevent to be consumed by userspace
MMC host controllers:
- Convert a few DT bindings to the json-schema
- mtk-sd:
- Add support for command queue through cqhci
- Add support for the MT6779 variant
- renesas_sdhi_internal_dmac:
- Fix dma unmapping in the error path
- sdhci_am654:
- Add support for the AM65x PG2.0 variant
- Extend support for phys/clocks
- sdhci-cadence:
- Drop incorrect HW tuning for SD mode
- sdhci-msm:
- Add support for interconnect bandwidth scaling
- Enable internal voltage control
- Enable low power state for pinctrls
- sdhci-of-at91:
- Ludovic Desroches handovers maintenance to Eugen Hristev
- sdhci-pci-gli:
- Improve clock handling for GL975x
- sdhci-pci-o2micro:
- Add HW tuning for SDR104 mode
- Fix support for O2 host controller Seabird1"
* tag 'mmc-v5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: (66 commits)
mmc: mediatek: make function msdc_cqe_disable() static
MAINTAINERS: mmc: sdhci-of-at91: handover maintenance to Eugen Hristev
dt-bindings: mmc: mediatek: Add document for mt6779
mmc: mediatek: command queue support
mmc: mediatek: refine msdc timeout api
mmc: mediatek: add MT6779 MMC driver support
mmc: sdhci-pci-o2micro: Add HW tuning for SDR104 mode
mmc: sdhci-pci-o2micro: Bug fix for O2 host controller Seabird1
mmc: via-sdmmc: use generic power management
memstick: jmb38x_ms: use generic power management
mmc: sdhci-cadence: do not use hardware tuning for SD mode
mmc: sdhci-pci-gli: Set SDR104's clock to 205MHz and enable SSC for GL975x
mmc: cqhci: Fix a print format for the task descriptor
mmc: sdhci-of-arasan: fix timings allocation code
mmc: sdhci: Fix a potential uninitialized variable
dt-bindings: mmc: renesas,sdhi: convert to YAML
dt-bindings: mmc: convert arasan sdhci bindings to yaml
mmc: sdhci: Fix potential null pointer access while accessing vqmmc
mmc: core: Add MMC_CAP2_FULL_PWR_CYCLE_IN_SUSPEND
dt-bindings: mmc: Add full-pwr-cycle-in-suspend property
...
2020-08-05 13:23:24 -07:00