Skip to content

Tags

Tags give the ability to mark specific points in history as being important
  • sent/mdm9615/dt-schema-fixes-v3
    arm: qcom: mdm9615: first round of bindings and DT fixes
    
    This is a first round of trivial bindings & DT fixes for the MDM9615 platform.
    
    This first round focuses on trivial changes, the remaining work will
    mainly be .txt to .yaml transition of old qcom pmic & co device bindings.
    
    To: Andy Gross <agross@kernel.org>
    To: Bjorn Andersson <bjorn.andersson@linaro.org>
    To: Konrad Dybcio <konrad.dybcio@somainline.org>
    To: Rob Herring <robh+dt@kernel.org>
    To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
    To: Lee Jones <lee@kernel.org>
    To: Satya Priya <quic_c_skakit@quicinc.com>
    To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    To: Alessandro Zummo <a.zummo@towertech.it>
    To: Alexandre Belloni <alexandre.belloni@bootlin.com>
    Cc: linux-arm-msm@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Cc: Bjorn Andersson <andersson@kernel.org>
    Cc: linux-input@vger.kernel.org
    Cc: linux-rtc@vger.kernel.org
    Dependencies: None
    Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
    Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
    ---
    Changes in v3:
    - Rebased on v6.1-rc1
    - patch 1: Added reviewed-by tag
    - patch 2: Fixes typo in commit msg and added precision about why MIT was selected
    - patch 3: Added reviewed-by tag
    - patch 4: None
    - patch 5: Drop second example node
    - patch 6: Drop Andy, fix interrupts desc and fix example indentation
    - patch 7: Fix commit msg wrap & add reviewed-by tag
    - patch 8: Reword commit msg & add reviewed-by tag
    - patch 9: Reword commit msg & add reviewed-by tag
    - patch 10: None
    - patch 11: Added reviewed-by tag
    - Link to v2: https://lore.kernel.org/r/20220928-mdm9615-dt-schema-fixes-v2-0-87fbeb4ae053@linaro.org
    
    Changes in v2:
    - patch 1: switch to move from swir.txt to qcom.yaml
    - patch 2: use MIT licence instead of X11 licence
    - patch 3: move reg after compatible
    - patch 4: added Krzysztof's review
    - patch 5: split into 5 changes:
      - document qcom,pm8921 as fallback of qcom,pm8018
      - convert qcom,pm8921-pwrkey to dt-schema
      - document qcom,pm8921-rtc as fallback of qcom,pm8018-rtc
      - drop unused PM8018 compatible
      - drop unused pm8018 RTC compatible
    - patch 6: None
    - patch 7: Reworded commit log based on Dmitry's wording on similar patches
    - Link to v1: https://lore.kernel.org/r/20220928-mdm9615-dt-schema-fixes-v1-0-b6e63a7df1e8@linaro.org
    
    ---
    Neil Armstrong (11):
          dt-bindings: arm: qcom: move swir,mangoh-green-wp8548 board documentation to qcom.yaml
          arm: dts: qcom: mdm9615*: add SPDX-License-Identifier
          arm: dts: qcom: mdm9615: add missing reg in cpu@0 node
          arm: dts: qcom: mdm9615: remove invalid spi-max-frequency gsbi3_spi node
          dt-bindings: mfd: qcom-pm8xxx: document qcom,pm8921 as fallback of qcom,pm8018
          dt-bindings: input: qcom,pm8921-pwrkey: convert to dt-schema
          dt-bindings: rtc: qcom-pm8xxx: document qcom,pm8921-rtc as fallback of qcom,pm8018-rtc
          mfd: qcom-pm8xxx: drop unused PM8018 compatible
          rtc: pm8xxx: drop unused pm8018 compatible
          arm: dts: qcom: mdm9615: remove invalid interrupt-names from pl18x mmc nodes
          arm: dts: qcom: mdm9615: remove useless amba subnode
    
     Documentation/devicetree/bindings/arm/qcom.yaml    |   6 +
     Documentation/devicetree/bindings/arm/swir.txt     |  12 --
     .../bindings/input/qcom,pm8921-pwrkey.yaml         |  75 +++++++++++++
     .../bindings/input/qcom,pm8xxx-pwrkey.txt          |  46 --------
     .../devicetree/bindings/mfd/qcom-pm8xxx.yaml       |  33 +++++-
     .../devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml   |  16 ++-
     .../boot/dts/qcom-mdm9615-wp8548-mangoh-green.dts  |  39 +------
     arch/arm/boot/dts/qcom-mdm9615-wp8548.dtsi         |  39 +------
     arch/arm/boot/dts/qcom-mdm9615.dtsi                | 121 +++++++--------------
     drivers/mfd/qcom-pm8xxx.c                          |   1 -
     drivers/rtc/rtc-pm8xxx.c                           |   1 -
     11 files changed, 159 insertions(+), 230 deletions(-)
    ---
    base-commit: 9abf2313adc1ca1b6180c508c25f22f9395cc780
    change-id: 20220928-mdm9615-dt-schema-fixes-66d4d0ccb7c7
    
    Best regards,
  • sent/mdm9615-sx1509q-yaml-v2
    dt-bindings: pinctrl: convert semtech,sx150xq bindings to dt-schema
    
    This converts the Semtech SX150Xq bindings to dt-schemas, add necessary
    bindings documentation to cover all differences between HW variants
    and current bindings usage.
    
    Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
    Reviewed-by: Rob Herring <robh@kernel.org>
    ---
    To: Rob Herring <robh+dt@kernel.org>
    To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
    Cc: linux-gpio@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    ---
    Changes in v2:
    - fixed rob comments
    - added rob's Reviewed-by
    - Link to v1: https://lore.kernel.org/r/20221005-mdm9615-sx1509q-yaml-v1-0-0c26649b637c@linaro.org
    ---
     .../devicetree/bindings/pinctrl/pinctrl-sx150x.txt |  72 -------
     .../bindings/pinctrl/semtech,sx1501q.yaml          | 208 +++++++++++++++++++++
     2 files changed, 208 insertions(+), 72 deletions(-)
    
    diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-sx150x.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-sx150x.txt
    deleted file mode 100644
    index 4023bad2fe39..000000000000
    --- a/Documentation/devicetree/bindings/pinctrl/pinctrl-sx150x.txt
    +++ /dev/null
    @@ -1,72 +0,0 @@
    -SEMTECH SX150x GPIO expander bindings
    -
    -Please refer to pinctrl-bindings.txt, ../gpio/gpio.txt, and
    -../interrupt-controller/interrupts.txt for generic information regarding
    -pin controller, GPIO, and interrupt bindings.
    -
    -Required properties:
    -- compatible: should be one of :
    -			"semtech,sx1501q",
    -			"semtech,sx1502q",
    -			"semtech,sx1503q",
    -			"semtech,sx1504q",
    -			"semtech,sx1505q",
    -			"semtech,sx1506q",
    -			"semtech,sx1507q",
    -			"semtech,sx1508q",
    -			"semtech,sx1509q".
    -
    -- reg: The I2C slave address for this device.
    -
    -- #gpio-cells: Should be 2. The first cell is the GPIO number and the
    -		second cell is used to specify optional parameters:
    -		bit 0: polarity (0: normal, 1: inverted)
    -
    -- gpio-controller: Marks the device as a GPIO controller.
    -
    -Optional properties :
    -- interrupts: Interrupt specifier for the controllers interrupt.
    -
    -- interrupt-controller: Marks the device as a interrupt controller.
    -
    -- semtech,probe-reset: Will trigger a reset of the GPIO expander on probe,
    -		only for sx1507q, sx1508q and sx1509q
    -
    -The GPIO expander can optionally be used as an interrupt controller, in
    -which case it uses the default two cell specifier.
    -
    -Required properties for pin configuration sub-nodes:
    - - pins: List of pins to which the configuration applies.
    -
    -Optional properties for pin configuration sub-nodes:
    -----------------------------------------------------
    - - bias-disable: disable any pin bias, except the OSCIO pin
    - - bias-pull-up: pull up the pin, except the OSCIO pin
    - - bias-pull-down: pull down the pin, except the OSCIO pin
    - - bias-pull-pin-default: use pin-default pull state, except the OSCIO pin
    - - drive-push-pull: drive actively high and low
    - - drive-open-drain: drive with open drain only for sx1507q, sx1508q and sx1509q and except the OSCIO pin
    - - output-low: set the pin to output mode with low level
    - - output-high: set the pin to output mode with high level
    -
    -Example:
    -
    -	i2c0gpio-expander@20{
    -		#gpio-cells = <2>;
    -		#interrupt-cells = <2>;
    -		compatible = "semtech,sx1506q";
    -		reg = <0x20>;
    -		interrupt-parent = <&gpio_1>;
    -		interrupts = <16 0>;
    -
    -		gpio-controller;
    -		interrupt-controller;
    -
    -		pinctrl-names = "default";
    -		pinctrl-0 = <&gpio1_cfg_pins>;
    -
    -		gpio1_cfg_pins: gpio1-cfg {
    -			pins = "gpio1";
    -			bias-pull-up;
    -		};
    -	};
    diff --git a/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml b/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml
    new file mode 100644
    index 000000000000..df429a396ba3
    --- /dev/null
    +++ b/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml
    @@ -0,0 +1,208 @@
    +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
    +# Copyright 2022 Linaro Ltd.
    +%YAML 1.2
    +---
    +$id: http://devicetree.org/schemas/pinctrl/semtech,sx1501q.yaml#
    +$schema: http://devicetree.org/meta-schemas/core.yaml#
    +
    +title: Semtech SX150x GPIO expander
    +
    +maintainers:
    +  - Neil Armstrong <neil.armstrong@linaro.org>
    +
    +properties:
    +  compatible:
    +    enum:
    +      - semtech,sx1501q
    +      - semtech,sx1502q
    +      - semtech,sx1503q
    +      - semtech,sx1504q
    +      - semtech,sx1505q
    +      - semtech,sx1506q
    +      - semtech,sx1507q
    +      - semtech,sx1508q
    +      - semtech,sx1509q
    +
    +  reg:
    +    maxItems: 1
    +
    +  interrupts:
    +    maxItems: 1
    +
    +  '#interrupt-cells':
    +    const: 2
    +
    +  interrupt-controller: true
    +
    +  '#gpio-cells':
    +    const: 2
    +
    +  gpio-controller: true
    +
    +  semtech,probe-reset:
    +    description: Will trigger a reset of the GPIO expander on probe
    +    type: boolean
    +
    +patternProperties:
    +  '-cfg$':
    +    type: object
    +    properties:
    +      pins: true
    +
    +      bias-disable: true
    +      bias-pull-up: true
    +      bias-pull-down: true
    +      bias-pull-pin-default: true
    +      drive-push-pull: true
    +      output-low: true
    +      output-high: true
    +      drive-open-drain: true
    +
    +    required:
    +      - pins
    +
    +    allOf:
    +      - $ref: "pincfg-node.yaml#"
    +      - $ref: "pinmux-node.yaml#"
    +      - if:
    +          properties:
    +            pins:
    +              contains:
    +                const: oscio
    +        then:
    +          properties:
    +            bias-disable: false
    +            bias-pull-up: false
    +            bias-pull-down: false
    +            bias-pull-pin-default: false
    +            drive-open-drain: false
    +
    +    additionalProperties: false
    +
    +required:
    +  - compatible
    +  - reg
    +  - '#gpio-cells'
    +  - gpio-controller
    +
    +allOf:
    +  - $ref: "pinctrl.yaml#"
    +  - if:
    +      not:
    +        properties:
    +          compatible:
    +            contains:
    +              enum:
    +                - semtech,sx1507q
    +                - semtech,sx1508q
    +                - semtech,sx1509q
    +    then:
    +      properties:
    +        semtech,probe-reset: false
    +  - if:
    +      properties:
    +        compatible:
    +          contains:
    +            enum:
    +              - semtech,sx1501q
    +              - semtech,sx1504q
    +    then:
    +      patternProperties:
    +        '-cfg$':
    +          properties:
    +            pins:
    +              items:
    +                pattern: '^gpio[0-3]$'
    +  - if:
    +      properties:
    +        compatible:
    +          contains:
    +            enum:
    +              - semtech,sx1502q
    +              - semtech,sx1505q
    +    then:
    +      patternProperties:
    +        '-cfg$':
    +          properties:
    +            pins:
    +              items:
    +                pattern: '^gpio[0-7]$'
    +  - if:
    +      properties:
    +        compatible:
    +          contains:
    +            enum:
    +              - semtech,sx1503q
    +              - semtech,sx1506q
    +    then:
    +      patternProperties:
    +        '-cfg$':
    +          properties:
    +            pins:
    +              items:
    +                pattern: '^gpio[0-15]$'
    +  - if:
    +      properties:
    +        compatible:
    +          contains:
    +            const: semtech,sx1507q
    +    then:
    +      patternProperties:
    +        '-cfg$':
    +          properties:
    +            pins:
    +              items:
    +                pattern: '^(oscio|gpio[0-3])$'
    +  - if:
    +      properties:
    +        compatible:
    +          contains:
    +            const: semtech,sx1508q
    +    then:
    +      patternProperties:
    +        '-cfg$':
    +          properties:
    +            pins:
    +              items:
    +                pattern: '^(oscio|gpio[0-7])$'
    +  - if:
    +      properties:
    +        compatible:
    +          contains:
    +            const: semtech,sx1509q
    +    then:
    +      patternProperties:
    +        '-cfg$':
    +          properties:
    +            pins:
    +              items:
    +                pattern: '^(oscio|gpio[0-15])$'
    +
    +additionalProperties: false
    +
    +examples:
    +  - |
    +    #include <dt-bindings/interrupt-controller/irq.h>
    +    i2c@1000 {
    +        reg = <0x1000 0x80>;
    +        #address-cells = <1>;
    +        #size-cells = <0>;
    +
    +        pinctrl@20 {
    +            compatible = "semtech,sx1501q";
    +            reg = <0x20>;
    +
    +            #gpio-cells = <2>;
    +            #interrupt-cells = <2>;
    +
    +            interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
    +
    +            gpio-controller;
    +            interrupt-controller;
    +
    +            gpio1-cfg {
    +                  pins = "gpio1";
    +                  bias-pull-up;
    +            };
    +        };
    +    };
    
    ---
    base-commit: 4fe89d07dcc2804c8b562f6c7896a45643d34b2f
    change-id: 20221005-mdm9615-sx1509q-yaml-7cfabf896fff
    
    Best regards,
  • sent/mdm9615-pinctrl-yaml-v1
    arm: qcom: mdm9615: second round of bindings and DT fixes
    
    This is a second round of bindings & DT fixes for the MDM9615 platform.
    
    This second round focuses on less trivial changes like pinctrl & regulators bindings,
    the remaining work will mainly be fixing the qcom,kpss-timer/qcom,msm-timer situation and
    add bindings for qcom,lcc-mdm9615, qcom,kpss-gcc & swir,mangoh-iotport-spi.
    
    Dependencies:
    - patch 1-2, 4-6: None
    - patch 3: bindings dependency on 20221005-mdm9615-sx1509q-yaml-v1-0-0c26649b637c@linaro.org
    
    To: Bjorn Andersson <andersson@kernel.org>
    To: Andy Gross <agross@kernel.org>
    To: Konrad Dybcio <konrad.dybcio@somainline.org>
    To: Linus Walleij <linus.walleij@linaro.org>
    To: Rob Herring <robh+dt@kernel.org>
    To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
    To: Lee Jones <lee@kernel.org>
    To: Liam Girdwood <lgirdwood@gmail.com>
    To: Mark Brown <broonie@kernel.org>
    Cc: linux-arm-msm@vger.kernel.org
    Cc: linux-gpio@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
    
    ---
    Neil Armstrong (6):
          dt-bindings: pinctrl: convert qcom,mdm9615-pinctrl.txt to dt-schema
          arm: dts: qcom: mdm9615: fix pinctrl subnodes
          arm: dts: qcom: mdm9615: wp8548-mangoh-green: fix sx150xq node names and probe-reset property
          dt-bindings: soc: qcom: convert non-smd RPM bindings to dt-schema
          dt-bindings: regulators: convert non-smd RPM Regulators bindings to dt-schema
          dt-bindings: soc: qcom: ipc-rpm: refer to qcom,ipc-rpm-regulator.yaml
    
     Documentation/devicetree/bindings/mfd/qcom-rpm.txt | 283 ---------------------
     .../bindings/pinctrl/qcom,mdm9615-pinctrl.txt      | 161 ------------
     .../bindings/pinctrl/qcom,mdm9615-pinctrl.yaml     | 101 ++++++++
     .../bindings/regulator/qcom,ipc-rpm-regulator.yaml | 127 +++++++++
     .../devicetree/bindings/soc/qcom/qcom,ipc-rpm.yaml |  73 ++++++
     .../boot/dts/qcom-mdm9615-wp8548-mangoh-green.dts  |  20 +-
     arch/arm/boot/dts/qcom-mdm9615-wp8548.dtsi         |  22 +-
     7 files changed, 322 insertions(+), 465 deletions(-)
    ---
    base-commit: 6b8b72b0cdd146fe66c6009d86a1784eb24ec798
    change-id: 20221005-mdm9615-pinctrl-yaml-13f5c18a4d3a
    
    Best regards,
  • sent/mdm9615-sx1509q-yaml-v1
    dt-bindings: pinctrl: convert semtech,sx150xq bindings to dt-schema
    
    This converts the Semtech SX150Xq bindings to dt-schemas, add necessary
    bindings documentation to cover all differences between HW variants
    and current bindings usage.
    
    Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
    ---
    To: Rob Herring <robh+dt@kernel.org>
    To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
    Cc: linux-gpio@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    ---
     .../devicetree/bindings/pinctrl/pinctrl-sx150x.txt |  72 -------
     .../bindings/pinctrl/semtech,sx1501q.yaml          | 207 +++++++++++++++++++++
     2 files changed, 207 insertions(+), 72 deletions(-)
    
    diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-sx150x.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-sx150x.txt
    deleted file mode 100644
    index 4023bad2fe39..000000000000
    --- a/Documentation/devicetree/bindings/pinctrl/pinctrl-sx150x.txt
    +++ /dev/null
    @@ -1,72 +0,0 @@
    -SEMTECH SX150x GPIO expander bindings
    -
    -Please refer to pinctrl-bindings.txt, ../gpio/gpio.txt, and
    -../interrupt-controller/interrupts.txt for generic information regarding
    -pin controller, GPIO, and interrupt bindings.
    -
    -Required properties:
    -- compatible: should be one of :
    -			"semtech,sx1501q",
    -			"semtech,sx1502q",
    -			"semtech,sx1503q",
    -			"semtech,sx1504q",
    -			"semtech,sx1505q",
    -			"semtech,sx1506q",
    -			"semtech,sx1507q",
    -			"semtech,sx1508q",
    -			"semtech,sx1509q".
    -
    -- reg: The I2C slave address for this device.
    -
    -- #gpio-cells: Should be 2. The first cell is the GPIO number and the
    -		second cell is used to specify optional parameters:
    -		bit 0: polarity (0: normal, 1: inverted)
    -
    -- gpio-controller: Marks the device as a GPIO controller.
    -
    -Optional properties :
    -- interrupts: Interrupt specifier for the controllers interrupt.
    -
    -- interrupt-controller: Marks the device as a interrupt controller.
    -
    -- semtech,probe-reset: Will trigger a reset of the GPIO expander on probe,
    -		only for sx1507q, sx1508q and sx1509q
    -
    -The GPIO expander can optionally be used as an interrupt controller, in
    -which case it uses the default two cell specifier.
    -
    -Required properties for pin configuration sub-nodes:
    - - pins: List of pins to which the configuration applies.
    -
    -Optional properties for pin configuration sub-nodes:
    -----------------------------------------------------
    - - bias-disable: disable any pin bias, except the OSCIO pin
    - - bias-pull-up: pull up the pin, except the OSCIO pin
    - - bias-pull-down: pull down the pin, except the OSCIO pin
    - - bias-pull-pin-default: use pin-default pull state, except the OSCIO pin
    - - drive-push-pull: drive actively high and low
    - - drive-open-drain: drive with open drain only for sx1507q, sx1508q and sx1509q and except the OSCIO pin
    - - output-low: set the pin to output mode with low level
    - - output-high: set the pin to output mode with high level
    -
    -Example:
    -
    -	i2c0gpio-expander@20{
    -		#gpio-cells = <2>;
    -		#interrupt-cells = <2>;
    -		compatible = "semtech,sx1506q";
    -		reg = <0x20>;
    -		interrupt-parent = <&gpio_1>;
    -		interrupts = <16 0>;
    -
    -		gpio-controller;
    -		interrupt-controller;
    -
    -		pinctrl-names = "default";
    -		pinctrl-0 = <&gpio1_cfg_pins>;
    -
    -		gpio1_cfg_pins: gpio1-cfg {
    -			pins = "gpio1";
    -			bias-pull-up;
    -		};
    -	};
    diff --git a/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml b/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml
    new file mode 100644
    index 000000000000..5c21f54b0e2b
    --- /dev/null
    +++ b/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml
    @@ -0,0 +1,207 @@
    +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
    +# Copyright 2022 Linaro Ltd.
    +%YAML 1.2
    +---
    +$id: http://devicetree.org/schemas/pinctrl/semtech,sx1501q.yaml#
    +$schema: http://devicetree.org/meta-schemas/core.yaml#
    +
    +title: Semtech SX150x GPIO expander
    +
    +maintainers:
    +  - Neil Armstrong <neil.armstrong@linaro.org>
    +
    +properties:
    +  compatible:
    +    enum:
    +      - semtech,sx1501q
    +      - semtech,sx1502q
    +      - semtech,sx1503q
    +      - semtech,sx1504q
    +      - semtech,sx1505q
    +      - semtech,sx1506q
    +      - semtech,sx1507q
    +      - semtech,sx1508q
    +      - semtech,sx1509q
    +
    +  reg: true
    +
    +  interrupts:
    +    maxItems: 1
    +
    +  '#interrupt-cells':
    +    const: 2
    +
    +  interrupt-controller: true
    +
    +  '#gpio-cells':
    +    const: 2
    +
    +  gpio-controller: true
    +
    +  semtech,probe-reset:
    +    description: Will trigger a reset of the GPIO expander on probe
    +    type: boolean
    +
    +patternProperties:
    +  '-cfg$':
    +    type: object
    +    properties:
    +      pins: true
    +
    +      bias-disable: true
    +      bias-pull-up: true
    +      bias-pull-down: true
    +      bias-pull-pin-default: true
    +      drive-push-pull: true
    +      output-low: true
    +      output-high: true
    +      drive-open-drain: true
    +
    +    required:
    +      - pins
    +
    +    allOf:
    +      - $ref: "pincfg-node.yaml#"
    +      - $ref: "pinmux-node.yaml#"
    +      - if:
    +          properties:
    +            pins:
    +              contains:
    +                const: "oscio"
    +        then:
    +          properties:
    +            bias-disable: false
    +            bias-pull-up: false
    +            bias-pull-down: false
    +            bias-pull-pin-default: false
    +            drive-open-drain: false
    +
    +    additionalProperties: false
    +
    +required:
    +  - compatible
    +  - reg
    +  - '#gpio-cells'
    +  - gpio-controller
    +
    +allOf:
    +  - $ref: "pinctrl.yaml#"
    +  - if:
    +      not:
    +        properties:
    +          compatible:
    +            contains:
    +              enum:
    +                - semtech,sx1507q
    +                - semtech,sx1508q
    +                - semtech,sx1509q
    +    then:
    +      properties:
    +        semtech,probe-reset: false
    +  - if:
    +      properties:
    +        compatible:
    +          contains:
    +            enum:
    +              - semtech,sx1501q
    +              - semtech,sx1504q
    +    then:
    +      patternProperties:
    +        '-cfg$':
    +          properties:
    +            pins:
    +              items:
    +                pattern: '^gpio[0-3]$'
    +  - if:
    +      properties:
    +        compatible:
    +          contains:
    +            enum:
    +              - semtech,sx1502q
    +              - semtech,sx1505q
    +    then:
    +      patternProperties:
    +        '-cfg$':
    +          properties:
    +            pins:
    +              items:
    +                pattern: '^gpio[0-7]$'
    +  - if:
    +      properties:
    +        compatible:
    +          contains:
    +            enum:
    +              - semtech,sx1503q
    +              - semtech,sx1506q
    +    then:
    +      patternProperties:
    +        '-cfg$':
    +          properties:
    +            pins:
    +              items:
    +                pattern: '^gpio[0-15]$'
    +  - if:
    +      properties:
    +        compatible:
    +          contains:
    +            const: semtech,sx1507q
    +    then:
    +      patternProperties:
    +        '-cfg$':
    +          properties:
    +            pins:
    +              items:
    +                pattern: '^(oscio|gpio[0-3])$'
    +  - if:
    +      properties:
    +        compatible:
    +          contains:
    +            const: semtech,sx1508q
    +    then:
    +      patternProperties:
    +        '-cfg$':
    +          properties:
    +            pins:
    +              items:
    +                pattern: '^(oscio|gpio[0-7])$'
    +  - if:
    +      properties:
    +        compatible:
    +          contains:
    +            const: semtech,sx1509q
    +    then:
    +      patternProperties:
    +        '-cfg$':
    +          properties:
    +            pins:
    +              items:
    +                pattern: '^(oscio|gpio[0-15])$'
    +
    +additionalProperties: false
    +
    +examples:
    +  - |
    +    #include <dt-bindings/interrupt-controller/irq.h>
    +    i2c@1000 {
    +        reg = <0x1000 0x80>;
    +        #address-cells = <1>;
    +        #size-cells = <0>;
    +
    +        pinctrl@20 {
    +            compatible = "semtech,sx1501q";
    +            reg = <0x20>;
    +
    +            #gpio-cells = <2>;
    +            #interrupt-cells = <2>;
    +
    +            interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
    +
    +            gpio-controller;
    +            interrupt-controller;
    +
    +            gpio1-cfg {
    +                  pins = "gpio1";
    +                  bias-pull-up;
    +            };
    +        };
    +    };
    
    ---
    base-commit: 4fe89d07dcc2804c8b562f6c7896a45643d34b2f
    change-id: 20221005-mdm9615-sx1509q-yaml-7cfabf896fff
    
    Best regards,
  • sent/mdm9615/dt-schema-fixes-v2
    arm: qcom: mdm9615: first round of bindings and DT fixes
    
    This is a first round of trivial bindings & DT fixes for the MDM9615 platform.
    
    This first round focuses on trivial changes, the remaining work will
    mainly be .txt to .yaml transition of old qcom pmic & co device bindings.
    
    To: Andy Gross <agross@kernel.org>
    To: Bjorn Andersson <bjorn.andersson@linaro.org>
    To: Konrad Dybcio <konrad.dybcio@somainline.org>
    To: Rob Herring <robh+dt@kernel.org>
    To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
    To: Lee Jones <lee@kernel.org>
    To: Satya Priya <quic_c_skakit@quicinc.com>
    To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    To: Alessandro Zummo <a.zummo@towertech.it>
    To: Alexandre Belloni <alexandre.belloni@bootlin.com>
    Cc: linux-arm-msm@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Cc: Bjorn Andersson <andersson@kernel.org>
    Cc: linux-input@vger.kernel.org
    Cc: linux-rtc@vger.kernel.org
    Dependencies: None
    Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
    Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
    ---
    Changes in v2:
    - patch 1: switch to move from swir.txt to qcom.yaml
    - patch 2: use MIT licence instead of X11 licence
    - patch 3: move reg after compatible
    - patch 4: added Krzysztof's review
    - patch 5: split into 5 changes:
      - document qcom,pm8921 as fallback of qcom,pm8018
      - convert qcom,pm8921-pwrkey to dt-schema
      - document qcom,pm8921-rtc as fallback of qcom,pm8018-rtc
      - drop unused PM8018 compatible
      - drop unused pm8018 RTC compatible
    - patch 6: None
    - patch 7: Reworded commit log based on Dmitry's wording on similar patches
    - Link to v1: https://lore.kernel.org/r/20220928-mdm9615-dt-schema-fixes-v1-0-b6e63a7df1e8@linaro.org
    
    ---
    Neil Armstrong (11):
          dt-bindings: arm: qcom: move swir,mangoh-green-wp8548 board documentation to qcom.yaml
          arm: dts: qcom: mdm9615*: add SPDX-License-Identifier
          arm: dts: qcom: mdm9615: add missing reg in cpu@0 node
          arm: dts: qcom: mdm9615: remove invalid spi-max-frequency gsbi3_spi node
          dt-bindings: mfd: qcom-pm8xxx: document qcom,pm8921 as fallback of qcom,pm8018
          dt-bindings: input: qcom,pm8921-pwrkey: convert to dt-schema
          dt-bindings: rtc: qcom-pm8xxx: document qcom,pm8921-rtc as fallback of qcom,pm8018-rtc
          mfd: qcom-pm8xxx: drop unused PM8018 compatible
          rtc: pm8xxx: drop unused pm8018 compatible
          arm: dts: qcom: mdm9615: remove invalid interrupt-names from pl18x mmc nodes
          arm: dts: qcom: mdm9615: remove useless amba subnode
    
     Documentation/devicetree/bindings/arm/qcom.yaml    |   6 +
     Documentation/devicetree/bindings/arm/swir.txt     |  12 --
     .../bindings/input/qcom,pm8921-pwrkey.yaml         |  77 +++++++++++++
     .../bindings/input/qcom,pm8xxx-pwrkey.txt          |  46 --------
     .../devicetree/bindings/mfd/qcom-pm8xxx.yaml       |  45 +++++++-
     .../devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml   |  16 ++-
     .../boot/dts/qcom-mdm9615-wp8548-mangoh-green.dts  |  39 +------
     arch/arm/boot/dts/qcom-mdm9615-wp8548.dtsi         |  39 +------
     arch/arm/boot/dts/qcom-mdm9615.dtsi                | 121 +++++++--------------
     drivers/mfd/qcom-pm8xxx.c                          |   1 -
     drivers/rtc/rtc-pm8xxx.c                           |   1 -
     11 files changed, 173 insertions(+), 230 deletions(-)
    ---
    base-commit: f76349cf41451c5c42a99f18a9163377e4b364ff
    change-id: 20220928-mdm9615-dt-schema-fixes-66d4d0ccb7c7
    
    Best regards,
  • sent/mdm9615/dt-schema-fixes-v1
    arm: qcom: mdm9615: first round of bindings and DT fixes
    
    This is a first round of trivial bindings & DT fixes for the MDM9615 platform.
    
    This first round focuses on trivial changes, the remaining work will
    mainly be .txt to .yaml transition of old qcom pmic & co device bindings.
    
    To: Andy Gross <agross@kernel.org>
    To: Bjorn Andersson <bjorn.andersson@linaro.org>
    To: Konrad Dybcio <konrad.dybcio@somainline.org>
    To: Rob Herring <robh+dt@kernel.org>
    To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
    Cc: linux-arm-msm@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Dependencies: None
    Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
    
    ---
    Neil Armstrong (7):
          dt-bindings: arm: qcom: document the swir,mangoh-green-wp8548 board
          arm: dts: qcom: mdm9615*: add SPDX-License-Identifier
          arm: dts: qcom: mdm9615: add missing reg in cpu@0 node
          arm: dts: qcom: mdm9615: remove invalid spi-max-frequency gsbi3_spi node
          arm: dts: qcom: mdm9615: remove invalid pmic subnodes compatibles
          arm: dts: qcom: mdm9615: remove invalid interrupt-names from pl18x mmc nodes
          arm: dts: qcom: mdm9615: remove useless amba subnode
    
     Documentation/devicetree/bindings/arm/qcom.yaml    |   6 +
     .../boot/dts/qcom-mdm9615-wp8548-mangoh-green.dts  |  39 +------
     arch/arm/boot/dts/qcom-mdm9615-wp8548.dtsi         |  39 +------
     arch/arm/boot/dts/qcom-mdm9615.dtsi                | 127 +++++++--------------
     4 files changed, 49 insertions(+), 162 deletions(-)
    ---
    base-commit: f76349cf41451c5c42a99f18a9163377e4b364ff
    change-id: 20220928-mdm9615-dt-schema-fixes-66d4d0ccb7c7
    
    Best regards,
  • mdm9615/dt-schema-fixes-v1