lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231109094930.635cf59a@pcn112>
Date:   Thu, 9 Nov 2023 09:49:30 +0100
From:   jrodrigues <jrodrigues@...met.com>
To:     Bruno Thomsen <bruno.thomsen@...il.com>
Cc:     Fabio Estevam <festevam@...il.com>,
        Alexander Stein <alexander.stein@...tq-group.com>,
        Rob Herring <robh+dt@...nel.org>,
        Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
        Conor Dooley <conor+dt@...nel.org>,
        Shawn Guo <shawnguo@...nel.org>,
        Sascha Hauer <s.hauer@...gutronix.de>,
        Pengutronix Kernel Team <kernel@...gutronix.de>,
        NXP Linux Team <linux-imx@....com>,
        devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1] ARM: dts: imx: tqma7: add lm75a sensor (rev. 01xxx)

On Wed, 8 Nov 2023 23:51:11 +0100
Bruno Thomsen <bruno.thomsen@...il.com> wrote:

> Den fre. 3. nov. 2023 kl. 22.07 skrev Fabio Estevam
> <festevam@...il.com>:
> >
> > [Adding Bruno and Alexander]
> >
> > On Thu, Nov 2, 2023 at 7:12 PM João Rodrigues
> > <jrodrigues@...met.com> wrote:  
> > >
> > > From: João Rodrigues <jrodrigues@...met.com>
> > >
> > > TQMa7x (revision 01xxx) uses a LM75A temperature sensor.
> > > The two sensors use different I2C addresses, so we can set both
> > > sensors simultaneously.  
> 
> Hi João,
> 
> Looks correct to me and an elegant way of adding support for rev 01xx
> boards.
> 
> Reviewed-by: Bruno Thomsen <bruno.thomsen@...il.com>
> 
> After this change the imx7d-flex-concentrator.dts needs to be updated
> as it uses TQMa7d rev 02xx boards with something like this:
> 
> /* TQMa7d 02xx */
> &se97b {
>         status = "okay";
> };
> 
> I can send a follow up patch when this change lands.
> 
> /Bruno
> 

Hi Bruno,

Thank you for the review.
Taking the status out was a request from Krzysztof in the initial version of
the patch, since the default for status is "okay". I have also tested (and
confirmed) this works as expected, with the appropriate temperature sensor
being recognised by the kernel.

Kind regards,
João

> > >
> > > Signed-off-by: João Rodrigues <jrodrigues@...met.com>
> > > ---
> > >  arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi | 9 +++++++--
> > >  1 file changed, 7 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi
> > > b/arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi index
> > > fe42b0a4683..3fc3130f9de 100644 ---
> > > a/arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi +++
> > > b/arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi @@ -128,11 +128,16 @@
> > > vgen6_reg: vldo4 { };
> > >         };
> > >
> > > -       /* NXP SE97BTP with temperature sensor + eeprom */
> > > +       /* LM75A temperature sensor, TQMa7x 01xx */
> > > +       lm75a: temperature-sensor@48 {
> > > +               compatible = "national,lm75a";
> > > +               reg = <0x48>;
> > > +       };
> > > +
> > > +       /* NXP SE97BTP with temperature sensor + eeprom, TQMa7x
> > > 02xx */ se97b: temperature-sensor-eeprom@1e {
> > >                 compatible = "nxp,se97b", "jedec,jc-42.4-temp";
> > >                 reg = <0x1e>;
> > > -               status = "okay";
> > >         };
> > >
> > >         /* ST M24C64 */
> > > --
> > > 2.25.1
> > >  

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ