From: Javier Martinez Canillas <javier@dowhile0.org> To: linux-kernel@vger.kernel.org Cc: Wolfram Sang <wsa@the-dreams.de>, Rob Herring <robh@kernel.org>, Javier Martinez Canillas <javier@dowhile0.org>, devicetree@vger.kernel.org, Joachim Eastwood <manabian@gmail.com>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Russell King <linux@armlinux.org.uk>, linux-arm-kernel@lists.infradead.org Subject: [RESEND PATCH v5 05/16] ARM: dts: lpc18xx: Add generic compatible string for I2C EEPROM Date: Thu, 15 Jun 2017 20:54:07 +0200 [thread overview] Message-ID: <20170615185418.13980-6-javier@dowhile0.org> (raw) In-Reply-To: <20170615185418.13980-1-javier@dowhile0.org> The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken into account so the driver defines only a set of compatible strings using the "atmel" vendor as a generic fallback for compatible I2C devices. So add this generic fallback to the device node compatible string to make the device to match the driver using the OF device ID table. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> --- Changes in v5: - Only replace atmel variant but keep other EEPROM vendors (Geert Uytterhoeven). Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Changes in v3: None Changes in v2: None arch/arm/boot/dts/lpc4337-ciaa.dts | 6 +++--- arch/arm/boot/dts/lpc4350-hitex-eval.dts | 2 +- arch/arm/boot/dts/lpc4357-ea4357-devkit.dts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/lpc4337-ciaa.dts b/arch/arm/boot/dts/lpc4337-ciaa.dts index 7c16d639a1b4..beddaba85393 100644 --- a/arch/arm/boot/dts/lpc4337-ciaa.dts +++ b/arch/arm/boot/dts/lpc4337-ciaa.dts @@ -174,17 +174,17 @@ clock-frequency = <400000>; eeprom@50 { - compatible = "microchip,24c512"; + compatible = "microchip,24c512", "atmel,24c512"; reg = <0x50>; }; eeprom@51 { - compatible = "microchip,24c02"; + compatible = "microchip,24c02", "atmel,24c02"; reg = <0x51>; }; eeprom@54 { - compatible = "microchip,24c512"; + compatible = "microchip,24c512", "atmel,24c512"; reg = <0x54>; }; }; diff --git a/arch/arm/boot/dts/lpc4350-hitex-eval.dts b/arch/arm/boot/dts/lpc4350-hitex-eval.dts index 874c75d44013..8b973f537d3a 100644 --- a/arch/arm/boot/dts/lpc4350-hitex-eval.dts +++ b/arch/arm/boot/dts/lpc4350-hitex-eval.dts @@ -429,7 +429,7 @@ }; eeprom@50 { - compatible = "nxp,24c02"; + compatible = "nxp,24c02", "atmel,24c02"; reg = <0x50>; }; diff --git a/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts b/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts index 9b5fad622522..02b23fa29d75 100644 --- a/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts +++ b/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts @@ -490,7 +490,7 @@ }; eeprom@57 { - compatible = "microchip,24c64"; + compatible = "microchip,24c64", "atmel,24c64"; reg = <0x57>; }; }; -- 2.9.3
WARNING: multiple messages have this Message-ID (diff)
From: javier@dowhile0.org (Javier Martinez Canillas) To: linux-arm-kernel@lists.infradead.org Subject: [RESEND PATCH v5 05/16] ARM: dts: lpc18xx: Add generic compatible string for I2C EEPROM Date: Thu, 15 Jun 2017 20:54:07 +0200 [thread overview] Message-ID: <20170615185418.13980-6-javier@dowhile0.org> (raw) In-Reply-To: <20170615185418.13980-1-javier@dowhile0.org> The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken into account so the driver defines only a set of compatible strings using the "atmel" vendor as a generic fallback for compatible I2C devices. So add this generic fallback to the device node compatible string to make the device to match the driver using the OF device ID table. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> --- Changes in v5: - Only replace atmel variant but keep other EEPROM vendors (Geert Uytterhoeven). Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Changes in v3: None Changes in v2: None arch/arm/boot/dts/lpc4337-ciaa.dts | 6 +++--- arch/arm/boot/dts/lpc4350-hitex-eval.dts | 2 +- arch/arm/boot/dts/lpc4357-ea4357-devkit.dts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/lpc4337-ciaa.dts b/arch/arm/boot/dts/lpc4337-ciaa.dts index 7c16d639a1b4..beddaba85393 100644 --- a/arch/arm/boot/dts/lpc4337-ciaa.dts +++ b/arch/arm/boot/dts/lpc4337-ciaa.dts @@ -174,17 +174,17 @@ clock-frequency = <400000>; eeprom at 50 { - compatible = "microchip,24c512"; + compatible = "microchip,24c512", "atmel,24c512"; reg = <0x50>; }; eeprom at 51 { - compatible = "microchip,24c02"; + compatible = "microchip,24c02", "atmel,24c02"; reg = <0x51>; }; eeprom at 54 { - compatible = "microchip,24c512"; + compatible = "microchip,24c512", "atmel,24c512"; reg = <0x54>; }; }; diff --git a/arch/arm/boot/dts/lpc4350-hitex-eval.dts b/arch/arm/boot/dts/lpc4350-hitex-eval.dts index 874c75d44013..8b973f537d3a 100644 --- a/arch/arm/boot/dts/lpc4350-hitex-eval.dts +++ b/arch/arm/boot/dts/lpc4350-hitex-eval.dts @@ -429,7 +429,7 @@ }; eeprom at 50 { - compatible = "nxp,24c02"; + compatible = "nxp,24c02", "atmel,24c02"; reg = <0x50>; }; diff --git a/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts b/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts index 9b5fad622522..02b23fa29d75 100644 --- a/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts +++ b/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts @@ -490,7 +490,7 @@ }; eeprom at 57 { - compatible = "microchip,24c64"; + compatible = "microchip,24c64", "atmel,24c64"; reg = <0x57>; }; }; -- 2.9.3
next prev parent reply other threads:[~2017-06-15 18:54 UTC|newest] Thread overview: 115+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-06-15 18:54 [RESEND PATCH v5 00/16] eeprom: at24: Add OF device ID table Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas 2017-06-15 18:54 ` [RESEND PATCH v5 01/16] dt-bindings: i2c: eeprom: Document vendor to be used and deprecated ones Javier Martinez Canillas 2017-06-23 18:17 ` Rob Herring 2017-06-23 18:17 ` Rob Herring 2017-08-28 16:02 ` Wolfram Sang 2017-06-15 18:54 ` [RESEND PATCH v5 02/16] eeprom: at24: Add OF device ID table Javier Martinez Canillas 2017-06-15 18:54 ` [RESEND PATCH v5 03/16] ARM: dts: efm32: Add generic compatible string for I2C EEPROM Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas 2017-08-16 14:21 ` Javier Martinez Canillas 2017-08-16 14:21 ` Javier Martinez Canillas 2017-08-16 14:21 ` Javier Martinez Canillas 2017-06-15 18:54 ` [RESEND PATCH v5 04/16] ARM: dts: keystone: " Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas [this message] 2017-06-15 18:54 ` [RESEND PATCH v5 05/16] ARM: dts: lpc18xx: " Javier Martinez Canillas 2017-06-15 18:54 ` [RESEND PATCH v5 06/16] ARM: dts: r7s72100: " Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas 2017-06-16 13:36 ` Simon Horman 2017-06-16 13:36 ` Simon Horman 2017-06-15 18:54 ` [RESEND PATCH v5 07/16] ARM: dts: koelsch: " Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas 2017-06-16 13:36 ` Simon Horman 2017-06-16 13:36 ` Simon Horman 2017-06-15 18:54 ` [RESEND PATCH v5 08/16] ARM: dts: socfpga: " Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas 2017-11-07 8:20 ` Javier Martinez Canillas 2017-11-07 8:20 ` Javier Martinez Canillas 2017-11-07 8:20 ` Javier Martinez Canillas 2017-06-15 18:54 ` [RESEND PATCH v5 09/16] ARM: dts: uniphier: " Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas 2017-06-15 18:54 ` [RESEND PATCH v5 10/16] ARM: dts: zynq: " Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas 2017-06-21 11:43 ` Michal Simek 2017-06-21 11:43 ` Michal Simek 2017-06-21 11:43 ` Michal Simek 2017-08-23 14:28 ` Javier Martinez Canillas 2017-08-23 14:28 ` Javier Martinez Canillas 2017-08-23 14:28 ` Javier Martinez Canillas 2017-08-24 13:44 ` Michal Simek 2017-08-24 13:44 ` Michal Simek 2017-09-21 9:41 ` Javier Martinez Canillas 2017-09-21 9:41 ` Javier Martinez Canillas 2017-09-21 9:41 ` Javier Martinez Canillas 2017-09-25 8:06 ` Michal Simek 2017-09-25 8:06 ` Michal Simek 2017-09-26 8:00 ` Javier Martinez Canillas 2017-09-26 8:00 ` Javier Martinez Canillas 2017-09-26 8:00 ` Javier Martinez Canillas 2017-06-15 18:54 ` [RESEND PATCH v5 11/16] arm64: zynqmp: " Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas 2017-06-15 18:54 ` Javier Martinez Canillas 2017-06-21 11:43 ` Michal Simek 2017-06-21 11:43 ` Michal Simek 2017-06-21 11:43 ` Michal Simek 2017-08-21 11:27 ` Javier Martinez Canillas 2017-08-21 11:27 ` Javier Martinez Canillas 2017-08-21 12:04 ` Michal Simek 2017-08-21 12:04 ` Michal Simek 2017-08-21 12:58 ` Javier Martinez Canillas 2017-08-21 12:58 ` Javier Martinez Canillas 2017-06-15 18:54 ` [RESEND PATCH v5 12/16] powerpc/5200: " Javier Martinez Canillas 2017-06-29 12:21 ` [RESEND, v5, " Michael Ellerman 2017-06-29 12:21 ` Michael Ellerman 2017-06-15 18:54 ` [RESEND PATCH v5 13/16] powerpc/fsl: " Javier Martinez Canillas 2017-06-29 12:21 ` [RESEND, v5, " Michael Ellerman 2017-06-29 12:21 ` Michael Ellerman 2017-06-15 18:54 ` [RESEND PATCH v5 14/16] powerpc/512x: " Javier Martinez Canillas 2017-06-29 12:21 ` [RESEND, v5, " Michael Ellerman 2017-06-29 12:21 ` Michael Ellerman 2017-06-15 18:54 ` [RESEND PATCH v5 15/16] powerpc/83xx: " Javier Martinez Canillas 2017-06-29 12:21 ` [RESEND, v5, " Michael Ellerman 2017-06-29 12:21 ` Michael Ellerman 2017-06-15 18:54 ` [RESEND PATCH v5 16/16] powerpc/44x: " Javier Martinez Canillas 2017-06-29 12:21 ` [RESEND, v5, " Michael Ellerman 2017-06-29 12:21 ` Michael Ellerman 2017-07-10 7:47 ` [RESEND PATCH v5 00/16] eeprom: at24: Add OF device ID table Javier Martinez Canillas 2017-07-10 7:47 ` Javier Martinez Canillas 2017-07-10 7:47 ` Javier Martinez Canillas 2017-07-31 15:30 ` Wolfram Sang 2017-07-31 15:30 ` Wolfram Sang 2017-07-31 15:30 ` Wolfram Sang 2017-07-31 16:17 ` Javier Martinez Canillas 2017-07-31 16:17 ` Javier Martinez Canillas 2017-07-31 16:17 ` Javier Martinez Canillas 2017-08-28 16:01 ` Wolfram Sang 2017-08-28 16:01 ` Wolfram Sang 2017-08-28 16:01 ` Wolfram Sang 2017-08-29 8:44 ` Javier Martinez Canillas 2017-08-29 8:44 ` Javier Martinez Canillas 2017-08-29 8:44 ` Javier Martinez Canillas 2017-08-29 8:48 ` Wolfram Sang 2017-08-29 8:48 ` Wolfram Sang 2017-08-29 8:48 ` Wolfram Sang 2017-08-30 16:19 ` Javier Martinez Canillas 2017-08-30 16:19 ` Javier Martinez Canillas 2017-08-30 16:19 ` Javier Martinez Canillas 2017-08-30 17:42 ` Wolfram Sang 2017-08-30 17:42 ` Wolfram Sang 2017-08-30 17:42 ` Wolfram Sang 2017-08-30 19:57 ` Javier Martinez Canillas 2017-08-30 19:57 ` Javier Martinez Canillas 2017-08-30 19:57 ` Javier Martinez Canillas 2017-08-30 20:15 ` Geert Uytterhoeven 2017-08-30 20:15 ` Geert Uytterhoeven 2017-08-30 20:15 ` Geert Uytterhoeven 2017-08-30 20:59 ` Javier Martinez Canillas 2017-08-30 20:59 ` Javier Martinez Canillas 2017-08-30 20:59 ` Javier Martinez Canillas
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20170615185418.13980-6-javier@dowhile0.org \ --to=javier@dowhile0.org \ --cc=devicetree@vger.kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux@armlinux.org.uk \ --cc=manabian@gmail.com \ --cc=mark.rutland@arm.com \ --cc=robh+dt@kernel.org \ --cc=robh@kernel.org \ --cc=wsa@the-dreams.de \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.