From: Javier Martinez Canillas <javier@osg.samsung.com> To: linux-kernel@vger.kernel.org Cc: Wolfram Sang <wsa@the-dreams.de>, Javier Martinez Canillas <javier@osg.samsung.com>, devicetree@vger.kernel.org, Michael Ellerman <mpe@ellerman.id.au>, Benjamin Herrenschmidt <benh@kernel.crashing.org>, Paul Mackerras <paulus@samba.org>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 20/22] powerpc/83xx: Add generic compatible string for I2C EEPROM Date: Thu, 13 Apr 2017 15:28:37 -0300 [thread overview] Message-ID: <20170413182839.25381-21-javier@osg.samsung.com> (raw) In-Reply-To: <20170413182839.25381-1-javier@osg.samsung.com> 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@osg.samsung.com> --- Changes in v2: None arch/powerpc/boot/dts/mpc8308_p1m.dts | 2 +- arch/powerpc/boot/dts/mpc8349emitx.dts | 2 +- arch/powerpc/boot/dts/mpc8377_rdb.dts | 2 +- arch/powerpc/boot/dts/mpc8377_wlan.dts | 2 +- arch/powerpc/boot/dts/mpc8378_rdb.dts | 2 +- arch/powerpc/boot/dts/mpc8379_rdb.dts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/boot/dts/mpc8308_p1m.dts b/arch/powerpc/boot/dts/mpc8308_p1m.dts index 57f86cdf9f36..f7803bec2873 100644 --- a/arch/powerpc/boot/dts/mpc8308_p1m.dts +++ b/arch/powerpc/boot/dts/mpc8308_p1m.dts @@ -123,7 +123,7 @@ interrupt-parent = <&ipic>; dfsrr; fram@50 { - compatible = "ramtron,24c64"; + compatible = "ramtron,24c64","atmel,24c64"; reg = <0x50>; }; }; diff --git a/arch/powerpc/boot/dts/mpc8349emitx.dts b/arch/powerpc/boot/dts/mpc8349emitx.dts index 90aed3ac2f69..7f759b9b9dc9 100644 --- a/arch/powerpc/boot/dts/mpc8349emitx.dts +++ b/arch/powerpc/boot/dts/mpc8349emitx.dts @@ -92,7 +92,7 @@ dfsrr; eeprom: at24@50 { - compatible = "st,24c256"; + compatible = "st,24c256","atmel,24c256"; reg = <0x50>; }; diff --git a/arch/powerpc/boot/dts/mpc8377_rdb.dts b/arch/powerpc/boot/dts/mpc8377_rdb.dts index e32613963ab0..0f8c53c69f83 100644 --- a/arch/powerpc/boot/dts/mpc8377_rdb.dts +++ b/arch/powerpc/boot/dts/mpc8377_rdb.dts @@ -150,7 +150,7 @@ }; at24@50 { - compatible = "at24,24c256"; + compatible = "at24,24c256","atmel,24c256"; reg = <0x50>; }; diff --git a/arch/powerpc/boot/dts/mpc8377_wlan.dts b/arch/powerpc/boot/dts/mpc8377_wlan.dts index c0c790168b96..1f04b4f99c8f 100644 --- a/arch/powerpc/boot/dts/mpc8377_wlan.dts +++ b/arch/powerpc/boot/dts/mpc8377_wlan.dts @@ -135,7 +135,7 @@ dfsrr; at24@50 { - compatible = "at24,24c256"; + compatible = "at24,24c256","atmel,24c256"; reg = <0x50>; }; diff --git a/arch/powerpc/boot/dts/mpc8378_rdb.dts b/arch/powerpc/boot/dts/mpc8378_rdb.dts index 71842fcd621f..0f73f239370f 100644 --- a/arch/powerpc/boot/dts/mpc8378_rdb.dts +++ b/arch/powerpc/boot/dts/mpc8378_rdb.dts @@ -150,7 +150,7 @@ }; at24@50 { - compatible = "at24,24c256"; + compatible = "at24,24c256","atmel,24c256"; reg = <0x50>; }; diff --git a/arch/powerpc/boot/dts/mpc8379_rdb.dts b/arch/powerpc/boot/dts/mpc8379_rdb.dts index e442a29b2fe0..d7ee3089a0f9 100644 --- a/arch/powerpc/boot/dts/mpc8379_rdb.dts +++ b/arch/powerpc/boot/dts/mpc8379_rdb.dts @@ -148,7 +148,7 @@ }; at24@50 { - compatible = "at24,24c256"; + compatible = "at24,24c256","atmel,24c256"; reg = <0x50>; }; -- 2.9.3
WARNING: multiple messages have this Message-ID (diff)
From: Javier Martinez Canillas <javier-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> To: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>, Javier Martinez Canillas <javier-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Michael Ellerman <mpe-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>, Benjamin Herrenschmidt <benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>, Paul Mackerras <paulus-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>, Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>, Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>, linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Subject: [PATCH v2 20/22] powerpc/83xx: Add generic compatible string for I2C EEPROM Date: Thu, 13 Apr 2017 15:28:37 -0300 [thread overview] Message-ID: <20170413182839.25381-21-javier@osg.samsung.com> (raw) In-Reply-To: <20170413182839.25381-1-javier-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.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-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> --- Changes in v2: None arch/powerpc/boot/dts/mpc8308_p1m.dts | 2 +- arch/powerpc/boot/dts/mpc8349emitx.dts | 2 +- arch/powerpc/boot/dts/mpc8377_rdb.dts | 2 +- arch/powerpc/boot/dts/mpc8377_wlan.dts | 2 +- arch/powerpc/boot/dts/mpc8378_rdb.dts | 2 +- arch/powerpc/boot/dts/mpc8379_rdb.dts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/boot/dts/mpc8308_p1m.dts b/arch/powerpc/boot/dts/mpc8308_p1m.dts index 57f86cdf9f36..f7803bec2873 100644 --- a/arch/powerpc/boot/dts/mpc8308_p1m.dts +++ b/arch/powerpc/boot/dts/mpc8308_p1m.dts @@ -123,7 +123,7 @@ interrupt-parent = <&ipic>; dfsrr; fram@50 { - compatible = "ramtron,24c64"; + compatible = "ramtron,24c64","atmel,24c64"; reg = <0x50>; }; }; diff --git a/arch/powerpc/boot/dts/mpc8349emitx.dts b/arch/powerpc/boot/dts/mpc8349emitx.dts index 90aed3ac2f69..7f759b9b9dc9 100644 --- a/arch/powerpc/boot/dts/mpc8349emitx.dts +++ b/arch/powerpc/boot/dts/mpc8349emitx.dts @@ -92,7 +92,7 @@ dfsrr; eeprom: at24@50 { - compatible = "st,24c256"; + compatible = "st,24c256","atmel,24c256"; reg = <0x50>; }; diff --git a/arch/powerpc/boot/dts/mpc8377_rdb.dts b/arch/powerpc/boot/dts/mpc8377_rdb.dts index e32613963ab0..0f8c53c69f83 100644 --- a/arch/powerpc/boot/dts/mpc8377_rdb.dts +++ b/arch/powerpc/boot/dts/mpc8377_rdb.dts @@ -150,7 +150,7 @@ }; at24@50 { - compatible = "at24,24c256"; + compatible = "at24,24c256","atmel,24c256"; reg = <0x50>; }; diff --git a/arch/powerpc/boot/dts/mpc8377_wlan.dts b/arch/powerpc/boot/dts/mpc8377_wlan.dts index c0c790168b96..1f04b4f99c8f 100644 --- a/arch/powerpc/boot/dts/mpc8377_wlan.dts +++ b/arch/powerpc/boot/dts/mpc8377_wlan.dts @@ -135,7 +135,7 @@ dfsrr; at24@50 { - compatible = "at24,24c256"; + compatible = "at24,24c256","atmel,24c256"; reg = <0x50>; }; diff --git a/arch/powerpc/boot/dts/mpc8378_rdb.dts b/arch/powerpc/boot/dts/mpc8378_rdb.dts index 71842fcd621f..0f73f239370f 100644 --- a/arch/powerpc/boot/dts/mpc8378_rdb.dts +++ b/arch/powerpc/boot/dts/mpc8378_rdb.dts @@ -150,7 +150,7 @@ }; at24@50 { - compatible = "at24,24c256"; + compatible = "at24,24c256","atmel,24c256"; reg = <0x50>; }; diff --git a/arch/powerpc/boot/dts/mpc8379_rdb.dts b/arch/powerpc/boot/dts/mpc8379_rdb.dts index e442a29b2fe0..d7ee3089a0f9 100644 --- a/arch/powerpc/boot/dts/mpc8379_rdb.dts +++ b/arch/powerpc/boot/dts/mpc8379_rdb.dts @@ -148,7 +148,7 @@ }; at24@50 { - compatible = "at24,24c256"; + compatible = "at24,24c256","atmel,24c256"; reg = <0x50>; }; -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-04-13 18:33 UTC|newest] Thread overview: 72+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-04-13 18:28 [PATCH v2 00/22] eeprom: at24: Add OF device ID table Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 01/22] dt-bindings: i2c: eeprom: Document manufacturer used as generic fallback Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 02/22] eeprom: at24: Add OF device ID table Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 03/22] ARM: dts: omap: Add generic compatible string for I2C EEPROM Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 04/22] ARM: dts: turris-omnia: " Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 05/22] ARM: dts: at91: " Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 20:43 ` Peter Rosin 2017-04-13 20:43 ` Peter Rosin 2017-04-13 20:43 ` Peter Rosin 2017-04-13 21:09 ` Javier Martinez Canillas 2017-04-13 21:09 ` Javier Martinez Canillas 2017-04-13 21:09 ` Javier Martinez Canillas 2017-04-13 21:20 ` Alexandre Belloni 2017-04-13 21:20 ` Alexandre Belloni 2017-04-13 23:46 ` Javier Martinez Canillas 2017-04-13 23:46 ` Javier Martinez Canillas 2017-04-13 23:58 ` Simon Horman 2017-04-13 23:58 ` Simon Horman 2017-04-13 23:58 ` Simon Horman 2017-04-13 18:28 ` [PATCH v2 06/22] ARM: dts: efm32: " Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 07/22] ARM: dts: imx: " Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-14 3:14 ` Shawn Guo 2017-04-14 3:14 ` Shawn Guo 2017-04-14 3:14 ` Shawn Guo 2017-04-13 18:28 ` [PATCH v2 08/22] ARM: dts: keystone: " Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 09/22] ARM: dts: lpc18xx: " Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 10/22] ARM: dts: r7s72100: " Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 19:52 ` Geert Uytterhoeven 2017-04-13 19:52 ` Geert Uytterhoeven 2017-04-13 19:52 ` Geert Uytterhoeven 2017-04-13 18:28 ` [PATCH v2 11/22] ARM: dts: koelsch: " Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 19:52 ` Geert Uytterhoeven 2017-04-13 19:52 ` Geert Uytterhoeven 2017-04-13 19:52 ` Geert Uytterhoeven 2017-04-13 18:28 ` [PATCH v2 12/22] ARM: dts: socfpga: " Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 13/22] ARM: dts: uniphier: " Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 14/22] ARM: dts: zynq: " Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 15/22] arm64: dts: ls1043a: " Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 16/22] arm64: zynqmp: " Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 17/22] powerpc/5200: " Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 18/22] powerpc/fsl: " Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 19/22] powerpc/512x: " Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas 2017-04-13 18:28 ` Javier Martinez Canillas [this message] 2017-04-13 18:28 ` [PATCH v2 20/22] powerpc/83xx: " Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 21/22] powerpc/5200: " Javier Martinez Canillas 2017-04-13 18:28 ` [PATCH v2 22/22] powerpc/44x: " 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=20170413182839.25381-21-javier@osg.samsung.com \ --to=javier@osg.samsung.com \ --cc=benh@kernel.crashing.org \ --cc=devicetree@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linuxppc-dev@lists.ozlabs.org \ --cc=mark.rutland@arm.com \ --cc=mpe@ellerman.id.au \ --cc=paulus@samba.org \ --cc=robh+dt@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.