Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1200588 > unrolled thread
| Started by | Tony Lindgren <tony@atomide.com> |
|---|---|
| First post | 2015-08-05 11:50 +0200 |
| Last post | 2015-08-06 12:00 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 1/2] regulator: pbias: use untranslated address to program pbias regulator Tony Lindgren <tony@atomide.com> - 2015-08-05 11:50 +0200
Re: [PATCH 1/2] regulator: pbias: use untranslated address to program pbias regulator Kishon Vijay Abraham I <kishon@ti.com> - 2015-08-05 17:00 +0200
Re: [PATCH 1/2] regulator: pbias: use untranslated address to program pbias regulator Tony Lindgren <tony@atomide.com> - 2015-08-06 08:30 +0200
Re: [PATCH 1/2] regulator: pbias: use untranslated address to program pbias regulator Grygorii Strashko <grygorii.strashko@ti.com> - 2015-08-06 12:00 +0200
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Date | 2015-08-05 11:50 +0200 |
| Subject | Re: [PATCH 1/2] regulator: pbias: use untranslated address to program pbias regulator |
| Message-ID | <pU3uF-5UC-5@gated-at.bofh.it> |
* Kishon Vijay Abraham I <kishon@ti.com> [150727 04:27]: > vsel_reg and enable_reg of the pbias regulator descriptor should actually > have the offset from syscon. However after the pbias device tree node > is moved as a child node of syscon, vsel_reg and enable_reg has the > absolute address because of the address translation that happens while > creating device from device tree node. > So avoid using platform_get_resource and use of_get_address in order to > get only the offset (untranslated address) and populate these in > vsel_reg and enable_reg. I think this gets fixed automatically with your other series adding the "simple-bus" to the nodes. For the children of_ioremap and friends should do the right thing, but without help from the bus things won't work right without "simple-bus". Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Kishon Vijay Abraham I <kishon@ti.com> |
|---|---|
| Date | 2015-08-05 17:00 +0200 |
| Subject | Re: [PATCH 1/2] regulator: pbias: use untranslated address to program pbias regulator |
| Message-ID | <pU8kG-4v7-23@gated-at.bofh.it> |
| In reply to | #1200588 |
Hi Tony, On Wednesday 05 August 2015 03:17 PM, Tony Lindgren wrote: > * Kishon Vijay Abraham I <kishon@ti.com> [150727 04:27]: >> vsel_reg and enable_reg of the pbias regulator descriptor should actually >> have the offset from syscon. However after the pbias device tree node >> is moved as a child node of syscon, vsel_reg and enable_reg has the >> absolute address because of the address translation that happens while >> creating device from device tree node. >> So avoid using platform_get_resource and use of_get_address in order to >> get only the offset (untranslated address) and populate these in >> vsel_reg and enable_reg. > > I think this gets fixed automatically with your other series > adding the "simple-bus" to the nodes. For the children of_ioremap Nope. The probe of pbias regulator fails as Grygorii has already pointed out here [1]. Thanks Kishon [1] -> http://www.spinics.net/lists/linux-omap/msg120462.html -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Date | 2015-08-06 08:30 +0200 |
| Message-ID | <pUmQF-E0-7@gated-at.bofh.it> |
| In reply to | #1200844 |
* Kishon Vijay Abraham I <kishon@ti.com> [150805 07:59]: > Hi Tony, > > On Wednesday 05 August 2015 03:17 PM, Tony Lindgren wrote: > > * Kishon Vijay Abraham I <kishon@ti.com> [150727 04:27]: > >> vsel_reg and enable_reg of the pbias regulator descriptor should actually > >> have the offset from syscon. However after the pbias device tree node > >> is moved as a child node of syscon, vsel_reg and enable_reg has the > >> absolute address because of the address translation that happens while > >> creating device from device tree node. > >> So avoid using platform_get_resource and use of_get_address in order to > >> get only the offset (untranslated address) and populate these in > >> vsel_reg and enable_reg. > > > > I think this gets fixed automatically with your other series > > adding the "simple-bus" to the nodes. For the children of_ioremap > > Nope. The probe of pbias regulator fails as Grygorii has already pointed out > here [1]. Oh I see, you want the offset from syscon, not the virtual address of the register. Yeah then it makes sense to me. You could also get the offset by doing res->start & 0xff or something but I don't know if that's any better. I guess ideallly we'd have some syscon function to get the offest from the syscon base if it does not exist already. Regards, Tony > [1] -> http://www.spinics.net/lists/linux-omap/msg120462.html -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Grygorii Strashko <grygorii.strashko@ti.com> |
|---|---|
| Date | 2015-08-06 12:00 +0200 |
| Subject | Re: [PATCH 1/2] regulator: pbias: use untranslated address to program pbias regulator |
| Message-ID | <pUq7T-5lT-13@gated-at.bofh.it> |
| In reply to | #1201461 |
On 08/06/2015 09:26 AM, Tony Lindgren wrote: > * Kishon Vijay Abraham I <kishon@ti.com> [150805 07:59]: >> Hi Tony, >> >> On Wednesday 05 August 2015 03:17 PM, Tony Lindgren wrote: >>> * Kishon Vijay Abraham I <kishon@ti.com> [150727 04:27]: >>>> vsel_reg and enable_reg of the pbias regulator descriptor should actually >>>> have the offset from syscon. However after the pbias device tree node >>>> is moved as a child node of syscon, vsel_reg and enable_reg has the >>>> absolute address because of the address translation that happens while >>>> creating device from device tree node. >>>> So avoid using platform_get_resource and use of_get_address in order to >>>> get only the offset (untranslated address) and populate these in >>>> vsel_reg and enable_reg. >>> >>> I think this gets fixed automatically with your other series >>> adding the "simple-bus" to the nodes. For the children of_ioremap >> >> Nope. The probe of pbias regulator fails as Grygorii has already pointed out >> here [1]. > > Oh I see, you want the offset from syscon, not the virtual address of > the register. Yeah then it makes sense to me. You could also get the > offset by doing res->start & 0xff or something but I don't know if > that's any better. I guess ideallly we'd have some syscon function > to get the offest from the syscon base if it does not exist already. Hypothetically, the "syscon" property can be used to get register offset syscon = <&scm_conf 0xe00>; and even "reg" property can be dropped if driver uses syscon/regmap only for io. But, in this particular case, such change will lead to DT compatibility issues :( -- regards, -grygorii -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web