Hi Florian,
sorry for being that late and hoping it's not too late.
The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c:
Linux 5.0-rc1 (2019-01-06 17:08:20 -0800)
are available in the git repository at:
git://github.com/anholt/linux tags/bcm2835-dt-next-2019-01-29
for you to fetch changes up to 14117e0af4a853b2b37925f526b2bfe1cfc7b285:
ARM: dts: bcm2835-rpi-zero-w: Drop unnecessary pinctrl (2019-01-22 07:25:59 +0100)
----------------------------------------------------------------
This pull request adds the necessary changes for the new BCM2835 PM driver,
support for the new Raspberry Pi 3 A+ and the missing GPIO labels for RPi 2/3.
Additionally it contains some minor DT fixes.
----------------------------------------------------------------
Eric Anholt (2):
ARM: bcm283x: Extend the WDT DT node out to cover the whole PM block. (v4)
ARM: bcm283x: Switch V3D over to using the PM driver instead of firmware.
Stefan Wahren (9):
dt-bindings: bcm: Add Raspberry Pi 3 A+
ARM: dts: add Raspberry Pi 3 A+
ARM: dts: bcm283x: Fix DTC warning for memory node
ARM: dts: bcm2835-rpi: Drop unnecessary #address-cells/#size-cells
ARM: dts: bcm2835: Fix labels for GPIO 0,1
ARM: dts: bcm2837-rpi-3-b: Use consistent label for HDMI hotplug
ARM: dts: bcm2837-rpi-3-b-plus: Clarify label for STATUS_LED
ARM: dts: bcm283x: Add missing GPIO line names
ARM: dts: bcm2835-rpi-zero-w: Drop unnecessary pinctrl
.../devicetree/bindings/arm/bcm/brcm,bcm2835.txt | 4 +
arch/arm/boot/dts/Makefile | 1 +
arch/arm/boot/dts/bcm2835-rpi-a-plus.dts | 4 +-
arch/arm/boot/dts/bcm2835-rpi-b-plus.dts | 4 +-
arch/arm/boot/dts/bcm2835-rpi-zero-w.dts | 11 +-
arch/arm/boot/dts/bcm2835-rpi-zero.dts | 4 +-
arch/arm/boot/dts/bcm2835-rpi.dtsi | 8 +-
arch/arm/boot/dts/bcm2836-rpi-2-b.dts | 68 +++++++-
arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts | 175 +++++++++++++++++++++
arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts | 74 ++++++++-
arch/arm/boot/dts/bcm2837-rpi-3-b.dts | 74 ++++++++-
arch/arm/boot/dts/bcm2837-rpi-cm3.dtsi | 2 +-
arch/arm/boot/dts/bcm283x.dtsi | 17 +-
13 files changed, 415 insertions(+), 31 deletions(-)
create mode 100644 arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
Hi Florian,
The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c:
Linux 5.0-rc1 (2019-01-06 17:08:20 -0800)
are available in the git repository at:
git://github.com/anholt/linux tags/bcm2835-drivers-next-2019-01-29
for you to fetch changes up to f494caa480f7089ff9bba16dd865e190cee7e545:
soc: bcm: Make PM driver default for BCM2835 (2019-01-24 19:19:22 +0100)
----------------------------------------------------------------
This pull request brings the new BCM2835 PM driver and a workaround to
avoid network boot failures of the Raspberry Pi 3 B+ BOOTROM.
----------------------------------------------------------------
Eric Anholt (3):
dt-bindings: soc: Add a new binding for the BCM2835 PM node. (v4)
bcm2835-pm: Move bcm2835-watchdog's DT probe to an MFD.
soc: bcm: bcm2835-pm: Add support for power domains under a new binding.
Stefan Wahren (3):
soc: bcm2835: sync firmware properties with downstream
firmware: raspberrypi: notify VC4 firmware of a reboot
soc: bcm: Make PM driver default for BCM2835
.../bindings/soc/bcm/brcm,bcm2835-pm.txt | 46 ++
arch/arm/mach-bcm/Kconfig | 1 +
drivers/firmware/raspberrypi.c | 11 +
drivers/mfd/Makefile | 1 +
drivers/mfd/bcm2835-pm.c | 92 +++
drivers/soc/bcm/Kconfig | 12 +
drivers/soc/bcm/Makefile | 1 +
drivers/soc/bcm/bcm2835-power.c | 661 +++++++++++++++++++++
drivers/watchdog/bcm2835_wdt.c | 26 +-
include/dt-bindings/soc/bcm2835-pm.h | 28 +
include/linux/mfd/bcm2835-pm.h | 14 +
include/soc/bcm2835/raspberrypi-firmware.h | 4 +
12 files changed, 880 insertions(+), 17 deletions(-)
create mode 100644 Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-pm.txt
create mode 100644 drivers/mfd/bcm2835-pm.c
create mode 100644 drivers/soc/bcm/bcm2835-power.c
create mode 100644 include/dt-bindings/soc/bcm2835-pm.h
create mode 100644 include/linux/mfd/bcm2835-pm.h
Hi Florian,
The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c:
Linux 5.0-rc1 (2019-01-06 17:08:20 -0800)
are available in the git repository at:
git://github.com/anholt/linux tags/bcm2835-dt-64-next-2019-01-29
for you to fetch changes up to 3688325a4acac981e95e25478d3703e3ab05d4c9:
arm64: dts: broadcom: Add reference to RPi 3 A+ (2019-01-09 19:24:04 +0100)
----------------------------------------------------------------
This pull request brings in the arm64 reference for Raspberry Pi 3 A+.
----------------------------------------------------------------
Stefan Wahren (1):
arm64: dts: broadcom: Add reference to RPi 3 A+
arch/arm64/boot/dts/broadcom/Makefile | 3 ++-
arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-a-plus.dts | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
create mode 100644 arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-a-plus.dts
On 1/29/19 10:53 AM, Stefan Wahren wrote:
> Hi Florian,
>
> sorry for being that late and hoping it's not too late.
>
> The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c:
>
> Linux 5.0-rc1 (2019-01-06 17:08:20 -0800)
>
> are available in the git repository at:
>
> git://github.com/anholt/linux tags/bcm2835-dt-next-2019-01-29
>
> for you to fetch changes up to 14117e0af4a853b2b37925f526b2bfe1cfc7b285:
>
> ARM: dts: bcm2835-rpi-zero-w: Drop unnecessary pinctrl (2019-01-22 07:25:59 +0100)
>
> ----------------------------------------------------------------
> This pull request adds the necessary changes for the new BCM2835 PM driver,
> support for the new Raspberry Pi 3 A+ and the missing GPIO labels for RPi 2/3.
> Additionally it contains some minor DT fixes.
>
> ----------------------------------------------------------------
Merged into devicetree/next, thanks Stefan!
--
Florian
On 1/29/19 10:53 AM, Stefan Wahren wrote:
> Hi Florian,
>
> The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c:
>
> Linux 5.0-rc1 (2019-01-06 17:08:20 -0800)
>
> are available in the git repository at:
>
> git://github.com/anholt/linux tags/bcm2835-dt-64-next-2019-01-29
>
> for you to fetch changes up to 3688325a4acac981e95e25478d3703e3ab05d4c9:
>
> arm64: dts: broadcom: Add reference to RPi 3 A+ (2019-01-09 19:24:04 +0100)
>
> ----------------------------------------------------------------
> This pull request brings in the arm64 reference for Raspberry Pi 3 A+.
>
> ----------------------------------------------------------------
Merged into devicetree-arm64/next, thanks Stefan!
--
Florian
On 1/29/19 10:53 AM, Stefan Wahren wrote:
> Hi Florian,
>
> The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c:
>
> Linux 5.0-rc1 (2019-01-06 17:08:20 -0800)
>
> are available in the git repository at:
>
> git://github.com/anholt/linux tags/bcm2835-drivers-next-2019-01-29
>
> for you to fetch changes up to f494caa480f7089ff9bba16dd865e190cee7e545:
>
> soc: bcm: Make PM driver default for BCM2835 (2019-01-24 19:19:22 +0100)
>
> ----------------------------------------------------------------
> This pull request brings the new BCM2835 PM driver and a workaround to
> avoid network boot failures of the Raspberry Pi 3 B+ BOOTROM.
>
> ----------------------------------------------------------------
Merged into drivers/next, thanks Stefan!
--
Florian
On 1/31/19 8:10 PM, Florian Fainelli wrote:
>
>
> On 1/29/19 10:53 AM, Stefan Wahren wrote:
>> Hi Florian,
>>
>> sorry for being that late and hoping it's not too late.
>>
>> The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c:
>>
>> Linux 5.0-rc1 (2019-01-06 17:08:20 -0800)
>>
>> are available in the git repository at:
>>
>> git://github.com/anholt/linux tags/bcm2835-dt-next-2019-01-29
>>
>> for you to fetch changes up to 14117e0af4a853b2b37925f526b2bfe1cfc7b285:
>>
>> ARM: dts: bcm2835-rpi-zero-w: Drop unnecessary pinctrl (2019-01-22 07:25:59 +0100)
>>
>> ----------------------------------------------------------------
>> This pull request adds the necessary changes for the new BCM2835 PM driver,
>> support for the new Raspberry Pi 3 A+ and the missing GPIO labels for RPi 2/3.
>> Additionally it contains some minor DT fixes.
>>
>> ----------------------------------------------------------------
>
> Merged into devicetree/next, thanks Stefan!
And backed out, integration failed with the following results:
[X] aiaiai build results:
Tested the patch(es) on top of the following commits:
bfeffd155283 Linux 5.0-rc1
85e1ffbd42f6 Merge tag 'kbuild-v4.21-3' of
git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
ac5eed2b4177 Merge branch 'perf-urgent-for-linus' of
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
574823bfab82 Change mincore() to count "mapped" pages rather than
"cached" pages
--------------------------------------------------------------------------------
Failed to build : 22065550c391 ARM: dts: bcm2835-rpi-zero-w: Drop
unnecessary pinctrl
Configuration: "multi_v7_defconfig, architecture arm".
In file included from arch/arm/boot/dts/bcm2835.dtsi:2:0,
from arch/arm/boot/dts/bcm2835-rpi-a.dts:3:
arch/arm/boot/dts/bcm283x.dtsi:6:10: fatal error:
dt-bindings/soc/bcm2835-pm.h: No such file or directory
#include <dt-bindings/soc/bcm2835-pm.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [arch/arm/boot/dts/bcm2835-rpi-a.dtb] Error 1
--------------------------------------------------------------------------------
Failed to build : 22065550c391 ARM: dts: bcm2835-rpi-zero-w: Drop
unnecessary pinctrl
Configuration: "bcm2835_defconfig, architecture arm".
It looks like commit "ARM: bcm283x: Switch V3D over to using the PM
driver instead of firmware." is failing here and we should also have
"soc: bcm: bcm2835-pm: Add support for power domains under a new
binding." present as a preriquisite to build this branch.
Alternatively, if you prefer to put "ARM: bcm283x: Switch V3D over to
using the PM driver instead of firmware." in your drivers pull request,
that might work too.
I have kept pull request 2 and 3 applied for now, let me know how you
want to proceed.
--
Florian
Hi Florian,
Am 01.02.19 um 06:02 schrieb Florian Fainelli:
>
> On 1/31/19 8:10 PM, Florian Fainelli wrote:
>>
>> On 1/29/19 10:53 AM, Stefan Wahren wrote:
>>> Hi Florian,
>>>
>>> sorry for being that late and hoping it's not too late.
>>>
>>> The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c:
>>>
>>> Linux 5.0-rc1 (2019-01-06 17:08:20 -0800)
>>>
>>> are available in the git repository at:
>>>
>>> git://github.com/anholt/linux tags/bcm2835-dt-next-2019-01-29
>>>
>>> for you to fetch changes up to 14117e0af4a853b2b37925f526b2bfe1cfc7b285:
>>>
>>> ARM: dts: bcm2835-rpi-zero-w: Drop unnecessary pinctrl (2019-01-22 07:25:59 +0100)
>>>
>>> ----------------------------------------------------------------
>>> This pull request adds the necessary changes for the new BCM2835 PM driver,
>>> support for the new Raspberry Pi 3 A+ and the missing GPIO labels for RPi 2/3.
>>> Additionally it contains some minor DT fixes.
>>>
>>> ----------------------------------------------------------------
>> Merged into devicetree/next, thanks Stefan!
> And backed out, integration failed with the following results:
>
> [X] aiaiai build results:
> Tested the patch(es) on top of the following commits:
> bfeffd155283 Linux 5.0-rc1
> 85e1ffbd42f6 Merge tag 'kbuild-v4.21-3' of
> git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
> ac5eed2b4177 Merge branch 'perf-urgent-for-linus' of
> git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
> 574823bfab82 Change mincore() to count "mapped" pages rather than
> "cached" pages
>
> --------------------------------------------------------------------------------
> Failed to build : 22065550c391 ARM: dts: bcm2835-rpi-zero-w: Drop
> unnecessary pinctrl
> Configuration: "multi_v7_defconfig, architecture arm".
>
>
> In file included from arch/arm/boot/dts/bcm2835.dtsi:2:0,
> from arch/arm/boot/dts/bcm2835-rpi-a.dts:3:
> arch/arm/boot/dts/bcm283x.dtsi:6:10: fatal error:
> dt-bindings/soc/bcm2835-pm.h: No such file or directory
> #include <dt-bindings/soc/bcm2835-pm.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> make[2]: *** [arch/arm/boot/dts/bcm2835-rpi-a.dtb] Error 1
>
> --------------------------------------------------------------------------------
> Failed to build : 22065550c391 ARM: dts: bcm2835-rpi-zero-w: Drop
> unnecessary pinctrl
> Configuration: "bcm2835_defconfig, architecture arm".
>
> It looks like commit "ARM: bcm283x: Switch V3D over to using the PM
> driver instead of firmware." is failing here and we should also have
> "soc: bcm: bcm2835-pm: Add support for power domains under a new
> binding." present as a preriquisite to build this branch.
>
> Alternatively, if you prefer to put "ARM: bcm283x: Switch V3D over to
> using the PM driver instead of firmware." in your drivers pull request,
> that might work too.
>
> I have kept pull request 2 and 3 applied for now, let me know how you
> want to proceed.
oh dear. I apologize for this crap. I thought that i tested this before.
Unfortunately none of your suggestions works without conflicts. All the
PM patches depend on each other. So my suggestion is to move all PM patches out of bcm2835-dt-next and apply the following on top of bcm2835-drivers-next:
ARM: bcm283x: Extend the WDT DT node out to cover the whole PM block
ARM: bcm283x: Switch V3D over to using the PM driver instead of firmware.
Would it be acceptable?
Thanks Stefan
On 1/31/19 8:10 PM, Florian Fainelli wrote:
>
>
> On 1/29/19 10:53 AM, Stefan Wahren wrote:
>> Hi Florian,
>>
>> The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c:
>>
>> Linux 5.0-rc1 (2019-01-06 17:08:20 -0800)
>>
>> are available in the git repository at:
>>
>> git://github.com/anholt/linux tags/bcm2835-dt-64-next-2019-01-29
>>
>> for you to fetch changes up to 3688325a4acac981e95e25478d3703e3ab05d4c9:
>>
>> arm64: dts: broadcom: Add reference to RPi 3 A+ (2019-01-09 19:24:04 +0100)
>>
>> ----------------------------------------------------------------
>> This pull request brings in the arm64 reference for Raspberry Pi 3 A+.
>>
>> ----------------------------------------------------------------
>
> Merged into devicetree-arm64/next, thanks Stefan!
This failed to build as well:
[X] Building with aiaiai-test-patchset -j 17 --bisectability --sparse
--smatch --cppcheck --coccinelle --checkpatch --targets "all dtbs
dtbs_install" -M "INSTALL_DTBS_PATH="$PWD/dtbs_install"" -c v5.0-rc1
/home/fainelli/dev/linux multi_v7_defconfig,arm,arm-linux-
bcm2835_defconfig,arm,arm-linux- defconfig,arm64,aarch64-linux- <
devicetree-arm64.patch
[X] aiaiai build results:
Tested the patch(es) on top of the following commits:
bfeffd155283 Linux 5.0-rc1
85e1ffbd42f6 Merge tag 'kbuild-v4.21-3' of
git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
ac5eed2b4177 Merge branch 'perf-urgent-for-linus' of
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
574823bfab82 Change mincore() to count "mapped" pages rather than
"cached" pages
--------------------------------------------------------------------------------
Successfully built configuration "multi_v7_defconfig,arm,arm-linux-", no
issues.
--------------------------------------------------------------------------------
Successfully built configuration "bcm2835_defconfig,arm,arm-linux-", no
issues.
--------------------------------------------------------------------------------
Failed to build : ed20bfd45a31 arm64: dts: broadcom: Add reference to
RPi 3 A+
Configuration: "defconfig, architecture arm64".
arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-a-plus.dts:2:10: fatal error:
arm/bcm2837-rpi-3-a-plus.dts: No such file or directory
#include "arm/bcm2837-rpi-3-a-plus.dts"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-a-plus.dtb] Error 1
--------------------------------------------------------------------------------
--
Florian