Skip to content

[4.15] Fix outstanding GCC 6.4.0 and GCC 7.3.0 warnings #2417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
03701f6
arm: partially revert 702b94bff3c50542a6e4ab9a4f4cef093262fe65
invisiblek Sep 21, 2017
5b228dc
smsx95xx: fix crimes against truesize
Feb 19, 2015
5b58bc1
smsc95xx: Experimental: Enable turbo_mode and packetsize=2560 by default
samnazarko Apr 1, 2016
c44a8bb
Allow mac address to be set in smsc95xx
popcornmix Mar 26, 2013
2746265
Protect __release_resource against resources without parents
Mar 13, 2015
0d0dbd4
irq-bcm2836: Prevent spurious interrupts, and trap them early
Dec 4, 2015
fb374d6
irq-bcm2836: Avoid "Invalid trigger warning"
Feb 9, 2017
5a03754
irqchip: bcm2835: Add FIQ support
notro Jun 12, 2015
f79f5ff
irqchip: irq-bcm2835: Add 2836 FIQ support
notro Oct 23, 2015
d6e207f
spidev: Add "spidev" compatible string to silence warning
Jul 14, 2015
31849be
spi-bcm2835: Support pin groups other than 7-11
Jun 24, 2015
2241ace
spi-bcm2835: Disable forced software CS
Jul 1, 2016
016de1e
spi-bcm2835: Remove unused code
Nov 8, 2016
dd7f22e
dmaengine: bcm2835: Load driver early and support legacy API
notro Oct 3, 2015
2ea3771
firmware: Updated mailbox header
popcornmix Jan 25, 2016
bd9c228
rtc: Add SPI alias for pcf2123 driver
Jun 15, 2016
ea713ce
watchdog: bcm2835: Support setting reboot partition
notro Oct 7, 2016
78de4a2
reboot: Use power off rather than busy spinning when halt is requested
popcornmix Apr 5, 2016
232c8fa
bcm: Make RASPBERRYPI_POWER depend on PM
popcornmix Nov 9, 2016
981f81c
Register the clocks early during the boot process, so that special/cr…
msperl Sep 2, 2016
e18e991
bcm2835-rng: Avoid initialising if already enabled
popcornmix Dec 6, 2016
8890ae3
kbuild: Ignore dtco targets when filtering symbols
Aug 24, 2016
53b1f8a
BCM2835_DT: Fix I2S register map
rtiemann Jul 20, 2015
681312c
clk-bcm2835: Mark used PLLs and dividers CRITICAL
Feb 13, 2017
816fe6c
clk-bcm2835: Add claim-clocks property
Feb 13, 2017
6ebb66a
clk-bcm2835: Read max core clock from firmware
Mar 6, 2017
f06b02f
clk: bcm2835: Mark GPIO clocks enabled at boot as critical.
anholt May 10, 2016
b6a381e
sound: Demote deferral errors to INFO level
Feb 9, 2017
e0b760d
Update vfpmodule.c
Claggy3 Feb 11, 2017
febaff4
i2c: bcm2835: Add debug support
notro Nov 1, 2016
04a24ce
mm: Remove the PFN busy warning
anholt Dec 19, 2014
6b89f80
ASoC: Add prompt for ICS43432 codec
Mar 23, 2017
19e2ff8
ASoC: bcm2835: fix hw_params error when device is in prepared state (…
HiassofT Jan 18, 2018
265b081
irqchip: irq-bcm2836: Remove regmap and syscon use
Jan 23, 2018
b0665f8
lan78xx: Read MAC address from DT if present
Jul 21, 2017
8546422
lan78xx: Correctly indicate invalid OTP
Nov 28, 2017
1883f6e
lan78xx: Enable LEDs and auto-negotiation
Oct 17, 2017
01dadb4
lan78xx: Avoid spurious kevent 4 "error"
Jan 24, 2018
670e9f2
amba_pl011: Don't use DT aliases for numbering
Feb 23, 2016
ff9682b
amba_pl011: Round input clock up
Mar 1, 2017
4ed6ba2
amba_pl011: Insert mb() for correct FIFO handling
Sep 29, 2017
3066c7d
amba_pl011: Add cts-event-workaround DT property
Sep 29, 2017
88a1b8a
staging: vchiq_arm: Make debugfs failure non-fatal
Dec 12, 2017
43f1fad
pinctrl-bcm2835: Set base to 0 give expected gpio numbering
notro Jul 10, 2014
3adef80
Sets the BCDC priority to constant 0
Jul 21, 2017
1289a12
Revert "softirq: Let ksoftirqd do its job"
popcornmix Jan 17, 2018
cfc80fc
Main bcm2708/bcm2709 linux port
popcornmix May 12, 2013
eb27afc
Add dwc_otg driver
popcornmix May 1, 2013
43103ae
bcm2708 framebuffer driver
popcornmix Jun 17, 2015
edb66b3
dmaengine: Add support for BCM2708
koalo Nov 22, 2013
618018b
MMC: added alternative MMC driver
weiszg Aug 15, 2014
f8be41f
Adding bcm2835-sdhost driver, and an overlay to enable it
Mar 25, 2015
14ffaa7
vc_mem: Add vc_mem driver for querying firmware memory addresses
popcornmix Oct 28, 2016
9c31831
vcsm: VideoCore shared memory service for BCM2835
Jul 22, 2014
582784e
Add /dev/gpiomem device for rootless user GPIO access
Wren6991 Aug 21, 2015
325564a
Add SMI driver
Wren6991 Sep 5, 2015
9429f31
MISC: bcm2835: smi: use clock manager and fix reload issues
msperl Apr 26, 2016
59122c3
Add SMI NAND driver
Wren6991 Sep 5, 2015
e4f54fd
lirc: added support for RaspberryPi GPIO
Jun 16, 2012
767e9f1
Add cpufreq driver
popcornmix Jul 2, 2013
75786c6
Add Chris Boot's i2c driver
popcornmix Jun 17, 2015
92e8623
char: broadcom: Add vcio module
notro Jun 26, 2015
5ec8994
firmware: bcm2835: Support ARCH_BCM270x
notro Jun 26, 2015
39a6894
scripts: Add mkknlimg and knlinfo scripts from tools repo
May 11, 2015
c56aebf
BCM2708: Add core Device Tree support
notro Jul 9, 2014
e891e0e
BCM270x_DT: Add pwr_led, and the required "input" trigger
Feb 6, 2015
4b6b8b8
fbdev: add FBIOCOPYAREA ioctl
ssvb Jun 17, 2013
a90a817
Speed up console framebuffer imageblit function
hglm Jun 20, 2013
40f71cd
enabling the realtime clock 1-wire chip DS1307 and 1-wire on GPIO4 (a…
popcornmix May 8, 2013
e90dd24
Added Device IDs for August DVB-T 205
popcornmix Jul 2, 2013
246e78a
rpi-ft5406: Add touchscreen driver for pi LCD display
ghollingworth May 12, 2015
e060b29
Improve __copy_to_user and __copy_from_user performance
popcornmix Nov 28, 2016
cd82cbb
gpio-poweroff: Allow it to work on Raspberry Pi
Jun 25, 2015
bf3d4a6
mfd: Add Raspberry Pi Sense HAT core driver
pelwell Jul 14, 2015
16a1cdc
ASoC: Add support for HifiBerry DAC
koalo Nov 22, 2013
8cb2049
ASoC: Add support for Rpi-DAC
koalo Jan 25, 2016
3f1fdad
ASoC: wm8804: Implement MCLK configuration options, add 32bit support…
Jan 15, 2014
55ad860
ASoC: BCM:Add support for HiFiBerry Digi. Driver is based on the patc…
Jan 15, 2014
c4ab5ae
Add IQaudIO Sound Card support for Raspberry Pi
Mar 8, 2014
3c69ab3
Added support for HiFiBerry DAC+
Aug 4, 2014
d420af1
Added driver for HiFiBerry Amp amplifier add-on board
Aug 4, 2014
f6af176
Add driver for rpi-proto
Mar 25, 2015
d923dfe
RaspiDAC3 support
Aug 24, 2015
5bf04e9
Add Support for JustBoom Audio boards
shawaj Apr 7, 2016
949fec9
ARM: adau1977-adc: Add basic machine driver for adau1977 codec driver.
andrey2805 May 4, 2016
8d13f28
New AudioInjector.net Pi soundcard with low jitter audio in and out.
flatmax May 16, 2016
855725b
Add IQAudIO Digi WM8804 board support
DigitalDreamtime Jun 30, 2016
a07f1d1
New driver for RRA DigiDAC1 soundcard using WM8741 + WM8804
escalator2015 May 24, 2016
ee64d24
Add support for Dion Audio LOCO DAC-AMP HAT
DigitalDreamtime Jul 2, 2016
75de9fa
Allo Piano DAC boards: Initial 2 channel (stereo) support (#1645)
clivem Sep 19, 2016
a01435d
Add support for Allo Piano DAC 2.1 plus add-on board for Raspberry Pi.
Mar 27, 2017
a7fb3a1
Add support for Allo Boss DAC add-on board for Raspberry Pi. (#1924)
babuenir Mar 28, 2017
ca0d126
Support for Blokas Labs pisound board
gtrainavicius Oct 23, 2016
ad6cc97
ASoC: Add driver for Cirrus Logic Audio Card
HiassofT Jan 22, 2017
1b43a95
sound: Support for Dion Audio LOCO-V2 DAC-AMP HAT
miquel83blauw Feb 24, 2017
839bc39
Add support for Fe-Pi audio sound card. (#1867)
Fe-Pi Mar 1, 2017
e1310b4
Add support for the AudioInjector.net Octo sound card
flatmax Mar 8, 2017
9036197
Driver support for Google voiceHAT soundcard.
Mar 27, 2017
a259a29
Allo Digione Driver (#2048)
sandeepal Jun 2, 2017
7cdfb5a
rpi_display: add backlight driver and overlay
Oct 21, 2015
7e24cac
bcm2835-virtgpio: Virtual GPIO driver
popcornmix Feb 23, 2016
d8cf687
bcm2835-gpio-exp: Driver for GPIO expander via mailbox service
6by9 Feb 20, 2017
ce02441
net: Add non-mainline source for rtl8192cu wlan
popcornmix Sep 3, 2012
8f1edbe
net: Fix rtl8192cu build errors on other platforms
Mar 23, 2016
724f9c4
rtl8192cu: Updates for 4.15
popcornmix Feb 13, 2018
7799263
OF: DT-Overlay configfs interface
pantoniou Dec 3, 2014
5b5fb88
brcm: adds support for BCM43341 wifi
Cheong2K Feb 26, 2016
2f8ab7e
brcmfmac: Mute expected startup 'errors'
Feb 17, 2017
e2afbd4
brcmfmac: request_firmware_direct is quieter
Oct 6, 2017
63a32e3
hci_h5: Don't send conf_req when ACTIVE
Dec 17, 2015
6f6befb
config: Add default configs
popcornmix Apr 13, 2015
37fb569
Add arm64 configuration and device tree differences. Disable MMC_BCM2…
Electron752 Aug 24, 2016
5bfc932
ARM64/DWC_OTG: Port dwc_otg driver to ARM64
Electron752 Jan 15, 2017
e31e622
ARM64: Round-Robin dispatch IRQs between CPUs.
Electron752 Jan 15, 2017
e370ce2
ARM64: Force hardware emulation of deprecated instructions.
Electron752 Feb 11, 2017
59feca3
build/arm64: Add rules for .dtbo files for dts overlays
kraj Feb 11, 2017
b4f323c
bcm2835-aux: Add aux interrupt controller
Mar 23, 2017
91c7344
This is the driver for Sony CXD2880 DVB-T2/T tuner + demodulator. It …
YasunariTakiguchi Apr 14, 2017
175c376
cache: export clean and invalidate
popcornmix Aug 25, 2017
464fd47
AXI performance monitor driver (#2222)
JamesH65 Nov 14, 2017
3deea78
mcp2515: Use DT-supplied interrupt flags
Nov 14, 2017
04995f8
Tidy up of the ft5406 driver to use DT (#2189)
JamesH65 Nov 16, 2017
9fc867d
cgroup: Disable cgroup "memory" by default
Nov 27, 2017
2174372
ARM: bcm2835: Set Serial number and Revision
notro Jun 3, 2015
b023dd9
pwm: Set class for exported channels in sysfs
gohai Sep 26, 2017
6a5519a
ARM: Activate FIQs to avoid __irq_startup warnings
Dec 11, 2017
42be1a8
serial: 8250: bcm2835aux - suppress EPROBE_DEFER
Jan 22, 2018
0c72ee7
raspberrypi-firmware: Export the general transaction function.
anholt Sep 14, 2016
4069589
drm/vc4: Add a mode for using the closed firmware for display.
anholt Sep 14, 2016
5212c06
drm/vc4: Name the primary and cursor planes in fkms.
anholt Feb 2, 2017
65cca08
drm/vc4: Add DRM_DEBUG_ATOMIC for the insides of fkms.
anholt Feb 2, 2017
7a49e83
drm/vc4: Fix sending of page flip completion events in FKMS mode.
anholt Feb 2, 2017
d6e0f9e
drm/vc4: Add support for setting DPMS in firmwarekms.
anholt Jul 6, 2017
a23b972
drm/vc4: Add FB modifier support to firmwarekms.
anholt Jun 7, 2017
59e12a2
drm/vc4: Add missing enable/disable vblank handlers in fkms.
anholt Jan 30, 2018
c2b2a40
vc4_fkms: Apply firmware overscan offset to hardware cursor
popcornmix Apr 18, 2017
627a662
overlays: Allow multiple instances of gpio-ir[-tx]
Feb 15, 2018
d93cf8b
dwc_otg: add smp_mb() to prevent driver state corruption on boot
Feb 15, 2018
2c6d629
overlay: Add missing pinctrl reference to gpio-ir
Feb 15, 2018
af75844
Generic Rotary Encoder overlay for multiple instances (#2388)
ismailof Feb 18, 2018
843e6f9
Add support for SuperAudioBoard sound card (#2386)
whollender Feb 18, 2018
d30c207
Revert downstream wm8804 changes
HiassofT Feb 2, 2018
513c406
BCM270X_DT: Add brcm,bcm2835-sdhci as a fallback
Feb 19, 2018
0493db4
overlays: i2c-gpio: Support for multiple instances
Feb 19, 2018
b536c5f
i2c-gpio: Also set bus numbers from reg property
Feb 20, 2018
12f6ed8
overlays: i2c-gpio: Explain bus numbers in README
Feb 20, 2018
ccc4e1c
Update rpi-ft5406-overlay.dts
JamesH65 Feb 20, 2018
701575b
sc16is7xx: Fix for multi-channel stall
Feb 20, 2018
b612b9b
overlays: Add sc16is752-i2c overlay
Feb 20, 2018
f7614af
overlays: Add overlay for missing AUX interrupt controller support (#…
agraf Feb 20, 2018
93b04d9
remove generated file from git
t-8ch Feb 22, 2018
1cae6c5
bcm2709: enable usb gadget functions
t-8ch Feb 23, 2018
5c11768
net: Add non-mainline source for rtl8192cu wlan
popcornmix Sep 3, 2012
b779f9a
Fixing memset call in pisound.c
gtrainavicius Feb 24, 2018
556f383
overlays: Rework sdio overlays to allow polling
Feb 26, 2018
dd0651a
firmware/raspberrypi: Add a get_throttled sysfs file
notro Feb 24, 2018
e688d5c
overlays: Add overlay for PiBell soundcard
Feb 28, 2018
938a71b
Removing (broken) RaspiDac3 support...
Feb 28, 2018
39f233b
net: rtl8192cu: Fix off-by-one warning
marckleinebudde Sep 12, 2015
8a9f379
net: rtl8192cu: Normalize indentation
nathanchance Mar 4, 2018
801674e
net: rtl8192cu: Fix outstanding GCC 6.4.0 warnings
fran6co May 28, 2016
f25f8c9
net: rtl8192cu: Fix implicit fallthrough warnings
nathanchance Mar 5, 2018
feaf1db
sound: bcm: Fix memset dereference warning
nathanchance Mar 5, 2018
78bca2a
staging: vchiq_arm: Remove unused variable
nathanchance Mar 4, 2018
3797f9c
usb: dwb_otg: Fix unreachable switch statement warning
nathanchance Mar 5, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*.bin
*.bz2
*.c.[012]*.*
*.dtb
*.dtb*
*.dtb.S
*.dwo
*.elf
Expand Down
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ Example:

bcm2835_i2s: i2s@7e203000 {
compatible = "brcm,bcm2835-i2s";
reg = < 0x7e203000 0x20>,
< 0x7e101098 0x02>;
reg = < 0x7e203000 0x24>,
< 0x7e101098 0x08>;

dmas = <&dma 2>,
<&dma 3>;
Expand Down
17 changes: 17 additions & 0 deletions Documentation/devicetree/bindings/misc/brcm,bcm2835-smi-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
* Broadcom BCM2835 SMI character device driver.

SMI or secondary memory interface is a peripheral specific to certain Broadcom
SOCs, and is helpful for talking to things like parallel-interface displays
and NAND flashes (in fact, most things with a parallel register interface).

This driver adds a character device which provides a user-space interface to
an instance of the SMI driver.

Required properties:
- compatible: "brcm,bcm2835-smi-dev"
- smi_handle: a phandle to the smi node.

Optional properties:
- None.


48 changes: 48 additions & 0 deletions Documentation/devicetree/bindings/misc/brcm,bcm2835-smi.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
* Broadcom BCM2835 SMI driver.

SMI or secondary memory interface is a peripheral specific to certain Broadcom
SOCs, and is helpful for talking to things like parallel-interface displays
and NAND flashes (in fact, most things with a parallel register interface).

Required properties:
- compatible: "brcm,bcm2835-smi"
- reg: Should contain location and length of SMI registers and SMI clkman regs
- interrupts: *the* SMI interrupt.
- pinctrl-names: should be "default".
- pinctrl-0: the phandle of the gpio pin node.
- brcm,smi-clock-source: the clock source for clkman
- brcm,smi-clock-divisor: the integer clock divisor for clkman
- dmas: the dma controller phandle and the DREQ number (4 on a 2835)
- dma-names: the name used by the driver to request its channel.
Should be "rx-tx".

Optional properties:
- None.

Examples:

8 data pin configuration:

smi: smi@7e600000 {
compatible = "brcm,bcm2835-smi";
reg = <0x7e600000 0x44>, <0x7e1010b0 0x8>;
interrupts = <2 16>;
pinctrl-names = "default";
pinctrl-0 = <&smi_pins>;
brcm,smi-clock-source = <6>;
brcm,smi-clock-divisor = <4>;
dmas = <&dma 4>;
dma-names = "rx-tx";

status = "okay";
};

smi_pins: smi_pins {
brcm,pins = <2 3 4 5 6 7 8 9 10 11 12 13 14 15>;
/* Alt 1: SMI */
brcm,function = <5 5 5 5 5 5 5 5 5 5 5 5 5 5>;
/* /CS, /WE and /OE are pulled high, as they are
generally active low signals */
brcm,pull = <2 2 2 2 2 2 0 0 0 0 0 0 0 0>;
};

42 changes: 42 additions & 0 deletions Documentation/devicetree/bindings/mtd/brcm,bcm2835-smi-nand.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
* BCM2835 SMI NAND flash

This driver is a shim between the BCM2835 SMI driver (SMI is a peripheral for
talking to parallel register interfaces) and Linux's MTD layer.

Required properties:
- compatible: "brcm,bcm2835-smi-nand"
- status: "okay"

Optional properties:
- partition@n, where n is an integer from a consecutive sequence starting at 0
- Difficult to store partition table on NAND device - normally put it
in the source code, kernel bootparams, or device tree (the best way!)
- Sub-properties:
- label: the partition name, as shown by mtdinfo /dev/mtd*
- reg: the size and offset of this partition.
- (optional) read-only: an empty property flagging as read only

Example:

nand: flash@0 {
compatible = "brcm,bcm2835-smi-nand";
status = "okay";

partition@0 {
label = "stage2";
// 128k
reg = <0 0x20000>;
read-only;
};
partition@1 {
label = "firmware";
// 16M
reg = <0x20000 0x1000000>;
read-only;
};
partition@2 {
label = "root";
// 2G
reg = <0x1020000 0x80000000>;
};
};
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/serial/pl011.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ Optional properties:
- poll-timeout-ms:
Poll timeout when auto-poll is set, default
3000ms.
- cts-event-workaround:
Enables the (otherwise vendor-specific) workaround for the
CTS-induced TX lockup.

See also bindings/arm/primecell.txt

Expand Down
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/sound/brcm,bcm2835-i2s.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Example:

bcm2835_i2s: i2s@7e203000 {
compatible = "brcm,bcm2835-i2s";
reg = <0x7e203000 0x20>,
<0x7e101098 0x02>;
reg = <0x7e203000 0x24>,
<0x7e101098 0x08>;

dmas = <&dma 2>,
<&dma 3>;
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/vendor-prefixes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ axentia Axentia Technologies AB
axis Axis Communications AB
bananapi BIPAI KEJI LIMITED
bhf Beckhoff Automation GmbH & Co. KG
blokaslabs Vilniaus Blokas UAB
boe BOE Technology Group Co., Ltd.
bosch Bosch Sensortec GmbH
boundary Boundary Devices Inc.
Expand Down
31 changes: 31 additions & 0 deletions Documentation/devicetree/configfs-overlays.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Howto use the configfs overlay interface.

A device-tree configfs entry is created in /config/device-tree/overlays
and and it is manipulated using standard file system I/O.
Note that this is a debug level interface, for use by developers and
not necessarily something accessed by normal users due to the
security implications of having direct access to the kernel's device tree.

* To create an overlay you mkdir the directory:

# mkdir /config/device-tree/overlays/foo

* Either you echo the overlay firmware file to the path property file.

# echo foo.dtbo >/config/device-tree/overlays/foo/path

* Or you cat the contents of the overlay to the dtbo file

# cat foo.dtbo >/config/device-tree/overlays/foo/dtbo

The overlay file will be applied, and devices will be created/destroyed
as required.

To remove it simply rmdir the directory.

# rmdir /config/device-tree/overlays/foo

The rationalle of the dual interface (firmware & direct copy) is that each is
better suited to different use patterns. The firmware interface is what's
intended to be used by hardware managers in the kernel, while the copy interface
make sense for developers (since it avoids problems with namespaces).
2 changes: 2 additions & 0 deletions arch/arm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ $(INSTALL_TARGETS):

%.dtb: | scripts
$(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
%.dtbo: | scripts
$(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@

PHONY += dtbs dtbs_install

Expand Down
20 changes: 20 additions & 0 deletions arch/arm/boot/dts/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# SPDX-License-Identifier: GPL-2.0
ifeq ($(CONFIG_OF),y)

dtb-$(CONFIG_ARCH_BCM2835) += \
bcm2708-rpi-b.dtb \
bcm2708-rpi-b-plus.dtb \
bcm2708-rpi-cm.dtb \
bcm2708-rpi-0-w.dtb \
bcm2709-rpi-2-b.dtb \
bcm2710-rpi-3-b.dtb \
bcm2710-rpi-cm3.dtb

dtb-$(CONFIG_ARCH_ALPINE) += \
alpine-db.dtb
dtb-$(CONFIG_MACH_ARTPEC6) += \
Expand Down Expand Up @@ -1104,4 +1113,15 @@ dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dtb
dtb-$(CONFIG_ARCH_ASPEED) += aspeed-bmc-opp-palmetto.dtb \
aspeed-bmc-opp-romulus.dtb \
aspeed-ast2500-evb.dtb

targets += dtbs dtbs_install
targets += $(dtb-y)

endif

subdir-y := overlays

# Enable fixups to support overlays on BCM2835 platforms
ifeq ($(CONFIG_ARCH_BCM2835),y)
DTC_FLAGS ?= -@
endif
165 changes: 165 additions & 0 deletions arch/arm/boot/dts/bcm2708-rpi-0-w.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
/dts-v1/;

#include "bcm2708.dtsi"

/ {
model = "Raspberry Pi Zero W";

chosen {
bootargs = "8250.nr_uarts=1";
};

aliases {
serial0 = &uart1;
serial1 = &uart0;
};
};

&gpio {
spi0_pins: spi0_pins {
brcm,pins = <9 10 11>;
brcm,function = <4>; /* alt0 */
};

spi0_cs_pins: spi0_cs_pins {
brcm,pins = <8 7>;
brcm,function = <1>; /* output */
};

i2c0_pins: i2c0 {
brcm,pins = <0 1>;
brcm,function = <4>;
};

i2c1_pins: i2c1 {
brcm,pins = <2 3>;
brcm,function = <4>;
};

i2s_pins: i2s {
brcm,pins = <18 19 20 21>;
brcm,function = <4>; /* alt0 */
};

sdio_pins: sdio_pins {
brcm,pins = <34 35 36 37 38 39>;
brcm,function = <7>; /* ALT3 = SD1 */
brcm,pull = <0 2 2 2 2 2>;
};

bt_pins: bt_pins {
brcm,pins = <43>;
brcm,function = <4>; /* alt0:GPCLK2 */
brcm,pull = <0>; /* none */
};

uart0_pins: uart0_pins {
brcm,pins = <30 31 32 33>;
brcm,function = <7>; /* alt3=UART0 */
brcm,pull = <2 0 0 2>; /* up none none up */
};

uart1_pins: uart1_pins {
brcm,pins;
brcm,function;
brcm,pull;
};

audio_pins: audio_pins {
brcm,pins = <>;
brcm,function = <>;
};
};

&mmc {
pinctrl-names = "default";
pinctrl-0 = <&sdio_pins>;
non-removable;
bus-width = <4>;
status = "okay";
};

&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pins &bt_pins>;
status = "okay";
};

&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins>;
status = "okay";
};

&spi0 {
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
cs-gpios = <&gpio 8 1>, <&gpio 7 1>;

spidev0: spidev@0{
compatible = "spidev";
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <125000000>;
};

spidev1: spidev@1{
compatible = "spidev";
reg = <1>; /* CE1 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <125000000>;
};
};

&i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins>;
clock-frequency = <100000>;
};

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
clock-frequency = <100000>;
};

&i2c2 {
clock-frequency = <100000>;
};

&i2s {
#sound-dai-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&i2s_pins>;
};

&random {
status = "okay";
};

&leds {
act_led: act {
label = "led0";
linux,default-trigger = "mmc0";
gpios = <&gpio 47 0>;
};
};

&hdmi {
hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
};

&audio {
pinctrl-names = "default";
pinctrl-0 = <&audio_pins>;
};

/ {
__overrides__ {
act_led_gpio = <&act_led>,"gpios:4";
act_led_activelow = <&act_led>,"gpios:8";
act_led_trigger = <&act_led>,"linux,default-trigger";
};
};
Loading