Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1657394
| From | Masahiro Yamada <yamada.masahiro@socionext.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/4] thermal: uniphier: add UniPhier thermal driver |
| Date | 2017-06-05 10:50 +0200 |
| Message-ID | <tOVS1-Bi-5@gated-at.bofh.it> (permalink) |
| References | <tMp0e-6bg-23@gated-at.bofh.it> <tMw1J-2zI-23@gated-at.bofh.it> <tMLDr-5ux-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
2017-05-30 18:21 GMT+09:00 Kunihiko Hayashi <hayashi.kunihiko@socionext.com>:
>> > +static const struct uniphier_tm_soc_data uniphier_pxs2_tm_data = {
>> > + .map_base = 0xe000,
>> > + .block_base = 0xe000,
>> > + .tmod_setup_addr = 0xe904,
>> > +};
>> > +
>> > +static const struct uniphier_tm_soc_data uniphier_ld20_tm_data = {
>> > + .map_base = 0xe000,
>> > + .block_base = 0xe800,
>> > + .tmod_setup_addr = 0xe938,
>>
>> Shouldn't these be in your device tree using the register properties?
>> I see at least the map base as possible to be done in DT.
True for simple-bus.
However, the combination of "simple-mfd" and "syscon"
seems a well established strategy when
registers are mixed/interleaved in a syscon block.
(For example, chip-control@ea0000 node of
arch/arm/boot/dts/berlin2.dtsi)
> I think so.
> However, the iomap of this device are included in sysctrl(simple-mfd),
> and I can't find the method to express offset from base-address of sysctrl
> on DT, instead of map_base, in resonable way.
>
> I think that mfd node has register property then the lower node of mfd,
> that is the thermal node, can't have register property.
>
> If the driver gets offset address from DT, I'll define new property
> like 'socionext,reg_offset' in the thermal node. But I'm not sure that.
socionext,uniphier-{pxs2,ld20}-thermal is an SoC-specific compatible string.
The internal-offset is included
in the HW-spec associated with the compatible.
I believe 'socionext,reg_offset' is pointless.
--
Best Regards
Masahiro Yamada
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/4] add UniPhier thermal support Kunihiko Hayashi <hayashi.kunihiko@socionext.com> - 2017-05-29 11:20 +0200
[PATCH 2/4] dt-bindings: thermal: add binding documentation for UniPhier thermal monitor Kunihiko Hayashi <hayashi.kunihiko@socionext.com> - 2017-05-29 11:20 +0200
Re: [PATCH 2/4] dt-bindings: thermal: add binding documentation for UniPhier thermal monitor Rob Herring <robh@kernel.org> - 2017-06-05 19:30 +0200
Re: [PATCH 2/4] dt-bindings: thermal: add binding documentation for UniPhier thermal monitor Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-06-06 04:50 +0200
[PATCH 1/4] thermal: uniphier: add UniPhier thermal driver Kunihiko Hayashi <hayashi.kunihiko@socionext.com> - 2017-05-29 11:20 +0200
Re: [PATCH 1/4] thermal: uniphier: add UniPhier thermal driver Keerthy <j-keerthy@ti.com> - 2017-05-29 12:30 +0200
Re: [PATCH 1/4] thermal: uniphier: add UniPhier thermal driver Kunihiko Hayashi <hayashi.kunihiko@socionext.com> - 2017-05-30 04:50 +0200
Re: [PATCH 1/4] thermal: uniphier: add UniPhier thermal driver Keerthy <j-keerthy@ti.com> - 2017-05-30 05:30 +0200
Re: [PATCH 1/4] thermal: uniphier: add UniPhier thermal driver Kunihiko Hayashi <hayashi.kunihiko@socionext.com> - 2017-05-30 06:10 +0200
Re: [PATCH 1/4] thermal: uniphier: add UniPhier thermal driver Eduardo Valentin <edubezval@gmail.com> - 2017-05-29 18:50 +0200
Re: [PATCH 1/4] thermal: uniphier: add UniPhier thermal driver Kunihiko Hayashi <hayashi.kunihiko@socionext.com> - 2017-05-30 11:30 +0200
Re: [PATCH 1/4] thermal: uniphier: add UniPhier thermal driver Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-06-05 10:50 +0200
[PATCH 4/4] arm64: dts: uniphier: add nodes of thermal monitor and thermal zone for LD20 Kunihiko Hayashi <hayashi.kunihiko@socionext.com> - 2017-05-29 11:20 +0200
Re: [PATCH 4/4] arm64: dts: uniphier: add nodes of thermal monitor and thermal zone for LD20 Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-06-06 05:10 +0200
[PATCH 3/4] ARM: dts: uniphier: add nodes of thermal monitor and thermal zone for PXs2 Kunihiko Hayashi <hayashi.kunihiko@socionext.com> - 2017-05-29 11:20 +0200
Re: [PATCH 3/4] ARM: dts: uniphier: add nodes of thermal monitor and thermal zone for PXs2 Eduardo Valentin <edubezval@gmail.com> - 2017-05-29 18:40 +0200
Re: [PATCH 3/4] ARM: dts: uniphier: add nodes of thermal monitor and thermal zone for PXs2 Kunihiko Hayashi <hayashi.kunihiko@socionext.com> - 2017-05-30 11:30 +0200
csiph-web