1. 06 Apr, 2018 2 commits
  2. 27 Mar, 2018 1 commit
  3. 21 Mar, 2018 1 commit
  4. 19 Mar, 2018 7 commits
  5. 18 Mar, 2018 1 commit
  6. 16 Mar, 2018 1 commit
  7. 14 Mar, 2018 1 commit
  8. 13 Mar, 2018 1 commit
  9. 12 Mar, 2018 1 commit
  10. 11 Mar, 2018 2 commits
  11. 08 Mar, 2018 2 commits
  12. 05 Mar, 2018 1 commit
  13. 02 Mar, 2018 3 commits
    • Martin Blumenstingl's avatar
      pinctrl: meson: meson8b: fix requesting GPIOs greater than GPIOZ_3 · 55af415b
      Martin Blumenstingl authored
      Meson8b is a cost reduced variant of the Meson8 SoC. It's package size
      is smaller than Meson8.
      Unfortunately there are a few key differences which cannot be seen
      without close inspection of the code and the public S805 datasheet:
      - the GPIOX bank is missing the GPIOX_12, GPIOX_13, GPIOX_14 and
        GPIOX_15 GPIOs
      - the GPIOY bank is missing the GPIOY_2, GPIOY_4, GPIOY_5, GPIOY_15 and
        GPIOY_16 GPIOs
      - the GPIODV bank is missing all GPIOs except GPIODV_9, GPIODV_24,
        GPIODV_25, GPIODV_26, GPIODV_27, GPIODV_28 and GPIODV_29
      - the GPIOZ bank is missing completely
      - there is a new GPIO bank called "DIF"
      
      This means that Meson8b only has 83 actual GPIO lines. Without any holes
      there would be 130 GPIO lines in total (120 are inherited from Meson8
      plus 10 new from the DIF bank).
      
      GPIOs greater GPIOZ_3 (whose ID is 83 - as a reminder: this is exactly
      the number of actual GPIO lines on Meson8b and also the value of
      meson8b_cbus_pinctrl_data.num_pins) cannot berequested. Using CARD_6
      (which used ID 100 prior to this patch, "base of the GPIO controller was
      382) as an example:
      $ echo 482 > /sys/class/gpio/export
      export_store: invalid GPIO 482
      
      This removes all non-existing pins from to dt-bindings header file
      (include/dt-bindings/gpio/meson8b-gpio.h). This allows us to have a
      consecutive numbering for the GPIO #defines (GPIOY_2 doesn't exist for
      example, so previously the GPIOY_3 ID was "GPIOY_1 + 2", after this
      patch it is "GPIOY_1 + 1"). As a nice side-effect this means that we get
      compile-time (instead of runtime) errors if Meson8b .dts uses a pin that
      only exists on Meson8.
      
      Additionally the pinctrl-meson8b driver has to be updated to handle this
      new GPIO numbering. By default a struct meson_bank only handles GPIO
      banks where the pins are numbered consecutively because it calculates
      the bit offsets based on the GPIO IDs.
      This is solved by  taking the original BANK() definition and splitting it
      into consecutive subsets (X0..11 and X16..21). The bit offsets for each
      new bank includes the skipped GPIOs (the definition of the "X0..11" bank
      is identical to the old "X" bank apart from the "last IRQ" field, the
      definition of the new, split "X16..21" bank takes the original "X" bank
      and adds 16 - the start of the new split bank - to the "first IRQ",
      pullen bit, pull bit, dir bit, out bit and in bit).
      
      Commit 984cffde ("pinctrl: Fix gpio/pin mapping for Meson8b")
      fixed the same issue by setting "ngpio" (of the gpio_chip) to 130.
      Unfortunately this broke in db80f0e1 ("pinctrl: meson: get rid of
      unneeded domain structures").
      The solution from this patch was considered to be better than the
      previous attempt at fixing this because it provides compile-time error
      checking for the GPIOs that exist on Meson8 but don't exist on Meson8b.
      
      The following pins were tested on an Odroid-C1 using the sysfs GPIO
      interface checking that their value (high or low) could be read:
      - GPIOX_0, GPIOX_1, GPIOX_2, GPIOX_3, GPIOX_4, GPIOX_5, GPIOX_6,
        GPIOX_7, GPIOX_8, GPIOX_9, GPIOX_10, GPIOX_11, GPIOX_18, GPIOX_19,
        GPIOX_20, GPIOX_21
      - GPIOY_3, GPIOY_7, GPIOY_8
      (some of these had to be pulled up because they were low by default,
      others were high by default so these had to be pulled down)
      Reported-by: 's avatarLinus Lüssing <linus.luessing@c0d3.blue>
      Suggested-by: 's avatarJerome Brunet <jbrunet@baylibre.com>
      Signed-off-by: 's avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
      Reviewed-by: 's avatarJerome Brunet <jbrunet@baylibre.com>
      Signed-off-by: 's avatarLinus Walleij <linus.walleij@linaro.org>
      55af415b
    • Sean Wang's avatar
      dt-bindings: pinctrl: mediatek: add bindings for I2C2 and SPI2 on MT7623 · 536836d3
      Sean Wang authored
      Add missing pinctrl binding about I2C2 and SPI2 which would be used in
      devicetree related files.
      Signed-off-by: 's avatarSean Wang <sean.wang@mediatek.com>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: linux-gpio@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Signed-off-by: 's avatarLinus Walleij <linus.walleij@linaro.org>
      536836d3
    • Jernej Skrabec's avatar
      clk: sunxi-ng: h3: h5: export CLK_PLL_VIDEO · 55de0f31
      Jernej Skrabec authored
      CLK_PLL_VIDEO needs to be referenced in HDMI DT entry as a possible
      PHY clock parent.
      
      Export it so it can be used later in DT.
      Signed-off-by: 's avatarJernej Skrabec <jernej.skrabec@siol.net>
      Signed-off-by: 's avatarMaxime Ripard <maxime.ripard@bootlin.com>
      55de0f31
  14. 28 Feb, 2018 2 commits
  15. 27 Feb, 2018 2 commits
  16. 26 Feb, 2018 1 commit
  17. 22 Feb, 2018 2 commits
  18. 21 Feb, 2018 1 commit
  19. 20 Feb, 2018 1 commit
  20. 19 Feb, 2018 1 commit
  21. 14 Feb, 2018 1 commit
  22. 12 Feb, 2018 1 commit
  23. 18 Jan, 2018 1 commit
  24. 22 Dec, 2017 2 commits
  25. 21 Dec, 2017 1 commit