1. 30 May, 2020 2 commits
    • Serge Semin's avatar
      dt-bindings: i2c: Convert DW I2C slave to the DW I2C master example · 25d11e9e
      Serge Semin authored
      dtc currently doesn't support I2C_OWN_SLAVE_ADDRESS flag set in the
      i2c "reg" property. If dtc finds an i2c-slave sub-node having an address
      higher than ten-bits wide it'll print an ugly warning:
      
      Warning (i2c_bus_reg): /example-2/i2c@1120000/eeprom@64: I2C bus unit address format error, expected "40000064"
      Warning (i2c_bus_reg): /example-2/i2c@1120000/eeprom@64:reg: I2C address must be less than 10-bits, got "0x40000064"
      
      In order to silence dtc up let's replace the corresponding DT binding
      example with a normal DW I2C master mode-based one. It's done by clearing
      the I2C_OWN_SLAVE_ADDRESS bit in the reg property and converting the
      sub-node to be compatible with normal EEPROM like "atmel,24c02".
      
      Just revert this commit when dtc is fixed.
      Signed-off-by: default avatarSerge Semin <Sergey.Semin@baikalelectronics.ru>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      25d11e9e
    • Serge Semin's avatar
      dt-bindings: i2c: Convert DW I2C binding to DT schema · 3264d9e5
      Serge Semin authored
      Modern device tree bindings are supposed to be created as YAML-files
      in accordance with dt-schema. This commit replaces Synopsys DW I2C
      legacy bare text bindings with YAML file. As before the bindings file
      states that the corresponding dts node is supposed to be compatible
      either with generic DW I2C controller or with Microsemi Ocelot SoC I2C
      one, to have registers, interrupts and clocks properties. In addition
      the node may have clock-frequency, i2c-sda-hold-time-ns,
      i2c-scl-falling-time-ns and i2c-sda-falling-time-ns optional properties.
      Signed-off-by: default avatarSerge Semin <Sergey.Semin@baikalelectronics.ru>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      3264d9e5
  2. 29 May, 2020 3 commits
  3. 28 May, 2020 4 commits
  4. 27 May, 2020 2 commits
  5. 22 May, 2020 11 commits
  6. 20 May, 2020 9 commits
  7. 15 May, 2020 6 commits
  8. 13 May, 2020 3 commits