Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [GIT PULL 3/4] soc: samsung: Stuff for v4.16
From: Olof Johansson @ 2018-01-12  1:37 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <20180107113625.15488-2-krzk@kernel.org>

On Sun, Jan 07, 2018 at 12:36:22PM +0100, Krzysztof Kozlowski wrote:
> 
> The following changes since commit 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323:
> 
>   Linux 4.15-rc1 (2017-11-26 16:01:47 -0800)
> 
> are available in the git repository at:
> 
>   https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-drivers-4.16-2
> 
> for you to fetch changes up to 06512c539ff1d6d008d5e8ab9d6f5f6405972f53:
> 
>   soc: samsung: Add SPDX license identifiers (2018-01-03 18:45:15 +0100)

Merged, thanks.


-Olof

^ permalink raw reply

* [PATCH -next] IIO: ADC: fix return value check in stm32_dfsdm_adc_probe()
From: weiyongjun (A) @ 2018-01-12  1:37 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <20180111212837.minmnjkvhudstafs@mwanda>

> 
> On Thu, Jan 11, 2018 at 11:12:41AM +0000, Wei Yongjun wrote:
> > In case of error, the function devm_iio_device_alloc() returns NULL
> > pointer not ERR_PTR(). The IS_ERR() test in the return value check
> > should be replaced with NULL test.
> >
> > Fixes: e2e6771c6462 ("IIO: ADC: add STM32 DFSDM sigma delta ADC
> support")
> > Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> > ---
> >  drivers/iio/adc/stm32-dfsdm-adc.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-
> dfsdm-adc.c
> > index e628d04..5e87140 100644
> > --- a/drivers/iio/adc/stm32-dfsdm-adc.c
> > +++ b/drivers/iio/adc/stm32-dfsdm-adc.c
> > @@ -1100,9 +1100,9 @@ static int stm32_dfsdm_adc_probe(struct
> platform_device *pdev)
> >  	dev_data = (const struct stm32_dfsdm_dev_data *)of_id->data;
> >
> >  	iio = devm_iio_device_alloc(dev, sizeof(*adc));
> > -	if (IS_ERR(iio)) {
> > +	if (!iio) {
> >  		dev_err(dev, "%s: Failed to allocate IIO\n", __func__);
> > -		return PTR_ERR(iio);
> > +		return -ENOMEM;
> >  	}
> >
> >  	adc = iio_priv(iio);
>         ^^^^^^^^^^^^^^^^^^
> This one doesn't return an error pointer either.  The check causes a
> static check warning for me.  (It can't actually fail, though so maybe
> it will return an error pointer in the future?)

It seems that we can simply remove the check since 'adc' can never
be an invalid address here.

Regards,
Yongjun Wei

^ permalink raw reply

* [GIT PULL 1/4] ARM: dts: exynos: Stuff for v4.16, 2nd round
From: Olof Johansson @ 2018-01-12  1:38 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <20180107113625.15488-3-krzk@kernel.org>

On Sun, Jan 07, 2018 at 12:36:23PM +0100, Krzysztof Kozlowski wrote:
> Hi,
> 
> On top of previous pull request.
> 
> Best regards,
> Krzysztof
> 
> 
> The following changes since commit 3be1ecf291df8191f5ea395d363acc8fa029b5fd:
> 
>   ARM: dts: exynos: Use lower case hex addresses in node unit addresses (2017-12-18 18:15:51 +0100)
> 
> are available in the git repository at:
> 
>   https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-dt-4.16-2
> 
> for you to fetch changes up to 5628a8ca14149ba4226e3bdce3a04c3b688435ad:
> 
>   ARM: dts: exynos: fix RTC interrupt for exynos5410 (2018-01-07 11:15:59 +0100)
> 
> ----------------------------------------------------------------
> Samsung DTS ARM changes for 4.16, part 2
> 
> 1. Add SPDX license identifiers.
> 2. Properly fix DTC warning for PMU/RTC interrupts on Exynos5410.

Merged, thanks.


-Olof

^ permalink raw reply

* [GIT PULL 2/4] arm64: dts: exynos: Stuff for v4.16, 2nd round
From: Olof Johansson @ 2018-01-12  1:38 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <20180107113625.15488-4-krzk@kernel.org>

On Sun, Jan 07, 2018 at 12:36:24PM +0100, Krzysztof Kozlowski wrote:
> Hi,
> 
> On top of previous pull request.
> 
> Best regards,
> Krzysztof
> 
> 
> The following changes since commit 3808354701090723b53c73afaccfcafdeb8a5bfe:
> 
>   arm64: dts: exynos: Increase bus frequency for MHL chip (2017-12-04 17:51:10 +0100)
> 
> are available in the git repository at:
> 
>   https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-dt64-4.16-2
> 
> for you to fetch changes up to 45fef752126603d591754befa63d0a800492eb6c:
> 
>   arm64: dts: exynos: Add SPDX license identifiers (2018-01-03 18:16:35 +0100)
> 
> ----------------------------------------------------------------
> Samsung DTS ARM64 changes for v4.16, part 2
> 
> 1. Fix DTC warnings around unit addresses.
> 2. Add SPDX license identifiers.
> 
> ----------------------------------------------------------------
> Krzysztof Kozlowski (3):
>       arm64: dts: exynos: Use lower case hex addresses in node unit addresses
>       arm64: dts: exynos: Fix typo in MSCL clock controller unit address of Exynos5433
>       arm64: dts: exynos: Add SPDX license identifiers

Merged, thanks.


-Olof

^ permalink raw reply

* [linux-sunxi] Re: [PATCH v5 2/2] media: V3s: Add support for Allwinner CSI.
From: Yong @ 2018-01-12  1:51 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <20180111132844.mok7upqjycpx3bqm@flea.lan>

Hi Maxime,

On Thu, 11 Jan 2018 14:28:44 +0100
Maxime Ripard <maxime.ripard@free-electrons.com> wrote:

> Hi Yong,
> 
> On Thu, Jan 11, 2018 at 11:06:06AM +0800, Yong Deng wrote:
> > Allwinner V3s SoC features two CSI module. CSI0 is used for MIPI CSI-2
> > interface and CSI1 is used for parallel interface. This is not
> > documented in datasheet but by test and guess.
> > 
> > This patch implement a v4l2 framework driver for it.
> > 
> > Currently, the driver only support the parallel interface. MIPI-CSI2,
> > ISP's support are not included in this patch.
> > 
> > Signed-off-by: Yong Deng <yong.deng@magewell.com>
> 
> I've needed this patch in order to fix a NULL pointer dereference:
> http://code.bulix.org/oz6gmb-257359?raw
> 
> This is needed because while it's ok to have a NULL pointer to
> v4l2_subdev_pad_config when you call the subdev set_fmt with
> V4L2_SUBDEV_FORMAT_ACTIVE, it's not with V4L2_SUBDEV_FORMAT_TRY, and
> sensors will assume taht it's a valid pointer.
> 
> Otherwise,
> Tested-by: Maxime Ripard <maxime.ripard@free-electrons.com>

I revisit some code of subdevs and you are right.

Squash your patch into my driver patch and add your Tested-by in
commit. Is it right?

> 
> -- 
> Maxime Ripard, Free Electrons
> Embedded Linux and Kernel engineering
> http://free-electrons.com
> 
> -- 
> You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


Thanks,
Yong

^ permalink raw reply

* [GIT PULL 4/4] ARM: exynos/samsung: Stuff for v4.16
From: Olof Johansson @ 2018-01-12  1:52 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <20180107113625.15488-5-krzk@kernel.org>

On Sun, Jan 07, 2018 at 12:36:25PM +0100, Krzysztof Kozlowski wrote:
> 
> The following changes since commit 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323:
> 
>   Linux 4.15-rc1 (2017-11-26 16:01:47 -0800)
> 
> are available in the git repository at:
> 
>   https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-soc-4.16-2
> 
> for you to fetch changes up to 4490e3c688d9e409a98189a6ea08bc2823d452e2:
> 
>   ARM: SAMSUNG: Add SPDX license identifiers (2018-01-03 18:43:13 +0100)
> 
> ----------------------------------------------------------------
> Samsung mach/soc changes for v4.16
> 
> Add SPDX license identifiers.
> 
> ----------------------------------------------------------------
> Krzysztof Kozlowski (5):
>       ARM: EXYNOS: Add SPDX license identifiers
>       ARM: S3C24XX: Add SPDX license identifiers
>       ARM: S3C64XX: Add SPDX license identifiers
>       ARM: S5PV210: Add SPDX license identifiers
>       ARM: SAMSUNG: Add SPDX license identifiers

Merged, thanks.


-Olof

^ permalink raw reply

* [PATCH] arm64: dts: socfpga: add missing interrupt-parent
From: Olof Johansson @ 2018-01-12  1:56 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <e3a44268-88f2-3dbd-a992-f9484a82d826@kernel.org>

On Thu, Jan 11, 2018 at 08:35:58AM -0600, Dinh Nguyen wrote:
> 
> 
> On 01/10/2018 03:04 PM, Arnd Bergmann wrote:
> > The PMU node has no working interrupt, as shown by this dtc warning:
> > 
> > arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dtb: Warning (interrupts_property): Missing interrupt-parent for /pmu
> > 
> > This adds an interrupt-parent property so we can correct parse
> > that interrupt number.
> > 
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> > ---
> > If this looks ok, I'd apply it directly to the fixes branch
> > for 4.15, as the warning is one that was introduced in this
> > release.
> 
> Acked-by: Dinh Nguyen <dinguyen@kernel.org>
> 
> Yes, please feel free to apply it. And thanks alot!

Applied.


-Olof

^ permalink raw reply

* [PATCH] arm64: dts: add #cooling-cells to CPU nodes
From: Olof Johansson @ 2018-01-12  2:00 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <1515631110.19513.5.camel@mhfsdcap03>

On Thu, Jan 11, 2018 at 08:38:30AM +0800, Chunfeng Yun wrote:
> On Wed, 2018-01-10 at 22:06 +0100, Arnd Bergmann wrote:
> > dtc complains about the lack of #coolin-cells properties for the
> > CPU nodes that are referred to as "cooling-device":
> > 
> > arch/arm64/boot/dts/mediatek/mt8173-evb.dtb: Warning (cooling_device_property): Missing property '#cooling-cells' in node /cpus/cpu at 0 or bad phandle (referred from /thermal-zones/cpu_thermal/cooling-maps/map at 0:cooling-device[0])
> > arch/arm64/boot/dts/mediatek/mt8173-evb.dtb: Warning (cooling_device_property): Missing property '#cooling-cells' in node /cpus/cpu at 100 or bad phandle (referred from /thermal-zones/cpu_thermal/cooling-maps/map at 1:cooling-device[0])
> > 
> > Apparently this property must be '<2>' to match the binding.
> > 
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> > ---
> > If this looks ok, I'd apply it directly to the fixes branch
> > for 4.15, as the warning is one that was introduced in this
> > release.

Actually, it's in next/dt (or at least this patch doesn't apply as it is to
fixes), so I've added it there.


-Olof

^ permalink raw reply

* [GIT PULL] updates to soc/fsl drivers for v4.16
From: Olof Johansson @ 2018-01-12  2:02 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <1515628596-4715-1-git-send-email-leoyang.li@nxp.com>

On Wed, Jan 10, 2018 at 05:56:36PM -0600, Li Yang wrote:
> Hi arm-soc maintainer,
> 
> Please merge the following tag to get updates to the soc/fsl/guts driver
> for support of additional SoCs and more error path handling.
> 
> Thanks,
> Leo
> 
> 
> The following changes since commit b2cd1df66037e7c4697c7e40496bf7e4a5e16a2d:
> 
>   Linux 4.15-rc7 (2018-01-07 14:22:41 -0800)
> 
> are available in the git repository at:
> 
>   git://git.kernel.org/pub/scm/linux/kernel/git/leo/linux.git tags/soc-fsl-for-4.16
> 
> for you to fetch changes up to 00ce0a2304014c73c2b7915215c7b3c73e2a25aa:
> 
>   soc: fsl: guts: Add a NULL check for devm_kasprintf() (2018-01-10 16:54:26 -0600)

1) This is based on much too new a release
2) the fact that it's based on this new a release makes me suspect it hasn't
   been sitting in linux-next either, at least not since before -rc7.


Conclusion: Please resend post merge window and we'll queue it up for the
next release. If the bugfix should go in sooner than that, I can cherry-pick
that into our fixes. Let me know.


-Olof

^ permalink raw reply

* [GIT PULL] tee dynamic shm fixes for v4.16
From: Olof Johansson @ 2018-01-12  2:05 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <20180111124456.2fziqy4sdxq5wdlz@jax>

On Thu, Jan 11, 2018 at 01:44:56PM +0100, Jens Wiklander wrote:
> Hello arm-soc maintainers,
> 
> Please pull these fixes for the previous tee-drv-dynamic-shm-for-v4.16
> pull request that is currently kept in the drivers/tee-2 branch in the
> arm-soc git.
> 
> This pull request addresses the question about registering memory that
> isn't regular memory. I posted those patches some time ago with no feedback
> so far.
> 
> There's also three small fixes to the dynamic shm patches that I've
> picked up from the mailing lists.
> 
> Thanks,
> Jens
> 
> 
> The following changes since commit ef8e08d24ca84846ce639b835ebd2f15a943f42b:
> 
>   tee: shm: inline tee_shm_get_id() (2017-12-15 13:36:21 +0100)
> 
> are available in the git repository at:
> 
>   https://git.linaro.org/people/jens.wiklander/linux-tee.git tee-drv-dynamic-shm+fixes-for-v4.16
> 
> for you to fetch changes up to 2490cdf6435b1d3cac0dbf710cd752487c67c296:
> 
>   tee: shm: Potential NULL dereference calling tee_shm_register() (2018-01-09 14:34:00 +0100)
> 
> ----------------------------------------------------------------
> This pull request updates the previous tee-drv-dynamic-shm-for-v4.16 pull
> request with five new patches fixing review comments and errors.
> 
> Apart from three small fixes there's two larger patches that in the end
> checks that memory to be registered really is normal cached memory.

Merged into next/drivers. I noticed git.linaro.org is really slow though,
maybe you should look into getting a kernel.org account instead? It took about
a minute for the pull request to complete.


-Olof

^ permalink raw reply

* [PATCH 1/3] arm: spear600: Add missing interrupt-parent of rtc
From: Olof Johansson @ 2018-01-12  2:07 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <a062d9ed0d3365b578156a780202fa533e725374.1515650104.git.viresh.kumar@linaro.org>

On Thu, Jan 11, 2018 at 11:28:51AM +0530, Viresh Kumar wrote:
> The interrupt-parent of rtc was missing, add it.
> 
> Fixes: 8113ba917dfa ("ARM: SPEAr: DT: Update device nodes")
> Cc: stable at vger.kernel.org # v3.8+
> Reported-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

Applied to next/dt. Is stable really needed on this? It's been broken since
pretty much forever, and nobody has complained... :)


-Olof

^ permalink raw reply

* [PATCH 2/3] arm: spear13xx: Fix dmas cells
From: Olof Johansson @ 2018-01-12  2:07 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <6183c13fd3abcb2a6834a537a4809b6527204f10.1515650104.git.viresh.kumar@linaro.org>

On Thu, Jan 11, 2018 at 11:28:52AM +0530, Viresh Kumar wrote:
> The "dmas" cells for the designware DMA controller need to have only 3
> properties apart from the phandle: request line, src master and
> destination master. But the commit 6e8887f60f60 updated it incorrectly
> while moving from platform code to DT. Fix it.
> 
> Cc: stable at vger.kernel.org # v3.10+
> Fixes: 6e8887f60f60 ("ARM: SPEAr13xx: Pass generic DW DMAC platform data from DT")
> Reported-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

Applied to next/dt.


-Olof

^ permalink raw reply

* [PATCH 3/3] arm: spear13xx: Fix spics gpio controller's warning
From: Olof Johansson @ 2018-01-12  2:07 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <9d8521e3990be6789f1ed3d5757b57c65483117b.1515650104.git.viresh.kumar@linaro.org>

On Thu, Jan 11, 2018 at 11:28:53AM +0530, Viresh Kumar wrote:
> This fixes the following warning by also sending the flags argument for
> gpio controllers:
> 
> Property 'cs-gpios', cell 6 is not a phandle reference in
> /ahb/apb/spi at e0100000
> 
> Fixes: 8113ba917dfa ("ARM: SPEAr: DT: Update device nodes")
> Cc: stable at vger.kernel.org # v3.8+
> Reported-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> ---


Applied to next/dt.


-Olof

^ permalink raw reply

* [PATCH 2/3] ARM: tegra: paz00: drop nonstandard 'backlight-boot-off'
From: Brian Norris @ 2018-01-12  2:18 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <27065017.X8cFkIFnZg@fb07-iapwap2>

On Wed, Jan 10, 2018 at 12:31:31PM +0100, Marc Dietrich wrote:
> Hi,
> 
> Am Samstag, 6. Januar 2018, 01:47:56 CET schrieb Brian Norris:
> > This was used out-of-tree as a hack for resolving issues where some
> > systems expect the backlight to turn on automatically at boot, while
> > others expect to manage the backlight status via a DRM/panel driver.
> > Those issues have since been fixed upstream in pwm_bl.c without device
> > tree hacks, and so this un-documented property should no longer be
> > useful.
> > 
> > Signed-off-by: Brian Norris <briannorris@chromium.org>
> 
> seems to work again. Thanks!

BTW, I guess I could have put this in the commit message, but the
problem that this out-of-tree property was trying to resolve was fixed
by this (and some other related patches):

d1b812945750 backlight: pwm_bl: Check the PWM state for initial backlight power state

Brian

> Reviewed-by: Marc Dietrich <marvin24@gmx.de>
> 
> > ---
> >  arch/arm/boot/dts/tegra20-paz00.dts | 2 --
> >  1 file changed, 2 deletions(-)
> > 
> > diff --git a/arch/arm/boot/dts/tegra20-paz00.dts
> > b/arch/arm/boot/dts/tegra20-paz00.dts index 30436969adc0..12c63b23ed5e
> > 100644
> > --- a/arch/arm/boot/dts/tegra20-paz00.dts
> > +++ b/arch/arm/boot/dts/tegra20-paz00.dts
> > @@ -504,8 +504,6 @@
> > 
> >  		brightness-levels = <0 16 32 48 64 80 96 112 128 144 160 176 192 208 224
> > 240 255>; default-brightness-level = <10>;
> > -
> > -		backlight-boot-off;
> >  	};
> > 
> >  	clocks {
> 

^ permalink raw reply

* [PATCH 0/2] Add reboot modes for LEGO MINDSTORMS EV3
From: David Lechner @ 2018-01-12  2:21 UTC (permalink / raw)
  To: linux-arm-kernel

This series adds a new device tree node to declare a special memory
address that is used by the I2C bootloader on LEGO MINDSTORMS EV3
to boot into a special firmware update mode and enables the required
module to use it.

David Lechner (2):
  ARM: dts: da850-lego-ev3: Add node for reboot modes
  ARM: davinci_all_defconfig: enable SYSCON_REBOOT_MODE

 arch/arm/boot/dts/da850-lego-ev3.dts   | 17 +++++++++++++++++
 arch/arm/configs/davinci_all_defconfig |  1 +
 2 files changed, 18 insertions(+)

-- 
2.7.4

^ permalink raw reply

* [PATCH 1/2] ARM: dts: da850-lego-ev3: Add node for reboot modes
From: David Lechner @ 2018-01-12  2:21 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <1515723685-19286-1-git-send-email-david@lechnology.com>

This adds a new node for reboot modes on LEGO MINDSTORMS EV3. The EV3's
bootloader looks for a magic number in the ARM local RAM and if found,
it will boot into a special firmware update mode where the flash memory
can be written via USB.

This has been testing working using the command:

    # systemctl reboot loader

Signed-off-by: David Lechner <david@lechnology.com>
---
 arch/arm/boot/dts/da850-lego-ev3.dts | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm/boot/dts/da850-lego-ev3.dts b/arch/arm/boot/dts/da850-lego-ev3.dts
index e4bbf48..1cb2ff1 100644
--- a/arch/arm/boot/dts/da850-lego-ev3.dts
+++ b/arch/arm/boot/dts/da850-lego-ev3.dts
@@ -212,6 +212,23 @@
 		compatible = "gpio-backlight";
 		gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
 	};
+
+	/* ARM local RAM */
+	memory at ffff0000 {
+		compatible = "syscon", "simple-mfd";
+		reg = <0xffff0000 0x2000>; /* 8k */
+
+		/*
+		 * The I2C bootloader looks for this magic value to either
+		 * boot normally or boot into a firmware update mode.
+		 */
+		reboot-mode {
+			compatible = "syscon-reboot-mode";
+			offset = <0x1ffc>;
+			mode-normal = <0x00000000>;
+			mode-loader = <0x5555aaaa>;
+		};
+	};
 };
 
 &cpu {
-- 
2.7.4

^ permalink raw reply related

* [PATCH 2/2] ARM: davinci_all_defconfig: enable SYSCON_REBOOT_MODE
From: David Lechner @ 2018-01-12  2:21 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <1515723685-19286-1-git-send-email-david@lechnology.com>

This enables SYSCON_REBOOT_MODE as a module. This is used by LEGO
MINDSTORMS EV3 to reboot into a special firmware update mode.

Signed-off-by: David Lechner <david@lechnology.com>
---
 arch/arm/configs/davinci_all_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/davinci_all_defconfig b/arch/arm/configs/davinci_all_defconfig
index 282b3e4..62f853f 100644
--- a/arch/arm/configs/davinci_all_defconfig
+++ b/arch/arm/configs/davinci_all_defconfig
@@ -135,6 +135,7 @@ CONFIG_GPIO_PCA953X=y
 CONFIG_GPIO_PCA953X_IRQ=y
 CONFIG_POWER_RESET=y
 CONFIG_POWER_RESET_GPIO=y
+CONFIG_SYSCON_REBOOT_MODE=m
 CONFIG_BATTERY_LEGO_EV3=m
 CONFIG_WATCHDOG=y
 CONFIG_DAVINCI_WATCHDOG=m
-- 
2.7.4

^ permalink raw reply related

* [PATCH 1/2] ARM: dts: da850-lego-ev3: Add node for reboot modes
From: David Lechner @ 2018-01-12  2:22 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <1515723685-19286-2-git-send-email-david@lechnology.com>

On 01/11/2018 08:21 PM, David Lechner wrote:
> This adds a new node for reboot modes on LEGO MINDSTORMS EV3. The EV3's
> bootloader looks for a magic number in the ARM local RAM and if found,
> it will boot into a special firmware update mode where the flash memory
> can be written via USB.
> 
> This has been testing working using the command:
> 
>      # systemctl reboot loader
> 
> Signed-off-by: David Lechner <david@lechnology.com>
> ---

Doh. I forgot to rebase, so this won't apply cleanly. V2 coming right up.

^ permalink raw reply

* [PATCH v2 0/2] Add reboot modes for LEGO MINDSTORMS EV3
From: David Lechner @ 2018-01-12  2:29 UTC (permalink / raw)
  To: linux-arm-kernel

This series adds a new device tree node to declare a special memory
address that is used by the I2C bootloader on LEGO MINDSTORMS EV3
to boot into a special firmware update mode and enables the required
module to use it.

v2 changes:
* rebase on linux-davinci/master

David Lechner (2):
  ARM: dts: da850-lego-ev3: Add node for reboot modes
  ARM: davinci_all_defconfig: enable SYSCON_REBOOT_MODE

 arch/arm/boot/dts/da850-lego-ev3.dts   | 17 +++++++++++++++++
 arch/arm/configs/davinci_all_defconfig |  1 +
 2 files changed, 18 insertions(+)

-- 
2.7.4

^ permalink raw reply

* [PATCH v2 1/2] ARM: dts: da850-lego-ev3: Add node for reboot modes
From: David Lechner @ 2018-01-12  2:29 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <1515724191-30499-1-git-send-email-david@lechnology.com>

This adds a new node for reboot modes on LEGO MINDSTORMS EV3. The EV3's
bootloader looks for a magic number in the ARM local RAM and if found,
it will boot into a special firmware update mode where the flash memory
can be written via USB.

This has been testing working using the command:

    # systemctl reboot loader

Signed-off-by: David Lechner <david@lechnology.com>
---
 arch/arm/boot/dts/da850-lego-ev3.dts | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm/boot/dts/da850-lego-ev3.dts b/arch/arm/boot/dts/da850-lego-ev3.dts
index 81942ae..2e85080 100644
--- a/arch/arm/boot/dts/da850-lego-ev3.dts
+++ b/arch/arm/boot/dts/da850-lego-ev3.dts
@@ -184,6 +184,23 @@
 		io-channel-names = "voltage", "current";
 		rechargeable-gpios = <&gpio 136 GPIO_ACTIVE_LOW>;
 	};
+
+	/* ARM local RAM */
+	memory at ffff0000 {
+		compatible = "syscon", "simple-mfd";
+		reg = <0xffff0000 0x2000>; /* 8k */
+
+		/*
+		 * The I2C bootloader looks for this magic value to either
+		 * boot normally or boot into a firmware update mode.
+		 */
+		reboot-mode {
+			compatible = "syscon-reboot-mode";
+			offset = <0x1ffc>;
+			mode-normal = <0x00000000>;
+			mode-loader = <0x5555aaaa>;
+		};
+	};
 };
 
 &pmx_core {
-- 
2.7.4

^ permalink raw reply related

* [PATCH v2 2/2] ARM: davinci_all_defconfig: enable SYSCON_REBOOT_MODE
From: David Lechner @ 2018-01-12  2:29 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <1515724191-30499-1-git-send-email-david@lechnology.com>

This enables SYSCON_REBOOT_MODE as a module. This is used by LEGO
MINDSTORMS EV3 to reboot into a special firmware update mode.

Signed-off-by: David Lechner <david@lechnology.com>
---
 arch/arm/configs/davinci_all_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/davinci_all_defconfig b/arch/arm/configs/davinci_all_defconfig
index 026154c..bcb70c2 100644
--- a/arch/arm/configs/davinci_all_defconfig
+++ b/arch/arm/configs/davinci_all_defconfig
@@ -126,6 +126,7 @@ CONFIG_GPIO_PCA953X=y
 CONFIG_GPIO_PCA953X_IRQ=y
 CONFIG_POWER_RESET=y
 CONFIG_POWER_RESET_GPIO=y
+CONFIG_SYSCON_REBOOT_MODE=m
 CONFIG_BATTERY_LEGO_EV3=m
 CONFIG_WATCHDOG=y
 CONFIG_DAVINCI_WATCHDOG=m
-- 
2.7.4

^ permalink raw reply related

* [PATCH] arm64: dts: angler: add pstore-ramoops support
From: Jeremy McNicoll @ 2018-01-12  2:33 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <1514446709-19347-1-git-send-email-zhuoweizhang@yahoo.com>

On Thu, Dec 28, 2017 at 02:38:29AM -0500, zhuoweizhang at yahoo.com wrote:
> From: Zhuowei Zhang <zhuoweizhang@yahoo.com>
> 
> Support pstore-ramoops for retrieving kernel oops and panics after reboot.
> 
> The address and configs are taken from the downstream kernel's device tree.
> 
> Signed-off-by: Zhuowei Zhang <zhuoweizhang@yahoo.com>
> ---
>  arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts b/arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts
> index dfa08f5..9ce3a6e 100644
> --- a/arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts
> +++ b/arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts
> @@ -37,4 +37,19 @@
>  			pinctrl-1 = <&blsp1_uart2_sleep>;
>  		};
>  	};
> +
> +	reserved-memory {
> +		#address-cells = <2>;
> +		#size-cells = <2>;
> +		ranges;
> +
> +		ramoops at 1fe00000 {
> +			compatible = "ramoops";
> +			reg = <0 0x1fe00000 0 0x00200000>;

Downstream doesn't use 0x0 to denote 0.  I am fine with this, if 
someone has a concern or issue with it we can change it before merging.


> +			console-size = <0x100000>;
> +			record-size = <0x10000>;
> +			ftrace-size = <0x10000>;
> +			pmsg-size = <0x80000>;

We could pad this with leading 0's but I find this much easier
to read.

> +		};
> +	};
>  };

Thank you very much for taking the time to send this.  


Acked-by: Jeremy McNicoll <jeremymc@redhat.com>

^ permalink raw reply

* [GIT PULL] TI DaVinci SoC updates for v4.16 (part 2)
From: David Lechner @ 2018-01-12  2:36 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <20180112013602.q2sm25s6o3oebkbj@localhost>

On 01/11/2018 07:36 PM, Olof Johansson wrote:
> On Wed, Jan 10, 2018 at 04:55:05PM +0530, Sekhar Nori wrote:
>> The following changes since commit 23bbeaef90ab7607d03428bbb708efe44f43c761:
>>
>>    ARM: davinci: constify gpio_led (2018-01-05 19:28:41 +0530)
>>
>> are available in the git repository at:
>>
>>    git://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci.git tags/davinci-for-v4.16/soc-p2
>>
>> for you to fetch changes up to 0808d3260456aaba061fe06ead31d578c8bdc936:
>>
>>    ARM: davinci: remove watchdog reset (2018-01-10 14:38:07 +0530)
>>
>> ----------------------------------------------------------------
>> A patch to shift to using watchdog timer for DaVinci restart functionality.
>> The driver support is present in linux-next as 71d1f058844d "watchdog:
>> davinci_wdt: add restart function"
> 
> Hi,
> 
> So if this is merged before the driver is merged, what happens?

Then reboot hangs.

> Might
> be better to hold off a release to avoid regressions?
> 

I'll let Sekhar answer this one.

^ permalink raw reply

* [PATCH 1/3] arm: spear600: Add missing interrupt-parent of rtc
From: Viresh Kumar @ 2018-01-12  3:22 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <20180112020711.6gp2pnsxxjzelidq@localhost>

On 11-01-18, 18:07, Olof Johansson wrote:
> On Thu, Jan 11, 2018 at 11:28:51AM +0530, Viresh Kumar wrote:
> > The interrupt-parent of rtc was missing, add it.
> > 
> > Fixes: 8113ba917dfa ("ARM: SPEAr: DT: Update device nodes")
> > Cc: stable at vger.kernel.org # v3.8+
> > Reported-by: Arnd Bergmann <arnd@arndb.de>
> > Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> 
> Applied to next/dt. Is stable really needed on this? It's been broken since
> pretty much forever, and nobody has complained... :)

Not sure. Just thought it may be useful for someone somewhere :)

-- 
viresh

^ permalink raw reply

* [PATCH 1/3] arm: spear600: Add missing interrupt-parent of rtc
From: Olof Johansson @ 2018-01-12  3:23 UTC (permalink / raw)
  To: linux-arm-kernel
In-Reply-To: <20180112032223.GK3626@vireshk-i7>

On Thu, Jan 11, 2018 at 7:22 PM, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> On 11-01-18, 18:07, Olof Johansson wrote:
>> On Thu, Jan 11, 2018 at 11:28:51AM +0530, Viresh Kumar wrote:
>> > The interrupt-parent of rtc was missing, add it.
>> >
>> > Fixes: 8113ba917dfa ("ARM: SPEAr: DT: Update device nodes")
>> > Cc: stable at vger.kernel.org # v3.8+
>> > Reported-by: Arnd Bergmann <arnd@arndb.de>
>> > Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
>>
>> Applied to next/dt. Is stable really needed on this? It's been broken since
>> pretty much forever, and nobody has complained... :)
>
> Not sure. Just thought it may be useful for someone somewhere :)

Ok. Left the tags there, but didn't merge into fixes since we're late
in -rc and this didn't seem critical at this time.


-Olof

^ permalink raw reply


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox