Message ID | 20230602142426.438375-1-biju.das.jz@bp.renesas.com (mailing list archive) |
---|---|
Headers | show |
Series | Add Renesas PMIC RAA215300 and built-in RTC support | expand |
Hello, On 02/06/2023 15:24:15+0100, Biju Das wrote: > Logs: > [ 15.447305] rtc-isl1208 3-006f: registered as rtc0 > [ 15.479493] rtc-isl1208 3-006f: setting system clock to 2023-04-27T19:31:02 UTC (1682623862) > > root@smarc-rzv2l:~# hwclock -r > 2023-04-27 19:33:05.499001+00:00 > root@smarc-rzv2l:~# hwclock -r > 2023-04-27 19:33:06.936688+00:00 > root@smarc-rzv2l:~# You should probably run rtc-test if you want to ensure it is working properly. What is the expectation, can I apply the rtc patches once they are ready or are there dependencies? > > Biju Das (11): > i2c: Enhance i2c_new_ancillary_device API > regulator: dt-bindings: Add Renesas RAA215300 PMIC bindings > regulator: Add Renesas PMIC RAA215300 driver > arm64: dts: renesas: rzg2l-smarc-som: Enable PMIC and built-in RTC > dt-bindings: rtc: isl1208: Convert to json-schema > dt-bindings: rtc: isil,isl1208: Document clock and clock-names > properties > rtc: isl1208: Drop name variable > rtc: isl1208: Make similar I2C and DT-based matching table > rtc: isl1208: Drop enum isl1208_id and split isl1208_configs[] > rtc: isl1208: Add isl1208_set_xtoscb() > rtc: isl1208: Add support for the built-in RTC on the PMIC RAA215300 > > .../bindings/regulator/renesas,raa215300.yaml | 85 ++++++++++ > .../devicetree/bindings/rtc/isil,isl1208.txt | 38 ----- > .../devicetree/bindings/rtc/isil,isl1208.yaml | 100 ++++++++++++ > .../boot/dts/renesas/rzg2l-smarc-som.dtsi | 18 +++ > drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 6 +- > drivers/i2c/i2c-core-base.c | 91 +++++++---- > drivers/media/i2c/adv748x/adv748x-core.c | 2 +- > drivers/media/i2c/adv7604.c | 3 +- > drivers/regulator/Kconfig | 7 + > drivers/regulator/Makefile | 1 + > drivers/regulator/raa215300.c | 92 +++++++++++ > drivers/rtc/rtc-isl1208.c | 150 ++++++++++++++---- > include/linux/i2c.h | 3 +- > 13 files changed, 490 insertions(+), 106 deletions(-) > create mode 100644 Documentation/devicetree/bindings/regulator/renesas,raa215300.yaml > delete mode 100644 Documentation/devicetree/bindings/rtc/isil,isl1208.txt > create mode 100644 Documentation/devicetree/bindings/rtc/isil,isl1208.yaml > create mode 100644 drivers/regulator/raa215300.c > > -- > 2.25.1 >
Hi Alexandre Belloni, Thanks for the feedback. > Subject: Re: [PATCH v6 00/11] Add Renesas PMIC RAA215300 and built-in > RTC support > > Hello, > > On 02/06/2023 15:24:15+0100, Biju Das wrote: > > Logs: > > [ 15.447305] rtc-isl1208 3-006f: registered as rtc0 > > [ 15.479493] rtc-isl1208 3-006f: setting system clock to 2023-04- > 27T19:31:02 UTC (1682623862) > > > > root@smarc-rzv2l:~# hwclock -r > > 2023-04-27 19:33:05.499001+00:00 > > root@smarc-rzv2l:~# hwclock -r > > 2023-04-27 19:33:06.936688+00:00 > > root@smarc-rzv2l:~# > > You should probably run rtc-test if you want to ensure it is working > properly. OK. > > What is the expectation, can I apply the rtc patches once they are ready > or are there dependencies? Yes please once it is ready, as there is no build dependencies. Cheers, Biju > > > > > Biju Das (11): > > i2c: Enhance i2c_new_ancillary_device API > > regulator: dt-bindings: Add Renesas RAA215300 PMIC bindings > > regulator: Add Renesas PMIC RAA215300 driver > > arm64: dts: renesas: rzg2l-smarc-som: Enable PMIC and built-in RTC > > dt-bindings: rtc: isl1208: Convert to json-schema > > dt-bindings: rtc: isil,isl1208: Document clock and clock-names > > properties > > rtc: isl1208: Drop name variable > > rtc: isl1208: Make similar I2C and DT-based matching table > > rtc: isl1208: Drop enum isl1208_id and split isl1208_configs[] > > rtc: isl1208: Add isl1208_set_xtoscb() > > rtc: isl1208: Add support for the built-in RTC on the PMIC RAA215300 > > > > .../bindings/regulator/renesas,raa215300.yaml | 85 ++++++++++ > > .../devicetree/bindings/rtc/isil,isl1208.txt | 38 ----- > > .../devicetree/bindings/rtc/isil,isl1208.yaml | 100 ++++++++++++ > > .../boot/dts/renesas/rzg2l-smarc-som.dtsi | 18 +++ > > drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 6 +- > > drivers/i2c/i2c-core-base.c | 91 +++++++---- > > drivers/media/i2c/adv748x/adv748x-core.c | 2 +- > > drivers/media/i2c/adv7604.c | 3 +- > > drivers/regulator/Kconfig | 7 + > > drivers/regulator/Makefile | 1 + > > drivers/regulator/raa215300.c | 92 +++++++++++ > > drivers/rtc/rtc-isl1208.c | 150 ++++++++++++++--- > - > > include/linux/i2c.h | 3 +- > > 13 files changed, 490 insertions(+), 106 deletions(-) create mode > > 100644 > > Documentation/devicetree/bindings/regulator/renesas,raa215300.yaml > > delete mode 100644 > > Documentation/devicetree/bindings/rtc/isil,isl1208.txt > > create mode 100644 > > Documentation/devicetree/bindings/rtc/isil,isl1208.yaml > > create mode 100644 drivers/regulator/raa215300.c > > > > -- > > 2.25.1 > > > > -- > Alexandre Belloni, co-owner and COO, Bootlin > Embedded Linux and Kernel engineering > https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbootli > n.com%2F&data=05%7C01%7Cbiju.das.jz%40bp.renesas.com%7C9d246dbc501d49a6c > 47608db65c56c20%7C53d82571da1947e49cb4625a166a4a2a%7C0%7C0%7C63821567083 > 2856847%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJB > TiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=hBni%2BGZSj221vD45CuMEd > oxS3MDoA%2FfB1ERpMlFbYuE%3D&reserved=0
On Fri, Jun 02, 2023 at 03:24:15PM +0100, Biju Das wrote: > Biju Das (11): > i2c: Enhance i2c_new_ancillary_device API I assume there's some dependency from this patch in the others but you've not copied me on it so I can't tell what the status is...
Hi Mark Brown, > Subject: Re: [PATCH v6 00/11] Add Renesas PMIC RAA215300 and built-in > RTC support > > On Fri, Jun 02, 2023 at 03:24:15PM +0100, Biju Das wrote: > > > Biju Das (11): > > i2c: Enhance i2c_new_ancillary_device API > > I assume there's some dependency from this patch in the others but > you've not copied me on it so I can't tell what the status is... I will make sure you are in copy next time. Some how missed, sorry for that The PMIC driver has build dependency on the i2c patch. The PMIC driver instantiates i2c client(RTC driver) But RTC driver does not have build dependency rather it has functional dependency for PMIC rev a0 chips as the oscillator bit is inverted please see [1], [2] and [3] [1] and [2] has build dependency Between [2] and [3], RTC has functional dependency for PMIC version 0x11 as oscillator bit is inverted [1] https://patchwork.kernel.org/project/linux-renesas-soc/patch/20230602142426.438375-2-biju.das.jz@bp.renesas.com/ [2] https://patchwork.kernel.org/project/linux-renesas-soc/patch/20230602142426.438375-4-biju.das.jz@bp.renesas.com/ [3] https://patchwork.kernel.org/project/linux-renesas-soc/patch/20230602142426.438375-12-biju.das.jz@bp.renesas.com/ Cheers, Biju